Implementation Split
This commit is contained in:
@@ -4,7 +4,11 @@ project(Exec)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
include_directories(../Src)
|
||||
link_directories(../Src/cmake-build-debug)
|
||||
|
||||
add_executable(Exec main.cpp)
|
||||
target_link_libraries(Exec StringTools)
|
||||
FILE(GLOB StringTools ../Src/*.cpp)
|
||||
|
||||
add_executable(Exec
|
||||
${StringTools}
|
||||
|
||||
main.cpp
|
||||
)
|
||||
|
@@ -3,7 +3,11 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << StringTools::Replace("Hello, ${where}!\n", "${where}", "World") << std::endl;
|
||||
std::vector<std::string> foo =
|
||||
StringTools::Split("Hello, lol, test", ", ");
|
||||
|
||||
for (const auto& it : foo)
|
||||
std::cout << "'" << it << "'" << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user