51 std::size_t
index(std::string_view str,
const std::size_t
index);
54 std::size_t
size(std::string_view 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::string lowercase(std::string_view s)
Returns a lowercased version of the 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.
ucs4::iterator_base< std::string_view, ucs4_convert_impl::convert_impl< char >::type > iterator
std::string & erase(std::string &str, const std::size_t start, const std::size_t len)
Erases a portion of a UTF-8 string.
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(std::string_view 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.
std::size_t index(std::string_view str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
static map_location::direction s