Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsAbOSXUtils.h File Reference
#include <Foundation/NSString.h>
#include "nscore.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsAbOSXPropertyMap
class  nsAbOSXUtils

Functions

NSStringWrapString (const nsString &aString)
void AppendToString (const NSString *aString, nsString &aResult)
void AssignToString (const NSString *aString, nsString &aResult)
void AppendToCString (const NSString *aString, nsCString &aResult)

Class Documentation

struct nsAbOSXPropertyMap

Definition at line 55 of file nsAbOSXUtils.h.

Collaboration diagram for nsAbOSXPropertyMap:
Class Members
NSString *const mOSXKey
NSString *const mOSXLabel
NSString *const mOSXProperty
nsString * mProperty
const char * mPropertyName

Function Documentation

void AppendToCString ( const NSString aString,
nsCString aResult 
)

Definition at line 78 of file nsAbOSXUtils.mm.

{
    if (aString) {
        const char *chars = [aString UTF8String];
        if (chars) {
            aResult.Append(chars);
        }
    }
}

Here is the caller graph for this function:

void AppendToString ( const NSString aString,
nsString aResult 
)

Definition at line 56 of file nsAbOSXUtils.mm.

{
    if (aString) {
        const char *chars = [aString UTF8String];
        if (chars) {
            AppendUTF8toUTF16(chars, aResult);
        }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void AssignToString ( const NSString aString,
nsString aResult 
)

Definition at line 67 of file nsAbOSXUtils.mm.

{
    if (aString) {
        const char *chars = [aString UTF8String];
        if (chars) {
            CopyUTF8toUTF16(chars, aResult);
        }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

NSString* WrapString ( const nsString aString)

Definition at line 47 of file nsAbOSXUtils.mm.

{
    PRUnichar* chars = NS_CONST_CAST(PRUnichar*, aString.get());

    return [NSString stringWithCharacters:chars
                                   length:aString.Length()];
}

Here is the call graph for this function:

Here is the caller graph for this function: