typedef std::map<const char*, EntityClass*, RawStringLess> BaseClasses;
BaseClasses g_EntityClassFGD_bases;
EntityClass *g_EntityClassFGD_bad = 0;
-typedef std::map<CopiedString, ListAttributeType> ListAttributeTypes;
+typedef std::map<std::string, ListAttributeType> ListAttributeTypes;
ListAttributeTypes g_listTypesFGD;
}
#define PARSE_ERROR "error parsing entity class definition"
-void EntityClassFGD_parseSplitString( Tokeniser& tokeniser, CopiedString& string ){
+void EntityClassFGD_parseSplitString( Tokeniser& tokeniser, std::string& string ){
StringOutputStream buffer( 256 );
for (;; )
{
for (;; )
{
- CopiedString key = tokeniser.getToken();
+ std::string key = tokeniser.getToken();
if ( string_equal( key.c_str(), "]" ) ) {
tokeniser.nextLine();
break;
ASSERT_MESSAGE( EntityClassFGD_parseToken( tokeniser, ")" ), PARSE_ERROR );
const char* descriptionSeparator = tokeniser.getToken();
if ( string_equal( descriptionSeparator, ":" ) ) {
- CopiedString description;
+ std::string description;
EntityClassFGD_parseSplitString( tokeniser, description );
}
else
}
ASSERT_MESSAGE( EntityClassFGD_parseToken( tokeniser, "(" ), PARSE_ERROR );
- CopiedString type = tokeniser.getToken();
+ std::string type = tokeniser.getToken();
ASSERT_MESSAGE( EntityClassFGD_parseToken( tokeniser, ")" ), PARSE_ERROR );
if ( string_equal_nocase( type.c_str(), "flags" ) ) {
}
else
{
- CopiedString tmp( value );
+ std::string tmp( value );
ASSERT_MESSAGE( EntityClassFGD_parseToken( tokeniser, ":" ), PARSE_ERROR );
const char* name = tokeniser.getToken();
listType.push_back( name, tmp.c_str() );