21#ifndef G_STRING_WRAP_H
22#define G_STRING_WRAP_H
39 static std::string
wrap(
const std::string & text ,
40 const std::string & prefix_first ,
const std::string & prefix_other ,
41 std::size_t width_first = 70U , std::size_t width_other = 0U ,
42 bool preserve_spaces =
false ) ;
50 static std::size_t
wordsize(
const std::string & ) ;
static std::size_t wordsize(const std::string &)
Returns the number of characters in UTF-8 text.
static std::string wrap(const std::string &text, const std::string &prefix_first, const std::string &prefix_other, std::size_t width_first=70U, std::size_t width_other=0U, bool preserve_spaces=false)
Does word-wrapping of UTF-8 text.