aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/LocaleWindows.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/LocaleWindows.inc')
-rw-r--r--lib/Support/LocaleWindows.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Support/LocaleWindows.inc b/lib/Support/LocaleWindows.inc
new file mode 100644
index 0000000000..6827ac15a1
--- /dev/null
+++ b/lib/Support/LocaleWindows.inc
@@ -0,0 +1,15 @@
+namespace llvm {
+namespace sys {
+namespace locale {
+
+int columnWidth(StringRef s) {
+ return s.size();
+}
+
+bool isPrint(int c) {
+ return ' ' <= c && c <= '~';
+}
+
+}
+}
+} \ No newline at end of file