[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
- [lmi-commits] [lmi] master updated (0cfdd92 -> 59797a5), Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master a352f9e 2/9: Restore original facet get_table() implementation, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master da6c8c9 5/9: Do not treat tab as whitespace in UponPasteCensus(), Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master a16705a 4/9: Add a tab-is-not-ws facet,
Greg Chicares <=
- [lmi-commits] [lmi] master 9a78453 7/9: Fix defect introduced 20160517T2303: tests not updated, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 1f9c757 8/9: Make certain unit tests more general, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 4d92a38 6/9: Allow empty strings to be pasted into a census, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master fc4057e 3/9: Genericize, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 59797a5 9/9: Make unit tests pastable into GUI, Greg Chicares, 2017/02/15
- [lmi-commits] [lmi] master 45a1834 1/9: Remove a dead usenet reference, Greg Chicares, 2017/02/15