Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
aliases.h
Go to the documentation of this file.
1
29#ifndef RWSTD_UTIL_ALIASES_H_INCLUDED
30#define RWSTD_UTIL_ALIASES_H_INCLUDED
31
32#include <string> // for string
33#include <vector> // for vector
34
35
36// get the codepage for a particular codeset
37unsigned int get_codepage (const std::string&);
38
39// case-insensitive comparison of strings
40int ci_compare (const std::string&, const std::string&);
41
42
43typedef std::vector<std::string> StringVector;
44
45// aliases retrieval for locale name and for codeset name
46void get_cname_aliases (const std::string&, StringVector&);
47void get_lname_aliases (const std::string&, StringVector&);
48
49// retrieves the C locale that will be used in getting the internal
50// encoding for the locale if _RWSTD_NO_ISO_10646_WCHAR_T is defined
51std::string get_C_encoding_locale (const std::string&);
52
53// gets the corresponding C locale names
54void get_same_encoding_C_locale (const std::string&,
55 const std::string&,
57
58// invalid value (hopefully) different from any LC_XXX constant
59#define LC_INVALID_CAT 0xdeadbeef
60
61// retrieves the names of locales that grep the pattern
63
64#endif // RWSTD_UTIL_ALIASES_H_INCLUDED
void get_cname_aliases(const std::string &, StringVector &)
Definition aliases.cpp:392
std::string get_C_encoding_locale(const std::string &)
Definition aliases.cpp:498
int ci_compare(const std::string &, const std::string &)
Definition aliases.cpp:386
#define LC_INVALID_CAT
Definition aliases.h:59
void get_same_encoding_C_locale(const std::string &, const std::string &, StringVector &)
Definition aliases.cpp:445
char * get_installed_locales(int=LC_INVALID_CAT)
Definition aliases.cpp:542
void get_lname_aliases(const std::string &, StringVector &)
Definition aliases.cpp:419
std::vector< std::string > StringVector
Definition aliases.h:43
unsigned int get_codepage(const std::string &)