- Timestamp:
- May 1, 2008, 11:03:14 PM (17 years ago)
- Location:
- trunk/ab5.0
- Files:
-
- 48 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp
r519 r523 171 171 lstrcpy(path,temp3); 172 172 } 173 void GetFullPath( char *path, const st ring &baseDirPath ){173 void GetFullPath( char *path, const std::string &baseDirPath ){ 174 174 int i,i2,i3,i4; 175 175 char temporary[MAX_PATH]; … … 590 590 591 591 // グローバルローケルを日本語にする 592 locale::global(locale("japanese"));592 std::locale::global(std::locale("japanese")); 593 593 _setmode(_fileno(stdout), _O_BINARY); 594 594 -
trunk/ab5.0/abdev/BasicCompiler_Common/Diagnose.cpp
r485 r523 23 23 extern int GlobalOpBufferSize; 24 24 sprintf(temporary, "%d", GlobalOpBufferSize/1024 ); 25 trace_for_size( (st ring)"グローバル領域のコードサイズ: " + temporary + "KB" );25 trace_for_size( (std::string)"グローバル領域のコードサイズ: " + temporary + "KB" ); 26 26 //sprintf(temporary, "%d", (obp-GlobalOpBufferSize)/1024 ); 27 //trace_for_size( (st ring)"ローカル領域のコードサイズ: " + temporary + "KB" );27 //trace_for_size( (std::string)"ローカル領域のコードサイズ: " + temporary + "KB" ); 28 28 //sprintf(temporary, "%d", obp/1024 ); 29 //trace_for_size( (st ring)"コードサイズ総量: " + temporary + "KB" );29 //trace_for_size( (std::string)"コードサイズ総量: " + temporary + "KB" ); 30 30 } 31 31 … … 52 52 53 53 sprintf(temporary, "%d", codeSizeOfGlobalProc/1024 ); 54 trace_for_size( (st ring)"グローバル関数のコードサイズ総量: " + temporary + "KB" );54 trace_for_size( (std::string)"グローバル関数のコードサイズ総量: " + temporary + "KB" ); 55 55 sprintf(temporary, "%d", codeSizeOfClassMethod/1024 ); 56 trace_for_size( (st ring)"クラスメソッドのコードサイズ総量: " + temporary + "KB" );56 trace_for_size( (std::string)"クラスメソッドのコードサイズ総量: " + temporary + "KB" ); 57 57 } 58 58 … … 92 92 93 93 sprintf(temporary, "%d", codeSizeOfEnum/1024 ); 94 trace_for_size( (st ring)"Enumのコードサイズ総量: " + temporary + "KB" );94 trace_for_size( (std::string)"Enumのコードサイズ総量: " + temporary + "KB" ); 95 95 } 96 96 -
trunk/ab5.0/abdev/BasicCompiler_Common/MakeExe.cpp
r519 r523 175 175 if( compiler.staticLibraries.back()->Read( coreFilePath ) ) 176 176 { 177 compiler.messenger.Output( ((st ring)"\"" + path.GetFullPath() + "\" を読み込みました。").c_str() );177 compiler.messenger.Output( ((std::string)"\"" + path.GetFullPath() + "\" を読み込みました。").c_str() ); 178 178 } 179 179 else … … 198 198 if( compiler.staticLibraries.back()->Read( filePath ) ) 199 199 { 200 compiler.messenger.Output( ((st ring)"\"" + path.GetFullPath() + "\" を読み込みました。").c_str() );200 compiler.messenger.Output( ((std::string)"\"" + path.GetFullPath() + "\" を読み込みました。").c_str() ); 201 201 } 202 202 else -
trunk/ab5.0/abdev/BasicCompiler_Common/NonVolatile.cpp
r519 r523 4 4 5 5 6 char *ReadBuffer_NonErrMsg( const st ring &path ){6 char *ReadBuffer_NonErrMsg( const std::string &path ){ 7 7 extern HANDLE hHeap; 8 8 int i; … … 20 20 return buffer; 21 21 } 22 _int8 WriteBuffer( const st ring &path, char *buffer,int length){22 _int8 WriteBuffer( const std::string &path, char *buffer,int length){ 23 23 extern HWND hOwnerEditor; 24 24 HANDLE hFile; … … 247 247 char temporary[MAX_PATH]; 248 248 249 const st ring userSettingDirPath = Jenga::Common::Environment::GetAppDir() + "\\UserSetting";249 const std::string userSettingDirPath = Jenga::Common::Environment::GetAppDir() + "\\UserSetting"; 250 250 251 251 HANDLE hFind; -
trunk/ab5.0/abdev/BasicCompiler_Common/NonVolatile.h
r165 r523 1 1 2 char *ReadBuffer_NonErrMsg( const st ring &path );2 char *ReadBuffer_NonErrMsg( const std::string &path ); 3 3 4 4 class CNonVolatile{ -
trunk/ab5.0/abdev/BasicCompiler_Common/NumOpe_GetType.cpp
r465 r523 360 360 GetVarFormatString( methodName, parameter, lpPtrOffset, dummy, refType, &pareOrBracket ); 361 361 362 vector<const UserProc *> userProcs;362 std::vector<const UserProc *> userProcs; 363 363 leftType.GetClass().EnumDynamicMethodsOrInterfaceMethods( methodName, userProcs ); 364 364 if(userProcs.size()){ -
trunk/ab5.0/abdev/BasicCompiler_Common/ParamImpl.cpp
r485 r523 312 312 } 313 313 314 bool ParamImpl::ErrorCheck( const st ring &procName, const Parameters ¶ms, int SecondParmNum ){314 bool ParamImpl::ErrorCheck( const std::string &procName, const Parameters ¶ms, int SecondParmNum ){ 315 315 if( SecondParmNum == -1 ) SecondParmNum = (int)params.size(); 316 316 -
trunk/ab5.0/abdev/BasicCompiler_Common/Subroutine.cpp
r511 r523 306 306 bool GetReturnTypeOfIndexerGetterProc( const Type &classType, Type &resultType ) 307 307 { 308 vector<const UserProc *> subs;308 std::vector<const UserProc *> subs; 309 309 classType.GetClass().GetDynamicMethods().Enum( CALC_ARRAY_GET, subs ); 310 310 if( subs.size() == 0 ){ -
trunk/ab5.0/abdev/BasicCompiler_Common/common.h
r515 r523 5 5 6 6 #include <option.h> 7 8 using namespace std;9 7 10 8 #ifdef _AMD64_ … … 218 216 void epi_check(); 219 217 void GetRelationalPath(char *path,char *dir); 220 void GetFullPath( char *path, const st ring &baseDirPath );218 void GetFullPath( char *path, const std::string &baseDirPath ); 221 219 std::string GetApplicationBaseFullPath( const std::string &relationalPath ); 222 220 void ShowErrorLine(int LineNum,const char *FileName); … … 361 359 bool GetReturnTypeOfPropertyMethod( const char *variable, const char *rightSide, Type &resultType ); 362 360 bool GetReturnTypeOfIndexerGetterProc( const Type &classType, Type &resultType ); 363 int AddProcPtrInfo( const st ring &typeExpression, int nowLine );361 int AddProcPtrInfo( const std::string &typeExpression, int nowLine ); 364 362 bool IsNeedProcCompile(); 365 363 void CompileLocal(); -
trunk/ab5.0/abdev/BasicCompiler_Common/hash.cpp
r509 r523 162 162 const CClass *pClass = compiler.GetObjectModule().meta.GetClasses().Find( className ); 163 163 if( pClass ){ 164 vector<const UserProc *> userProcs;164 std::vector<const UserProc *> userProcs; 165 165 pClass->EnumDynamicMethodsOrInterfaceMethods( methodName, userProcs ); 166 166 if( userProcs.size() == 1 ){ -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Class.h
r522 r523 16 16 17 17 public: 18 ClassPrototype( const NamespaceScopes &namespaceScopes, const st ring &name )18 ClassPrototype( const NamespaceScopes &namespaceScopes, const std::string &name ) 19 19 : Prototype( namespaceScopes, name ) 20 20 , DynamicMethodsPrototype() … … 106 106 public: 107 107 108 CClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const st ring &name )108 CClass( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const std::string &name ) 109 109 : ClassPrototype( namespaceScopes, name ) 110 110 , importedNamespaces( importedNamespaces ) … … 501 501 virtual void Compile_System_InitializeUserTypesForBaseType(); 502 502 503 const CClass *Find( const NamespaceScopes &namespaceScopes, const st ring &name ) const;504 const CClass *Find( const st ring &fullName ) const;503 const CClass *Find( const NamespaceScopes &namespaceScopes, const std::string &name ) const; 504 const CClass *Find( const std::string &fullName ) const; 505 505 506 506 -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Const.h
r509 r523 75 75 76 76 void Add( const NamespaceScopes &namespaceScopes, char *buffer); 77 void Add( const NamespaceScopes &namespaceScopes, const st ring &name, char *Expression);78 void Add( const NamespaceScopes &namespaceScopes, const st ring &name, int value);77 void Add( const NamespaceScopes &namespaceScopes, const std::string &name, char *Expression); 78 void Add( const NamespaceScopes &namespaceScopes, const std::string &name, int value); 79 79 80 80 private: 81 CConst *GetObjectPtr( const st ring &name );81 CConst *GetObjectPtr( const std::string &name ); 82 82 public: 83 83 … … 107 107 108 108 public: 109 ConstMacro( const NamespaceScopes &namespaceScopes, const std::string &name, const std::vector<std::string> ¶meters, const st ring &expression )109 ConstMacro( const NamespaceScopes &namespaceScopes, const std::string &name, const std::vector<std::string> ¶meters, const std::string &expression ) 110 110 : Symbol( namespaceScopes, name ) 111 111 , parameters( parameters ) -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Member.h
r510 r523 7 7 #include <Program.h> 8 8 9 using namespace std;10 11 9 class CClass; 12 10 13 11 class CMember : public MemberPrototype 14 12 { 15 st ring name;13 std::string name; 16 14 Type type; 17 15 bool isConst; 18 16 Subscripts subscripts; 19 17 20 st ring initializeExpression;21 st ring constructParameter;18 std::string initializeExpression; 19 std::string constructParameter; 22 20 23 21 // XMLシリアライズ用 … … 42 40 int source_code_address; 43 41 44 const st ring &GetName() const42 const std::string &GetName() const 45 43 { 46 44 return name; 47 45 } 48 void SetName( const st ring &name )46 void SetName( const std::string &name ) 49 47 { 50 48 this->name = name; … … 70 68 } 71 69 72 const st ring &GetInitializeExpression() const70 const std::string &GetInitializeExpression() const 73 71 { 74 72 return initializeExpression; 75 73 } 76 const st ring &GetConstructParameter() const74 const std::string &GetConstructParameter() const 77 75 { 78 76 return constructParameter; 79 77 } 80 78 81 CMember( Prototype::Accessibility accessibility, const st ring &name, const Type &newType, bool isConst, const Subscripts &subscripts, const string &initializeExpression, conststring &constructParameter )79 CMember( Prototype::Accessibility accessibility, const std::string &name, const Type &newType, bool isConst, const Subscripts &subscripts, const std::string &initializeExpression, const std::string &constructParameter ) 82 80 : MemberPrototype( accessibility ) 83 81 , name( name ) -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Method.h
r465 r523 1 1 #pragma once 2 3 using namespace std;4 2 5 3 class UserProc; … … 221 219 BOOST_CLASS_EXPORT( StaticMethod ); 222 220 223 class Methods : public vector<CMethod *>221 class Methods : public std::vector<CMethod *> 224 222 { 225 223 // XMLシリアライズ用 … … 256 254 const CMethod *GetMethodPtr( const UserProc *pUserProc ) const; 257 255 bool IsExist( const char *name ) const; 258 virtual void Enum( const char *methodName, vector<const UserProc *> &subs ) const;259 virtual void Enum( BYTE idOperatorCalc, vector<const UserProc *> &subs ) const;256 virtual void Enum( const char *methodName, std::vector<const UserProc *> &subs ) const; 257 virtual void Enum( BYTE idOperatorCalc, std::vector<const UserProc *> &subs ) const; 260 258 261 259 // 仮想メソッドの個数を取得 -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Procedure.h
r518 r523 57 57 58 58 public: 59 Procedure( const NamespaceScopes &namespaceScopes, const st ring &name, Kind kind, bool isCdecl )59 Procedure( const NamespaceScopes &namespaceScopes, const std::string &name, Kind kind, bool isCdecl ) 60 60 : Symbol( namespaceScopes, name ) 61 61 , kind( kind ) … … 114 114 { 115 115 public: 116 st ring _paramStr;116 std::string _paramStr; 117 117 118 118 private: … … 179 179 public: 180 180 181 UserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const st ring &name, Kind kind, bool isMacro, bool isCdecl, bool isExport )181 UserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const std::string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport ) 182 182 : Procedure( namespaceScopes, name, kind, isCdecl ) 183 183 , importedNamespaces( importedNamespaces ) … … 434 434 class DllProc : public Procedure, public Jenga::Common::ObjectInHashmap<DllProc> 435 435 { 436 st ring dllFileName;437 st ring alias;436 std::string dllFileName; 437 std::string alias; 438 438 int lookupAddress; 439 439 … … 452 452 453 453 public: 454 DllProc( const NamespaceScopes &namespaceScopes, const st ring &name, Kind kind, bool isCdecl, const string &dllFileName, conststring &alias )454 DllProc( const NamespaceScopes &namespaceScopes, const std::string &name, Kind kind, bool isCdecl, const std::string &dllFileName, const std::string &alias ) 455 455 : Procedure( namespaceScopes, name, kind, isCdecl ) 456 456 , dllFileName( dllFileName ) … … 481 481 } 482 482 483 const st ring &GetDllFileName() const483 const std::string &GetDllFileName() const 484 484 { 485 485 return dllFileName; 486 486 } 487 const st ring &GetAlias() const487 const std::string &GetAlias() const 488 488 { 489 489 return alias; … … 542 542 }; 543 543 544 class ProcPointers : public vector<ProcPointer *>544 class ProcPointers : public std::vector<ProcPointer *> 545 545 { 546 546 // XMLシリアライズ用 … … 564 564 } 565 565 566 int Add( const st ring &typeExpression );566 int Add( const std::string &typeExpression ); 567 567 void Clear(); 568 568 void PullOutAll() -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Source.h
r520 r523 96 96 } 97 97 98 bool ReadFile( const st ring &filePath );98 bool ReadFile( const std::string &filePath ); 99 99 100 100 static void Text::SlideString(char *buffer, int slide){ … … 109 109 class BasicSource : public Text 110 110 { 111 static const st ring generateDirectiveName;111 static const std::string generateDirectiveName; 112 112 113 113 IncludedFilesRelation includedFilesRelation; … … 186 186 void RemoveComments(); 187 187 188 bool ReadFile_InIncludeDirective( const st ring &filePath );188 bool ReadFile_InIncludeDirective( const std::string &filePath ); 189 189 void DirectiveIncludeOrRequire(); 190 190 … … 229 229 void SetBuffer( const char *buffer ); 230 230 231 bool ReadFile( const st ring &filePath );232 233 bool Generate( const st ring &genName, const char *buffer );231 bool ReadFile( const std::string &filePath ); 232 233 bool Generate( const std::string &genName, const char *buffer ); 234 234 235 235 void Addition( const char *buffer ); -
trunk/ab5.0/abdev/BasicCompiler_Common/include/TypeDef.h
r509 r523 6 6 #include <Type.h> 7 7 8 using namespace std;9 10 8 class TypeDefCollection; 11 9 … … 14 12 friend TypeDefCollection; 15 13 16 st ring baseName;14 std::string baseName; 17 15 Type baseType; 18 16 … … 30 28 31 29 public: 32 TypeDef( const NamespaceScopes &namespaceScopes, const st ring &name, conststring &baseName, int nowLine );30 TypeDef( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine ); 33 31 TypeDef() 34 32 { … … 38 36 } 39 37 40 const st ring &GetBaseName() const38 const std::string &GetBaseName() const 41 39 { 42 40 return baseName; … … 65 63 ~TypeDefCollection(); 66 64 67 void Add( const NamespaceScopes &namespaceScopes, const st ring &name, conststring &baseName, int nowLine );68 int GetIndex( const NamespaceScopes &namespaceScopes, const st ring &name ) const;69 int GetIndex( const st ring &fullName ) const;65 void Add( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine ); 66 int GetIndex( const NamespaceScopes &namespaceScopes, const std::string &name ) const; 67 int GetIndex( const std::string &fullName ) const; 70 68 71 69 private: 72 void Add( const NamespaceScopes &namespaceScopes, const st ring &expression, int nowLine );70 void Add( const NamespaceScopes &namespaceScopes, const std::string &expression, int nowLine ); 73 71 public: 74 72 void CollectTypeDefs(); -
trunk/ab5.0/abdev/BasicCompiler_Common/include/Variable.h
r511 r523 57 57 58 58 public: 59 Variable( const st ring &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData );60 Variable( const NamespaceScopes &namespaceScopes, const st ring &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData );59 Variable( const std::string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ); 60 Variable( const NamespaceScopes &namespaceScopes, const std::string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ); 61 61 Variable( const Variable &var ); 62 62 Variable(); … … 185 185 }; 186 186 187 class Variables : public vector<Variable *>187 class Variables : public std::vector<Variable *> 188 188 { 189 189 protected: -
trunk/ab5.0/abdev/BasicCompiler_Common/include/logger.h
r522 r523 84 84 inline void basic_dbg_streambuf<char>::dbg_out(const char *str) 85 85 { 86 ofstream ofs( ( saveFilePath ).c_str(),ios_base::app );86 std::ofstream ofs( ( saveFilePath ).c_str(), std::ios_base::app ); 87 87 ofs << "[" << (count++) << "] " << str ; 88 88 ofs.close(); … … 100 100 { 101 101 public: 102 basic_dbg_ostream( const st ring &saveFilePath, bool isOptionEnabled )102 basic_dbg_ostream( const std::string &saveFilePath, bool isOptionEnabled ) 103 103 : std::basic_ostream<Ch_T, Tr_T>(new basic_dbg_streambuf<Ch_T, Tr_T>(saveFilePath,isOptionEnabled)) 104 104 { 105 ofstream ofs( ( saveFilePath ).c_str(),ios_base::trunc );105 std::ofstream ofs( ( saveFilePath ).c_str(), std::ios_base::trunc ); 106 106 ofs.close(); 107 107 } -
trunk/ab5.0/abdev/BasicCompiler_Common/include/option.h
r366 r523 37 37 38 38 #ifdef USE_TRACE 39 #define trace(s) Program::logger << s << endl39 #define trace(s) Program::logger << s << std::endl 40 40 #else 41 41 #define trace(s) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/BoostSerializationSupport.cpp
r522 r523 53 53 MessageBox( NULL, msg, "XMLシリアライズの例外", MB_OK ); 54 54 } 55 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( istream& ifs, bool isShowExceptionMessage )55 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( std::istream& ifs, bool isShowExceptionMessage ) 56 56 { 57 57 bool isSuccessful = false; … … 86 86 return true; 87 87 } 88 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( ostream& ofs, bool isShowExceptionMessage ) const88 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( std::ostream& ofs, bool isShowExceptionMessage ) const 89 89 { 90 90 bool isSuccessful = false; … … 119 119 return true; 120 120 } 121 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( const st ring &xmlFilePath, bool isShowExceptionMessage )121 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadXml( const std::string &xmlFilePath, bool isShowExceptionMessage ) 122 122 { 123 123 // 入力アーカイブの作成 … … 131 131 return result; 132 132 } 133 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( const st ring &xmlFilePath, bool isShowExceptionMessage ) const133 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteXml( const std::string &xmlFilePath, bool isShowExceptionMessage ) const 134 134 { 135 135 // 出力アーカイブの作成 … … 201 201 } 202 202 203 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadBinaryFile( const st ring &filePath, bool isShowExceptionMessage )204 { 205 // 入力アーカイブの作成 206 std::ifstream ifs( filePath.c_str(), ios::in |ios::binary );203 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadBinaryFile( const std::string &filePath, bool isShowExceptionMessage ) 204 { 205 // 入力アーカイブの作成 206 std::ifstream ifs( filePath.c_str(), std::ios::in | std::ios::binary ); 207 207 208 208 bool isSuccessful = false; … … 239 239 return true; 240 240 } 241 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteBinaryFile( const st ring &filePath, bool isShowExceptionMessage ) const241 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteBinaryFile( const std::string &filePath, bool isShowExceptionMessage ) const 242 242 { 243 243 // 出力アーカイブの作成 244 std::ofstream ofs( filePath.c_str(), ios::out |ios::binary );244 std::ofstream ofs( filePath.c_str(), std::ios::out | std::ios::binary ); 245 245 246 246 bool isSuccessful = false; … … 283 283 284 284 // 入力アーカイブの作成 285 std::istringstream iss( binaryString, ios::in |ios::binary );285 std::istringstream iss( binaryString, std::ios::in | std::ios::binary ); 286 286 287 287 try{ … … 306 306 { 307 307 // 出力アーカイブの作成 308 std::ostringstream oss( "", ios::out |ios::binary );308 std::ostringstream oss( "", std::ios::out | std::ios::binary ); 309 309 310 310 bool isSuccessful = false; … … 332 332 /* 333 333 ビルドに時間がかかるので外しておく 334 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadText( const st ring &filePath, bool isShowExceptionMessage )334 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::ReadText( const std::string &filePath, bool isShowExceptionMessage ) 335 335 { 336 336 // 入力アーカイブの作成 … … 370 370 return true; 371 371 } 372 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteText( const st ring &filePath, bool isShowExceptionMessage ) const372 template<class T_xml_schema> bool BoostSerializationSupport<T_xml_schema>::WriteText( const std::string &filePath, bool isShowExceptionMessage ) const 373 373 { 374 374 // 出力アーカイブの作成 -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Class.cpp
r513 r523 1099 1099 } 1100 1100 1101 const CClass *Classes::Find( const NamespaceScopes &namespaceScopes, const st ring &name ) const1101 const CClass *Classes::Find( const NamespaceScopes &namespaceScopes, const std::string &name ) const 1102 1102 { 1103 1103 if( namespaceScopes.size() == 0 && name == "Object" ){ … … 1145 1145 return NULL; 1146 1146 } 1147 const CClass *Classes::Find( const st ring &fullName ) const1147 const CClass *Classes::Find( const std::string &fullName ) const 1148 1148 { 1149 1149 char AreaName[VN_SIZE] = ""; //オブジェクト変数 -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Compiler.cpp
r465 r523 15 15 } 16 16 17 bool Compiler::StringToType( const st ring &typeName, Type &type ){17 bool Compiler::StringToType( const std::string &typeName, Type &type ){ 18 18 type.SetIndex( -1 ); 19 19 … … 85 85 } 86 86 87 const st ring &nextTypeName = typeName.substr( 1 );87 const std::string &nextTypeName = typeName.substr( 1 ); 88 88 89 89 if( !StringToType( nextTypeName, type ) ){ … … 166 166 } 167 167 168 const st ring Compiler::TypeToString( const Type &type )168 const std::string Compiler::TypeToString( const Type &type ) 169 169 { 170 170 if( PTR_LEVEL( type.GetBasicType() ) ){ … … 173 173 tempType.PtrLevelDown(); 174 174 175 return (st ring)"*" + TypeToString( tempType );175 return (std::string)"*" + TypeToString( tempType ); 176 176 } 177 177 else if( type.IsObject() || type.IsStruct() ){ … … 202 202 if( lpszTypeName ) 203 203 { 204 return (const st ring)lpszTypeName;204 return (const std::string)lpszTypeName; 205 205 } 206 206 } … … 208 208 compiler.errorMessenger.Output(1, NULL, cp); 209 209 210 return (st ring)"(null)";210 return (std::string)"(null)"; 211 211 } -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Const.cpp
r509 r523 49 49 } 50 50 51 void Consts::Add( const NamespaceScopes &namespaceScopes, const st ring &name , char *Expression)51 void Consts::Add( const NamespaceScopes &namespaceScopes, const std::string &name , char *Expression) 52 52 { 53 53 _int64 i64data; … … 67 67 Put( newconst ); 68 68 } 69 void Consts::Add(const NamespaceScopes &namespaceScopes, const st ring &name, int value){69 void Consts::Add(const NamespaceScopes &namespaceScopes, const std::string &name, int value){ 70 70 CConst *newconst = new CConst( namespaceScopes, name, value); 71 71 … … 74 74 } 75 75 76 CConst *Consts::GetObjectPtr( const st ring &name ){76 CConst *Consts::GetObjectPtr( const std::string &name ){ 77 77 char ObjName[VN_SIZE]; //オブジェクト変数 78 78 char NestMember[VN_SIZE]; //入れ子メンバ -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Delegate.cpp
r477 r523 214 214 values.insert( std::map<std::string,std::string>::value_type( 215 215 "#call_method_begin#", 216 (st ring)"Function Call(" + dg.paramStr + ") As " + dg.returnTypeName216 (std::string)"Function Call(" + dg.paramStr + ") As " + dg.returnTypeName 217 217 ) ); 218 218 … … 228 228 values.insert( std::map<std::string,std::string>::value_type( 229 229 "#call_method_begin#", 230 (st ring)"Sub Call(" + dg.paramStr + ")"230 (std::string)"Sub Call(" + dg.paramStr + ")" 231 231 ) ); 232 232 … … 244 244 } 245 245 /* 246 ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\generated_delegate_code.log" ).c_str() );246 std::ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\generated_delegate_code.log" ).c_str() ); 247 247 ofs << destSource; 248 248 ofs.close(); -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Enum.cpp
r465 r523 170 170 BOOST_FOREACH( const EnumInfo &enumInfo, thisEnumInfoCollection ) 171 171 { 172 BOOST_FOREACH( const st ring &namespaceStr, enumInfo.GetNamespaceScopes() ){172 BOOST_FOREACH( const std::string &namespaceStr, enumInfo.GetNamespaceScopes() ){ 173 173 sprintf(buffer+length,"Namespace %s\n",namespaceStr.c_str()); 174 174 length+=lstrlen(buffer+length); … … 214 214 length+=lstrlen(buffer+length); 215 215 216 BOOST_FOREACH( const st ring &namespaceStr, enumInfo.GetNamespaceScopes() ){216 BOOST_FOREACH( const std::string &namespaceStr, enumInfo.GetNamespaceScopes() ){ 217 217 lstrcpy( buffer+length, "End Namespace\n" ); 218 218 length+=lstrlen(buffer+length); … … 230 230 // ログを生成 231 231 Jenga::Common::Logger logger( Jenga::Common::Environment::GetAppDir() + "\\enum_generated.log", false ); 232 logger << buffer << endl;232 logger << buffer << std::endl; 233 233 #endif 234 234 -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Messenger.cpp
r502 r523 25 25 26 26 // 標準出力 27 std::cout << message << endl;27 std::cout << message << std::endl; 28 28 } 29 29 int Messenger::GetNextErrorLine() -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Method.cpp
r465 r523 103 103 return false; 104 104 } 105 void Methods::Enum( const char *methodName, vector<const UserProc *> &subs ) const105 void Methods::Enum( const char *methodName, std::vector<const UserProc *> &subs ) const 106 106 { 107 107 //オブジェクトのメンバ関数の場合 … … 114 114 } 115 115 } 116 void Methods::Enum( BYTE idOperatorCalc, vector<const UserProc *> &subs ) const116 void Methods::Enum( BYTE idOperatorCalc, std::vector<const UserProc *> &subs ) const 117 117 { 118 118 //オブジェクトのメンバ関数の場合 -
trunk/ab5.0/abdev/BasicCompiler_Common/src/ObjectModule.cpp
r522 r523 48 48 #include <boost/serialization/version.hpp> 49 49 #include <boost/serialization/is_abstract.hpp> 50 #include <boost/serialization/serialization.hpp> 51 #include <boost/serialization/nvp.hpp> 52 #include <boost/serialization/export.hpp> 50 53 51 54 #include <jenga/include/jenga.h> … … 113 116 boost::archive::xml_iarchive ia(ifs); 114 117 #else 115 std::ifstream ifs( filePath.c_str(), ios::in |ios::binary );118 std::ifstream ifs( filePath.c_str(), std::ios::in | std::ios::binary ); 116 119 boost::archive::binary_iarchive ia(ifs); 117 120 #endif … … 146 149 boost::archive::xml_oarchive oa(ofs); 147 150 #else 148 std::ofstream ofs( filePath.c_str(), ios::out |ios::binary );151 std::ofstream ofs( filePath.c_str(), std::ios::out | std::ios::binary ); 149 152 boost::archive::binary_oarchive oa(ofs); 150 153 #endif … … 181 184 boost::archive::xml_iarchive ia(iss); 182 185 #else 183 std::istringstream iss( str, ios::in |ios::binary );186 std::istringstream iss( str, std::ios::in | std::ios::binary ); 184 187 boost::archive::binary_iarchive ia(iss); 185 188 #endif … … 215 218 boost::archive::xml_oarchive oa(oss); 216 219 #else 217 std::ostringstream oss( "", ios::out |ios::binary );220 std::ostringstream oss( "", std::ios::out | std::ios::binary ); 218 221 boost::archive::binary_oarchive oa(oss); 219 222 #endif -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Procedure.cpp
r511 r523 458 458 if( this->pParentClass && isStatic == false ){ 459 459 //オブジェクトメンバの場合は、第一パラメータを_System_LocalThis引き渡し用として利用 460 st ring name = "_System_LocalThis";460 std::string name = "_System_LocalThis"; 461 461 Type type( DEF_PTR_VOID ); 462 462 this->realParams.push_back( new Parameter( name, type ) ); … … 467 467 //※第一パラメータ(Thisポインタありの場合は第二パラメータ)を戻り値用の参照宣言にする 468 468 469 st ring name = this->GetName();469 std::string name = this->GetName(); 470 470 if(name[0]==1&&name[1]==ESC_OPERATOR){ 471 471 name="_System_ReturnValue"; … … 1004 1004 } 1005 1005 1006 int ProcPointers::Add( const st ring &typeExpression )1006 int ProcPointers::Add( const std::string &typeExpression ) 1007 1007 { 1008 1008 DWORD dwProcType = (DWORD)typeExpression[2]; 1009 const st ring ¶mStr = typeExpression.substr( 3 );1009 const std::string ¶mStr = typeExpression.substr( 3 ); 1010 1010 1011 1011 Procedure::Kind kind = Procedure::Sub; -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Source.cpp
r519 r523 1 1 #include "stdafx.h" 2 2 3 const st ring BasicSource::generateDirectiveName = "#generate";3 const std::string BasicSource::generateDirectiveName = "#generate"; 4 4 5 5 6 6 class CDefine{ 7 vector<string> names;7 std::vector<std::string> names; 8 8 public: 9 9 CDefine( int majorVer ); … … 138 138 } 139 139 BOOL CDefine::undef(char *name){ 140 vector<string>::iterator i = names.begin();141 BOOST_FOREACH( const st ring &temp, names ){140 std::vector<std::string>::iterator i = names.begin(); 141 BOOST_FOREACH( const std::string &temp, names ){ 142 142 if( temp == name ){ 143 143 names.erase( i ); … … 152 152 153 153 //重複チェック 154 BOOST_FOREACH( const st ring &temp, names ){154 BOOST_FOREACH( const std::string &temp, names ){ 155 155 if( temp == name ){ 156 156 return 1; … … 390 390 391 391 392 bool Text::ReadFile( const st ring &filePath ){392 bool Text::ReadFile( const std::string &filePath ){ 393 393 //ファイルオープン 394 394 HANDLE hFile=CreateFile(filePath.c_str(),GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); … … 519 519 } 520 520 521 bool BasicSource::ReadFile_InIncludeDirective( const st ring &filePath ){521 bool BasicSource::ReadFile_InIncludeDirective( const std::string &filePath ){ 522 522 if( !Text::ReadFile( filePath ) ){ 523 523 return false; … … 854 854 } 855 855 856 bool BasicSource::ReadFile( const st ring &filePath ){856 bool BasicSource::ReadFile( const std::string &filePath ){ 857 857 if( !Text::ReadFile( filePath ) ){ 858 858 return false; … … 902 902 } 903 903 904 bool BasicSource::Generate( const st ring &genName, const char *genBuffer ){904 bool BasicSource::Generate( const std::string &genName, const char *genBuffer ){ 905 905 const int genBufferLength = lstrlen( genBuffer ); 906 906 -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Type.cpp
r465 r523 2 2 3 3 #include <Class.h> 4 5 using namespace std;6 4 7 5 const int Type::basicTypeList[] = { … … 27 25 }; 28 26 29 const st ring Type::basicTypeNameList[] = {27 const std::string Type::basicTypeNameList[] = { 30 28 "Byte", 31 29 "SByte", … … 53 51 } 54 52 55 bool Type::StringToBasicType( const st ring &typeName, int &basicType ){53 bool Type::StringToBasicType( const std::string &typeName, int &basicType ){ 56 54 for( int i=0; ; i++ ){ 57 55 if( basicTypeList[i] == DEF_NON ){ … … 615 613 616 614 617 const st ring BlittableType::GetCreateStaticMethodFullName() const615 const std::string BlittableType::GetCreateStaticMethodFullName() const 618 616 { 619 617 return pClass->GetNamespaceScopes().ToString() + "." + pClass->GetName() + "._Create"; -
trunk/ab5.0/abdev/BasicCompiler_Common/src/TypeDef.cpp
r507 r523 4 4 #include <Compiler.h> 5 5 6 TypeDef::TypeDef( const NamespaceScopes &namespaceScopes, const st ring &name, conststring &baseName, int nowLine )6 TypeDef::TypeDef( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine ) 7 7 : Symbol( namespaceScopes, name ) 8 8 , baseName( baseName ) … … 14 14 } 15 15 /* 16 bool TypeDef::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const st ring &name ) const16 bool TypeDef::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const std::string &name ) const 17 17 { 18 18 if( GetName() != name ){ … … 21 21 return compiler.GetNamespaceSupporter().IsSameAreaNamespace( this->namespaceScopes, namespaceScopes ); 22 22 } 23 bool TypeDef::IsEqualSymbol( const st ring &fullName ) const23 bool TypeDef::IsEqualSymbol( const std::string &fullName ) const 24 24 { 25 25 char AreaName[VN_SIZE] = ""; //オブジェクト変数 … … 52 52 TypeDefCollection::~TypeDefCollection(){ 53 53 } 54 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const st ring &name, conststring &baseName, int nowLine ){54 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const std::string &name, const std::string &baseName, int nowLine ){ 55 55 TypeDef typeDef( namespaceScopes, name, baseName, nowLine ); 56 56 this->push_back( typeDef ); 57 57 } 58 int TypeDefCollection::GetIndex( const NamespaceScopes &namespaceScopes, const st ring &name ) const{58 int TypeDefCollection::GetIndex( const NamespaceScopes &namespaceScopes, const std::string &name ) const{ 59 59 int max = (int)(*this).size(); 60 60 for( int i=0; i<max; i++ ){ … … 65 65 return -1; 66 66 } 67 int TypeDefCollection::GetIndex( const st ring &fullName ) const{67 int TypeDefCollection::GetIndex( const std::string &fullName ) const{ 68 68 char AreaName[VN_SIZE] = ""; //オブジェクト変数 69 69 char NestName[VN_SIZE] = ""; //入れ子メンバ … … 73 73 } 74 74 75 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const st ring &expression, int nowLine ){75 void TypeDefCollection::Add( const NamespaceScopes &namespaceScopes, const std::string &expression, int nowLine ){ 76 76 int i; 77 77 char temporary[VN_SIZE]; -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Variable.cpp
r511 r523 4 4 #include <Variable.h> 5 5 6 Variable::Variable( const st ring &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData )6 Variable::Variable( const std::string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ) 7 7 : Symbol( ActiveBasic::Compiler::LexicalAnalyzer::FullNameToSymbol( name ) ) 8 8 , type( type ) … … 15 15 { 16 16 } 17 Variable::Variable( const NamespaceScopes &namespaceScopes, const st ring &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData )17 Variable::Variable( const NamespaceScopes &namespaceScopes, const std::string &name, const Type &type, bool isConst, bool isRef, const std::string ¶mStrForConstructor, bool hasInitData ) 18 18 : Symbol( namespaceScopes, name ) 19 19 , type( type ) -
trunk/ab5.0/abdev/ab_common/include/Lexical/Namespace.h
r516 r523 12 12 template<class Archive> void serialize(Archive& ar, const unsigned int version) 13 13 { 14 ar & boost::serialization::make_nvp("vector_string", boost::serialization::base_object< vector<string>>(*this));14 ar & boost::serialization::make_nvp("vector_string", boost::serialization::base_object<std::vector<std::string>>(*this)); 15 15 } 16 16 -
trunk/ab5.0/abdev/abdev/BREGEXP.H
r80 r523 27 27 28 28 typedef struct bregexp { 29 const char *outp; /* result st ring start ptr */30 const char *outendp; /* result st ring end ptr */29 const char *outp; /* result std::string start ptr */ 30 const char *outendp; /* result std::string end ptr */ 31 31 const int splitctr; /* split result counter */ 32 32 const char **splitp; /* split result pointer ptr */ -
trunk/ab5.0/abdev/abdev/Common.h
r492 r523 19 19 #include <string> 20 20 #include <fstream> 21 22 using namespace std;23 21 24 22 #include "nkf_class.h" … … 867 865 BOOL SetRunning(HWND hChild); 868 866 BOOL IsNeedCompile(char *FileName,BOOL bDebug); 869 st ring GetLastErrorString();867 std::string GetLastErrorString(); 870 868 871 869 //DocumentAdvice.cpp -
trunk/ab5.0/abdev/abdev/DocumentAdvice.cpp
r475 r523 65 65 else if(LOWORD(msg)==IDM_ALLSELECT) SetStatusText("Select the entire document"); 66 66 else if(LOWORD(msg)==IDM_FIND) SetStatusText("Search for text in the active document"); 67 else if(LOWORD(msg)==IDM_PERMUTATION) SetStatusText("Replace occurrences of search st ring");67 else if(LOWORD(msg)==IDM_PERMUTATION) SetStatusText("Replace occurrences of search std::string"); 68 68 else if(LOWORD(msg)==IDM_PROJECTVIEW) SetStatusText("Show or hide ProjectView"); 69 69 else if(LOWORD(msg)==IDM_PROJECT_OPTION) SetStatusText("Set project options"); -
trunk/ab5.0/abdev/abdev/SubOperation.cpp
r491 r523 1527 1527 } 1528 1528 1529 st ring GetLastErrorString(){1529 std::string GetLastErrorString(){ 1530 1530 char *lpMsgBuf; 1531 1531 … … 1542 1542 ); 1543 1543 1544 st ring result = lpMsgBuf;1544 std::string result = lpMsgBuf; 1545 1545 1546 1546 LocalFree( lpMsgBuf ); -
trunk/ab5.0/abdev/compiler_x86/CParameter.cpp
r465 r523 6 6 #include "opcode.h" 7 7 8 int ParamImpl::NewTempParameters( const st ring &procName, const Parameters ¶ms, int SecondParmNum ){8 int ParamImpl::NewTempParameters( const std::string &procName, const Parameters ¶ms, int SecondParmNum ){ 9 9 if( SecondParmNum == -1 ) SecondParmNum = (int)params.size(); 10 10 … … 174 174 } 175 175 176 int ParamImpl::SetParameter( const st ring &procName, const Parameters ¶ms, int SecondParmNum, const UserProc *pUserProc ){176 int ParamImpl::SetParameter( const std::string &procName, const Parameters ¶ms, int SecondParmNum, const UserProc *pUserProc ){ 177 177 if( SecondParmNum == -1 ) SecondParmNum = (int)params.size(); 178 178 -
trunk/ab5.0/abdev/compiler_x86/Compile_Calc.cpp
r465 r523 611 611 if( varType.IsObject() && compiler.GetObjectModule().meta.GetBlittableTypes().IsExist( calcType ) ){ 612 612 // Blittable型をオブジェクトとして扱う 613 vector<const UserProc *> userProcs;613 std::vector<const UserProc *> userProcs; 614 614 compiler.GetObjectModule().meta.GetBlittableTypes().GetClass( calcType ).GetStaticMethods().Enum( "_Create", userProcs ); 615 615 if( userProcs.size() != 1 ){ -
trunk/ab5.0/abdev/compiler_x86/Compile_Func.cpp
r484 r523 524 524 } 525 525 } 526 void Opcode_Func_SizeOf( const st ring &typeName ){526 void Opcode_Func_SizeOf( const std::string &typeName ){ 527 527 Type tempType; 528 528 if( !compiler.StringToType( typeName, tempType ) ){ -
trunk/ab5.0/abdev/compiler_x86/MakePeHdr.cpp
r519 r523 349 349 #ifdef _DEBUG 350 350 { 351 ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\middle_code.txt" ).c_str() );352 ofs << basbuf << endl;351 std::ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\middle_code.txt" ).c_str() ); 352 ofs << basbuf << std::endl; 353 353 ofs.close(); 354 354 } -
trunk/ab5.0/abdev/compiler_x86/NumOpe.cpp
r488 r523 255 255 // 動的メソッドを検索 256 256 /////////////////////////////////////////////////////////////////// 257 vector<const UserProc *> userProcs;257 std::vector<const UserProc *> userProcs; 258 258 259 259 char methodName[VN_SIZE], lpPtrOffset[VN_SIZE], parameter[VN_SIZE], dummy[1]; -
trunk/ab5.0/abdev/compiler_x86/Opcode.h
r436 r523 197 197 198 198 void ApplyDefaultParameters( const Parameters ¶ms ); 199 bool ErrorCheck( const st ring &procName, const Parameters ¶ms, int SecondParmNum = -1 );199 bool ErrorCheck( const std::string &procName, const Parameters ¶ms, int SecondParmNum = -1 ); 200 200 void MacroParameterSupport( const Parameters ¶ms ); 201 201 void SetStructParameter( const Type &baseType, const char *expression ); 202 int SetParameter( const st ring &procName, const Parameters ¶ms, int SecondParmNum = -1, const UserProc *pUserProc = NULL );202 int SetParameter( const std::string &procName, const Parameters ¶ms, int SecondParmNum = -1, const UserProc *pUserProc = NULL ); 203 203 204 204 //一時オブジェクトパラメータの生成と破棄 205 int NewTempParameters( const st ring &procName, const Parameters ¶ms, int SecondParmNum = -1 );205 int NewTempParameters( const std::string &procName, const Parameters ¶ms, int SecondParmNum = -1 ); 206 206 void DeleteTempParameters(); 207 207 }; -
trunk/ab5.0/jenga/include/common/BoostSerializationSupport.h
r520 r523 1 1 #pragma once 2 3 #include <vector>4 #include <string>5 #include <fstream>6 #include <sstream>7 8 #include <boost/serialization/serialization.hpp>9 #include <boost/serialization/nvp.hpp>10 #include <boost/serialization/export.hpp>11 2 12 3 namespace Jenga{ 13 4 namespace Common{ 14 15 using namespace std;16 5 17 6 template<class T_xml_schema> class BoostSerializationSupport{ … … 21 10 22 11 public: 23 bool ReadXml( istream& ifs, bool isShowExceptionMessage = true );24 bool WriteXml( ostream& ofs, bool isShowExceptionMessage = true ) const;12 bool ReadXml( std::istream& ifs, bool isShowExceptionMessage = true ); 13 bool WriteXml( std::ostream& ofs, bool isShowExceptionMessage = true ) const; 25 14 bool ReadXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true ); 26 15 bool WriteXml( const std::string &xmlFilePath, bool isShowExceptionMessage = true ) const; -
trunk/ab5.0/jenga/include/common/Directory.h
r295 r523 1 1 #pragma once 2 #pragma warning(disable : 4996)3 4 #include <vector>5 #include <string>6 7 #include <stdlib.h>8 9 #include <windows.h>10 11 2 12 3 namespace Jenga{ 13 4 namespace Common{ 14 5 15 using namespace std;16 17 6 class Directory 18 7 { 19 st ring path;8 std::string path; 20 9 public: 21 Directory( const st ring &path, bool isMake = false );10 Directory( const std::string &path, bool isMake = false ); 22 11 23 string GetFullPath( const string &relationPath ); 24 25 string GetRelationalPath( const string &fullPath ) 26 { 27 } 12 std::string GetFullPath( const std::string &relationPath ); 28 13 }; 29 14 -
trunk/ab5.0/jenga/src/common/Directory.cpp
r518 r523 1 1 #include "stdafx.h" 2 2 3 using namespace std;4 3 using namespace Jenga::Common; 5 4 6 Directory::Directory( const st ring &path, bool isMake )5 Directory::Directory( const std::string &path, bool isMake ) 7 6 : path( path ) 8 7 { … … 16 15 } 17 16 18 st ring Directory::GetFullPath( conststring &relationPath )17 std::string Directory::GetFullPath( const std::string &relationPath ) 19 18 { 20 st ring resultPath = relationPath;19 std::string resultPath = relationPath; 21 20 22 21 // '/'→'\' … … 29 28 } 30 29 31 if( resultPath.find( ":" ) != st ring::npos || resultPath.find( "\\\\" ) !=string::npos )30 if( resultPath.find( ":" ) != std::string::npos || resultPath.find( "\\\\" ) != std::string::npos ) 32 31 { 33 32 // フルパスが引き渡されていたとき
Note:
See TracChangeset
for help on using the changeset viewer.