Language. More...
#include <rlang.h>
Collaboration diagram for RLang:
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
Construct a language.
- Parameters
-
lang Name of the language. code Code of the language.
|
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
-
lang Language.
- 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
-
code Code 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
|
protected |
Name of the Language.
|
protected |
Code of the language.