Avoid potential negative array index access to cached text.
[LibreOffice.git] / writerfilter / source / rtftok / rtfcharsets.hxx
blob826dea271f6bc40c81a246d7b0fe4d0d294cfb7d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 namespace writerfilter::rtftok
14 /// RTF legacy charsets
15 struct RTFEncoding
17 int charset;
18 int codepage;
20 extern RTFEncoding const aRTFEncodings[];
21 extern int nRTFEncodings;
23 /// Font name can contain special suffixes used
24 /// to determine encoding for given font table entry
25 /// For example "Arial CE" is "Arial" with CP1250 encoding
26 /// List of these suffixes is not official and detected in a empirical
27 /// way thus may be inexact and incomplete.
28 struct RTFFontNameSuffix
30 const char* suffix;
31 int codepage;
33 extern RTFFontNameSuffix const aRTFFontNameSuffixes[];
35 } // namespace writerfilter::rtftok
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */