Không có mô tả

Sam Jaffe fa2351eb2b Modify cast utils to support ADL 2 năm trước cách đây
include fa2351eb2b Modify cast utils to support ADL 2 năm trước cách đây
src 65f2c5b2c9 Reimplement reverse 2 năm trước cách đây
string-utils.xcodeproj 6c5dfe4bee Make tokenizer support string_view. 2 năm trước cách đây
string_utils-test cb0a1b37ac Create the tokenize function in its entirety. 5 năm trước cách đây
test 65f2c5b2c9 Reimplement reverse 2 năm trước cách đây
.clang-format ca3151390a Add support for variant cast, add clang-format 4 năm trước cách đây
README.md 6c5dfe4bee Make tokenizer support string_view. 2 năm trước cách đây

README.md

String Utilities in C++

A couple of utilities for improving string usability

Join

Concatenate the elements of a container with a joining token. Uses ostreams.

Tokenizer/Split

Split a string into a vector of strings. There are two different versions of the tokenizer: normal and escapable. The EscapableTokenizer cannot return string_views, because it may have to doctor the contents.

Cast - Coercing types from strings

In GoogleMock, if you don't want to define an ostream operator for your type, you can define a function PrintTo(T const &, std::ostream*) in the same namespace as T. GoogleMock then uses ADL to find that function and use it to print out the formatted version.