diff options
author | bptato <nincsnevem662@gmail.com> | 2023-06-07 19:30:55 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-07 19:30:55 +0200 |
commit | 578df008d0e2e6ac2d8ee2ad84ccf640f8d07c55 (patch) | |
tree | 216e69d75300e241508194b3ed61221e98c5f1c6 /src/utils/twtstr.nim | |
parent | 724f196225b5351724f0018b2fc78d744891fb17 (diff) | |
download | chawan-578df008d0e2e6ac2d8ee2ad84ccf640f8d07c55.tar.gz |
Add support for width, height media query
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r-- | src/utils/twtstr.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index 93fce06f..c41a7e57 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -130,6 +130,9 @@ func normalizeLocale*(s: string): string = func isAscii*(r: Rune): bool = return cast[uint32](r) < 128 +func `==`*(r: Rune, c: char): bool {.inline.} = + return Rune(c) == r + func startsWithNoCase*(str, prefix: string): bool = if str.len < prefix.len: return false # prefix.len is always lower |