FoodCandy!

Utils Class Reference

A class with some useful methods. More...

List of all members.


Static Public Member Functions

static string Escape (string buffer)
 Escapes the given String.
static string Unescape (string buffer)
 Unescapes the given String.
static string Base64Encode (byte[] array)
 Base64-encodes the given byte array.
static string Base64Encode (byte[] array, int offset, int length)
 Base64-encodes the given byte array from the given offset to "len" number of bytes.
static string Base64Encode (string buffer)
 Base64-encodes the given String.
static byte[] Base64Decode (char[] array)
 Base64-decodes the given byte array.
static byte[] Base64Decode (char[] array, int offset, int length)
 Base64-decodes the given byte array from the given offset to "len" number of bytes.
static byte[] Base64Decode (string buffer)
 Base64-decodes the given String.
static bool IsIso8601Date (string theDate)
 Checks if the given string representation of a date matches the ISO 8601 format.
static bool IsIso8601DateTZ (string theDate)
 Checks if the given string representation of a date matches the ISO 8601 format with the UTC time zone.
static bool IsIso8601DateLocalNoTZ (string theDate)
 Checks if the given string representation of a date matches the ISO 8601 format without the UTC time zone.
static bool IsIso8601DateLocal (string theDate)
 Checks if the given string representation of a date matches the ISO 8601 format with a local time zone.
static bool IsEmail (string email)
 Checks if the given parameter is a valid email address.
static string GetVersion ()
 Gets the versions of the library.

Detailed Description

A class with some useful methods.


Member Function Documentation

static byte [] Base64Decode string  buffer  )  [static]
 

Base64-decodes the given String.

Parameters:
buffer The string to decode.
Returns:
A base64-decoded array of bytes.

static byte [] Base64Decode char[]  array,
int  offset,
int  length
[static]
 

Base64-decodes the given byte array from the given offset to "len" number of bytes.

Parameters:
array The byte array to decode.
offset The offset from which the decoding starts.
length The number of bytes from the offset to decode.
Returns:
A base64-encoded array of bytes.

static byte [] Base64Decode char[]  array  )  [static]
 

Base64-decodes the given byte array.

Parameters:
array The byte array to decode.
Returns:
A base64-decoded array of bytes.

static string Base64Encode string  buffer  )  [static]
 

Base64-encodes the given String.

Parameters:
buffer The string to encode.
Returns:
A base64-encoded string.

static string Base64Encode byte[]  array,
int  offset,
int  length
[static]
 

Base64-encodes the given byte array from the given offset to "len" number of bytes.

Parameters:
array The byte array to encode.
offset The offset from which the encoding starts.
length The number of bytes from the offset to encode.
Returns:
A base64-encoded string.

static string Base64Encode byte[]  array  )  [static]
 

Base64-encodes the given byte array.

Parameters:
array The byte array to encode.
Returns:
A base64-encoded string.

static string Escape string  buffer  )  [static]
 

Escapes the given String.

Parameters:
buffer The String to escape.
Returns:
The escaped String.

static string GetVersion  )  [static]
 

Gets the versions of the library.

Returns:
The major, minor, revision and build numbers for the library.

static bool IsEmail string  email  )  [static]
 

Checks if the given parameter is a valid email address.

Parameters:
email The email to check.
Returns:
true if the given email is valid, false otherwise.

static bool IsIso8601Date string  theDate  )  [static]
 

Checks if the given string representation of a date matches the ISO 8601 format.

Parameters:
theDate The datetime to check.
Returns:
true if the given date is in ISO 8601 format, false otherwise.

static bool IsIso8601DateLocal string  theDate  )  [static]
 

Checks if the given string representation of a date matches the ISO 8601 format with a local time zone.

Parameters:
theDate The datetime to check.
Returns:
true if the given date is in ISO 8601 format with a local time zone, false otherwise.

static bool IsIso8601DateLocalNoTZ string  theDate  )  [static]
 

Checks if the given string representation of a date matches the ISO 8601 format without the UTC time zone.

Parameters:
theDate The datetime to check.
Returns:
true if the given date is in ISO 8601 format with the UTC time zone, false otherwise.

static bool IsIso8601DateTZ string  theDate  )  [static]
 

Checks if the given string representation of a date matches the ISO 8601 format with the UTC time zone.

Parameters:
theDate The datetime to check.
Returns:
true if the given date is in ISO 8601 format with the UTC time zone, false otherwise.

static string Unescape string  buffer  )  [static]
 

Unescapes the given String.

Parameters:
buffer The String to unescape.
Returns:
The unescaped String.

The documentation for this class was generated from the following file:
  • Utils.cs
© FoodCandy, 2006-2007, All Rights Reserved | FoodCandy | Sun Oct 7 10:48:51 2007 | Doxygen 1.4.6-NO