Changeset 62:1c2de600a8dd in rrlib_util


Ignore:
Timestamp:
07.09.2012 21:39:26 (7 years ago)
Author:
Jens Wettach <wettach@…>
Branch:
default
Phase:
public
Message:

function name clarification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sStringUtils.h

    r50 r62  
    7979    Stream manipulator implementation for reading a string from actual position within the stream up to the end of line. 
    8080*/ 
    81 inline std::istream& my_endl(std::istream& fin, std::string& str) 
     81inline std::istream& get_line(std::istream& fin, std::string& str) 
    8282{ 
    8383  std::ostringstream ss; 
     
    227227  /*! 
    228228   * Stream manipulator implementation for reading a string from actual position within the stream up to the end of line. 
    229    * Uses function <my_endl>, but provides normal stream manipulator interface. 
    230    * 
    231    * Example: input_stream >> sStringUtils::endl( word ); 
    232    * 
    233    */ 
    234   static imanip endl(std::string& str) 
    235   { 
    236     return imanip(my_endl, str); 
     229   * Uses function <get_line>, but provides normal stream manipulator interface. 
     230   * 
     231   * Example: input_stream >> sStringUtils::getline( word ); 
     232   * 
     233   */ 
     234  static imanip getline(std::string& str) 
     235  { 
     236    return imanip(get_line, str); 
    237237  } 
    238238 
Note: See TracChangeset for help on using the changeset viewer.