mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Update unicode.nim: cmpRunesIgnoreCase: fix doc format (#23560)
Its doc used to render wrongly where `>` is considered as quote block: 
This commit is contained in:
@@ -836,9 +836,9 @@ proc toRunes*(s: openArray[char]): seq[Rune] =
|
||||
proc cmpRunesIgnoreCase*(a, b: openArray[char]): int {.rtl, extern: "nuc$1".} =
|
||||
## Compares two UTF-8 strings and ignores the case. Returns:
|
||||
##
|
||||
## | 0 if a == b
|
||||
## | < 0 if a < b
|
||||
## | > 0 if a > b
|
||||
## | `0` if a == b
|
||||
## | `< 0` if a < b
|
||||
## | `> 0` if a > b
|
||||
var i = 0
|
||||
var j = 0
|
||||
var ar, br: Rune
|
||||
@@ -1375,9 +1375,9 @@ proc toRunes*(s: string): seq[Rune] {.inline.} =
|
||||
proc cmpRunesIgnoreCase*(a, b: string): int {.inline.} =
|
||||
## Compares two UTF-8 strings and ignores the case. Returns:
|
||||
##
|
||||
## | 0 if a == b
|
||||
## | < 0 if a < b
|
||||
## | > 0 if a > b
|
||||
## | `0` if a == b
|
||||
## | `< 0` if a < b
|
||||
## | `> 0` if a > b
|
||||
cmpRunesIgnoreCase(a.toOa(), b.toOa())
|
||||
|
||||
proc reversed*(s: string): string {.inline.} =
|
||||
|
||||
Reference in New Issue
Block a user