LibreOffice Module o3tl (master) 1
|
Namespaces | |
namespace | detail |
namespace | internal |
Enumerations | |
enum class | Length { mm100 = 0 , mm10 , mm , cm , m , km , emu , twip , pt , pc , in1000 , in100 , in10 , in , ft , mi , master , px , ch , line , count , invalid = -1 } |
Functions | |
constexpr Point | convert (const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo) |
constexpr Size | convert (const Size &rSize, o3tl::Length eFrom, o3tl::Length eTo) |
constexpr tools::Rectangle | convert (const tools::Rectangle &rRectangle, o3tl::Length eFrom, o3tl::Length eTo) |
template<typename T > | |
std::enable_if<!(detail::IsDerivedReference< T >::value||detail::IsUnoSequenceType< T >::value||std::is_base_of< css::uno::XInterface, T >::value), typenamedetail::Optional< T >::type >::type | tryAccess (css::uno::Any const &any) |
Try to access the value of a specific type stored in an Any. More... | |
template<> | |
detail::Optional< void >::type | tryAccess< void > (css::uno::Any const &any) |
template<> | |
detail::Optional< bool >::type | tryAccess< bool > (css::uno::Any const &any) |
template<> | |
detail::Optional< sal_Int8 >::type | tryAccess< sal_Int8 > (css::uno::Any const &any) |
template<> | |
detail::Optional< sal_Int16 >::type | tryAccess< sal_Int16 > (css::uno::Any const &any) |
template<> | |
detail::Optional< sal_uInt16 >::type | tryAccess< sal_uInt16 > (css::uno::Any const &any) |
template<> | |
detail::Optional< sal_Int32 >::type | tryAccess< sal_Int32 > (css::uno::Any const &any) |
template<> | |
detail::Optional< sal_uInt32 >::type | tryAccess< sal_uInt32 > (css::uno::Any const &any) |
template<> | |
detail::Optional< sal_Int64 >::type | tryAccess< sal_Int64 > (css::uno::Any const &any) |
template<> | |
detail::Optional< sal_uInt64 >::type | tryAccess< sal_uInt64 > (css::uno::Any const &any) |
template<> | |
detail::Optional< float >::type | tryAccess< float > (css::uno::Any const &any) |
template<> | |
detail::Optional< double >::type | tryAccess< double > (css::uno::Any const &any) |
template<> | |
detail::Optional< css::uno::Any >::type | tryAccess< css::uno::Any > (css::uno::Any const &)=delete |
template<> | |
detail::Optional< sal_Bool >::type | tryAccess< sal_Bool > (css::uno::Any const &)=delete |
template<typename T > | |
std::enable_if< detail::IsDerivedReference< T >::value, typenamedetail::Optional< T >::type >::type | tryAccess (css::uno::Any const &any) |
template<typename T > | |
detail::Optional< T >::type | tryAccess (css::uno::Any const volatile &&)=delete |
template<typename T > | |
detail::Optional< T >::type | doAccess (css::uno::Any const &any) |
Access the value of a specific type stored in an Any, throwing an exception on failure. More... | |
template<typename T > | |
detail::Optional< T >::type | forceAccess (css::uno::Any const &any) |
Access the value of a specific type stored in an Any, knowing the Any contains a value of a matching type. More... | |
template<class T , class P > | |
bool | operator== (const cow_wrapper< T, P > &a, const cow_wrapper< T, P > &b) |
template<class T , class P > | |
bool | operator!= (const cow_wrapper< T, P > &a, const cow_wrapper< T, P > &b) |
template<class A , class B , class P > | |
bool | operator< (const cow_wrapper< A, P > &a, const cow_wrapper< B, P > &b) |
template<class T , class P > | |
void | swap (cow_wrapper< T, P > &a, cow_wrapper< T, P > &b) |
template<typename uniqueptr > | |
void | reset_preserve_ptr_during (uniqueptr &ptr) |
template<typename F , typename I > | |
constexpr std::enable_if_t< std::is_floating_point_v< F > &&std::is_integral_v< I >, bool > | convertsToAtLeast (F value, I min) |
template<typename F , typename I > | |
constexpr std::enable_if_t< std::is_floating_point_v< F > &&std::is_integral_v< I >, bool > | convertsToAtMost (F value, I max) |
template<typename I , typename F > | |
constexpr std::enable_if_t< std::is_floating_point_v< F > &&std::is_integral_v< I >, I > | saturating_cast (F f) |
template<typename F > | |
std::enable_if_t< std::is_floating_point_v< F >, F > | roundAway (F value) |
template<typename T , typename N > | |
std::enable_if_t<(sizeof(N)==4)> | hash_combine (N &nSeed, T const *pValue, size_t nCount) |
template<typename T , typename N > | |
std::enable_if_t<(sizeof(N)==4)> | hash_combine (N &nSeed, T const &nValue) |
template<typename T , typename N > | |
std::enable_if_t<(sizeof(N)==8)> | hash_combine (N &nSeed, T const *pValue, size_t nCount) |
template<typename T , typename N > | |
std::enable_if_t<(sizeof(N)==8)> | hash_combine (N &nSeed, T const &nValue) |
template<typename T1 , typename T2 > | |
constexpr bool | cmp_equal (T1 value1, T2 value2) noexcept |
template<typename T1 , typename T2 > | |
constexpr bool | cmp_not_equal (T1 value1, T2 value2) noexcept |
template<typename T1 , typename T2 > | |
constexpr bool | cmp_less (T1 value1, T2 value2) noexcept |
template<typename T1 , typename T2 > | |
constexpr bool | cmp_greater (T1 value1, T2 value2) noexcept |
template<typename T1 , typename T2 > | |
constexpr bool | cmp_less_equal (T1 value1, T2 value2) noexcept |
template<typename T1 , typename T2 > | |
constexpr bool | cmp_greater_equal (T1 value1, T2 value2) noexcept |
template<typename T1 , typename T2 > | |
constexpr bool | operator== (IntCmp< T1 > value1, IntCmp< T2 > value2) |
template<typename T1 , typename T2 > | |
constexpr bool | operator!= (IntCmp< T1 > value1, IntCmp< T2 > value2) |
template<typename T1 , typename T2 > | |
constexpr bool | operator< (IntCmp< T1 > value1, IntCmp< T2 > value2) |
template<typename T1 , typename T2 > | |
constexpr bool | operator> (IntCmp< T1 > value1, IntCmp< T2 > value2) |
template<typename T1 , typename T2 > | |
constexpr bool | operator<= (IntCmp< T1 > value1, IntCmp< T2 > value2) |
template<typename T1 , typename T2 > | |
constexpr bool | operator>= (IntCmp< T1 > value1, IntCmp< T2 > value2) |
template<typename T > | |
std::shared_ptr< T > | make_shared_array (size_t const size) |
Allocate an array stored in a shared_ptr, calling operator delete[]. More... | |
template<class T , class... Args> | |
std::shared_ptr< T > | make_shared (Args &&... args) |
To markup std::shared_ptr that coverity warns might throw exceptions which won't throw in practice, or where std::terminate is an acceptable response if they do. More... | |
OUString | runtimeToOUString (char const *runtimeString) |
Convert an NTBS from the C++ runtime to an OUString. More... | |
template<typename T > | |
constexpr T | saturating_add (T a, T b) |
template<typename T > | |
constexpr T | saturating_sub (T a, T b) |
template<typename T > | |
std::enable_if< std::is_signed< T >::value, T >::type | saturating_toggle_sign (T a) |
template<typename T > | |
std::enable_if< std::is_signed< T >::value, bool >::type | checked_multiply (T a, T b, T &result) |
template<typename T > | |
std::enable_if< std::is_unsigned< T >::value, bool >::type | checked_multiply (T a, T b, T &result) |
template<typename T > | |
std::enable_if< std::is_signed< T >::value, bool >::type | checked_add (T a, T b, T &result) |
template<typename T > | |
std::enable_if< std::is_unsigned< T >::value, bool >::type | checked_add (T a, T b, T &result) |
template<typename T > | |
std::enable_if< std::is_signed< T >::value, bool >::type | checked_sub (T a, T b, T &result) |
template<typename T > | |
std::enable_if< std::is_unsigned< T >::value, bool >::type | checked_sub (T a, T b, T &result) |
template<typename T > | |
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > | make_unsigned (T value) |
template<typename T1 , typename T2 > | |
constexpr std::enable_if_t< std::is_unsigned_v< T1 >, T1 > | clamp_to_unsigned (T2 value) |
template<typename T1 , typename T2 > | |
constexpr T1 | narrowing (T2 value) |
template<typename T > | |
T | sanitizing_min (T a, T b) |
template<std::size_t N, typename... T> | |
int | sprintf (char(&s)[N], char const *format, T &&... arguments) |
bool | equalsAscii (std::u16string_view s1, std::string_view s2) |
int | compareToAscii (std::u16string_view s1, std::string_view s2) |
bool | equalsIgnoreAsciiCase (std::u16string_view s1, std::u16string_view s2) |
bool | equalsIgnoreAsciiCase (std::u16string_view s1, std::string_view s2) |
bool | equalsIgnoreAsciiCase (std::string_view s1, std::string_view s2) |
int | compareToIgnoreAsciiCase (std::u16string_view s1, std::u16string_view s2) |
bool | matchIgnoreAsciiCase (std::u16string_view s1, std::u16string_view s2, sal_Int32 fromIndex=0) |
bool | matchIgnoreAsciiCase (std::u16string_view s1, std::string_view s2, sal_Int32 fromIndex=0) |
bool | endsWithIgnoreAsciiCase (std::u16string_view s1, std::u16string_view s2, std::u16string_view *rest=nullptr) |
bool | endsWithIgnoreAsciiCase (std::u16string_view s1, std::string_view s2, std::u16string_view *rest=nullptr) |
template<typename charT , typename traits = std::char_traits<charT>> | |
std::basic_string_view< charT, traits > | getToken (std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position) |
std::string_view | getToken (std::string_view sv, char delimiter, std::size_t &position) |
std::u16string_view | getToken (std::u16string_view sv, char16_t delimiter, std::size_t &position) |
template<typename charT , typename traits = std::char_traits<charT>> | |
std::basic_string_view< charT, traits > | getToken (std::basic_string_view< charT, traits > pStr, sal_Int32 nToken, charT cTok, sal_Int32 &rnIndex) |
std::string_view | getToken (std::string_view sv, sal_Int32 nToken, char cTok, sal_Int32 &rnIndex) |
std::u16string_view | getToken (std::u16string_view sv, sal_Int32 nToken, char16_t cTok, sal_Int32 &rnIndex) |
std::string_view | getToken (std::string_view sv, sal_Int32 nToken, char cTok) |
std::u16string_view | getToken (std::u16string_view sv, sal_Int32 nToken, char16_t cTok) |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | starts_with (std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | starts_with (std::basic_string_view< charT, traits > sv, charT x) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | starts_with (std::basic_string_view< charT, traits > sv, charT const *x) |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | ends_with (std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | ends_with (std::basic_string_view< charT, traits > sv, charT x) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | ends_with (std::basic_string_view< charT, traits > sv, charT const *x) |
constexpr bool | starts_with (std::string_view sv, std::string_view x) noexcept |
constexpr bool | starts_with (std::u16string_view sv, std::u16string_view x) noexcept |
constexpr bool | ends_with (std::string_view sv, std::string_view x) noexcept |
constexpr bool | ends_with (std::u16string_view sv, std::u16string_view x) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | starts_with (std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x, std::basic_string_view< charT, traits > *rest) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | starts_with (std::basic_string_view< charT, traits > sv, charT x, std::basic_string_view< charT, traits > *rest) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | starts_with (std::basic_string_view< charT, traits > sv, charT const *x, std::basic_string_view< charT, traits > *rest) |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | ends_with (std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x, std::basic_string_view< charT, traits > *rest) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | ends_with (std::basic_string_view< charT, traits > sv, charT x, std::basic_string_view< charT, traits > *rest) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
constexpr bool | ends_with (std::basic_string_view< charT, traits > sv, charT const *x, std::basic_string_view< charT, traits > *rest) |
constexpr bool | starts_with (std::string_view sv, std::string_view x, std::string_view *rest) noexcept |
constexpr bool | starts_with (std::u16string_view sv, std::u16string_view x, std::u16string_view *rest) noexcept |
constexpr bool | ends_with (std::string_view sv, std::string_view x, std::string_view *rest) noexcept |
constexpr bool | ends_with (std::u16string_view sv, std::u16string_view x, std::u16string_view *rest) noexcept |
template<typename charT , typename traits = std::char_traits<charT>> | |
std::basic_string_view< charT, traits > | trim (std::basic_string_view< charT, traits > str) |
auto | trim (std::string_view str) |
auto | trim (std::u16string_view str) |
sal_Int32 | toInt32 (std::u16string_view str, sal_Int16 radix=10) |
sal_Int32 | toInt32 (std::string_view str, sal_Int16 radix=10) |
sal_uInt32 | toUInt32 (std::u16string_view str, sal_Int16 radix=10) |
sal_uInt32 | toUInt32 (std::string_view str, sal_Int16 radix=10) |
sal_Int64 | toInt64 (std::u16string_view str, sal_Int16 radix=10) |
sal_Int64 | toInt64 (std::string_view str, sal_Int16 radix=10) |
double | toDouble (std::u16string_view str) |
double | toDouble (std::string_view str) |
sal_uInt32 | iterateCodePoints (std::u16string_view string, sal_Int32 *indexUtf16, sal_Int32 incrementCodePoints=1) |
template<typename UT , typename PT > | |
strong_int< UT, PT > | operator+ (strong_int< UT, PT > const &lhs, strong_int< UT, PT > const &rhs) |
template<typename UT , typename PT > | |
strong_int< UT, PT > | operator- (strong_int< UT, PT > const &lhs, strong_int< UT, PT > const &rhs) |
template<typename T > | |
constexpr T & | temporary (T &&x) |
template<typename T > | |
constexpr T & | temporary (T &)=delete |
template<typename T > | |
constexpr std::underlying_type_t< T > | to_underlying (T e) |
template<typename N > | |
constexpr auto | convert (N n, sal_Int64 mul, sal_Int64 div) |
template<typename N , typename U > | |
constexpr auto | convert (N n, U from, U to) |
template<typename N > | |
constexpr auto | toTwips (N number, Length from) |
template<typename N , typename U > | |
constexpr auto | convert (N n, U from, U to, bool &bOverflow, sal_Int64 nDefault=0) |
template<typename N , typename U > | |
constexpr auto | convertSaturate (N n, U from, U to) |
template<typename DerivedPtr , typename BasePtr > | |
std::enable_if_t<(std::is_pointer_v< DerivedPtr > &&std::is_pointer_v< BasePtr > &&std::is_base_of_v< std::remove_pointer_t< BasePtr >, std::remove_pointer_t< DerivedPtr > >), DerivedPtr > | unsafe_downcast (BasePtr p) |
template<typename T > | |
void | remove_duplicates (std::vector< T > &rVector) |
Variables | |
template<typename T > | |
enumrange< T >::Iterator | begin (enumrange< T >) |
template<typename T > | |
enumrange< T >::Iterator | end (enumrange< T >) |
|
strong |
Enumerator | |
---|---|
mm100 | |
mm10 | |
mm | |
cm | |
m | |
km | |
emu | |
twip | |
pt | |
pc | |
in1000 | |
in100 | |
in10 | |
in | |
ft | |
mi | |
master | |
px | |
ch | |
line | |
count | |
invalid |
Definition at line 25 of file unit_conversion.hxx.
|
inline |
Definition at line 153 of file safeint.hxx.
|
inline |
Definition at line 166 of file safeint.hxx.
|
inline |
Definition at line 111 of file safeint.hxx.
|
inline |
Definition at line 141 of file safeint.hxx.
|
inline |
Definition at line 178 of file safeint.hxx.
|
inline |
Definition at line 191 of file safeint.hxx.
|
constexpr |
Definition at line 212 of file safeint.hxx.
References make_unsigned(), and value.
|
constexprnoexcept |
Definition at line 35 of file intcmp.hxx.
References make_unsigned(), and value2.
Referenced by cmp_not_equal(), and operator==().
|
constexprnoexcept |
Definition at line 73 of file intcmp.hxx.
References cmp_less(), and value2.
Referenced by cmp_less_equal(), and operator>().
|
constexprnoexcept |
Definition at line 83 of file intcmp.hxx.
References cmp_less(), and value2.
Referenced by operator>=().
|
constexprnoexcept |
Definition at line 57 of file intcmp.hxx.
References make_unsigned(), and value2.
Referenced by cmp_greater(), cmp_greater_equal(), and operator<().
|
constexprnoexcept |
Definition at line 78 of file intcmp.hxx.
References cmp_greater(), and value2.
Referenced by operator<=().
|
constexprnoexcept |
Definition at line 52 of file intcmp.hxx.
References cmp_equal(), and value2.
Referenced by operator!=().
|
inline |
Definition at line 36 of file string_view.hxx.
|
inline |
Definition at line 71 of file string_view.hxx.
Definition at line 210 of file unit_conversion.hxx.
References div(), o3tl::detail::MulDiv(), and n.
Definition at line 216 of file unit_conversion.hxx.
References convert(), from, o3tl::detail::md(), n, and to.
|
constexpr |
Definition at line 230 of file unit_conversion.hxx.
References from, o3tl::detail::md(), o3tl::detail::MulDiv(), n, and to.
|
constexpr |
Definition at line 238 of file unit_conversion.hxx.
References from, o3tl::detail::md(), o3tl::detail::MulDivSaturate(), n, and to.
|
constexpr |
Definition at line 25 of file float_int_conversion.hxx.
References F, min(), and value.
Referenced by saturating_cast().
|
constexpr |
Definition at line 38 of file float_int_conversion.hxx.
Referenced by saturating_cast().
|
inline |
Access the value of a specific type stored in an Any, throwing an exception on failure.
T | the C++ representation of a UNO type that can be contained in a UNO ANY. See tryAccess for details. |
any | an Any value. |
css::uno::RuntimeException | when a value of the requested type cannot be obtained. |
Definition at line 279 of file any.hxx.
References any, and cppu_Any_extraction_failure_msg().
|
constexpr |
Definition at line 285 of file string_view.hxx.
References ends_with(), and x.
|
constexpr |
Definition at line 380 of file string_view.hxx.
References ends_with(), and x.
|
constexprnoexcept |
Definition at line 276 of file string_view.hxx.
References x.
|
constexprnoexcept |
Definition at line 368 of file string_view.hxx.
References ends_with(), and x.
|
constexprnoexcept |
|
constexprnoexcept |
Definition at line 355 of file string_view.hxx.
References ends_with(), and x.
|
constexprnoexcept |
Definition at line 305 of file string_view.hxx.
References x.
|
constexprnoexcept |
Definition at line 404 of file string_view.hxx.
References x.
|
constexprnoexcept |
Definition at line 309 of file string_view.hxx.
References x.
|
constexprnoexcept |
Definition at line 408 of file string_view.hxx.
References x.
|
inline |
Definition at line 106 of file string_view.hxx.
|
inline |
Definition at line 95 of file string_view.hxx.
References matchIgnoreAsciiCase().
|
inline |
Definition at line 28 of file string_view.hxx.
|
inline |
Definition at line 60 of file string_view.hxx.
|
inline |
Definition at line 52 of file string_view.hxx.
|
inline |
Definition at line 42 of file string_view.hxx.
|
inline |
Access the value of a specific type stored in an Any, knowing the Any contains a value of a matching type.
T | the C++ representation of a UNO type that can be contained in a UNO ANY. See tryAccess for details. |
any | an Any value. |
Definition at line 313 of file any.hxx.
References any.
|
inline |
Definition at line 167 of file string_view.hxx.
References nToken.
|
inline |
Definition at line 128 of file string_view.hxx.
References n, position(), and t.
|
inline |
Definition at line 151 of file string_view.hxx.
References position().
|
inline |
Definition at line 223 of file string_view.hxx.
|
inline |
Definition at line 213 of file string_view.hxx.
References nToken.
|
inline |
Definition at line 155 of file string_view.hxx.
References position().
|
inline |
Definition at line 228 of file string_view.hxx.
|
inline |
Definition at line 218 of file string_view.hxx.
References nToken.
|
inline |
Definition at line 30 of file hash_combine.hxx.
|
inline |
Definition at line 48 of file hash_combine.hxx.
|
inline |
Definition at line 19 of file hash_combine.hxx.
|
inline |
Definition at line 37 of file hash_combine.hxx.
|
inline |
Definition at line 512 of file string_view.hxx.
std::shared_ptr< T > o3tl::make_shared | ( | Args &&... | args | ) |
To markup std::shared_ptr that coverity warns might throw exceptions which won't throw in practice, or where std::terminate is an acceptable response if they do.
Definition at line 33 of file make_shared.hxx.
References args.
std::shared_ptr< T > o3tl::make_shared_array | ( | size_t const | size | ) |
Allocate an array stored in a shared_ptr, calling operator delete[].
Note that this is only allowed for arithmetic types because shared_ptr implicitly converts to sub-types.
Definition at line 23 of file make_shared.hxx.
References size.
|
constexpr |
Definition at line 205 of file safeint.hxx.
References value.
Referenced by clamp_to_unsigned(), cmp_equal(), cmp_less(), o3tl::detail::md(), and sprintf().
|
inline |
Definition at line 86 of file string_view.hxx.
|
inline |
Definition at line 77 of file string_view.hxx.
Referenced by endsWithIgnoreAsciiCase().
|
constexpr |
Definition at line 225 of file safeint.hxx.
References value.
|
inline |
Definition at line 365 of file cow_wrapper.hxx.
References a.
|
constexpr |
Definition at line 106 of file intcmp.hxx.
References cmp_not_equal(), o3tl::IntCmp< T >::value, and value2.
strong_int< UT, PT > o3tl::operator+ | ( | strong_int< UT, PT > const & | lhs, |
strong_int< UT, PT > const & | rhs | ||
) |
Definition at line 141 of file strong_int.hxx.
References o3tl::strong_int< UNDERLYING_TYPE, PHANTOM_TYPE >::get().
strong_int< UT, PT > o3tl::operator- | ( | strong_int< UT, PT > const & | lhs, |
strong_int< UT, PT > const & | rhs | ||
) |
Definition at line 147 of file strong_int.hxx.
References o3tl::strong_int< UNDERLYING_TYPE, PHANTOM_TYPE >::get().
|
inline |
Definition at line 371 of file cow_wrapper.hxx.
References a.
|
constexpr |
Definition at line 111 of file intcmp.hxx.
References cmp_less(), o3tl::IntCmp< T >::value, and value2.
|
constexpr |
Definition at line 121 of file intcmp.hxx.
References cmp_less_equal(), o3tl::IntCmp< T >::value, and value2.
|
inline |
Definition at line 359 of file cow_wrapper.hxx.
References a.
|
constexpr |
Definition at line 101 of file intcmp.hxx.
References cmp_equal(), o3tl::IntCmp< T >::value, and value2.
|
constexpr |
Definition at line 116 of file intcmp.hxx.
References cmp_greater(), o3tl::IntCmp< T >::value, and value2.
|
constexpr |
Definition at line 126 of file intcmp.hxx.
References cmp_greater_equal(), o3tl::IntCmp< T >::value, and value2.
void o3tl::remove_duplicates | ( | std::vector< T > & | rVector | ) |
Definition at line 20 of file vector_utils.hxx.
void o3tl::reset_preserve_ptr_during | ( | uniqueptr & | ptr | ) |
Definition at line 54 of file deleter.hxx.
std::enable_if_t< std::is_floating_point_v< F >, F > o3tl::roundAway | ( | F | value | ) |
Definition at line 64 of file float_int_conversion.hxx.
|
inline |
Convert an NTBS from the C++ runtime to an OUString.
This is used to convert an NTBS as provided by std::exception::what or std::type_info::name into an OUString in a "lossless" way. The conversion is done using RTL_TEXTENCODING_ISO_8859_1, so each char in the input maps to one Unicode character in the output.
Definition at line 32 of file runtimetooustring.hxx.
|
inline |
Definition at line 229 of file safeint.hxx.
References a.
|
inlineconstexpr |
Definition at line 30 of file safeint.hxx.
References a.
|
constexpr |
Definition at line 51 of file float_int_conversion.hxx.
References convertsToAtLeast(), and convertsToAtMost().
|
inlineconstexpr |
Definition at line 47 of file safeint.hxx.
References a.
|
inline |
Definition at line 65 of file safeint.hxx.
References a.
int o3tl::sprintf | ( | char(&) | s[N], |
char const * | format, | ||
T &&... | arguments | ||
) |
Definition at line 32 of file sprintf.hxx.
References make_unsigned(), N, and n.
|
constexpr |
Definition at line 256 of file string_view.hxx.
References starts_with(), and x.
|
constexpr |
Definition at line 343 of file string_view.hxx.
References starts_with(), and x.
|
constexprnoexcept |
Definition at line 247 of file string_view.hxx.
References x.
|
constexprnoexcept |
Definition at line 331 of file string_view.hxx.
References starts_with(), and x.
|
constexprnoexcept |
|
constexprnoexcept |
Definition at line 318 of file string_view.hxx.
References starts_with(), and x.
|
constexprnoexcept |
Definition at line 297 of file string_view.hxx.
References x.
|
constexprnoexcept |
Definition at line 395 of file string_view.hxx.
References x.
|
constexprnoexcept |
Definition at line 301 of file string_view.hxx.
References x.
|
constexprnoexcept |
Definition at line 399 of file string_view.hxx.
References x.
|
inline |
Definition at line 377 of file cow_wrapper.hxx.
References a.
Referenced by o3tl::cow_wrapper< T, MTPolicy >::swap().
|
constexpr |
Definition at line 21 of file temporary.hxx.
References x.
|
constexprdelete |
|
constexpr |
Definition at line 21 of file underlyingenumvalue.hxx.
Referenced by operator&(), operator&=(), operator^(), operator^=(), operator|(), operator|=(), and operator~().
|
inline |
Definition at line 506 of file string_view.hxx.
|
inline |
Definition at line 502 of file string_view.hxx.
|
inline |
Definition at line 467 of file string_view.hxx.
References n, and SAL_MAX_INT32.
|
inline |
Definition at line 460 of file string_view.hxx.
References n, and SAL_MAX_INT32.
|
inline |
Definition at line 496 of file string_view.hxx.
|
inline |
Definition at line 492 of file string_view.hxx.
Definition at line 222 of file unit_conversion.hxx.
|
inline |
Definition at line 483 of file string_view.hxx.
References n, and SAL_MAX_UINT32.
|
inline |
Definition at line 476 of file string_view.hxx.
References n, and SAL_MAX_UINT32.
std::basic_string_view< charT, traits > o3tl::trim | ( | std::basic_string_view< charT, traits > | str | ) |
Definition at line 436 of file string_view.hxx.
References o3tl::internal::implIsWhitespace().
|
inline |
Definition at line 456 of file string_view.hxx.
|
inline |
Definition at line 457 of file string_view.hxx.
|
inline |
Try to access the value of a specific type stored in an Any.
In trying to obtain a value, the same set of conversions as supported by ">>=" are considered.
The returned object is a proxy. Proxies can be either positive or negative. Each proxy can be contextually converted to bool, yielding true iff the proxy is positive. For a positive proxy P representing a value of requested type T, for any T other than void, the expression *P yields that value of type T. (Technically, the proxy is either a plain pointer or a std::optional, depending on whether a plain pointer into the given Any can be returned for the specified type.)
T | the C++ representation of a UNO type that can be contained in a UNO ANY (i.e., any UNO type other than ANY itself). The legacy C++ representations sal_Bool, cppu::UnoVoidType, cppu::UnoUnsignedShortType, cppu::UnoCharType, and cppu::UnoSequenceType are not supported. Must be a complete type or void. |
any | an Any value. |
Definition at line 148 of file any.hxx.
References any, and cppu::UnoType< typename T >::get().
|
inline |
|
delete |
|
inline |
|
delete |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::enable_if_t<(std::is_pointer_v< DerivedPtr > &&std::is_pointer_v< BasePtr > &&std::is_base_of_v< std::remove_pointer_t< BasePtr >, std::remove_pointer_t< DerivedPtr > >), DerivedPtr > o3tl::unsafe_downcast | ( | BasePtr | p | ) |
Definition at line 26 of file unsafe_downcast.hxx.
References p.
Definition at line 72 of file enumrange.hxx.
Definition at line 78 of file enumrange.hxx.