ICU-315 more S/390 and EBCDIC changes

X-SVN-Rev: 1059
This commit is contained in:
Markus Scherer 2000-04-04 16:30:21 +00:00
parent 1dec33985b
commit 9a74ba932e
2 changed files with 8 additions and 11 deletions

View file

@ -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)

View file

@ -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
//---------------------------------------------