Ignore:
Timestamp:
Aug 7, 2011, 4:30:08 PM (13 years ago)
Author:
イグトランス (egtra)
Message:

Typeクラスを単体テスト可能な状態へ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/BasicCompiler_Common/StrOperation.cpp

    r736 r820  
    11#include "stdafx.h"
    22
    3 void KillSpaces(char *str1,char *str2){
     3void KillSpaces(char const *str1,char *str2){
    44    int i,i2,i3,IsStr;
    55    for(i=0,i2=0,IsStr=0;;i++,i2++){
     
    3030    }
    3131}
    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;
     32void KillStringSpaces(char *str)
     33{
     34    std::string s2(str);
     35    KillSpaces(s2.c_str(), str);
    4136}
    4237BOOL RemoveStringQuotes(char *str){
     
    362357    }
    363358}
    364 const std::string &FormatEscapeSequenceStringToDefaultString( const std::string &source )
     359std::string FormatEscapeSequenceStringToDefaultString( const std::string &source )
    365360{
    366361    int maxLength = (int)source.size();
Note: See TracChangeset for help on using the changeset viewer.