Enumeration

NSStringEncodingConversionOptions

Options for converting string encodings.

Declaration

typedef enum NSStringEncodingConversionOptions : NSUInteger {
    ...
} NSStringEncodingConversionOptions;

Overview

These constants are available in OS X v10.4; they are, however, differently named:

typedef enum {
    NSAllowLossyEncodingConversion = 1,
    NSExternalRepresentationEncodingConversion = 2
} NSStringEncodingConversionOptions;

You can use them in OS X v10.4 if you define the symbols as extern constants.

Topics

Constants

NSStringEncodingConversionAllowLossy

Allows lossy conversion.

NSStringEncodingConversionExternalRepresentation

Specifies an external representation (with a byte-order mark, if necessary, to indicate endianness).

See Also

Identifying and Comparing Strings

- caseInsensitiveCompare:

Returns the result of invoking compare:options: with NSCaseInsensitiveSearch as the only option.

- localizedCaseInsensitiveCompare:

Compares the string with a given string using a case-insensitive, localized, comparison.

- compare:

Returns the result of invoking compare:options:range: with no options and the receiver’s full extent as the range.

- localizedCompare:

Compares the string and a given string using a localized comparison.

- compare:options:

Compares the string with the specified string using the given options.

- compare:options:range:

Returns the result of invoking compare:options:range:locale: with a nil locale.

- compare:options:range:locale:

Compares the string using the specified options and returns the lexical ordering for the range.

- localizedStandardCompare:

Compares strings as sorted by the Finder.

- hasPrefix:

Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver.

- hasSuffix:

Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver.

- isEqualToString:

Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison.

hash

An unsigned integer that can be used as a hash table address.

NSStringCompareOptions

These values represent the options available to many of the string classes’ search and comparison methods.