Module wsdk_utf8

UTF8 utilities.

Copyright © 2010-2012 ALEPH ARCHIVES Ltd. All rights reserved.

Version: 1.0.0

Authors: Aleph Archives Ltd. [web site: http://aleph-archives.com/].

Description

UTF8 utilities

Data Types

data()

data() = unicode:latin1_chardata() | unicode:chardata() | unicode:external_chardata()

Function Index

to_binary/1Converts Data to UTF-8 binary representation.
valid/1Returns whether Data is a valid UTF-8 string or not.

Function Details

to_binary/1

to_binary(Data::data()) -> {ok, binary()} | {error, binary(), data()} | {incomplete, binary(), binary()}

Converts Data to UTF-8 binary representation

valid/1

valid(Data::data()) -> ok | {error, binary(), data()} | {incomplete, binary(), binary()}

Returns whether Data is a valid UTF-8 string or not.


Generated by EDoc, Sep 5 2012, 17:38:09.