U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » signature of the stou function
Re: signature of the stou function [message #871 is a reply to message #854] Mon, 06 February 2006 14:09 Go to previous messageGo to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
Another thing I am finding strange is the completely different naming for string->unsigned int and string->signed int conversion functions. Different function name, different parameter name (radix/base). I believe they should rather follow the same naming scheme: ScanInt and ScanUInt.
unsigned      stou(const char *ptr, void *endptr = NULL, unsigned base = 10);
unsigned      stou(const byte *ptr, void *endptr = NULL, unsigned base = 10);
unsigned      stou(const wchar *ptr, void *endptr = NULL, unsigned base = 10);
int           ScanInt(const char *ptr, const char **endptr = NULL, int radix = 10);
int           ScanInt(const wchar *ptr, const wchar **endptr = NULL, int radix = 10);
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bits/atomicity.h
Next Topic: Xmlize and double
Goto Forum:
  


Current Time: Sun Apr 26 18:17:52 GMT+2 2026

Total time taken to generate the page: 0.00504 seconds