Language. More...

#include <rlang.h>

Collaboration diagram for RLang:
[legend]

Public Member Functions

 RLang (const RString &lang, const char *code)
 
int Compare (const RLang &lang) const
 
int Compare (const char *code) const
 
const char * GetCode (void) const
 
RString GetName (void) const
 
virtual ~RLang (void)
 

Protected Attributes

RString Lang
 
char Code [3]
 

Detailed Description

Language.

The RLang class provides a representation for a particular language.

Constructor & Destructor Documentation

RLang ( const RString lang,
const char *  code 
)

Construct a language.

Parameters
langName of the language.
codeCode of the language.
virtual ~RLang ( void  )
virtual

Destructor of the language.

Member Function Documentation

int Compare ( const RLang lang) const

Compare two langs and return an integer less than, equal to, or greater than zero if this is less than, equal to, or greater than lang.

Parameters
langLanguage.
See also
R::RContainer.
int Compare ( const char *  code) const

Compare a lang and a code and return an integer less than, equal to, or greater than zero if this is less than, equal to, or greater than code.

Parameters
codeCode used for the comparaison.
const char* GetCode ( void  ) const

Get the code of the language.

Returns
Pointer to a C string containing the code.
RString GetName ( void  ) const

Get the name of the language.

Returns
Pointer to a C string containing the name.

Field Documentation

RString Lang
protected

Name of the Language.

char Code[3]
protected

Code of the language.