This module contains types and procs specific to std::string (i.e. std::basic_string<char>), including constructors and overloads that take Nim string/cstring.
Types
CppString = CppBasicString[cchar]
CppStrIterator = CppBasicStringIterator[cchar]
Procs
proc compare(self: CppString; pos, l: csize_t; str: cstring): cint {. importcpp: "compare", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc compare(self: CppString; pos, l: csize_t; str: cstring; n: csize_t): cint {. importcpp: "compare", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc findFirstNotOf(self: CppString; s: cstring; pos, n: csize_t): csize_t {. importcpp: "find_first_not_of", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc findFirstNotOf(self: CppString; s: cstring; pos: csize_t = 0): csize_t {. importcpp: "find_first_not_of", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc findFirstOf(self: CppString; s: cstring; pos, n: csize_t): csize_t {. importcpp: "find_first_of", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc findFirstOf(self: CppString; s: cstring; pos: csize_t = 0): csize_t {. importcpp: "find_first_of", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc findLastNotOf(self: CppString; s: cstring; pos, n: csize_t): csize_t {. importcpp: "find_last_not_of", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc findLastNotOf(self: CppString; s: cstring; pos: csize_t = std_npos): csize_t {. importcpp: "find_last_not_of", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc findLastOf(self: CppString; s: cstring; pos, n: csize_t): csize_t {. importcpp: "find_last_of", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc findLastOf(self: CppString; s: cstring; pos: csize_t = std_npos): csize_t {. importcpp: "find_last_of", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc initCppString(): CppString {.constructor, importcpp: "std::string()", header: "<string>".}
proc initCppString(first, last: CppStrConstIterator): CppString {.constructor, importcpp: "std::string(@)", header: "<string>".}
proc initCppString(s: cstring): CppString {.constructor, importcpp: "std::string(@)", header: "<string>".}
proc initCppString(s: cstring; n: csize_t): CppString {.constructor, importcpp: "std::string(@)", header: "<string>".}
proc initCppString(s: string): CppString {.inline, ...raises: [Exception], tags: [RootEffect], forbids: [].}
proc initCppString(str: CppString): CppString {.constructor, importcpp: "std::string(@)", header: "<string>".}
proc initCppString(str: CppString; pos, len: csize_t): CppString {.constructor, importcpp: "std::string(@)", header: "<string>".}
proc initCppString(str: CppString; pos: csize_t): CppString {.constructor, importcpp: "std::string(@)", header: "<string>".}
proc replace(self: var CppString; i1, i2: CppStrConstIterator; s: cstring) {. importcpp: "replace", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc replace(self: var CppString; i1, i2: CppStrConstIterator; s: cstring; n: csize_t) {.importcpp: "replace", header: "<string>", ...raises: [], tags: [], forbids: [].}
proc toCppString(s: string): CppString {.inline, ...raises: [Exception], tags: [RootEffect], forbids: [].}
Converters
converter CppStrIteratorToStrConstIterator(s: CppStrIterator): CppStrConstIterator {. importcpp: "#", header: "<string>", ...raises: [], tags: [], forbids: [].}
Exports
-
findLastOf, findLastOf, >, first, findLastOf, <, <=, add, substr, items, >=, ==, erase, erase, compare, replace, maxSize, last, initCppBasicString, ==, [], findLastOf, assign, findLastNotOf, replace, mpairs, popBack, +=, front, -, <=, front, insert, compare, find, findLastOf, first, >=, resize, stdNpos, insert, find, findFirstOf, find, [], clear, back, copy, >, findFirstNotOf, initCppBasicString, compare, findLastNotOf, data, ==, rfind, replace, CppConstIterator, initCppBasicString, !=, erase, mitems, OutOfRangeException, +, insert, capacity, erase, !=, ==, replace, compare, back, cEnd, findFirstNotOf, shrinkToFit, !=, +, +, replace, replace, pushBack, last, crEnd, >, CppBasicStringIteratorToBasicStringConstIterator, CppIterator, swap, append, compare, CppBasicStringIterator, CppBasicStringConstIterator, initCppBasicString, [], rfind, reserve, <=, at, replace, findLastNotOf, assign, insert, inc, >=, rBegin, find, size, append, rEnd, CppBasicString, replace, initCppBasicString, begin, ==, findFirstNotOf, findFirstNotOf, rfind, <, append, +, crBegin, replace, +=, append, assign, findFirstNotOf, pairs, length, findFirstOf, empty, []=, findLastNotOf, findFirstOf, append, <, cBegin, compare, initCppBasicString, assign, assign, end, insert, findFirstOf, [], compare, rfind, len, find, +, replace, assign, at, insert, findLastNotOf, initCppBasicString, +, +=, inc, cStr, findFirstOf, rfind, insert, append, insert