@@ -188,7 +188,7 @@ class BasicClassifier
188
188
// ==================================================================================================
189
189
template <typename CharType>
190
190
template <StringLike T>
191
- constexpr inline auto BasicClassifier<CharType>::size(T &&value) -> size_type
191
+ constexpr auto BasicClassifier<CharType>::size(T &&value) -> size_type
192
192
{
193
193
using U = std::remove_cvref_t <T>;
194
194
@@ -205,36 +205,36 @@ constexpr inline auto BasicClassifier<CharType>::size(T &&value) -> size_type
205
205
// ==================================================================================================
206
206
template <typename CharType>
207
207
template <std::size_t N>
208
- constexpr inline auto BasicClassifier<CharType>::size(const CharType (&value)[N]) -> size_type
208
+ constexpr auto BasicClassifier<CharType>::size(const CharType (&value)[N]) -> size_type
209
209
{
210
210
static_assert (N > 0 , " Character arrays must have non-zero size" );
211
211
return N - ((value[N - 1 ] == s_null_terminator) ? 1 : 0 );
212
212
}
213
213
214
214
// ==================================================================================================
215
215
template <typename CharType>
216
- constexpr inline bool BasicClassifier<CharType>::is_alpha(CharType ch)
216
+ constexpr bool BasicClassifier<CharType>::is_alpha(CharType ch)
217
217
{
218
218
return is_upper (unify_az_characters (ch));
219
219
}
220
220
221
221
// ==================================================================================================
222
222
template <typename CharType>
223
- constexpr inline bool BasicClassifier<CharType>::is_upper(CharType ch)
223
+ constexpr bool BasicClassifier<CharType>::is_upper(CharType ch)
224
224
{
225
225
return (ch >= s_upper_a) && (ch <= s_upper_z);
226
226
}
227
227
228
228
// ==================================================================================================
229
229
template <typename CharType>
230
- constexpr inline bool BasicClassifier<CharType>::is_lower(CharType ch)
230
+ constexpr bool BasicClassifier<CharType>::is_lower(CharType ch)
231
231
{
232
232
return (ch >= s_lower_a) && (ch <= s_lower_z);
233
233
}
234
234
235
235
// ==================================================================================================
236
236
template <typename CharType>
237
- constexpr inline CharType BasicClassifier<CharType>::to_upper(CharType ch)
237
+ constexpr CharType BasicClassifier<CharType>::to_upper(CharType ch)
238
238
{
239
239
if (is_lower (ch))
240
240
{
@@ -246,7 +246,7 @@ constexpr inline CharType BasicClassifier<CharType>::to_upper(CharType ch)
246
246
247
247
// ==================================================================================================
248
248
template <typename CharType>
249
- constexpr inline CharType BasicClassifier<CharType>::to_lower(CharType ch)
249
+ constexpr CharType BasicClassifier<CharType>::to_lower(CharType ch)
250
250
{
251
251
if (is_upper (ch))
252
252
{
@@ -258,30 +258,30 @@ constexpr inline CharType BasicClassifier<CharType>::to_lower(CharType ch)
258
258
259
259
// ==================================================================================================
260
260
template <typename CharType>
261
- constexpr inline bool BasicClassifier<CharType>::is_digit(CharType ch)
261
+ constexpr bool BasicClassifier<CharType>::is_digit(CharType ch)
262
262
{
263
263
return (ch ^ s_zero) < 10 ;
264
264
}
265
265
266
266
// ==================================================================================================
267
267
template <typename CharType>
268
- constexpr inline bool BasicClassifier<CharType>::is_x_digit(CharType ch)
268
+ constexpr bool BasicClassifier<CharType>::is_x_digit(CharType ch)
269
269
{
270
270
const auto alpha = unify_az_characters (ch);
271
271
return is_digit (ch) || ((alpha >= s_upper_a) && (alpha <= s_upper_f));
272
272
}
273
273
274
274
// ==================================================================================================
275
275
template <typename CharType>
276
- constexpr inline bool BasicClassifier<CharType>::is_space(CharType ch)
276
+ constexpr bool BasicClassifier<CharType>::is_space(CharType ch)
277
277
{
278
278
return (ch == s_space) || (ch == s_form_feed) || (ch == s_line_feed) ||
279
279
(ch == s_carriage_return) || (ch == s_horizontal_tab) || (ch == s_vertical_tab);
280
280
}
281
281
282
282
// ==================================================================================================
283
283
template <typename CharType>
284
- constexpr inline CharType BasicClassifier<CharType>::unify_az_characters(CharType ch)
284
+ constexpr CharType BasicClassifier<CharType>::unify_az_characters(CharType ch)
285
285
{
286
286
return static_cast <CharType>(static_cast <int_type>(ch) & s_case_mask);
287
287
}
0 commit comments