Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Text Class Reference

List of all members.

Static Public Member Functions

static char[] replace (char[] source, char match, char replacement)
static int indexOf (char[] source, char match)
static int indexOf (char[] source, char match, int start)
static int indexOf (char[] source, char[] match)
static int indexOf (char[] source, char[] match, int start)
static char[] trim (char[] source)
static char[][] split (char[] src, char[] delim)
static char[] tolower (inout char[] src)

Detailed Description

Placeholder for a variety of wee functions. Some of these are handy for Java programmers, but the primary reason for their existance is that they don't allocate memory (unlike Phobos). That is, processing is performed in-place or within a client- provided temporary buffer.

Definition at line 67 of file Text.d.


Member Function Documentation

static char [] replace char[]  source,
char  match,
char  replacement
[inline, static]
 

Replace all instances of one char with another (in place)

Definition at line 75 of file Text.d.

References memchr().

static int indexOf char[]  source,
char  match
[inline, static]
 

Return the index of the first instance of 'match'

Definition at line 96 of file Text.d.

Referenced by indexOf(), and split().

static int indexOf char[]  source,
char  match,
int  start
[inline, static]
 

Return the index of the first instance of 'match', starting at position 'start'

Definition at line 108 of file Text.d.

References memchr().

static int indexOf char[]  source,
char[]  match
[inline, static]
 

Return the index of the first instance of 'match'

Definition at line 125 of file Text.d.

References indexOf().

static int indexOf char[]  source,
char[]  match,
int  start
[inline, static]
 

Return the index of the first instance of 'match', starting at position 'start'

Definition at line 137 of file Text.d.

References indexOf(), and memcmp().

static char [] trim char[]  source  )  [inline, static]
 

Trim the provided string by stripping whitespace from both ends. Returns a slice of the original content.

Definition at line 161 of file Text.d.

static char [][] split char[]  src,
char[]  delim
[inline, static]
 

Definition at line 185 of file Text.d.

References assert(), and indexOf().

static char [] tolower inout char[]  src  )  [inline, static]
 

in-place conversion to lowercase

Definition at line 210 of file Text.d.


The documentation for this class was generated from the following file:
Generated on Mon Nov 14 11:00:03 2005 for Mango by  doxygen 1.4.0