File indexing completed on 2025-02-16 13:01:46
0001 /* 0002 SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef KCONTACTS_ADDRESSFORMATSCRIPT_P_H 0007 #define KCONTACTS_ADDRESSFORMATSCRIPT_P_H 0008 0009 #include "addressformat.h" 0010 0011 namespace KContacts 0012 { 0013 0014 /** 0015 * Classify the script used in an address. 0016 * This is used for two things: 0017 * - determining the line style separator 0018 * - decide whether to use local or latin script format alternatives when available 0019 * 0020 * @see address_formatter.cc in libaddressinput 0021 * @internal 0022 */ 0023 namespace AddressFormatScript 0024 { 0025 enum ScriptType { 0026 LatinLikeScript, 0027 ArabicLikeScript, 0028 HanLikeScript, 0029 HangulLikeScript, 0030 }; 0031 0032 ScriptType detect(const QString &s); 0033 ScriptType detect(const Address &addr); 0034 } 0035 } 0036 0037 #endif // KCONTACTS_ADDRESSFORMATSCRIPT_P_H