about summary refs log tree commit diff stats
path: root/src/utils/twtstr.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r--src/utils/twtstr.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index 48ea8750..46787553 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -105,6 +105,9 @@ func toHexLower*(u: uint16): string =
     x = x shr 4
   return s
 
+proc add*(s: var string; u: uint8) =
+  s.addInt(uint64(u))
+
 func equalsIgnoreCase*(s1, s2: string): bool {.inline.} =
   return s1.cmpIgnoreCase(s2) == 0