Vowpal Wabbit
Namespaces | Functions
text_utils.h File Reference
#include "future_compat.h"
#include "vw_fwd.h"
#include "vw_string_view.h"
#include <string>

Namespaces

 VW
 

Functions

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::decode_inline_hex (VW::string_view arg, VW::io::logger &logger)
 Replace hex sequences in a string with their corresponding byte. A hex sequence must only contain two digits and must be in the form . 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...
 
std::string VW::fmt_float (float f, int max_decimal_places)
 Format float to string with max number of digits after the decimal place. More...