aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/utility.hxx')
-rw-r--r--bdep/utility.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/bdep/utility.hxx b/bdep/utility.hxx
index 3de1c32..7f464ad 100644
--- a/bdep/utility.hxx
+++ b/bdep/utility.hxx
@@ -303,6 +303,15 @@ namespace bdep
scan_arguments (r, s);
return r;
}
+
+ // Verify that a string is a valid UTF-8 byte sequence encoding only the
+ // graphic Unicode codepoints. Issue diagnostics (including a suggestion to
+ // use option opt, if specified) and fail if that's not the case.
+ //
+ void
+ validate_utf8_graphic (const string&,
+ const char* what,
+ const char* opt = nullptr);
}
#include <bdep/utility.txx>