Skip to content
Modern c++17 library to add string manipulations on Windows, macOS, Linux, iOS and android.
C++ CMake Other
Branch: master
Clone or download
Latest commit 08da63a Dec 31, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
examples ad format example Dec 31, 2019
scripts Update git_pull_submodules.sh Oct 25, 2019
src
tests Update string_date_time_format.cpp Nov 20, 2019
.appveyor.yml first commit Feb 10, 2019
.codecov.yml
.codedocs first commit Feb 10, 2019
.doxygen.txt Update .doxygen.txt Oct 27, 2019
.gitignore first commit Feb 10, 2019
.gitmodules review folders Oct 24, 2019
.travis.yml first commit Feb 10, 2019
CMakeLists.txt review folders Oct 24, 2019
LICENSE.md first commit Feb 10, 2019
README.md Update README.md Aug 1, 2019
install
install.cmd change version number and add install scripts Mar 20, 2019

README.md

strings

Build Status Build status codecov Documented Documentation Website license SourceForge Download strings GitHub top language Windows macOS Linux

Features

  • 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.

Examples

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

Download and install

Before running examples you must download and install strings. To download and install it read Downloads file.

You can’t perform that action at this time.