Skip to content

Commit 51c52af

Browse files
committed
fix: don't use alternative operators
1 parent f98ebbd commit 51c52af

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

β€Žinclude/small/detail/container/lookup_table_view.hppβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ namespace small {
440440
[[nodiscard]] constexpr bool
441441
is_at_step_size() const {
442442
return multibyte_index_ % step_size == step_size - 1
443-
&& not is_end();
443+
&& !is_end();
444444
}
445445

446446
/// \brief Check if this is the end iterator
@@ -1646,7 +1646,7 @@ namespace small {
16461646
it = first;
16471647
step = search_range / 2;
16481648
std::advance(it, step);
1649-
if (not it.contains_codepoint_information()) {
1649+
if (!it.contains_codepoint_information()) {
16501650
// We can go a few indexes ahead or behind to fix this
16511651
const size_type indexes_behind = (step_size - 1)
16521652
- (it.multibyte_index()

β€Žinclude/small/detail/iterator/codepoint_iterator.hppβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ namespace small {
9191
/// value This should work in O(1) time because we have a hint
9292
/// to the byte index
9393
operator typename String::wide_value_type() const noexcept {
94-
if constexpr (not is_utf32_v<value_type>) {
94+
if constexpr (!is_utf32_v<value_type>) {
9595
// Get reference to element and convert from utf8 to
9696
// wide type
9797
wide_value_type v;
@@ -126,7 +126,7 @@ namespace small {
126126
operator<<(
127127
std::ostream &os,
128128
const codepoint_reference_impl &impl) {
129-
if constexpr (not is_utf32_v<value_type>) {
129+
if constexpr (!is_utf32_v<value_type>) {
130130
if (impl.size() == 1) {
131131
os << static_cast<char>(
132132
impl.container_->operator[](impl.byte_index_));

β€Žtest/unit/small_string_make.cppβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ TEST_CASE("String Rule of 5") {
465465
REQUIRE(dv[0] == '\0');
466466
}
467467

468-
if constexpr (not is_windows()) {
468+
if constexpr (!is_windows()) {
469469
SECTION("Move and set alloc") {
470470
std::allocator<int> alloc;
471471
// There's no safe way to do that on MSVC :O
@@ -496,7 +496,7 @@ TEST_CASE("String Rule of 5") {
496496
}
497497

498498
SECTION("Assignment Operator") {
499-
if constexpr (not is_windows()) {
499+
if constexpr (!is_windows()) {
500500
SECTION("String") {
501501
string dv = u8"1πŸ˜€2πŸ˜€3πŸ˜€";
502502
string d;

β€Žtest/unit/small_string_modify_algorithms.cppβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ TEST_CASE("String Modifying Algorithms") {
304304
}
305305
}
306306

307-
if constexpr (not is_windows()) {
307+
if constexpr (!is_windows()) {
308308
SECTION("UTF32 rhs") {
309309
string a = u8"πŸ˜πŸ™‚πŸ˜€πŸ™‚πŸ˜€πŸ˜";
310310
SECTION("Starts not-empty") {

0 commit comments

Comments
Β (0)