mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
followup #23560
This commit is contained in:
@@ -334,9 +334,9 @@ func normalize*(s: string): string {.rtl, extern: "nsuNormalize".} =
|
||||
func cmpIgnoreCase*(a, b: string): int {.rtl, extern: "nsuCmpIgnoreCase".} =
|
||||
## Compares two strings in a case insensitive manner. 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
|
||||
runnableExamples:
|
||||
doAssert cmpIgnoreCase("FooBar", "foobar") == 0
|
||||
doAssert cmpIgnoreCase("bar", "Foo") < 0
|
||||
@@ -354,9 +354,9 @@ func cmpIgnoreStyle*(a, b: string): int {.rtl, extern: "nsuCmpIgnoreStyle".} =
|
||||
##
|
||||
## 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
|
||||
runnableExamples:
|
||||
doAssert cmpIgnoreStyle("foo_bar", "FooBar") == 0
|
||||
doAssert cmpIgnoreStyle("foo_bar_5", "FooBar4") > 0
|
||||
|
||||
@@ -763,9 +763,9 @@ proc cmpPaths*(pathA, pathB: string): int {.
|
||||
## On a case-sensitive filesystem this is done
|
||||
## case-sensitively otherwise case-insensitively. Returns:
|
||||
##
|
||||
## | 0 if pathA == pathB
|
||||
## | < 0 if pathA < pathB
|
||||
## | > 0 if pathA > pathB
|
||||
## | `0` if pathA == pathB
|
||||
## | `< 0` if pathA < pathB
|
||||
## | `> 0` if pathA > pathB
|
||||
runnableExamples:
|
||||
when defined(macosx):
|
||||
assert cmpPaths("foo", "Foo") == 0
|
||||
|
||||
Reference in New Issue
Block a user