std/private/strimpl

Source   Edit  

Procs

func cmpNimIdentifier[T: string | cstring](a, b: T): int
Source   Edit  
func find(s, sub: cstring; start: Natural = 0; last = 0): int {....raises: [],
    tags: [], forbids: [].}

Searches for sub in s inside the range start..last (both ends included). If last is unspecified, it defaults to s.high (the last element).

Searching is case-sensitive. If sub is not in s, -1 is returned. Otherwise the index returned is relative to s[0], not start. Use s[start..last].find for a start-origin index.

Source   Edit  
func find(s: cstring; sub: char; start: Natural = 0; last = 0): int {.
    ...raises: [], tags: [], forbids: [].}

Searches for sub in s inside the range start..last (both ends included). If last is unspecified, it defaults to s.high (the last element).

Searching is case-sensitive. If sub is not in s, -1 is returned. Otherwise the index returned is relative to s[0], not start. Use s[start..last].rfind for a start-origin index.

Source   Edit  
func toLowerAscii(c: char): char {.inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  

Templates

template cmpIgnoreCaseImpl[T: string | cstring](a, b: T;
    firstCharCaseSensitive: static bool = false)
Source   Edit  
template cmpIgnoreStyleImpl[T: string | cstring](a, b: T;
    firstCharCaseSensitive: static bool = false)
Source   Edit  
template endsWithImpl[T: string | cstring](s, suffix: T)
Source   Edit  
template startsWithImpl[T: string | cstring](s, prefix: T)
Source   Edit