lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master a16705a 4/9: Add a tab-is-not-ws facet


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a16705a 4/9: Add a tab-is-not-ws facet
Date: Wed, 15 Feb 2017 20:26:59 -0500 (EST)

branch: master
commit a16705a3a5af3183f9b152c3b1ccade61aaf1ded
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Add a tab-is-not-ws facet
---
 facets.cpp | 7 ++++++-
 facets.hpp | 1 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/facets.cpp b/facets.cpp
index a72bb47..856aa73 100644
--- a/facets.cpp
+++ b/facets.cpp
@@ -93,10 +93,15 @@ namespace
     }
 } // Unnamed namespace.
 
-// Convenience interface.
+// Convenience interfaces.
 
 std::locale const& blank_is_not_whitespace_locale()
 {
     return locale_with_facet<C_is_not_whitespace_ctype<' '>>();
 }
 
+std::locale const& tab_is_not_whitespace_locale()
+{
+    return locale_with_facet<C_is_not_whitespace_ctype<'\t'>>();
+}
+
diff --git a/facets.hpp b/facets.hpp
index 29d90a9..ccd26e0 100644
--- a/facets.hpp
+++ b/facets.hpp
@@ -29,6 +29,7 @@
 #include <locale>
 
 std::locale const& LMI_SO blank_is_not_whitespace_locale();
+std::locale const& LMI_SO   tab_is_not_whitespace_locale();
 
 #endif // facets_hpp
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]