| ... | @@ -320,7 +320,7 @@ pub fn isBlank(c: u8) bool { | ... | @@ -320,7 +320,7 @@ pub fn isBlank(c: u8) bool { |
| 320 | return (c == ' ') or (c == '\x09'); | 320 | return (c == ' ') or (c == '\x09'); |
| 321 | } | 321 | } |
| 322 | | 322 | |
| 323 | /// Upper-cases the character and returns it as-is if it's already upper-cased. | 323 | /// Uppercases the character and returns it as-is if it's already uppercased. |
| 324 | pub fn toUpper(c: u8) u8 { | 324 | pub fn toUpper(c: u8) u8 { |
| 325 | if (isLower(c)) { | 325 | if (isLower(c)) { |
| 326 | return c & 0b11011111; | 326 | return c & 0b11011111; |
| ... | @@ -329,7 +329,7 @@ pub fn toUpper(c: u8) u8 { | ... | @@ -329,7 +329,7 @@ pub fn toUpper(c: u8) u8 { |
| 329 | } | 329 | } |
| 330 | } | 330 | } |
| 331 | | 331 | |
| 332 | /// Lower-cases the character and returns it as-is if it's already lower-cased. | 332 | /// Lowercases the character and returns it as-is if it's already lowercased. |
| 333 | pub fn toLower(c: u8) u8 { | 333 | pub fn toLower(c: u8) u8 { |
| 334 | if (isUpper(c)) { | 334 | if (isUpper(c)) { |
| 335 | return c | 0b00100000; | 335 | return c | 0b00100000; |