Fulib v0.1.6 Fulib.String View Source
Link to this section Summary
Functions
获取字符串的长度
Link to this section Functions
Link to this function
blank?(value) View Source
Link to this function
chars_length(string, opts \\ []) View Source
获取字符串的长度
- 英文字符算1位(半角)
- 中文字符算2位(全角)
- emoji算2位
Link to this function
hmac_sha256(str) View Source
Link to this function
hmac_sha256(secret, str) View Source
Link to this function
hmac_sha512(str) View Source
Link to this function
hmac_sha512(secret, str) View Source
Link to this function
html_escape(text) View Source
Link to this function
length(value, opts \\ []) View Source
Link to this function
loop_chars(chars, count \\ 1, gap \\ "") View Source
Link to this function
md5(str) View Source
Link to this function
parse(value \\ nil) View Source
Link to this function
pluralize(word) View Source
Link to this function
present?(value) View Source
Link to this function
recase(value) View Source
Link to this function
recase(value, arg2) View Source
Link to this function
sha256(str) View Source
Link to this function
sha512(str) View Source
Link to this function
singularize(word) View Source
Link to this function
trim(value) View Source
Link to this function
truncate(text) View Source
Link to this function
truncate(text, opts) View Source
Link to this function
truncate(text, opts, list) View Source
Link to this function