class UString

caseless String More...

Definition#include <String.hh>
InheritsString
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

caseless String

UString is just like String, but all comparisons are performed without regard to case.

UString (const char *str, int len=0)

construct a String from a prefix of a char*

Parameters:
strchar* for initial value
sizesubstring size (0 == rest)

UString (const UString &str, size_t start = 0, size_t l = 0)

construct a String from a substring of a String&

Parameters:
strchar* for initial value
sizesubstring size (0 == rest)

~UString ()
[virtual]

destroy String

Data * clone (void *where = (void*)
[const virtual]

copy constructor

Used as the destination of @see mutate when a copy on write mutable object is desired.

Parameters:
wherethe locale into which to clone this object

Returns: mutable copy of object

int order (const Slot &arg)
[const virtual]

order two Strings (ignoring case)

Parameters:
argString to be ordered relative to this (ignoring case)

Returns: 1,0,-1 depending on String order

bool equal (const Slot &arg)
[const virtual]

equality operator (ignoring case)

Parameters:
argString to be compared to this (ignoring case)

Returns: true/false depending on equality

Slot search (const Slot &search)
[const virtual]

search for a matching substring ignoring case

Parameters:
searchelement for which to search

Returns: the first of this String with search as a prefix


Generated by: colin@sharedtech.dhis.org on Sat Nov 6 11:59:24 199.