Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Unicode > age_unicode
char_positions/2
Description
char_positions/2 is an Erlang function exported by "api_age_unicode" module.
Lists the characters positions within an input Unicode string.
References
None
Parameters
Name
Type
Input
string()
Unicode string.
Char
integer()
Code of the character to be searched for.
Result
Value or Type
list()
Returns list of positions of the characters.
Code Sample
> age_unicode:char_positions("xyzABC and ABCD", 65). [4,12]