This facilitates appendage of the string value with data from a stream
| Return Type | Function name | Arguments |
|---|---|---|
| istream& | operator>> | (istream&,hzString&,) |
Declared and defined in file: hzString.cpp
Function Logic:
Function body:
istream& operator>> (istream& is)hzString& str,
{
// Category: Data Input
//
// This facilitates appendage of the string value with data from a stream
//
// Arguments: 1) is Input stream
// 2) obj String to be populated by the read operation
//
// Returns: Reference to this string instance
_hzfunc("hzString::operator>>") ;
std::string s ; // STL string
std::getline(is, s) ;
if (!s.length())
std::getline(is, s) ;
str = s.c_str() ;
return is ;
}