51 std::size_t
index(
const std::string& str,
const std::size_t
index);
54 std::size_t
size(
const std::string& str);
57 std::string&
insert(std::string& str,
const std::size_t pos,
const std::string&
insert);
69 std::string&
erase(std::string& str,
const std::size_t
start,
const std::size_t len = std::string::npos);
80 std::string&
truncate(std::string& str,
const std::size_t
size);
EXIT_STATUS start(bool clear_id, const std::string &filename, bool take_screenshot, const std::string &screenshot_filename)
Main interface for launching the editor from the title screen.
ucs4::iterator_base< std::u16string, ucs4_convert_impl::convert_impl< char16_t >::type > iterator
Functions for converting Unicode wide-char strings to UTF-8 encoded strings, back and forth.
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
std::string & insert(std::string &str, const std::size_t pos, const std::string &insert)
Insert a UTF-8 string at the specified position.
std::string lowercase(const std::string &s)
Returns a lowercased version of the string.
std::string & erase(std::string &str, const std::size_t start, const std::size_t len)
Erases a portion of a UTF-8 string.
ucs4::iterator_base< std::string, ucs4_convert_impl::convert_impl< char >::type > iterator
void truncate_as_ucs4(std::string &str, const std::size_t size)
Truncates a UTF-8 string to the specified number of characters.
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.
std::string & truncate(std::string &str, const std::size_t size)
Truncates a UTF-8 string to the specified number of characters.
static map_location::direction s