Skip to content
This repository was archived by the owner on Jun 15, 2025. It is now read-only.

Commit 967b88d

Browse files
committed
clang-format version mismatch
1 parent c4aa01e commit 967b88d

File tree

1 file changed

+33
-22
lines changed

1 file changed

+33
-22
lines changed

include/spsl/stringbase.hpp

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ class StringBase : public StringCore<StorageType>
107107
explicit StringBase(const storage_type& storage) : base_type(storage) {}
108108

109109
/// construct from another string-like container (may even be a vector...)
110-
template <typename StringClass, typename std::enable_if<is_compatible_string<
111-
char_type, size_type, StringClass>::value>::type* = nullptr>
110+
template <typename StringClass,
111+
typename std::enable_if<
112+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
112113
explicit StringBase(const StringClass& s) : base_type(s)
113114
{
114115
}
@@ -141,8 +142,9 @@ class StringBase : public StringCore<StorageType>
141142
}
142143

143144
/// allow assignment from another string-like container (may even be a vector...)
144-
template <typename StringClass, typename std::enable_if<is_compatible_string<
145-
char_type, size_type, StringClass>::value>::type* = nullptr>
145+
template <typename StringClass,
146+
typename std::enable_if<
147+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
146148
this_type& operator=(const StringClass& s)
147149
{
148150
assign(s.data(), s.size());
@@ -195,15 +197,17 @@ class StringBase : public StringCore<StorageType>
195197
return *this;
196198
}
197199
// another string-like class
198-
template <typename StringClass, typename std::enable_if<is_compatible_string<
199-
char_type, size_type, StringClass>::value>::type* = nullptr>
200+
template <typename StringClass,
201+
typename std::enable_if<
202+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
200203
this_type& insert(size_type index, const StringClass& s)
201204
{
202205
return insert(index, s.data(), s.size());
203206
}
204207
// another string-like class with index and count
205-
template <typename StringClass, typename std::enable_if<is_compatible_string<
206-
char_type, size_type, StringClass>::value>::type* = nullptr>
208+
template <typename StringClass,
209+
typename std::enable_if<
210+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
207211
this_type& insert(size_type index, const StringClass& s, size_type index_str,
208212
size_type count = npos)
209213
{
@@ -329,23 +333,26 @@ class StringBase : public StringCore<StorageType>
329333
ilist.begin(), ilist.size());
330334
}
331335

332-
template <typename StringClass, typename std::enable_if<is_compatible_string<
333-
char_type, size_type, StringClass>::value>::type* = nullptr>
336+
template <typename StringClass,
337+
typename std::enable_if<
338+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
334339
this_type& replace(size_type pos, size_type count, const StringClass& s)
335340
{
336341
return replace(pos, count, s.data(), s.size());
337342
}
338343

339-
template <typename StringClass, typename std::enable_if<is_compatible_string<
340-
char_type, size_type, StringClass>::value>::type* = nullptr>
344+
template <typename StringClass,
345+
typename std::enable_if<
346+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
341347
this_type& replace(const_iterator first, const_iterator last, const StringClass& s)
342348
{
343349
return replace(static_cast<size_type>(first - data()), static_cast<size_type>(last - first),
344350
s.data(), s.size());
345351
}
346352

347-
template <typename StringClass, typename std::enable_if<is_compatible_string<
348-
char_type, size_type, StringClass>::value>::type* = nullptr>
353+
template <typename StringClass,
354+
typename std::enable_if<
355+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
349356
this_type& replace(size_type pos, size_type count, const StringClass& s, size_type pos2,
350357
size_type count2 = npos)
351358
{
@@ -382,8 +389,9 @@ class StringBase : public StringCore<StorageType>
382389
{
383390
return find_first_of(s, pos, traits_type::length(s));
384391
}
385-
template <typename StringClass, typename std::enable_if<is_compatible_string<
386-
char_type, size_type, StringClass>::value>::type* = nullptr>
392+
template <typename StringClass,
393+
typename std::enable_if<
394+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
387395
size_type find_first_of(const StringClass& s, size_type pos = 0) const noexcept
388396
{
389397
return find_first_of(s.data(), pos, s.size());
@@ -420,8 +428,9 @@ class StringBase : public StringCore<StorageType>
420428
{
421429
return find_first_not_of(s, pos, traits_type::length(s));
422430
}
423-
template <typename StringClass, typename std::enable_if<is_compatible_string<
424-
char_type, size_type, StringClass>::value>::type* = nullptr>
431+
template <typename StringClass,
432+
typename std::enable_if<
433+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
425434
size_type find_first_not_of(const StringClass& s, size_type pos = 0) const noexcept
426435
{
427436
return find_first_not_of(s.data(), pos, s.size());
@@ -457,8 +466,9 @@ class StringBase : public StringCore<StorageType>
457466
{
458467
return find_last_of(s, pos, traits_type::length(s));
459468
}
460-
template <typename StringClass, typename std::enable_if<is_compatible_string<
461-
char_type, size_type, StringClass>::value>::type* = nullptr>
469+
template <typename StringClass,
470+
typename std::enable_if<
471+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
462472
size_type find_last_of(const StringClass& s, size_type pos = npos) const noexcept
463473
{
464474
return find_last_of(s.data(), pos, s.size());
@@ -509,8 +519,9 @@ class StringBase : public StringCore<StorageType>
509519
{
510520
return find_last_not_of(s, pos, traits_type::length(s));
511521
}
512-
template <typename StringClass, typename std::enable_if<is_compatible_string<
513-
char_type, size_type, StringClass>::value>::type* = nullptr>
522+
template <typename StringClass,
523+
typename std::enable_if<
524+
is_compatible_string<char_type, size_type, StringClass>::value>::type* = nullptr>
514525
size_type find_last_not_of(const StringClass& s, size_type pos = npos) const noexcept
515526
{
516527
return find_last_not_of(s.data(), pos, s.size());

0 commit comments

Comments
 (0)