Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
bidi.hpp
Go to the documentation of this file.
1
/*
2
Copyright 2026 JigSawFr
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
17
#pragma once
18
19
#include <string>
20
21
namespace
aurore
22
{
23
24
// `text` in the order it is drawn: the right-to-left runs (Hebrew, Arabic…)
25
// reversed, mirrored brackets swapped and Arabic letters joined through their
26
// presentation forms, line by line. Needs USE_FRIBIDI; without it, or for a
27
// text with no right-to-left letter, `text` as it is.
28
// Each line is reordered as a whole: a right-to-left paragraph that wraps
29
// keeps its lines in reading order but not the words across them.
30
std::string
bidiVisual
(
const
std::string&
text
);
31
32
// Built with USE_FRIBIDI.
33
bool
bidiAvailable
();
34
35
}
// namespace aurore
aurore
Definition
actions.hpp:25
aurore::bidiVisual
std::string bidiVisual(const std::string &text)
aurore::bidiAvailable
bool bidiAvailable()
text
Definition
text.hpp:13
aurore
core
bidi.hpp
Generated by
1.9.8