Changeset 820 in dev for branches/egtra/ab5.0/abdev/BasicCompiler_Common/StrOperation.cpp
- Timestamp:
- Aug 7, 2011, 4:30:08 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/BasicCompiler_Common/StrOperation.cpp
r736 r820 1 1 #include "stdafx.h" 2 2 3 void KillSpaces(char *str1,char *str2){3 void KillSpaces(char const *str1,char *str2){ 4 4 int i,i2,i3,IsStr; 5 5 for(i=0,i2=0,IsStr=0;;i++,i2++){ … … 30 30 } 31 31 } 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; 32 void KillStringSpaces(char *str) 33 { 34 std::string s2(str); 35 KillSpaces(s2.c_str(), str); 41 36 } 42 37 BOOL RemoveStringQuotes(char *str){ … … 362 357 } 363 358 } 364 const std::string &FormatEscapeSequenceStringToDefaultString( const std::string &source )359 std::string FormatEscapeSequenceStringToDefaultString( const std::string &source ) 365 360 { 366 361 int maxLength = (int)source.size();
Note:
See TracChangeset
for help on using the changeset viewer.