Blender
V5.0
source
blender
imbuf
opencolorio
intern
view_specific_look.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2025 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#include "
view_specific_look.hh
"
6
7
namespace
blender::ocio
{
8
9
bool
split_view_specific_look
(
const
StringRef
look_name,
StringRef
&
view
,
StringRef
&ui_name)
10
{
11
const
int64_t
separator_offset = look_name.
find
(
" - "
);
12
if
(separator_offset == -1) {
13
view
= {};
14
ui_name = look_name;
15
return
false
;
16
}
17
18
view
= look_name.
substr
(0, separator_offset);
19
ui_name = look_name.
substr
(separator_offset + 3);
20
21
return
true
;
22
}
23
24
}
// namespace blender::ocio
view
static AppView * view
Definition
FRS_freestyle.cpp:59
int64_t
long long int int64_t
Definition
btConvexHullComputer.cpp:31
blender::StringRefBase::find
constexpr int64_t find(char c, int64_t pos=0) const
Definition
BLI_string_ref.hh:324
blender::StringRefBase::substr
constexpr StringRef substr(int64_t start, int64_t size) const
Definition
BLI_string_ref.hh:288
blender::StringRef
Definition
BLI_string_ref.hh:150
blender::ocio
Definition
BLF_api.hh:35
blender::ocio::split_view_specific_look
bool split_view_specific_look(const StringRef look_name, StringRef &view, StringRef &ui_name)
Definition
view_specific_look.cc:9
view_specific_look.hh
Generated on
for Blender by
doxygen
1.16.1