Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
35403e4c
Commit
35403e4c
authored
Jan 07, 2010
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added some missing periods
R=rsc CC=golang-dev
https://golang.org/cl/181171
parent
676f9dfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
letter.go
src/pkg/unicode/letter.go
+4
-4
No files found.
src/pkg/unicode/letter.go
View file @
35403e4c
...
...
@@ -130,7 +130,7 @@ func IsSpace(rune int) bool {
return
Is
(
White_Space
,
rune
)
}
// To maps the rune to the specified case: UpperCase, LowerCase, or TitleCase
// To maps the rune to the specified case: UpperCase, LowerCase, or TitleCase
.
func
To
(
_case
int
,
rune
int
)
int
{
if
_case
<
0
||
MaxCase
<=
_case
{
return
ReplacementChar
// as reasonable an error as any
...
...
@@ -167,7 +167,7 @@ func To(_case int, rune int) int {
return
rune
}
// ToUpper maps the rune to upper case
// ToUpper maps the rune to upper case
.
func
ToUpper
(
rune
int
)
int
{
if
rune
<
0x80
{
// quick ASCII check
if
'a'
<=
rune
&&
rune
<=
'z'
{
...
...
@@ -178,7 +178,7 @@ func ToUpper(rune int) int {
return
To
(
UpperCase
,
rune
)
}
// ToLower maps the rune to lower case
// ToLower maps the rune to lower case
.
func
ToLower
(
rune
int
)
int
{
if
rune
<
0x80
{
// quick ASCII check
if
'A'
<=
rune
&&
rune
<=
'Z'
{
...
...
@@ -189,7 +189,7 @@ func ToLower(rune int) int {
return
To
(
LowerCase
,
rune
)
}
// ToTitle maps the rune to title case
// ToTitle maps the rune to title case
.
func
ToTitle
(
rune
int
)
int
{
if
rune
<
0x80
{
// quick ASCII check
if
'a'
<=
rune
&&
rune
<=
'z'
{
// title case is upper case for ASCII
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment