--- parser3/src/main/pa_common.C 2001/03/23 13:08:10 1.22 +++ parser3/src/main/pa_common.C 2001/03/24 09:24:44 1.24 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_common.C,v 1.22 2001/03/23 13:08:10 paf Exp $ + $Id: pa_common.C,v 1.24 2001/03/24 09:24:44 paf Exp $ */ #include "pa_config_includes.h" @@ -126,9 +126,9 @@ char *getrow(char **row_ref, char delim) return result; } -char *lsplit(char *string_ref, char delim) { - if(string_ref) { - char *v=strchr(string_ref, delim); +char *lsplit(char *string, char delim) { + if(string) { + char *v=strchr(string, delim); if(v) { *v=0; return v+1; @@ -250,4 +250,13 @@ const String& attributed_meaning_to_stri 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