summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/FStream.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-04 15:19:33 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-04 15:19:33 (GMT)
commit7db95df39d8c191f3de92f4d60a0e4106700dda5 (patch)
tree2ad8cf29089fb986eb82a397e4ed87642a06c835 /Source/kwsys/FStream.hxx.in
parent74b982ce734dd55a4155ba8ba0462fef894d6ec0 (diff)
parentf096786d5428505f8313f6b01f4631f5a34b27a2 (diff)
downloadCMake-7db95df39d8c191f3de92f4d60a0e4106700dda5.zip
CMake-7db95df39d8c191f3de92f4d60a0e4106700dda5.tar.gz
CMake-7db95df39d8c191f3de92f4d60a0e4106700dda5.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/FStream.hxx.in')
-rw-r--r--Source/kwsys/FStream.hxx.in21
1 files changed, 18 insertions, 3 deletions
diff --git a/Source/kwsys/FStream.hxx.in b/Source/kwsys/FStream.hxx.in
index 916a93e..45425ff 100644
--- a/Source/kwsys/FStream.hxx.in
+++ b/Source/kwsys/FStream.hxx.in
@@ -161,13 +161,28 @@ class basic_ofstream : public std::basic_ostream<CharType,Traits>
typedef basic_ofstream<char> ofstream;
#else
- using @KWSYS_NAMESPACE@_ios_namespace::basic_filebuf;
using @KWSYS_NAMESPACE@_ios_namespace::ofstream;
using @KWSYS_NAMESPACE@_ios_namespace::ifstream;
#endif
+ namespace FStream
+ {
+ enum BOM
+ {
+ BOM_None,
+ BOM_UTF8,
+ BOM_UTF16BE,
+ BOM_UTF16LE,
+ BOM_UTF32BE,
+ BOM_UTF32LE
+ };
+
+ // Read a BOM, if one exists.
+ // If a BOM exists, the stream is advanced to after the BOM.
+ // This function requires a seekable stream (but not a relative
+ // seekable stream).
+ BOM ReadBOM(std::istream& in);
+ }
}
-
-
#endif