search for: nonascii_to_utf8

Displaying 2 results from an estimated 2 matches for "nonascii_to_utf8".

2014 Dec 16
2
Replace atoi and atol with strtol strtoul:Need Help
Hello , I came across this function *HtmlParser::decode_entities(string &s)* in *xapian-application/omega/htmlparse.cc* which basically does is extract hex value if any or extract number.For extracting number atoi is used and value returned by it is stored in variable "val" , I think so replacing atoi with strtoul would be useful here as number can have larger value although the
2014 Dec 18
4
Replace atoi and atol with strtol strtoul:Need Help
...; strtoul would be useful here as number can have larger value although the > > variable "val" is unsigned int so i need to change the that definition of > > "val" also. Is that ok to do so ? Just need to clarify . > > We ultimately pass val to Xapian::Unicode::nonascii_to_utf8() which > takes "unsigned" so there's not much point making val a wider type > here. > > While ISO C/C++ only guarantee that int is at least 16 bits, in > practice it is 32 bits on the platforms we support. > > Cheers, > Olly > -------------- next part -...