Procedures

ProcedureLocationProcedure TypeDescription
assignment(=)utf8_detailInterface
cast_byteutf8_detailFunction

private helper functions cast char to byte (8-bits integer in Fortran) display: private

char_assign_from_utf8utf8_detailSubroutine
codepoint_num_bytesutf8_detailFunction

get the number of bytes of a code point based on its first byte display: private

construct_utf8_stringutf8_detailInterface
iteratorutf8_detailFunction

return an iterator of utf8_string

iterator_get_nextutf8_detailFunction
iterator_has_nextutf8_detailFunction

iterator methods

utf8_assign_from_charutf8_detailSubroutine
utf8_atutf8_detailFunction

return the code point at specified position

utf8_construct_from_charutf8_detailSubroutine
utf8_countutf8_detailFunction

count the substring in utf8_string overlaps are not considered e.g. utf8_count(“AUAUAUAUAUAUAU”,”AUA”) returns 3

utf8_indexutf8_detailFunction

return the position where substring occurs in utf8_string for the first time

utf8_is_validutf8_detailInterface
utf8_is_valid_charutf8_detailFunction

check if the whole string is valid utf8 encoding

utf8_is_valid_stringutf8_detailFunction
utf8_lenutf8_detailFunction

return the number of UTF-8 code points

utf8_reverseutf8_detailSubroutine

reverse the order of code points in place

utf8_sliceutf8_detailFunction

return a substring of utf8_string

utf8_splitutf8_detailSubroutine

split utf8_string based on the separation string