/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_SAL_TEXTENC_CONVERTBIG5HKSCS_HXX #define INCLUDED_SAL_TEXTENC_CONVERTBIG5HKSCS_HXX #include "sal/types.h" #include "tenchelp.hxx" struct ImplBig5HkscsConverterData { sal_uInt16 const * m_pBig5Hkscs2001ToUnicodeData; sal_Int32 const * m_pBig5Hkscs2001ToUnicodeRowOffsets; ImplDBCSToUniLeadTab const * m_pBig5ToUnicodeData; sal_uInt16 const * m_pUnicodeToBig5Hkscs2001Data; sal_Int32 const * m_pUnicodeToBig5Hkscs2001PageOffsets; sal_Int32 const * m_pUnicodeToBig5Hkscs2001PlaneOffsets; ImplUniToDBCSHighTab const * m_pUnicodeToBig5Data; ImplDBCSEUDCData const * m_pEudcData; int m_nEudcCount; }; void * ImplCreateBig5HkscsToUnicodeContext(); void ImplResetBig5HkscsToUnicodeContext(void * pContext); void ImplDestroyBig5HkscsToUnicodeContext(void * pContext); sal_Size ImplConvertBig5HkscsToUnicode(void const * pData, void * pContext, char const * pSrcBuf, sal_Size nSrcBytes, sal_Unicode * pDestBuf, sal_Size nDestChars, sal_uInt32 nFlags, sal_uInt32 * pInfo, sal_Size * pSrcCvtBytes); sal_Size ImplConvertUnicodeToBig5Hkscs(void const * pData, void * pContext, sal_Unicode const * pSrcBuf, sal_Size nSrcChars, char * pDestBuf, sal_Size nDestBytes, sal_uInt32 nFlags, sal_uInt32 * pInfo, sal_Size * pSrcCvtChars); #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ o-24.04.3'>distro/collabora/co-24.04.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/unoxml/qa
AgeCommit message (Collapse)Author
2024-11-10com::sun::star -> cssMike Kaganski
Change-Id: I890ec73e30d3cc6b210903ecee29431f3cb5f635 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175979 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-29UnoApiTest: rename load to loadFromURL and use it everywhereXisco Fauli
Change-Id: Ie67eebec74f783fa0c29acfb23bb83bc582812b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175724 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
2024-10-23unoxml: port testXText from java to c++Xisco Fauli
Change-Id: I548bfde6a78832dbb53f3b154ae79223fdc69454 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175510 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-15unoxml: port testXProcessingInstruction from java to c++Xisco Fauli
Change-Id: I2112ac35f046ea0a9c3892c53e4c14a2c1b9e258 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174972 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
2024-10-08unoxml: port testXNamedNodeMap_AttributesMap from java to c++Xisco Fauli
Change-Id: I1a37c7a63622d38cd8d9148589ba999901453611 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174612 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-04unoxml: port testXNodeList_ChildList from java to c++Xisco Fauli
Change-Id: I75d4d9bb275ac1d50fe92f6bd193037f81e3ac64 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174478 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
2024-10-02unoxml: port testXXPathAPI from java to c++Xisco Fauli
Change-Id: Iaeb6713edc8d8b54066eaa5b8de2f600b1c10296 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174395 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-02unoxml: port testXXPathObject from java to c++Xisco Fauli
Code for "count(//foo) = 2" was duplicated Same for "//foo" which is already tested in testXNodeList_NodeList Change-Id: I2144552f5b687e639fef66b82463aae3bf82f53c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174394 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-02unoxml: port testXNodeList_NodeList from java to c++Xisco Fauli
Change-Id: I1a059ecb13e35518828b395f9eb9863930a3d12e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174392 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
2024-10-02CppunitTest_unoxml_domtest: merge BasicTest and serializerTestXisco Fauli
And convert it into a class Change-Id: Ie2090ab3426ebc15ccccad8bbbc91d777d376c9d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174383 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-21sfx2: move rdf java test to CppUnittestXisco Fauli
Change-Id: Id66b752fdcf23546416b3b7f99e2f61756c3a76d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173664 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
2024-09-19unoxml: move these two tests where they belongXisco Fauli
so they can make use of CPPUNIT_ASSERT_STATEMENT_EQUAL They were moved ported from Java to CppUnittest in commit e42be49887e75c6ec748b6c48bb4e5eda295c715 Author: Xisco Fauli <xiscofauli@libreoffice.org> Date: Wed Jul 3 10:09:54 2024 +0200 tdf#123293: port test from Java to CppUnitTest and commit d6ad09ca884fb7f35e2e24d532d85f6d818a7f1b Author: Xisco Fauli <xiscofauli@libreoffice.org> Date: Tue Jul 2 18:00:26 2024 +0200 sfx2: port checkRDFa from Java to CppUnittest Change-Id: I7b91bde6d968081a5b1c0bbee42208590e062ea8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173622 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-18unoxml: move testXDocumentBuilder from Java to CppUnittestXisco Fauli
Change-Id: I15996b72745dd9d3f00e917cc6b459094ec51f30 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173569 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-18unoxml: move checkRDF from Java to CppUnittestXisco Fauli
Change-Id: If4e3120643c40f52b99bb71782c4c34a34871031 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173567 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-18unoxml: introduce CPPUNIT_ASSERT_STATEMENT_EQUALXisco Fauli
Change-Id: I4e28939452e164bf368df5f222d535b29d7951bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173557 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-17unoxml: move checkSPARQL from Java to CppUnittestXisco Fauli
Change-Id: Id8adaec00b9920966c91471fdd32720337a8c414 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173462 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-17unoxml: move checkRDFa from Java to CppUnittestXisco Fauli
Change-Id: Ife5cd7398bdbacbd8189c8451dab6351590052e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173484 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-12Optimize TokenMap and AttributeList in oox and xoMike Kaganski
Shaves lots of string allocations, and uses optimized code paths Change-Id: I8e33e2aecdc7e0d2f2c31b774daa36304b3973ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173179 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-03unoxml: port checkCVE_2012_0037 from java to CppUnittestXisco Fauli
so CI will be able to catch the problem reported in https://gerrit.libreoffice.org/c/core/+/169327 Change-Id: Id00e5f50fbf43f63f4bad5af13a62e4db88f82d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169932 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-19Fix typoAndrea Gelmini
Change-Id: I4df37ec7637c4b9719ea77e48f9fc49e2ff6fc54 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169180 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-05-16loplugin:ostr in unoxmlNoel Grandin
Change-Id: Iffacc269c97371597188254b44623c011d1cf9db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167729 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-01-05std::size/SAL_N_ELEMENTS also counts the null terminatorCaolán McNamara
which libxml2 2.12 will fail on with error: 'Extra content at the end of the document' Change-Id: I9d5da9fdd826cce8462ede8c510eaea7281b760f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161627 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2022-11-06tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macrojsala
Also change some range based for. Change-Id: I32c5cbe0033c40cde3f1fc86ec8af90e558f2652 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141666 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>