Fixed wording (#9761)
This commit is contained in:
parent
e8bec61413
commit
d146516008
1 changed files with 4 additions and 4 deletions
|
|
@ -231,7 +231,7 @@ proc runeOffset*(s: string, pos:Natural, start: Natural = 0): int =
|
||||||
## returns the special value -1 if it runs out of the string
|
## returns the special value -1 if it runs out of the string
|
||||||
##
|
##
|
||||||
## Beware: This can lead to unoptimized code and slow execution!
|
## Beware: This can lead to unoptimized code and slow execution!
|
||||||
## Most problems are solve more efficient by using an iterator
|
## Most problems can be solved more efficiently by using an iterator
|
||||||
## or conversion to a seq of Rune.
|
## or conversion to a seq of Rune.
|
||||||
var
|
var
|
||||||
i = 0
|
i = 0
|
||||||
|
|
@ -247,7 +247,7 @@ proc runeAtPos*(s: string, pos: int): Rune =
|
||||||
## Returns the unicode character at position pos
|
## Returns the unicode character at position pos
|
||||||
##
|
##
|
||||||
## Beware: This can lead to unoptimized code and slow execution!
|
## Beware: This can lead to unoptimized code and slow execution!
|
||||||
## Most problems are solve more efficient by using an iterator
|
## Most problems can be solved more efficiently by using an iterator
|
||||||
## or conversion to a seq of Rune.
|
## or conversion to a seq of Rune.
|
||||||
fastRuneAt(s, runeOffset(s, pos), result, false)
|
fastRuneAt(s, runeOffset(s, pos), result, false)
|
||||||
|
|
||||||
|
|
@ -255,7 +255,7 @@ proc runeStrAtPos*(s: string, pos: Natural): string =
|
||||||
## Returns the unicode character at position pos as UTF8 String
|
## Returns the unicode character at position pos as UTF8 String
|
||||||
##
|
##
|
||||||
## Beware: This can lead to unoptimized code and slow execution!
|
## Beware: This can lead to unoptimized code and slow execution!
|
||||||
## Most problems are solve more efficient by using an iterator
|
## Most problems can be solved more efficiently by using an iterator
|
||||||
## or conversion to a seq of Rune.
|
## or conversion to a seq of Rune.
|
||||||
let o = runeOffset(s, pos)
|
let o = runeOffset(s, pos)
|
||||||
s[o.. (o+runeLenAt(s, o)-1)]
|
s[o.. (o+runeLenAt(s, o)-1)]
|
||||||
|
|
@ -269,7 +269,7 @@ proc runeReverseOffset*(s: string, rev:Positive): (int, int) =
|
||||||
## satisfy the request.
|
## satisfy the request.
|
||||||
##
|
##
|
||||||
## Beware: This can lead to unoptimized code and slow execution!
|
## Beware: This can lead to unoptimized code and slow execution!
|
||||||
## Most problems are solve more efficient by using an iterator
|
## Most problems can be solved more efficiently by using an iterator
|
||||||
## or conversion to a seq of Rune.
|
## or conversion to a seq of Rune.
|
||||||
var
|
var
|
||||||
a = rev.int
|
a = rev.int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue