The code does not seem to be neatly written: have randomly checked a few files and found that the const methods and exceptions are not properly used. Here is a sample function:
const char *CountryCode::getAbbr(int index) {
if(index < 0 || index > s_numCountryCodes) index = 0;
return(s_countryCode[index]);
}
const char *CountryCode::getAbbr(int index) { if(index < 0 || index > s_numCountryCodes) index = 0; return(s_countryCode[index]); }
https://github.com/gigablast/open-source-search-engine/blob/...