charset: Added function cs_ord

It returns the ordinal number of the given character inside the charset.

Signed-off-by: Celelibi <celelibi@gmail.com>