[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] [lmi-commits] Make string begins_with(), ends_with() functions
From: |
Vadim Zeitlin |
Subject: |
Re: [lmi] [lmi-commits] Make string begins_with(), ends_with() functions generally available |
Date: |
Tue, 31 May 2016 23:22:15 +0200 |
On Tue, 31 May 2016 21:06:22 +0000 (UTC) Greg Chicares <address@hidden> wrote:
GC> branch: master
GC> commit cf7ed5f9bbe62c3482668346b080472552ab0de6
GC> Author: Gregory W. Chicares <address@hidden>
GC> Date: Tue May 31 14:57:54 2016 +0000
GC>
GC> Make string begins_with(), ends_with() functions generally available
...
GC> diff --git a/miscellany.hpp b/miscellany.hpp
GC> index 3f49763..627373e 100644
GC> --- a/miscellany.hpp
GC> +++ b/miscellany.hpp
GC> @@ -96,6 +96,14 @@ std::vector<std::string> LMI_SO
split_into_lines(std::string const&);
GC>
GC> std::string htmlize(std::string const&);
GC>
GC> +/// Ascertain whether string begins with prefix.
GC> +
GC> +bool LMI_SO begins_with(std::string const& s, std::string const& prefix);
GC> +
GC> +/// Ascertain whether string begins ends with suffix.
GC> +
GC> +bool LMI_SO ends_with(std::string const& s, std::string const& suffix);
Minor, but there is an extra "begins " in the comment above.
Regards,
VZ
- Re: [lmi] [lmi-commits] Make string begins_with(), ends_with() functions generally available,
Vadim Zeitlin <=