Skip to content

Latest commit

 

History

History
382 lines (247 loc) · 15.2 KB

ephp_lib_string.md

File metadata and controls

382 lines (247 loc) · 15.2 KB

Module ephp_lib_string

Behaviours: ephp_lib.

Function Index

bin2hex/3
chr/3obtain the character giving the number as a param.
count_chars/4
explode/4split the string in pieces in an array.
explode/5split the string in pieces in an array with a limit.
handle_error/3handle error messages.
hex2bin/3
implode/3join the array passed as a param.
implode/4join the array with the glue passed as a param.
init_func/0
lcfirst/3
ltrim/4
md5/4
nl2br/4
ord/3obtain the number of the character passed as a param.
print/3
printf/3print using a format.
rtrim/4
sprintf/3generate a string using a format.
str_pad/6
str_repeat/4
str_replace/5
str_replace/6
str_shuffle/3
str_split/3
str_split/4
strlen/3retrieve the length of the string.
strpos/5
strrev/3
strrpos/5
strtolower/3
strtoupper/3
substr/5
trim/4
ucfirst/3
ucwords/4
vprintf/4
vsprintf/4

Function Details

bin2hex/3


bin2hex(Context::ephp:context_id(), Line::line(), X3::var_value()) -> binary()

chr/3


chr(Context::ephp:context_id(), Line::line(), Integer::var_value()) -> binary()

obtain the character giving the number as a param.

count_chars/4


count_chars(Context::ephp:context_id(), Line::line(), X3::var_value(), X4::var_value()) -> ephp_array:ephp_array() | binary()

explode/4


explode(Context::ephp:context_id(), Line::line(), Delimiter::var_value(), String::var_value()) -> ephp_array:ephp_array()

split the string in pieces in an array.

explode/5


explode(Context::ephp:context_id(), Line::line(), Delimiter::var_value(), String::var_value(), Limit::var_value()) -> ephp_array:ephp_array()

split the string in pieces in an array with a limit.

handle_error/3


handle_error(Type::ephp_error:error_type(), Level::ephp_error:error_level(), Args::term()) -> string() | ignore

handle error messages.

hex2bin/3


hex2bin(Context::ephp:context_id(), Line::line(), X3::var_value()) -> binary()

implode/3


implode(Context::ephp:context_id(), Line::line(), Pieces::var_value()) -> binary()

join the array passed as a param.

implode/4


implode(Context::ephp:context_id(), Line::line(), Glue::var_value(), Pieces::var_value()) -> binary()

join the array with the glue passed as a param.

init_func/0


lcfirst/3


lcfirst(Context::ephp:context_id(), Line::line(), Text::var_value()) -> binary()

ltrim/4


ltrim(Context::ephp:context_id(), Line::line(), Str::var_value(), CharMask::var_value()) -> binary() | undefined

md5/4


md5(Context::ephp:context_id(), Line::line(), X3::var_value(), X4::var_value()) -> binary()

nl2br/4


nl2br(Context::ephp:context_id(), Line::line(), X3::var_value(), X4::var_value()) -> binary()

ord/3


ord(Context::ephp:context_id(), Line::line(), String::var_value()) -> integer()

obtain the number of the character passed as a param.

print/3


print(Context::ephp:context_id(), Line::line(), Values::[var_value()]) -> 1

printf/3


printf(Context::ephp:context_id(), Line::line(), Values::[var_value()]) -> pos_integer()

print using a format.

rtrim/4


rtrim(Context::ephp:context_id(), Line::line(), Str::var_value(), CharMask::var_value()) -> binary() | undefined

sprintf/3


sprintf(Context::ephp:context_id(), Line::line(), Values::[var_value()]) -> binary()

generate a string using a format.

str_pad/6


str_pad(Context::ephp:context_id(), Line::line(), X3::var_value(), X4::var_value(), X5::var_value(), X6::var_value()) -> binary()

str_repeat/4


str_repeat(Context::ephp:context_id(), Line::line(), X3::var_value(), X4::var_value()) -> binary() | undefined

str_replace/5


str_replace(Context::ephp:context_id(), Line::line(), Search::var_value(), Replace::var_value(), Subject::var_value()) -> binary()

str_replace/6


str_replace(Context::ephp:context_id(), Line::line(), Search::var_value(), Replace::var_value(), Subject::var_value(), Count::var_value()) -> binary()

str_shuffle/3


str_shuffle(Context::ephp:context_id(), Line::line(), X3::var_value()) -> binary()

str_split/3


str_split(Context::ephp:context_id(), Line::line(), Text::var_value()) -> ephp_array:ephp_array()

str_split/4


str_split(Context::ephp:context_id(), Line::line(), Text::var_value(), Size::var_value()) -> ephp_array:ephp_array() | undefined

strlen/3


strlen(Context::ephp:context_id(), Line::line(), String::var_value()) -> integer()

retrieve the length of the string.

strpos/5


strpos(Context::ephp:context_id(), Line::line(), HayStack::var_value(), Needle::var_value(), Offset::var_value()) -> false | pos_integer() | undefined

strrev/3


strrev(Context::ephp:context_id(), Line::line(), Str::var_value()) -> binary()

strrpos/5


strrpos(Context::ephp:context_id(), Line::line(), HayStack::var_value(), Needle::var_value(), Offset::var_value()) -> false | pos_integer() | undefined

strtolower/3


strtolower(Context::ephp:context_id(), Line::line(), Text::var_value()) -> binary()

strtoupper/3


strtoupper(Context::ephp:context_id(), Line::line(), Text::var_value()) -> binary()

substr/5


substr(Context::ephp:context_id(), Line::line(), X3::var_value(), X4::var_value(), X5::var_value()) -> binary()

trim/4


trim(Context::ephp:context_id(), Line::line(), Str::var_value(), CharMask::var_value()) -> binary() | undefined

ucfirst/3


ucfirst(Context::ephp:context_id(), Line::line(), Text::var_value()) -> binary()

ucwords/4


ucwords(Context::ephp:context_id(), Line::line(), X3::var_value(), X4::var_value()) -> binary()

vprintf/4


vprintf(Context::ephp:context_id(), Line::line(), Format::var_value(), Values::var_value()) -> pos_integer()

vsprintf/4


vsprintf(Context::ephp:context_id(), Line::line(), Format::var_value(), Values::var_value()) -> binary()