about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-19 21:03:15 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-19 21:03:15 +0100
commitea9df035a294bf1cfa715c140d0d22aa018e262e (patch)
tree9f1ec79e96003494666970c16f905c0b0c9608ff /src/utils
parentdad0c1c04b6d4f67da407f69cec98221d178c194 (diff)
downloadchawan-ea9df035a294bf1cfa715c140d0d22aa018e262e.tar.gz
More DOM work
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/twtstr.nim4
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