$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Mark Wyszomierski (markww_at_[hidden])
Date: 2007-09-15 10:50:20
Hi,
Is it possible using the trim() family of functions to remove not just
white space, but some substring from the right of a string? For
example, if I want to remove commas from the right:
  string str = "whatever,";
  TrimRight(str, ",");
  // str == "whatever" now.
or a full string to trim:
    string str = "hello world";
    TrimRight(str, "world");
    // str == "hello ";
I could write these simple functions myself but am wondering if boost
can do that already,
Thanks,
Mark