1 | //===--- ConvertEBCDIC.h - UTF8/EBCDIC CharSet Conversion -------*- C++ -*-===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | /// |
9 | /// \file |
10 | /// This file provides utility functions for converting between EBCDIC-1047 and |
11 | /// UTF-8. |
12 | /// |
13 | /// |
14 | //===----------------------------------------------------------------------===// |
15 | |
16 | #include "llvm/ADT/SmallVector.h" |
17 | #include "llvm/ADT/StringRef.h" |
18 | #include <system_error> |
19 | |
20 | namespace llvm { |
21 | namespace ConverterEBCDIC { |
22 | std::error_code convertToEBCDIC(StringRef Source, |
23 | SmallVectorImpl<char> &Result); |
24 | |
25 | void convertToUTF8(StringRef Source, SmallVectorImpl<char> &Result); |
26 | |
27 | } // namespace ConverterEBCDIC |
28 | } // namespace llvm |
29 | |