cdlcompilertoolkit/src/CdlTkInstance.cpp
changeset 1 b700e12870ca
parent 0 f58d6ec98e88
equal deleted inserted replaced
0:f58d6ec98e88 1:b700e12870ca
   223 
   223 
   224 const string KDllInstanceName = "KDllInst_$INST";
   224 const string KDllInstanceName = "KDllInst_$INST";
   225 
   225 
   226 std::string CCdlTkInstance::InstanceNameToDllInstanceName(const std::string& aName)
   226 std::string CCdlTkInstance::InstanceNameToDllInstanceName(const std::string& aName)
   227 	{
   227 	{
   228 	return CdlTkUtil::Replace("$INST", CdlTkUtil::ToCpp(aName), KDllInstanceName);
   228 	string tempName = aName;
       
   229 	tempName = CdlTkUtil::Replace("\r", "", tempName);
       
   230 	tempName = CdlTkUtil::Replace("\n", "", tempName);
       
   231 	return CdlTkUtil::Replace("$INST", CdlTkUtil::ToCpp(tempName), KDllInstanceName);
   229 	}
   232 	}
   230 
   233 
   231 
   234 
   232 const CCdlTkInterface& CCdlTkInstance::Interface() const
   235 const CCdlTkInterface& CCdlTkInstance::Interface() const
   233 	{
   236 	{