diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-19 21:03:15 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-19 21:03:15 +0100 |
commit | ea9df035a294bf1cfa715c140d0d22aa018e262e (patch) | |
tree | 9f1ec79e96003494666970c16f905c0b0c9608ff /src/utils | |
parent | dad0c1c04b6d4f67da407f69cec98221d178c194 (diff) | |
download | chawan-ea9df035a294bf1cfa715c140d0d22aa018e262e.tar.gz |
More DOM work
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/twtstr.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index b66c5d65..c4605093 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -105,6 +105,10 @@ func toLowerAscii2*(str: string): string = for i in i ..< str.len: result[i] = str[i].tolower() +proc toLowerAsciiInPlace*(str: var string) = + for i in 0 ..< str.len: + str[i] = str[i].tolower() + func toHeaderCase*(str: string): string = result = str var flip = true |