General purpose string class.
More...
#include <JHead.hh>
General purpose string class.
Definition at line 152 of file JHead.hh.
◆ String()
JAANET::String::String |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 156 of file JHead.hh.
std::string buffer
General purpose name.
◆ match()
bool JAANET::String::match |
( |
const String & |
object | ) |
const |
|
inline |
Test match.
- Parameters
-
- Returns
- true if matches; else false
Definition at line 166 of file JHead.hh.
168 return !(*this).less(
object) && !(object).
less(*
this);
bool less(const String &object) const
Comparison.
◆ less()
bool JAANET::String::less |
( |
const String & |
object | ) |
const |
|
inline |
Comparison.
- Parameters
-
- Returns
- true if this string less than given string; else false
Definition at line 177 of file JHead.hh.
181 istringstream i0(
this ->
buffer);
182 istringstream i1(
object.
buffer);
187 copy(istream_iterator<string>(i0), istream_iterator<string>(), back_inserter(v0));
188 copy(istream_iterator<string>(i1), istream_iterator<string>(), back_inserter(v1));
void copy(const Head &from, JHead &to)
Copy header from from to to.
◆ ClassDefNV()
JAANET::String::ClassDefNV |
( |
String |
, |
|
|
1 |
|
|
) |
| |
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
String & |
object |
|
) |
| |
|
friend |
Read string from input stream.
- Parameters
-
in | input stream |
object | string |
- Returns
- input stream
Definition at line 200 of file JHead.hh.
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const String & |
object |
|
) |
| |
|
friend |
Write string to output stream.
- Parameters
-
out | output stream |
object | string |
- Returns
- output stream
Definition at line 212 of file JHead.hh.
214 return out <<
object.buffer;
◆ buffer
std::string JAANET::String::buffer |
General purpose name.
Definition at line 217 of file JHead.hh.
The documentation for this struct was generated from the following file: