encoding - Check if unicode value is in Erlang binary string? -



encoding - Check if unicode value is in Erlang binary string? -

i came across questions on how find value in list , aware of lists:member/2.

erlang lists:index_of function? how search item in list in erlang?

is there lists:member/2 binary strings? need check if value nowadays in binary. imagine this:

value_in_binary(<<"some random data">>, <<"d">>). %> true

does exist? if not, how go implementing function this?

check out binary:match/2,3. example

1> binary:match(<<"some random data">>, <<"d">>). {8,1} 2> binary:match(<<"some random data">>, <<"z">>). nomatch

string encoding binary erlang default

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -