diff options
author | KWSys Robot <kwrobot@kitware.com> | 2014-03-03 13:32:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-04 15:19:28 (GMT) |
commit | f096786d5428505f8313f6b01f4631f5a34b27a2 (patch) | |
tree | 08bf378742ee9bde2006ba48d0e0ab5369ca0741 /FStream.hxx.in | |
parent | 4709c7ad4eb4d11d653f552b9ac1f39af5cc1014 (diff) | |
download | CMake-f096786d5428505f8313f6b01f4631f5a34b27a2.zip CMake-f096786d5428505f8313f6b01f4631f5a34b27a2.tar.gz CMake-f096786d5428505f8313f6b01f4631f5a34b27a2.tar.bz2 |
KWSys 2014-03-03 (b1916e0a)
Extract upstream KWSys using the following shell commands.
$ git archive --prefix=upstream-kwsys/ b1916e0a | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' 606d7d6f..b1916e0a
Adrien Destugues (1):
b1916e0a SystemInformation: Update CPU count code for Haiku
Clinton Stimpson (3):
0d8ef429 Encoding: Help enforce the use of wide apis on Windows.
cfbc1cc8 FStream: Remove unused basic_filebuf declaration.
b3b20cc0 FStream: Add ability to detect BOM.
Jiri Malak (1):
e66d99b8 SystemTools: Fix compilation with Open Watcom
Matt McCormick (1):
b3db597b SystemInformation: Mark EXECINFO_LIB as advanced
Change-Id: I154a92be7a3ec4c7c12bffbfcd7b50ec7de53c5f
Diffstat (limited to 'FStream.hxx.in')
-rw-r--r-- | FStream.hxx.in | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/FStream.hxx.in b/FStream.hxx.in index 916a93e..45425ff 100644 --- a/FStream.hxx.in +++ b/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 |