@@ -54,7 +54,7 @@ class string_view {
54
54
*
55
55
* @return The number of characters in this string
56
56
*/
57
- __device__ [[nodiscard]] inline size_type length () const ;
57
+ [[nodiscard]] __device__ inline size_type length () const ;
58
58
/* *
59
59
* @brief Return a pointer to the internal device array
60
60
*
@@ -119,13 +119,13 @@ class string_view {
119
119
*
120
120
* @return new iterator pointing to the beginning of this string
121
121
*/
122
- __device__ [[nodiscard]] inline const_iterator begin () const ;
122
+ [[nodiscard]] __device__ inline const_iterator begin () const ;
123
123
/* *
124
124
* @brief Return new iterator pointing past the end of this string
125
125
*
126
126
* @return new iterator pointing past the end of this string
127
127
*/
128
- __device__ [[nodiscard]] inline const_iterator end () const ;
128
+ [[nodiscard]] __device__ inline const_iterator end () const ;
129
129
130
130
/* *
131
131
* @brief Return single UTF-8 character at the given character position
@@ -140,7 +140,7 @@ class string_view {
140
140
* @param pos Character position
141
141
* @return Byte offset from data() for a given character position
142
142
*/
143
- __device__ [[nodiscard]] inline size_type byte_offset (size_type pos) const ;
143
+ [[nodiscard]] __device__ inline size_type byte_offset (size_type pos) const ;
144
144
145
145
/* *
146
146
* @brief Comparing target string with this string. Each character is compared
@@ -155,7 +155,7 @@ class string_view {
155
155
* not match is greater in the arg string, or all compared characters
156
156
* match but the arg string is longer.
157
157
*/
158
- __device__ [[nodiscard]] inline int compare (string_view const & str) const ;
158
+ [[nodiscard]] __device__ inline int compare (string_view const & str) const ;
159
159
/* *
160
160
* @brief Comparing target string with this string. Each character is compared
161
161
* as a UTF-8 code-point value.
@@ -225,7 +225,7 @@ class string_view {
225
225
* Specify -1 to indicate to the end of the string.
226
226
* @return npos if str is not found in this string.
227
227
*/
228
- __device__ [[nodiscard]] inline size_type find (string_view const & str,
228
+ [[nodiscard]] __device__ inline size_type find (string_view const & str,
229
229
size_type pos = 0 ,
230
230
size_type count = -1 ) const ;
231
231
/* *
@@ -253,7 +253,7 @@ class string_view {
253
253
* Specify -1 to indicate to the end of the string.
254
254
* @return npos if arg string is not found in this string.
255
255
*/
256
- __device__ [[nodiscard]] inline size_type find (char_utf8 character,
256
+ [[nodiscard]] __device__ inline size_type find (char_utf8 character,
257
257
size_type pos = 0 ,
258
258
size_type count = -1 ) const ;
259
259
/* *
@@ -266,7 +266,7 @@ class string_view {
266
266
* Specify -1 to indicate to the end of the string.
267
267
* @return npos if arg string is not found in this string.
268
268
*/
269
- __device__ [[nodiscard]] inline size_type rfind (string_view const & str,
269
+ [[nodiscard]] __device__ inline size_type rfind (string_view const & str,
270
270
size_type pos = 0 ,
271
271
size_type count = -1 ) const ;
272
272
/* *
@@ -294,7 +294,7 @@ class string_view {
294
294
* Specify -1 to indicate to the end of the string.
295
295
* @return npos if arg string is not found in this string.
296
296
*/
297
- __device__ [[nodiscard]] inline size_type rfind (char_utf8 character,
297
+ [[nodiscard]] __device__ inline size_type rfind (char_utf8 character,
298
298
size_type pos = 0 ,
299
299
size_type count = -1 ) const ;
300
300
@@ -306,7 +306,7 @@ class string_view {
306
306
* @param length Number of characters from start to include in the sub-string.
307
307
* @return New instance pointing to a subset of the characters within this instance.
308
308
*/
309
- __device__ [[nodiscard]] inline string_view substr (size_type start, size_type length) const ;
309
+ [[nodiscard]] __device__ inline string_view substr (size_type start, size_type length) const ;
310
310
311
311
/* *
312
312
* @brief Return minimum value associated with the string type
@@ -386,7 +386,7 @@ class string_view {
386
386
* @param bytepos Byte position from start of _data.
387
387
* @return The character position for the specified byte.
388
388
*/
389
- __device__ [[nodiscard]] inline size_type character_offset (size_type bytepos) const ;
389
+ [[nodiscard]] __device__ inline size_type character_offset (size_type bytepos) const ;
390
390
391
391
/* *
392
392
* @brief Common internal implementation for string_view::find and string_view::rfind.
0 commit comments