--- parser3/src/main/pa_string.C 2001/03/19 15:29:40 1.44 +++ parser3/src/main/pa_string.C 2001/03/19 17:42:16 1.46 @@ -1,9 +1,11 @@ -/* - Parser +/** @file + Parser: string class. @see untaint.C. + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_string.C,v 1.44 2001/03/19 15:29:40 paf Exp $ + $Id: pa_string.C,v 1.46 2001/03/19 17:42:16 paf Exp $ */ #include @@ -332,3 +334,14 @@ bool String::operator == (const char* b_ } return a_break==b_break; } + +#ifndef NO_STRING_ORIGIN +const Origin& String::origin() const { + if(!fused_rows) + THROW(0, 0, + 0, + "String::origin() of empty string called"); + + return head.rows[0].item.origin; +} +#endif