- New istring, iu16string, iu32string, iwstring immutable string types and immutable_string_base immutable string class.
- Immutable string litteral operators _is.
- String format helper.
- String concat helper.
- String padding helper.
- Join strings helper.
- Split strings helper.
- and more...
For more information see Documentation.
The classic first application 'Hello World'.
src/string_hello_world.cpp:
#include <xtd/xtd.strings>
#include <iostream>
using namespace std;
using namespace string_literals;
using namespace xtd;
// The main entry point for the application.
int main() {
cout << format("{}, {}!", "Hello", "World"s) << endl;
}
CMakeLists.txt:
cmake_minimum_required(VERSION 3.3)
project(string_hello_world)
find_package(xtd.strings REQUIRED)
add_executable(${PROJECT_NAME} src/string_hello_world.cpp)
target_link_libraries(${PROJECT_NAME} xtd.strings)
For more examples see examples
Before running examples you must download and install strings. To download and install it read Downloads file.