Module cowboy_bstr

Binary string manipulation.

Description

Binary string manipulation.

Function Index

capitalize_token/1Capitalize a token.
char_to_lower/1Convert [A-Z] characters to lowercase.
char_to_upper/1Convert [a-z] characters to uppercase.
to_lower/1Convert a binary string to lowercase.
to_upper/1Convert a binary string to uppercase.

Function Details

capitalize_token/1

capitalize_token(B) -> B

Capitalize a token.

The first letter and all letters after a dash are capitalized. This is the form seen for header names in the HTTP/1.1 RFC and others. Note that using this form isn't required, as header name are case insensitive, and it is only provided for use with eventual badly implemented clients.

char_to_lower/1

char_to_lower(Ch::char()) -> char()

Convert [A-Z] characters to lowercase.

char_to_upper/1

char_to_upper(Ch::char()) -> char()

Convert [a-z] characters to uppercase.

to_lower/1

to_lower(B) -> B

Convert a binary string to lowercase.

to_upper/1

to_upper(B) -> B

Convert a binary string to uppercase.


Generated by EDoc, Aug 16 2014, 11:28:19.