Vowpal Wabbit
Loading...
Searching...
No Matches
Namespaces | Functions
text_utils.h File Reference
#include "string_view.h"
#include <sstream>
#include <vector>

Namespaces

namespace  VW
 

Functions

template<typename ContainerT >
void VW::tokenize (char delim, VW::string_view s, ContainerT &ret, bool allow_empty=false)
 
bool VW::ends_with (VW::string_view full_string, VW::string_view ending)
 Check if a string ends with some other string. More...
 
bool VW::starts_with (VW::string_view full_string, VW::string_view starting)
 Check if a string starts with some other string. More...
 
std::string VW::wrap_text (VW::string_view text, size_t width, bool wrap_after=true)
 Wrap text by whole words with the given column width. More...