Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions
nsString.h File Reference
#include "nsSubstring.h"
#include "nsDependentSubstring.h"
#include "nsReadableUtils.h"
#include "string-template-def-unichar.h"
#include "nsTString.h"
#include "string-template-undef.h"
#include "string-template-def-char.h"
#include "nsDependentString.h"
#include "nsLiteralString.h"
#include "nsPromiseFlatString.h"
#include "nsMemory.h"
#include <string.h>
#include <stdio.h>
#include "plhash.h"

Go to the source code of this file.

Classes

class  NS_LossyConvertUTF16toASCII
 A helper class that converts a UTF-16 string to ASCII in a lossy manner. More...
class  NS_ConvertASCIItoUTF16
 conversion classes More...
class  NS_ConvertUTF16toUTF8
 A helper class that converts a UTF-16 string to UTF-8. More...
class  NS_ConvertUTF8toUTF16

Defines

#define MOZ_STRING_WITH_OBSOLETE_API   1
#define kRadix10   (10)
#define kRadix16   (16)
#define kAutoDetect   (100)
#define kRadixUnknown   (kAutoDetect+1)
#define IGNORE_CASE   (PR_TRUE)

Typedefs

typedef NS_ConvertUTF16toUTF8 NS_ConvertUCS2toUTF8
typedef NS_LossyConvertUTF16toASCII NS_LossyConvertUCS2toASCII
typedef NS_ConvertASCIItoUTF16 NS_ConvertASCIItoUCS2
typedef NS_ConvertUTF8toUTF16 NS_ConvertUTF8toUCS2
typedef nsAutoString nsVoidableString

Functions

PRInt32 MinInt (PRInt32 x, PRInt32 y)
PRInt32 MaxInt (PRInt32 x, PRInt32 y)
void Recycle (char *aBuffer)
 Deprecated: don't use |Recycle|, just call |nsMemory::Free| directly.
void Recycle (PRUnichar *aBuffer)

Define Documentation

Definition at line 68 of file nsString.h.

#define kAutoDetect   (100)

Definition at line 66 of file nsString.h.

#define kRadix10   (10)

Definition at line 64 of file nsString.h.

#define kRadix16   (16)

Definition at line 65 of file nsString.h.

Definition at line 67 of file nsString.h.

Definition at line 59 of file nsString.h.


Typedef Documentation

Definition at line 197 of file nsString.h.

Definition at line 195 of file nsString.h.

Definition at line 198 of file nsString.h.

Definition at line 196 of file nsString.h.

Definition at line 199 of file nsString.h.


Function Documentation

PRInt32 MaxInt ( PRInt32  x,
PRInt32  y 
) [inline]

Definition at line 224 of file nsString.h.

  {
    return NS_MAX(x, y);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

PRInt32 MinInt ( PRInt32  x,
PRInt32  y 
) [inline]

Definition at line 219 of file nsString.h.

  {
    return NS_MIN(x, y);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

void Recycle ( char *  aBuffer) [inline]

Deprecated: don't use |Recycle|, just call |nsMemory::Free| directly.

Return the given buffer to the heap manager. Calls allocator::Free()

Definition at line 234 of file nsString.h.

{ nsMemory::Free(aBuffer); }

Here is the caller graph for this function:

void Recycle ( PRUnichar aBuffer) [inline]

Definition at line 235 of file nsString.h.

{ nsMemory::Free(aBuffer); }