Public Types | Public Member Functions | Public Attributes

i18n::locale_t Struct Reference
[Internationalization (i18n) Library]

simple struct for managing a locale specification More...

#include <i18n.h>

List of all members.

Public Types

enum  eConstants {
  eLanguageOffset = 0,
  eCountryOffset = 3,
  eEncodingOffset = 6,
  eBufferSize = 8,
  eMaxLength = 15
}

Public Member Functions

 locale_t (void) throw ()
void clear (void) throw ()
const char * getString (void) const throw ()
bool isValid (void) const throw ()
 is this a valid locale?
const char * getLanguageCode (OUT char *buffer) const throw ()
 NOTE: for now we use ISO 639-1 (2-character language codes), but in the future this library could use ISO 639-2 (3-character codes) if they become common enough.
const char * getCountryCode (OUT char *buffer) const throw ()
const char * getEncoding (OUT char *buffer) const throw ()

Public Attributes

char string [eMaxLength+1]

Detailed Description

simple struct for managing a locale specification

Definition at line 55 of file i18n.h.


Member Enumeration Documentation

Enumerator:
eLanguageOffset 

internal use only

eCountryOffset 

internal use only

eEncodingOffset 

internal use only

eBufferSize 

use this for buffer sizes

eMaxLength 

max size of locale string

Definition at line 57 of file i18n.h.


The documentation for this struct was generated from the following files: