Ignore:
Timestamp:
2011-06-03T09:19:39+12:00 (13 years ago)
Author:
sjm84
Message:

Added a trim function to text_t that removes leading and trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/src/lib/text_t.h

    r22141 r24110  
    289289bool ends_with(const text_t& text, const text_t& suffix);
    290290
     291// trims whitespace of the front and end of the string
     292text_t trim(const text_t& text);
     293
    291294// conversion classes used for getting information in to and out of
    292295// the text_t class.
Note: See TracChangeset for help on using the changeset viewer.