if( parser.Parse( property ) )
{
const TreeNode* const node = parser.GetRoot();
-
- CreatePropertyMap( node, map );
- }
-}
-
-void StringOffsetToVector2( const std::string& offsetStr,
- Vector2& offset )
-{
- offset = Vector2::ZERO;
-
- unsigned int wsIndex = 0u;
- for( std::string::const_iterator it = offsetStr.begin(),
- endIt = offsetStr.end();
- it != endIt;
- ++it, ++wsIndex )
- {
- if( *it == ' ' )
+ if( node )
{
- break;
+ CreatePropertyMap( node, map );
}
}
-
- offset[0] = StringToFloat( offsetStr.c_str() );
- offset[1] = StringToFloat( offsetStr.c_str() + wsIndex );
}
} //namespace Text