You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,8 +131,9 @@ The following table presents types, values and simplified, short prototypes of t
131
131
| | string **to_uppercase**(string_view sv) | string transformed to uppercase |
132
132
| | string **capitalize**(string_view sv) | string transformed to start with capital |
133
133
| | string **substring**(string_view sv, size_t pos \[, size_t count\]); | substring starting at given position of given length, default up to end |
134
-
| | string **insert**(string_view sv, size_t pos string_view what) | string with substring 'what' inserted at given position |
135
-
| | string **replace**(string_view sv, size_t pos, size_t length, string_view with) | string with substring pos to pos+length replaced with 'whith' |
134
+
| | string **erase**(string_view sv, size_t pos \[, size_t count\]) | string with substring at given position of given length removed, default up to end |
135
+
| | string **insert**(string_view sv, size_t pos, string_view what) | string with substring 'what' inserted at given position |
136
+
| | string **replace**(string_view sv, size_t pos, size_t length, string_view with) | string with substring pos to pos+length replaced with 'with' |
136
137
| | string **replace_all**(string_view sv, string_view what, string_view with) | string with all occurrences of 'what' replaced with 'with' |
137
138
| | string **replace_first**(string_view sv, string_view what, string_view with) | string with first occurrence of 'what' replaced with 'with' |
138
139
| | string **replace_last**(string_view sv, string_view what, string_view with) | string with last occurrence of 'what' replaced with 'with' |
@@ -212,7 +213,6 @@ In the test runner, the version of *string-bare* is available via tag `[.version
212
213
<p>
213
214
214
215
```
215
-
string: Setting Windows console to print utf8 characters[unicode][windows]
216
216
length: length of given string
217
217
size: length of given string
218
218
is_empty: true if string is empty
@@ -231,15 +231,16 @@ to_lowercase: string transformed to lowercase
231
231
to_uppercase: char transformed to uppercase
232
232
to_uppercase: string transformed to uppercase
233
233
append: string with second string concatenated to first string
234
-
substring: substring given position and length
235
-
strip_left: string with characters in set removed from left of string [" \t\n"]
236
-
strip_right: string with characters in set removed from right of string [" \t\n"]
237
-
strip: string with characters in set removed from left and right of string [" \t\n"]
234
+
substring: substring starting at given position of given length, default up to end
235
+
erase: string with substring at given position of given length removed - default up to end
238
236
insert: string with substring inserted at given position
239
237
replace: string with substring given by position and length replaced
240
238
replace_all: string with all occurrences of substring replaced
241
239
replace_first: string with first occurrence of substring replaced
242
240
replace_last: string with last occurrence of substring replaced
241
+
strip_left: string with characters in set removed from left of string [" \t\n"]
242
+
strip_right: string with characters in set removed from right of string [" \t\n"]
243
+
strip: string with characters in set removed from left and right of string [" \t\n"]
243
244
join: string with strings from collection joined separated by given separator
244
245
split: split string into vector of string_view given delimiter - literal_delimiter
245
246
split_left: split string into two-element tuple given delimiter - forward - literal_delimiter
0 commit comments