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
command_line_helpers.cpp
Go to the documentation of this file.
1
// Copyright 2022 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
#
include
"testing/command_line_helpers.h"
6
7
bool
ParseSwitchKeyValue
(
const
std
::string& arg,
8
const
std
::string& key,
9
std
::string* value) {
10
if
(arg.size() <= key.size() || arg.compare(0, key.size(), key) != 0)
11
return
false
;
12
13
*value = arg.substr(key.size());
14
return
true
;
15
}
16
17
FPDF_RENDERER_TYPE
GetDefaultRendererType
() {
18
#
if
defined
(
PDF_USE_SKIA
)
19
return
FPDF_RENDERERTYPE_SKIA;
20
#
else
21
return
FPDF_RENDERERTYPE_AGG;
22
#
endif
23
}
ParseSwitchKeyValue
bool ParseSwitchKeyValue(const std::string &arg, const std::string &key, std::string *value)
Definition
command_line_helpers.cpp:7
GetDefaultRendererType
FPDF_RENDERER_TYPE GetDefaultRendererType()
Definition
command_line_helpers.cpp:17
std
Definition
qfloat16.h:493
qtwebengine
src
3rdparty
chromium
third_party
pdfium
testing
command_line_helpers.cpp
Generated on Thu Nov 14 2024 01:03:34 for Qt by
1.12.0