LibreOffice Module sw (master) 1
ToxWhitespaceStripper.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#ifndef TOXWHITESPACESTRIPPER_HXX_
11#define TOXWHITESPACESTRIPPER_HXX_
12
13#include <rtl/ustring.hxx>
14#include <vector>
15
16namespace sw
17{
32{
33public:
34 ToxWhitespaceStripper(std::u16string_view);
35
36 sal_Int32 GetPositionInStrippedString(sal_Int32 pos) const;
37
38 const OUString& GetStrippedString() const { return mStripped; }
39
40private:
41 OUString mStripped;
42 std::vector<sal_Int32> mNewPositions;
43};
44
45} // end namespace sw
46
47#endif /* TOXWHITESPACESTRIPPER_HXX_ */
This class helps to remove unwanted whitespaces from a string to use in a Tox.
const OUString & GetStrippedString() const
std::vector< sal_Int32 > mNewPositions
ToxWhitespaceStripper(std::u16string_view)
sal_Int32 GetPositionInStrippedString(sal_Int32 pos) const
Dialog to specify the properties of date form field.
size_t pos