nimTitle strutils strutils.html module std/strutils 0 nim Whitespace strutils.html#Whitespace const Whitespace 92 nim Letters strutils.html#Letters const Letters 96 nim UppercaseLetters strutils.html#UppercaseLetters const UppercaseLetters 99 nim LowercaseLetters strutils.html#LowercaseLetters const LowercaseLetters 102 nim PunctuationChars strutils.html#PunctuationChars const PunctuationChars 105 nim Digits strutils.html#Digits const Digits 108 nim HexDigits strutils.html#HexDigits const HexDigits 111 nim IdentChars strutils.html#IdentChars const IdentChars 114 nim IdentStartChars strutils.html#IdentStartChars const IdentStartChars 117 nim Newlines strutils.html#Newlines const Newlines 120 nim PrintableChars strutils.html#PrintableChars const PrintableChars 124 nim AllChars strutils.html#AllChars const AllChars 127 nim isAlphaAscii strutils.html#isAlphaAscii,char proc isAlphaAscii(c: char): bool 139 nim isAlphaNumeric strutils.html#isAlphaNumeric,char proc isAlphaNumeric(c: char): bool 150 nim isDigit strutils.html#isDigit,char proc isDigit(c: char): bool 160 nim isSpaceAscii strutils.html#isSpaceAscii,char proc isSpaceAscii(c: char): bool 169 nim isLowerAscii strutils.html#isLowerAscii,char proc isLowerAscii(c: char): bool 177 nim isUpperAscii strutils.html#isUpperAscii,char proc isUpperAscii(c: char): bool 191 nim toLowerAscii strutils.html#toLowerAscii,char proc toLowerAscii(c: char): char 205 nim toLowerAscii strutils.html#toLowerAscii,string proc toLowerAscii(s: string): string 228 nim toUpperAscii strutils.html#toUpperAscii,char proc toUpperAscii(c: char): char 241 nim toUpperAscii strutils.html#toUpperAscii,string proc toUpperAscii(s: string): string 260 nim capitalizeAscii strutils.html#capitalizeAscii,string proc capitalizeAscii(s: string): string 273 nim nimIdentNormalize strutils.html#nimIdentNormalize,string proc nimIdentNormalize(s: string): string 287 nim normalize strutils.html#normalize,string proc normalize(s: string): string 313 nim cmpIgnoreCase strutils.html#cmpIgnoreCase,string,string proc cmpIgnoreCase(a, b: string): int 335 nim cmpIgnoreStyle strutils.html#cmpIgnoreStyle,string,string proc cmpIgnoreStyle(a, b: string): int 350 nim split strutils.html#split.i,string,char,int iterator split(s: string; sep: char; maxsplit: int = -1): string 422 nim split strutils.html#split.i,string,set[char],int iterator split(s: string; seps: set[char] = Whitespace; maxsplit: int = -1): string 452 nim split strutils.html#split.i,string,string,int iterator split(s: string; sep: string; maxsplit: int = -1): string 509 nim rsplit strutils.html#rsplit.i,string,char,int iterator rsplit(s: string; sep: char; maxsplit: int = -1): string 565 nim rsplit strutils.html#rsplit.i,string,set[char],int iterator rsplit(s: string; seps: set[char] = Whitespace; maxsplit: int = -1): string 592 nim rsplit strutils.html#rsplit.i,string,string,int,bool iterator rsplit(s: string; sep: string; maxsplit: int = -1; keepSeparators: bool = false): string 622 nim splitLines strutils.html#splitLines.i,string iterator splitLines(s: string; keepEol = false): string 654 nim splitWhitespace strutils.html#splitWhitespace.i,string,int iterator splitWhitespace(s: string; maxsplit: int = -1): string 705 nim split strutils.html#split,string,char,int proc split(s: string; sep: char; maxsplit: int = -1): seq[string] 747 nim split strutils.html#split,string,set[char],int proc split(s: string; seps: set[char] = Whitespace; maxsplit: int = -1): seq[string] 762 nim split strutils.html#split,string,string,int proc split(s: string; sep: string; maxsplit: int = -1): seq[string] 781 nim rsplit strutils.html#rsplit,string,char,int proc rsplit(s: string; sep: char; maxsplit: int = -1): seq[string] 806 nim rsplit strutils.html#rsplit,string,set[char],int proc rsplit(s: string; seps: set[char] = Whitespace; maxsplit: int = -1): seq[string] 835 nim rsplit strutils.html#rsplit,string,string,int proc rsplit(s: string; sep: string; maxsplit: int = -1): seq[string] 868 nim splitLines strutils.html#splitLines,string proc splitLines(s: string; keepEol = false): seq[string] 910 nim splitWhitespace strutils.html#splitWhitespace,string,int proc splitWhitespace(s: string; maxsplit: int = -1): seq[string] 921 nim toBin strutils.html#toBin,BiggestInt,Positive proc toBin(x: BiggestInt; len: Positive): string 931 nim toOct strutils.html#toOct,BiggestInt,Positive proc toOct(x: BiggestInt; len: Positive): string 953 nim toHex strutils.html#toHex,T,Positive proc toHex[T: SomeInteger](x: T; len: Positive): string 988 nim toHex strutils.html#toHex,T proc toHex[T: SomeInteger](x: T): string 1010 nim toHex strutils.html#toHex,string proc toHex(s: string): string 1023 nim toOctal strutils.html#toOctal,char proc toOctal(c: char): string 1048 nim fromBin strutils.html#fromBin,string proc fromBin[T: SomeInteger](s: string): T 1067 nim fromOct strutils.html#fromOct,string proc fromOct[T: SomeInteger](s: string): T 1090 nim fromHex strutils.html#fromHex,string proc fromHex[T: SomeInteger](s: string): T 1113 nim intToStr strutils.html#intToStr,int,Positive proc intToStr(x: int; minchars: Positive = 1): string 1136 nim parseInt strutils.html#parseInt,string proc parseInt(s: string): int 1151 nim parseBiggestInt strutils.html#parseBiggestInt,string proc parseBiggestInt(s: string): BiggestInt 1162 nim parseUInt strutils.html#parseUInt,string proc parseUInt(s: string): uint 1172 nim parseBiggestUInt strutils.html#parseBiggestUInt,string proc parseBiggestUInt(s: string): BiggestUInt 1181 nim parseFloat strutils.html#parseFloat,string proc parseFloat(s: string): float 1191 nim parseBinInt strutils.html#parseBinInt,string proc parseBinInt(s: string): int 1204 nim parseOctInt strutils.html#parseOctInt,string proc parseOctInt(s: string): int 1222 nim parseHexInt strutils.html#parseHexInt,string proc parseHexInt(s: string): int 1233 nim parseHexStr strutils.html#parseHexStr,string proc parseHexStr(s: string): string 1259 nim parseBool strutils.html#parseBool,string proc parseBool(s: string): bool 1290 nim parseEnum strutils.html#parseEnum,string proc parseEnum[T: enum](s: string): T 1306 nim parseEnum strutils.html#parseEnum,string,T proc parseEnum[T: enum](s: string; default: T): T 1326 nim repeat strutils.html#repeat,char,Natural proc repeat(c: char; count: Natural): string 1345 nim repeat strutils.html#repeat,string,Natural proc repeat(s: string; n: Natural): string 1354 nim spaces strutils.html#spaces,Natural proc spaces(n: Natural): string 1362 nim align strutils.html#align,string,Natural,char proc align(s: string; count: Natural; padding = ' '): string 1382 nim alignLeft strutils.html#alignLeft,string,Natural,char proc alignLeft(s: string; count: Natural; padding = ' '): string 1409 nim center strutils.html#center,string,int,char proc center(s: string; width: int; fillChar: char = ' '): string 1436 nim indent strutils.html#indent,string,Natural,string proc indent(s: string; count: Natural; padding: string = " "): string 1471 nim unindent strutils.html#unindent,string,Natural,string proc unindent(s: string; count: Natural = int.high; padding: string = " "): string 1496 nim indentation strutils.html#indentation,string proc indentation(s: string): Natural 1529 nim dedent strutils.html#dedent,string,Natural proc dedent(s: string; count: Natural = indentation(s)): string 1542 nim delete strutils.html#delete,string,Slice[int] proc delete(s: var string; slice: Slice[int]) 1567 nim delete strutils.html#delete,string,int,int proc delete(s: var string; first, last: int) 1597 nim startsWith strutils.html#startsWith,string,char proc startsWith(s: string; prefix: char): bool 1621 nim startsWith strutils.html#startsWith,string,string proc startsWith(s, prefix: string): bool 1634 nim endsWith strutils.html#endsWith,string,char proc endsWith(s: string; suffix: char): bool 1650 nim endsWith strutils.html#endsWith,string,string proc endsWith(s, suffix: string): bool 1663 nim continuesWith strutils.html#continuesWith,string,string,Natural proc continuesWith(s, substr: string; start: Natural): bool 1679 nim removePrefix strutils.html#removePrefix,string,set[char] proc removePrefix(s: var string; chars: set[char] = Newlines) 1701 nim removePrefix strutils.html#removePrefix,string,char proc removePrefix(s: var string; c: char) 1723 nim removePrefix strutils.html#removePrefix,string,string proc removePrefix(s: var string; prefix: string) 1737 nim removeSuffix strutils.html#removeSuffix,string,set[char] proc removeSuffix(s: var string; chars: set[char] = Newlines) 1751 nim removeSuffix strutils.html#removeSuffix,string,char proc removeSuffix(s: var string; c: char) 1774 nim removeSuffix strutils.html#removeSuffix,string,string proc removeSuffix(s: var string; suffix: string) 1793 nim addSep strutils.html#addSep,string,string,Natural proc addSep(dest: var string; sep = ", "; startLen: Natural = 0) 1810 nim allCharsInSet strutils.html#allCharsInSet,string,set[char] proc allCharsInSet(s: string; theSet: set[char]): bool 1833 nim abbrev strutils.html#abbrev,string,openArray[string] proc abbrev(s: string; possibilities: openArray[string]): int 1843 nim join strutils.html#join,openArray[string],string proc join(a: openArray[string]; sep: string = ""): string 1865 nim join strutils.html#join,openArray[T],string proc join[T: not string](a: openArray[T]; sep: string = ""): string 1882 nim SkipTable strutils.html#SkipTable type SkipTable 1895 nim initSkipTable strutils.html#initSkipTable,SkipTable,string proc initSkipTable(a: var SkipTable; sub: string) 1897 nim initSkipTable strutils.html#initSkipTable,string proc initSkipTable(sub: string): SkipTable 1911 nim find strutils.html#find,SkipTable,string,string,Natural,int proc find(a: SkipTable; s, sub: string; start: Natural = 0; last = -1): int 1920 nim find strutils.html#find,string,char,Natural,int proc find(s: string; sub: char; start: Natural = 0; last = -1): int 1960 nim find strutils.html#find,string,set[char],Natural,int proc find(s: string; chars: set[char]; start: Natural = 0; last = -1): int 1992 nim find strutils.html#find,string,string,Natural,int proc find(s, sub: string; start: Natural = 0; last = -1): int 2018 nim rfind strutils.html#rfind,string,char,Natural,int proc rfind(s: string; sub: char; start: Natural = 0; last = -1): int 2052 nim rfind strutils.html#rfind,string,set[char],Natural,int proc rfind(s: string; chars: set[char]; start: Natural = 0; last = -1): int 2070 nim rfind strutils.html#rfind,string,string,Natural,int proc rfind(s, sub: string; start: Natural = 0; last = -1): int 2088 nim count strutils.html#count,string,char proc count(s: string; sub: char): int 2118 nim count strutils.html#count,string,set[char] proc count(s: string; subs: set[char]): int 2127 nim count strutils.html#count,string,string,bool proc count(s: string; sub: string; overlapping: bool = false): int 2138 nim countLines strutils.html#countLines,string proc countLines(s: string): int 2156 nim contains strutils.html#contains,string,string proc contains(s, sub: string): bool 2183 nim contains strutils.html#contains,string,set[char] proc contains(s: string; chars: set[char]): bool 2190 nim replace strutils.html#replace,string,string,string proc replace(s, sub: string; by = ""): string 2197 nim replace strutils.html#replace,string,char,char proc replace(s: string; sub, by: char): string 2239 nim replaceWord strutils.html#replaceWord,string,string,string proc replaceWord(s, sub: string; by = ""): string 2259 nim multiReplace strutils.html#multiReplace,string,varargs[] proc multiReplace(s: string; replacements: varargs[(string, string)]): string 2289 nim multiReplace strutils.html#multiReplace,openArray[char],varargs[] proc multiReplace(s: openArray[char]; replacements: varargs[(set[char], char)]): string 2336 nim insertSep strutils.html#insertSep,string,char,int proc insertSep(s: string; sep = '_'; digits = 3): string 2369 nim escape strutils.html#escape,string,string,string proc escape(s: string; prefix = "\""; suffix = "\""): string 2403 nim unescape strutils.html#unescape,string,string,string proc unescape(s: string; prefix = "\""; suffix = "\""): string 2435 nim validIdentifier strutils.html#validIdentifier,string proc validIdentifier(s: string): bool 2478 nim ffDefault strutils.html#ffDefault FloatFormatMode.ffDefault 2498 nim ffDecimal strutils.html#ffDecimal FloatFormatMode.ffDecimal 2498 nim ffScientific strutils.html#ffScientific FloatFormatMode.ffScientific 2498 nim FloatFormatMode strutils.html#FloatFormatMode enum FloatFormatMode 2498 nim formatBiggestFloat strutils.html#formatBiggestFloat,BiggestFloat,FloatFormatMode,range[],char proc formatBiggestFloat(f: BiggestFloat; format: FloatFormatMode = ffDefault;\n precision: range[-1 .. 32] = 16; decimalSep = '.'): string 2504 nim formatFloat strutils.html#formatFloat,float,FloatFormatMode,range[],char proc formatFloat(f: float; format: FloatFormatMode = ffDefault;\n precision: range[-1 .. 32] = 16; decimalSep = '.'): string 2580 nim trimZeros strutils.html#trimZeros,string,char proc trimZeros(x: var string; decimalSep = '.') 2601 nim bpIEC strutils.html#bpIEC BinaryPrefixMode.bpIEC 2622 nim bpColloquial strutils.html#bpColloquial BinaryPrefixMode.bpColloquial 2622 nim BinaryPrefixMode strutils.html#BinaryPrefixMode enum BinaryPrefixMode 2622 nim formatSize strutils.html#formatSize,int64,char proc formatSize(bytes: int64; decimalSep = '.'; prefix = bpIEC; includeSpace = false): string 2626 nim formatEng strutils.html#formatEng,BiggestFloat,range[],bool,bool,string,char proc formatEng(f: BiggestFloat; precision: range[0 .. 32] = 10; trim: bool = true;\n siPrefix: bool = false; unit: string = ""; decimalSep = '.';\n useUnitSpace = false): string 2680 nim addf strutils.html#addf,string,string,varargs[string,] proc addf(s: var string; formatstr: string; a: varargs[string, `$`]) 2831 nim `%` strutils.html#%,string,openArray[string] proc `%`(formatstr: string; a: openArray[string]): string 2894 nim `%` strutils.html#%,string,string proc `%`(formatstr, a: string): string 2947 nim format strutils.html#format,string,varargs[string,] proc format(formatstr: string; a: varargs[string, `$`]): string 2954 nim strip strutils.html#strip,string,set[char] proc strip(s: string; leading = true; trailing = true; chars: set[char] = Whitespace): string 2966 nim stripLineEnd strutils.html#stripLineEnd,string proc stripLineEnd(s: var string) 3002 nim tokenize strutils.html#tokenize.i,string,set[char] iterator tokenize(s: string; seps: set[char] = Whitespace): tuple[token: string,\n isSep: bool] 3028 nim isEmptyOrWhitespace strutils.html#isEmptyOrWhitespace,string proc isEmptyOrWhitespace(s: string): bool 3064 idx chomp strutils.html#chomp_1 Module strutils 0 idx substitution strutils.html#substitution_1 Module strutils 0 idx string interpolation strutils.html#string-interpolation_1 Module strutils 0 nimgrp replace strutils.html#replace-procs-all proc 2197 nimgrp multireplace strutils.html#multiReplace-procs-all proc 2289 nimgrp tohex strutils.html#toHex-procs-all proc 988 nimgrp removesuffix strutils.html#removeSuffix-procs-all proc 1751 nimgrp toupperascii strutils.html#toUpperAscii-procs-all proc 241 nimgrp endswith strutils.html#endsWith-procs-all proc 1650 nimgrp removeprefix strutils.html#removePrefix-procs-all proc 1701 nimgrp count strutils.html#count-procs-all proc 2118 nimgrp find strutils.html#find-procs-all proc 1920 nimgrp rsplit strutils.html#rsplit-procs-all proc 806 nimgrp join strutils.html#join-procs-all proc 1865 nimgrp rfind strutils.html#rfind-procs-all proc 2052 nimgrp startswith strutils.html#startsWith-procs-all proc 1621 nimgrp delete strutils.html#delete-procs-all proc 1567 nimgrp tolowerascii strutils.html#toLowerAscii-procs-all proc 205 nimgrp contains strutils.html#contains-procs-all proc 2183 nimgrp % strutils.html#%-procs-all proc 2894 nimgrp split strutils.html#split-procs-all proc 747 nimgrp repeat strutils.html#repeat-procs-all proc 1345 nimgrp parseenum strutils.html#parseEnum-procs-all proc 1306 nimgrp initskiptable strutils.html#initSkipTable-procs-all proc 1897 nimgrp split strutils.html#split-iterators-all iterator 422 nimgrp rsplit strutils.html#rsplit-iterators-all iterator 565