Kigs Framework
Doc version 0.8
Open source multi purpose Rapid Application Development framework
|
#include <CoreTypes.h>
Static Public Member Functions | |
template<size_t _Size> | |
static unsigned int | GetID (const char(&a)[_Size]) |
only one static method to convert the given string to an unsigned int, used as an ID More... | |
static unsigned int | GetID (const kstl::string &a) |
only one static method to convert the given string to an unsigned int, used as an ID More... | |
CharToID utility class, convert a string to an int ID
We use the size of the character array (including the terminating 0) as a template argument The goal is to have a loop with a repeating count which is easily computable by the optimizer.
|
inlinestatic |
only one static method to convert the given string to an unsigned int, used as an ID
a | : char array to convert to an Id |
|
inlinestatic |
only one static method to convert the given string to an unsigned int, used as an ID
a | : string to convert to an Id |