Class Octet.

Inherits Collation

Implements the "i;octet" collation from RFC 4790.

The "i;octet" collation is a simple and fast collation intended for use on binary octet strings rather than on character data. Protocols that want to make this collation available have to do so by explicitly allowing it. If not explicitly allowed, it MUST NOT be used. It never returns an "undefined" result. It provides equality, substring, and ordering operations.

int Octet::compare( const UString & a, const UString & b ) const

Returns -1, 0, or 1 if a is smaller than, equal to, or greater than b, respectively.

Reimplements Collation::compare().

bool Octet::contains( const UString & a, const UString & b ) const

Returns true if b is a substring of a, and false otherwise.

Reimplements Collation::contains().

bool Octet::equals( const UString & a, const UString & b ) const

Returns true if a is equal to b, and false otherwise.

Reimplements Collation::equals().

bool Octet::valid( const UString & ) const

Returns true (all input strings are valid).

Reimplements Collation::valid().

This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.