Skip to content

Commit 3ab5c0b

Browse files
committed
Add std17::basic_string_view types to table [ci skip]
1 parent 7ee88a5 commit 3ab5c0b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,16 @@ The following table presents types, values and simplified, short prototypes of t
100100

101101
| Kind | Type or function | Notes |
102102
| ----------------- | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
103-
| **Type** | None |   |
103+
| **Type** | [string::]std17::basic_string_view | std::basic_string_view for C++17 and later, polyfill otherwise |
104+
|   | [string::]std17::string_view | character variations as requested, see section Configuration |
105+
|   | [string::]std17::wstring_view; |   |
106+
|   | [string::]std17::u8string_view; |   |
107+
|   | [string::]std17::u16string_view; |   |
108+
|   | [string::]std17::u32string_view; |   |
104109
|   |   |   |
105110
| **Value** | size_t **string::npos** | not-found position value, in nonstd::string namespace |
106111
|   |   |   |
107-
| **Utilities** | string **to_string**(string_view sv) | string from local or C++17 std string_view |
112+
| **Utility** | string **to_string**(string_view sv) | string from local or C++17 std string_view |
108113
|   |   |   |
109114
| **Comparison** | int **compare**(string_view lhs, string_view rhs) | negative, zero or positive for lsh is less than, equal to or greater than rhs |
110115
|   | bool **operator==**(string_view lhs, string_view rhs) | true if lhs string is equal to rhs string |
@@ -114,7 +119,7 @@ The following table presents types, values and simplified, short prototypes of t
114119
|   | bool **operator>=**(string_view lhs, string_view rhs) | true if lhs string is greater than or equal to rhs string |
115120
|   | bool **operator>**(string_view lhs, string_view rhs) | true if lhs string is greater than or equal to rhs string |
116121
|   |   |   |
117-
| **Observers** | size_t **length**(string_view sv) | length of string |
122+
| **Observer** | size_t **length**(string_view sv) | length of string |
118123
|   | size_t **size**(string_view sv) | length of string |
119124
|   | bool **is_empty**(string_view sv) | true if string is empty |
120125
|   |   |   |
@@ -141,7 +146,7 @@ The following table presents types, values and simplified, short prototypes of t
141146
|   | size_t **find_last_of**(string_view sv, string_view set) | position of last occurrence of character in set, or npos |
142147
|   | size_t **find_last_not_of**(string_view sv, string_view set) | position of last occurrence of character not in set, or npos |
143148
|   |   |   |
144-
| **Modifiers** | char_t **to_lowercase**(char_t chr) | character transformed to lowercase |
149+
| **Modifier** | char_t **to_lowercase**(char_t chr) | character transformed to lowercase |
145150
|   | char_t **to_uppercase**(char_t chr) | character transformed to uppercase |
146151
|   | string **to_lowercase**(string_view sv) | string transformed to lowercase |
147152
|   | string **to_uppercase**(string_view sv) | string transformed to uppercase |

0 commit comments

Comments
 (0)