summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCharles Blake <charlechaud@gmail.com>2019-06-15 03:46:21 -0400
committerCharles Blake <charlechaud@gmail.com>2019-06-15 03:46:21 -0400
commit6dc648731145efbe736afea19f7dd5d262deb91d (patch)
tree7da4b93fe1eb7ac0d4cc67c765c98a252fb9141c
parente11d582fa1562128b74f597620958e40e849b855 (diff)
downloadNim-6dc648731145efbe736afea19f7dd5d262deb91d.tar.gz
Disambiguate idents now that all 3 rfind's are included in the RTL.
-rw-r--r--lib/pure/strutils.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 2132b65fb..96468e4af 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -1908,7 +1908,7 @@ proc find*(s, sub: string, start: Natural = 0, last = 0): int {.noSideEffect,
   result = find(a, s, sub, start, last)
 
 proc rfind*(s: string, sub: char, start: Natural = 0, last = -1): int {.noSideEffect,
-  rtl.} =
+  rtl, extern: "nsuRFindChar".} =
   ## Searches for `sub` in `s` inside range ``start..last`` (both ends included)
   ## in reverse -- starting at high indexes and moving lower to the first
   ## character or ``start``.  If `last` is unspecified, it defaults to `s.high`
@@ -1926,7 +1926,7 @@ proc rfind*(s: string, sub: char, start: Natural = 0, last = -1): int {.noSideEf
   return -1
 
 proc rfind*(s: string, chars: set[char], start: Natural = 0, last = -1): int {.noSideEffect,
-  rtl.} =
+  rtl, extern: "nsuRFindCharSet".} =
   ## Searches for `chars` in `s` inside range ``start..last`` (both ends
   ## included) in reverse -- starting at high indexes and moving lower to the
   ## first character or ``start``.  If `last` is unspecified, it defaults to
@@ -1944,7 +1944,7 @@ proc rfind*(s: string, chars: set[char], start: Natural = 0, last = -1): int {.n
   return -1
 
 proc rfind*(s, sub: string, start: Natural = 0, last = -1): int {.noSideEffect,
-  rtl.} =
+  rtl, extern: "nsuRFindStr".} =
   ## Searches for `sub` in `s` inside range ``start..last`` (both ends included)
   ## included) in reverse -- starting at high indexes and moving lower to the
   ## first character or ``start``.   If `last` is unspecified, it defaults to