encoding.utf8 #

fn char_len #

fn char_len(b byte) int

char_len calculate the length in bytes of a utf8 char

fn get_uchar #

fn get_uchar(s string, index int) int

get_uchar convert a unicode glyph in string[index] into a int unicode char

fn is_global_punct #

fn is_global_punct(s string, index int) bool

Global is_global_punct return true if the string[index] byte of is the start of a global unicode punctuation

fn is_punct #

fn is_punct(s string, index int) bool

Western is_punct return true if the string[index] byte is the start of a unicode western punctuation

fn is_uchar_global_punct #

fn is_uchar_global_punct(uchar int) bool

is_uchar_global_punct return true if the input unicode is a global unicode punctuation

fn is_uchar_punct #

fn is_uchar_punct(uchar int) bool

is_uchar_punct return true if the input unicode is a western unicode punctuation

fn len #

fn len(s string) int

len return the length as number of unicode chars from a string

fn raw_index #

fn raw_index(s string, index int) string

raw_index - get the raw chracter from the string by the given index value. example: '我是V Lang'.raw_index(1) => '是' raw_index - get the raw chracter from the string by the given index value. example: utf8.raw_index('我是V Lang', 1) => '是'

fn to_lower #

fn to_lower(s string) string

to_lower return an lowercase string from a string

fn to_upper #

fn to_upper(s string) string

to_upper return an uppercase string from a string

fn u_len #

fn u_len(s ustring) int

u_len return the length as number of unicode chars from a ustring

fn u_to_lower #

fn u_to_lower(s ustring) ustring

u_to_lower return an lowercase string from a ustring

fn u_to_upper #

fn u_to_upper(s ustring) ustring

u_to_upper return an uppercase string from a ustring

fn validate #

fn validate(data &byte, len int) bool

fn validate_str #

fn validate_str(str string) bool