36 typedef std::map < SWBuf, SWBuf, std::less < SWBuf > >
LookupMap;
53 ConfigEntMap::iterator confEntry;
67 (*localeSource)[
"Meta"][
"Description"] =
"English (US)";
107 LookupMap::iterator entry;
112 ConfigEntMap::const_iterator confEntry;
115 SWBuf textBuf = text;
148 p->
lookupTable.insert(LookupMap::value_type(text, (*confEntry).second.c_str()));
154 return (*entry).second.c_str();
179 static const char *nullstr =
"";
187 for (; it != end; it++) {
#define SWORD_NAMESPACE_START
SWORD_NAMESPACE_START struct abbrev builtin_abbrevs[]
std::map< SWBuf, SWBuf, std::less< SWBuf > > LookupMap
virtual struct abbrev * getBookAbbrevs(int *retSize)
bool startsWith(const SWBuf &prefix) const
SWORD_NAMESPACE_START char * stdstr(char **ipstr, const char *istr, unsigned int memPadFactor=1)
ConfigEntMap & getSection(const char *section)
const char * c_str() const
static const char * DEFAULT_LOCALE_NAME
SWLocale(const char *ifilename)
struct abbrev * bookAbbrevs
const char * stripPrefix(char separator, bool endOfStringAsSeparator=false)
virtual const char * translate(const char *text)
virtual const char * getDescription()
const char ** bookPrefAbbrev
virtual void augment(SWLocale &addFrom)
#define SWORD_NAMESPACE_END
virtual const char * getEncoding()
const char ** bookLongNames
virtual const char * getName()