--- parser3/src/main/pa_common.C 2001/03/24 08:54:03 1.23 +++ parser3/src/main/pa_common.C 2001/03/24 11:33:26 1.26 @@ -1,3 +1,4 @@ + /** @file Parser: commonly functions. @@ -5,7 +6,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_common.C,v 1.23 2001/03/24 08:54:03 paf Exp $ + $Id: pa_common.C,v 1.26 2001/03/24 11:33:26 paf Exp $ */ #include "pa_config_includes.h" @@ -245,9 +246,18 @@ const String& attributed_meaning_to_stri if(Value *value=static_cast(hash->get(*value_name))) result.append(value->as_string(), String::UL_HEADER, true); - hash->foreach(append_attribute_subattribute, &result); + hash->for_each(append_attribute_subattribute, &result); } else // result value result.append(meaning.as_string(), String::UL_HEADER, true); return result; -} \ No newline at end of file +} + +#ifdef WIN32 +void back_slashes_to_slashes(char *s) { + if(s) + for(; *s; s++) + if(*s=='\\') + *s='/'; +} +#endif