Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
scoped_locale.h
Go to the documentation of this file.
1
// Copyright 2024 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#
ifndef
TESTING_SCOPED_LOCALE_H_
6
#
define
TESTING_SCOPED_LOCALE_H_
7
8
#
include
<
string
>
9
10
namespace
pdfium
{
11
12
// Sets the given |locale| on construction, and restores the previous locale
13
// on destruction.
14
class
ScopedLocale
{
15
public
:
16
explicit
ScopedLocale
(
const
std
::string& locale);
17
~
ScopedLocale
();
18
19
private
:
20
std
::string prev_locale_;
21
22
ScopedLocale(
const
ScopedLocale
&) =
delete
;
23
ScopedLocale
& operator=(
const
ScopedLocale
&) =
delete
;
24
};
25
26
}
// namespace pdfium
27
28
#
endif
// TESTING_SCOPED_LOCALE_H_
CHECK_EQ
#define CHECK_EQ(x, y)
Definition
check_op.h:10
pdfium::CFDETextOutLargeBitmapTest
Definition
cfde_textout_unittest.cpp:117
pdfium::ScopedLocale
Definition
scoped_locale.h:14
pdfium::ScopedLocale::ScopedLocale
ScopedLocale(const std::string &locale)
Definition
scoped_locale.cc:13
pdfium::ScopedLocale::~ScopedLocale
~ScopedLocale()
Definition
scoped_locale.cc:18
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
CHECK
#define CHECK(cvref)
Definition
q23utility.cpp:14
qtwebengine
src
3rdparty
chromium
third_party
pdfium
testing
scoped_locale.h
Generated on
for Qt by
1.14.0