Blender V5.0
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
6
7namespace blender::ocio {
8
9bool 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
static AppView * view
long long int int64_t
constexpr int64_t find(char c, int64_t pos=0) const
constexpr StringRef substr(int64_t start, int64_t size) const
bool split_view_specific_look(const StringRef look_name, StringRef &view, StringRef &ui_name)