Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gazizonoki committed Mar 11, 2024
1 parent bdd843a commit 513d3ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 0 additions & 9 deletions library/cpp/string_utils/helpers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
add_library(cpp-string_utils-helpers)

target_link_libraries(cpp-string_utils-helpers PUBLIC
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-string_utils-helpers PUBLIC

)
endif()

target_sources(cpp-string_utils-helpers PRIVATE
${CMAKE_SOURCE_DIR}/library/cpp/string_utils/helpers/helpers.cpp
)
4 changes: 3 additions & 1 deletion library/cpp/string_utils/helpers/helpers.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "helpers.h"

#include <algorithm>

namespace NUtils {
namespace {
void DoSplit(std::string_view src, std::string_view& l, std::string_view& r, size_t pos, size_t len) {
Expand Down Expand Up @@ -35,7 +37,7 @@ void RemoveAll(std::string& str, char ch) {
return;

auto begin = str.begin();
auto end = begin + str.length();
auto end = begin + str.size();
auto it = std::remove(begin + pos, end, ch);
str.erase(it, end);
}
Expand Down

0 comments on commit 513d3ec

Please sign in to comment.