+ char begChar = theString.Value( beg );
+ if ( begChar == '"' || begChar == '\'' ) {
+ // end is at the corresponding quoting mark
+ while ( end < theString.Length() &&
+ ( theString.Value( end ) != begChar || theString.Value( end-1 ) == '\\'))
+ ++end;
+ }
+ else {
+ while ( end <= theString.Length() && isWord( theString.Value( end ), dotIsWord))
+ ++end;
+ --end;
+ }