- Yet another string library built to enable flexible manipulation
- Some functions to assemble and serve raw html from contract
Str
: a struct that encapsulates afelt
arraystr_empty()
: returns an emptyStr
instancestr_from_literal(<string literal>)
: returns aStr
instance that contains the string literalstr_concat(<first Str>, <second Str>)
: returns aStr
instance that contains the concatenation of two inputStr
str_concat_array(<length of Str array>, <pointer of Str array>)
: returns aStr
instance that contains the concatenation of all inputStr
in the provided array
convert_str_array_to_html_string(<length of Str array>, <pointer of Str array>
: wraps eachStr
in a paragraph tag, and returns afelt
array that contains the resulting html in hex string form.
convert_str_table_to_html_string(<table row count>, <table column count>, <length of flattened Str array>, <pointer of flattened Str array>)
: turns the flattened array ofStr
into a html table given row and column count, and returns afelt
array t hat contains the resulting html in hex string form.