mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-315 more S/390 and EBCDIC changes
X-SVN-Rev: 1059
This commit is contained in:
parent
1dec33985b
commit
9a74ba932e
2 changed files with 8 additions and 11 deletions
|
@ -42,7 +42,7 @@ GEN_DEPS.cc= makedep
|
|||
|
||||
## Commands to compile
|
||||
COMPILE.c= _CXX_CXXSUFFIX="cpp" _CXX_STEPS="-1" $(CXX) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(CFLAGS390) $(DEFS390) -c
|
||||
COMPILE.cc= _CXX_CXXSUFFIX="cpp" _CXX_STEPS="-1" $(CXX) $(DEFS) $(CPPFLAGS) $(CPPFLAGS) $(CFLAGS390) $(DEFS390) -c
|
||||
COMPILE.cc= _CXX_CXXSUFFIX="cpp" _CXX_STEPS="-1" $(CXX) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(CFLAGS390) $(DEFS390) -c
|
||||
|
||||
## Commands to link
|
||||
LINK.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
|
||||
|
|
|
@ -21,19 +21,16 @@
|
|||
|
||||
int32_t getInt(UnicodeString str)
|
||||
{
|
||||
char buffer[20];
|
||||
int len=str.length();
|
||||
char *alias;
|
||||
char *buffer=new char[len+1];
|
||||
alias=buffer;
|
||||
for(int i=0; i< len; i++){
|
||||
*alias=(char)str.charAt(i);
|
||||
alias++;
|
||||
}
|
||||
|
||||
*alias='\0';
|
||||
// printf("this is buffer %s and value is %d", buffer, atoi(buffer));
|
||||
if(len>=20) {
|
||||
len=19;
|
||||
}
|
||||
str.extract(0, len, buffer, "");
|
||||
buffer[len]=0;
|
||||
return atoi(buffer);
|
||||
}
|
||||
|
||||
//---------------------------------------------
|
||||
// runIndexedTest
|
||||
//---------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue