2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
12 // This one is heavily based on the substring class in The C++
13 // Programming Language by Bjarne Stroustrup
30 typedef string::size_type size_type;
32 LSubstring(string & s, size_type i, size_type n);
34 LSubstring(string & s, string const & s2);
36 LSubstring(string & s, string::value_type const * p);
38 LSubstring(string & s, LRegex const & r);
40 LSubstring & operator=(string const &);
42 LSubstring & operator=(LSubstring const &);
44 LSubstring & operator=(string::value_type const *);
46 LSubstring & operator=(string::value_type);
48 operator string() const;