File indexing completed on 2024-05-05 04:51:45
0001 /* 0002 SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef _K3B_ENCODING_CONVERTER_H_ 0007 #define _K3B_ENCODING_CONVERTER_H_ 0008 0009 #include <QByteArray> 0010 0011 namespace K3b { 0012 0013 class EncodingConverter 0014 { 0015 public: 0016 EncodingConverter(); 0017 ~EncodingConverter(); 0018 0019 /** 0020 * Check if a string is encoded using the local codeset 0021 * 0022 * \return True if the string is encoded in the local encoding. 0023 */ 0024 bool encodedLocally( const QByteArray& s ); 0025 0026 private: 0027 class Private; 0028 Private* d; 0029 }; 0030 0031 } 0032 0033 #endif