about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/html/dom.nim2
-rw-r--r--src/js/javascript.nim4
-rw-r--r--src/utils/twtstr.nim5
3 files changed, 4 insertions, 7 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 0ee42967..5bab4e9c 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -729,7 +729,7 @@ type
 func attrType0(s: static string): StaticAtom =
   return parseEnum[StaticAtom](s)
 
-template toset(ts: openarray[TagType]): set[TagType] =
+template toset(ts: openArray[TagType]): set[TagType] =
   var tags: system.set[TagType]
   for tag in ts:
     tags.incl(tag)
diff --git a/src/js/javascript.nim b/src/js/javascript.nim
index cbd0b205..f2cd8a10 100644
--- a/src/js/javascript.nim
+++ b/src/js/javascript.nim
@@ -327,7 +327,7 @@ proc getJSFunction*[T, U](ctx: JSContext, val: JSValue):
   return fromJSFunction1[T, U](ctx, val)
 
 proc defineConsts*[T](ctx: JSContext, classid: JSClassID,
-    consts: static openarray[(string, T)]) =
+    consts: static openArray[(string, T)]) =
   let proto = ctx.getOpaque().ctors[classid]
   for (k, v) in consts:
     ctx.definePropertyE(proto, k, v)
@@ -1583,7 +1583,7 @@ proc bindEndStmts(endstmts: NimNode, info: RegistryInfo) =
 macro registerType*(ctx: typed, t: typed, parent: JSClassID = 0,
     asglobal = false, nointerface = false, name: static string = "",
     has_extra_getset: static bool = false,
-    extra_getset: static openarray[TabGetSet] = [],
+    extra_getset: static openArray[TabGetSet] = [],
     namespace: JSValue = JS_NULL, errid = opt(JSErrorEnum),
     ishtmldda = false): JSClassID =
   var stmts = newStmtList()
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index f0a64546..4f51d6a8 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -23,9 +23,6 @@ func onlyWhitespace*(s: string): bool =
 func isControlChar*(r: Rune): bool =
   return int(r) <= 0x1F or int(r) == 0x7F
 
-func isC0ControlOrSpace*(c: char): bool =
-  return c in (Controls + {' '})
-
 func getControlChar*(c: char): char =
   if c == '?':
     return char(127)
@@ -509,7 +506,7 @@ func dqEscape*(s: string): string =
     result &= c
 
 #basically std join but with char
-func join*(ss: openarray[string], sep: char): string =
+func join*(ss: openArray[string], sep: char): string =
   if ss.len == 0:
     return ""
   var n = ss.high - 1