ICU-5445 code formatting fix

X-SVN-Rev: 22009
This commit is contained in:
George Rhoten 2007-07-17 05:59:37 +00:00
parent d1f7d0ed12
commit ff75f65af6

View File

@ -17,7 +17,7 @@
#include <string.h>
#include <stdlib.h>
UnicodeString **strs = NULL;
static UnicodeString **strs = NULL;
static const UnicodeString& _fieldString(UDebugEnumType type, int32_t field, UnicodeString& fillin) {
const char *str = udbg_enumName(type, field);
@ -110,12 +110,12 @@ T_CTEST_API int32_t T_CTEST_EXPORT2 udbg_enumByString(UDebugEnumType type, cons
T_CTEST_API int32_t
udbg_stoi(const UnicodeString &s)
{
char ch[256];
const UChar *u = s.getBuffer();
int32_t len = s.length();
u_UCharsToChars(u, ch, len);
ch[len] = 0; /* include terminating \0 */
return atoi(ch);
char ch[256];
const UChar *u = s.getBuffer();
int32_t len = s.length();
u_UCharsToChars(u, ch, len);
ch[len] = 0; /* include terminating \0 */
return atoi(ch);
}