version 1.1, 2012/05/30 22:47:49
|
version 1.2, 2012/06/15 20:51:14
|
|
|
return src - start; | return src - start; |
} | } |
| |
|
#if !defined(CONFIG_FAVORSIZE) |
|
|
// The following defines string literals for the numbers 0 through 63. The | // The following defines string literals for the numbers 0 through 63. The |
// first character is the length of the string. The subsequent characters | // first character is the length of the string. The subsequent characters |
// are the string literal iteslf. | // are the string literal iteslf. |
|
|
"\00263", | "\00263", |
}; | }; |
| |
|
#endif /* !defined(CONFIG_FAVORSIZE) */ |
|
|
const char* Uint32ToStr(char buf[11], MI_Uint32 x, size_t* size) | const char* Uint32ToStr(char buf[11], MI_Uint32 x, size_t* size) |
{ | { |
char* p; | char* p; |
| |
|
#if !defined(CONFIG_FAVORSIZE) |
|
|
if (x < 64) | if (x < 64) |
{ | { |
*size = _numberStrings[x][0]; | *size = _numberStrings[x][0]; |
return &_numberStrings[x][1]; | return &_numberStrings[x][1]; |
} | } |
| |
|
#endif /* !defined(CONFIG_FAVORSIZE)*/ |
|
|
p = &buf[10]; | p = &buf[10]; |
*p = '\0'; | *p = '\0'; |
| |
|
|
{ | { |
char* p; | char* p; |
| |
|
#if !defined(CONFIG_FAVORSIZE) |
|
|
if (x < 64) | if (x < 64) |
{ | { |
*size = _numberStrings[x][0]; | *size = _numberStrings[x][0]; |
return &_numberStrings[x][1]; | return &_numberStrings[x][1]; |
} | } |
| |
|
#endif /* !defined(CONFIG_FAVORSIZE)*/ |
|
|
p = &buf[20]; | p = &buf[20]; |
*p = '\0'; | *p = '\0'; |
| |