PM Library classes

class PMNLS

? ^ 
    extends PMNonCopyable as public

National language support class.

Provides national language support via various conversion and comparision member functions.

Source:
pm_nls.h:31
Author:
Dmitry A.Steklenev
Version:
$Revision: 1.4 $
Friend:
class PMInitNLS undocumented

Contents

^ 
EntityInherited FromTypeScopeShort Description
lltoastatic method public Converts the long long integer to the decimal ASCII string separated by thousands.
timetohmsstatic method public Converts time to formatted character string containing separated hours, minutes and seconds.
timetomsstatic method public Converts time to formatted character string containing separated minutes and seconds.
stricmpstatic method publicCompare strings without case sensitivity.
strnicmpstatic method publicCompare strings without case sensitivity.
struprstatic method public Converts any lowercase letters in string to uppercase.
toupperstatic method public Converts the lowercase letter to the corresponding uppercase letter.
strtoucsstatic method public Converts the string from current codepage to the unicode string.
ucstostrstatic method public Converts the unicode string to current codepage string.

static method lltoa

? ^  > 
Converts the long long integer to the decimal ASCII string separated by thousands.

Source:
pm_nls.h:47
Params:
result A buffer in which the converted text is returned.
size This is the size of the buffer specified by the result. parameter.

Returns:
A pointer to result. There is no error return value.
Code:
public static char * lltoa ( char * result ,
int size ,
long long number )

static method timetohms

? ^  < > 
Converts time to formatted character string containing separated hours, minutes and seconds.

Source:
pm_nls.h:60
Params:
result A buffer in which the converted text is returned.
size This is the size of the buffer specified by the result. parameter.

Returns:
A pointer to result. There is no error return value.
Code:
public static char * timetohms ( char * result ,
int size ,
unsigned long seconds )

static method timetoms

? ^  < > 
Converts time to formatted character string containing separated minutes and seconds.

Source:
pm_nls.h:73
Params:
result A buffer in which the converted text is returned.
size This is the size of the buffer specified by the result. parameter.

Returns:
A pointer to result. There is no error return value.
Code:
public static char * timetoms ( char * result ,
int size ,
unsigned long seconds )

static method stricmp

? ^  < > 
Compare strings without case sensitivity.
Source:
pm_nls.h:76
Code:
public static int stricmp ( const char * string1 ,
const char * string2 )

static method strnicmp

? ^  < > 
Compare strings without case sensitivity.
Source:
pm_nls.h:78
Code:
public static int strnicmp ( const char * string1 ,
const char * string2 ,
int n )

static method strupr

? ^  < > 
Converts any lowercase letters in string to uppercase.

Other characters are not affected.

Source:
pm_nls.h:85
Code:
public static char * strupr ( char * string )

static method toupper

? ^  < > 
Converts the lowercase letter to the corresponding uppercase letter.
Source:
pm_nls.h:92
Code:
public static int toupper ( int c )

static method strtoucs

? ^  < > 
Converts the string from current codepage to the unicode string.

Source:
pm_nls.h:106
Params:
string A pointer to the input null terminated string.
result A buffer in which the converted string is returned.
size This is the size in unicode characters of the buffer specified by the result parameter.

Returns:
If successfully converts the source string, it returns the number of converted characters. If encounters an error, it returns -1.
Code:
public static int strtoucs ( const char * string ,
UniChar * result ,
int size )

static method ucstostr

? ^  < > 
Converts the unicode string to current codepage string.

Source:
pm_nls.h:120
Params:
string A pointer to the input null terminated string.
result A buffer in which the converted string is returned.
size This is the size in bytes of the buffer specified by the result parameter.

Returns:
If successfully converts the source string, it returns the number of converted characters. If encounters an error, it returns -1.
Code:
public static int ucstostr ( const UniChar * string ,
char * result ,
int size )

Created Fri Aug 3 09:13:16 2012.
This documentation was generated automatically by
ccdoc v08r39 2003/02/27 bin_opt_emx_os2-2.30.
Click here to submit a bug report or feature request for ccdoc.
Click here to return to the top of the page.