Changeset 828 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/StrOperation.cpp
- Timestamp:
- Mar 19, 2012, 1:59:48 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/egtra merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ab5.0/abdev
-
Property svn:ignore
set to
*.opensdf
*.sdf
*.suo
*.user
int
ipch
out
-
Property svn:ignore
set to
-
trunk/ab5.0/abdev/BasicCompiler_Common/StrOperation.cpp
r736 r828 1 1 #include "stdafx.h" 2 3 void KillSpaces(char *str1,char *str2){ 2 #include <abdev/ab_common/include/ab_common.h> 3 #include "StrOperation.h" 4 #include "common.h" 5 6 void KillSpaces(char const *str1,char *str2){ 4 7 int i,i2,i3,IsStr; 5 8 for(i=0,i2=0,IsStr=0;;i++,i2++){ … … 30 33 } 31 34 } 32 void KillStringSpaces(char *str){ 33 char *s2; 34 35 extern HANDLE hHeap; 36 s2=(char *)HeapAlloc(hHeap,0,lstrlen(str)+1); 37 lstrcpy(s2,str); 38 KillSpaces(s2,str); 39 HeapDefaultFree(s2); 40 return; 35 void KillStringSpaces(char *str) 36 { 37 std::string s2(str); 38 KillSpaces(s2.c_str(), str); 41 39 } 42 40 BOOL RemoveStringQuotes(char *str){ … … 362 360 } 363 361 } 364 const std::string &FormatEscapeSequenceStringToDefaultString( const std::string &source )362 std::string FormatEscapeSequenceStringToDefaultString( const std::string &source ) 365 363 { 366 364 int maxLength = (int)source.size();
Note:
See TracChangeset
for help on using the changeset viewer.