unicode.nim: fixed spacing to something sane
This commit is contained in:
parent
97d77bf37e
commit
5a9edb222b
1 changed files with 1 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ proc runeStrAtPos*(s: string, pos: Natural): string =
|
||||||
## * `runeAtPos proc <#runeAtPos,string,int>`_
|
## * `runeAtPos proc <#runeAtPos,string,int>`_
|
||||||
## * `fastRuneAt template <#fastRuneAt.t,string,int,untyped>`_
|
## * `fastRuneAt template <#fastRuneAt.t,string,int,untyped>`_
|
||||||
let o = runeOffset(s, pos)
|
let o = runeOffset(s, pos)
|
||||||
s[o.. (o+runeLenAt(s, o)-1)]
|
s[o .. (o+runeLenAt(s, o)-1)]
|
||||||
|
|
||||||
proc runeSubStr*(s: string, pos: int, len: int = int.high): string =
|
proc runeSubStr*(s: string, pos: int, len: int = int.high): string =
|
||||||
## Returns the UTF-8 substring starting at code point ``pos``
|
## Returns the UTF-8 substring starting at code point ``pos``
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue