LibreOffice Module o3tl (master) 1
Namespaces | Classes | Enumerations | Functions | Variables
o3tl Namespace Reference

Namespaces

namespace  detail
 
namespace  internal
 

Classes

class  cow_wrapper
 
struct  default_delete
 To markup std::unique_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...
 
struct  divide_by_zero
 
class  enumarray
 This is a container convenience class for arrays indexed by enum values. More...
 
class  enumarray_const_iterator
 
class  enumarray_iterator
 
class  enumrange
 This is a container convenience class iterating over scoped enumerations. More...
 
struct  find_partialorder_ptrequals
 the elements are partially ordered by Compare, 2 elements are allowed if they are not the same element (pointer equal) More...
 
struct  find_unique
 the elements are totally ordered by Compare, for no 2 elements !Compare(a,b) && !Compare(b,a) is true More...
 
struct  free_delete
 
struct  IntCmp
 
struct  is_typed_flags
 Mark a (scoped) enumeration as a set of bit flags, with accompanying operations. More...
 
class  LazyUpdate
 
struct  less_ptr_to
 Implements an ordering function over a pointer, where the comparison uses the < operator on the pointed-to types. More...
 
struct  less_uniqueptr_to
 
class  lru_map
 LRU map. More...
 
struct  select1st
 Select first value of a pair. More...
 
struct  select2nd
 Select second value of a pair. More...
 
class  sorted_vector
 Represents a sorted vector of values. More...
 
class  sorted_vector< Value, Compare, Find, false >
 
class  span
 A barebones approximation of C++20 . More...
 
struct  strong_int
 Wrap up an integer type so that we prevent accidental conversion to other integer types. More...
 
struct  ThreadSafeRefCountingPolicy
 Thread-safe refcounting. More...
 
struct  typed_flags
 
struct  typed_flags< AccessibleStates >
 
struct  typed_flags< ACFlags >
 
struct  typed_flags< ActivateModeFlags >
 
struct  typed_flags< AddFontSubstituteFlags >
 
struct  typed_flags< AdjustFilterFlags >
 
struct  typed_flags< AllSettingsFlags >
 
struct  typed_flags< AntialiasingFlags >
 
struct  typed_flags< AsCharFlags >
 
struct  typed_flags< AsianCompressionFlags >
 
struct  typed_flags< AVMediaSetMask >
 
struct  typed_flags< AxFontFlags >
 
struct  typed_flags< BAFlags >
 
struct  typed_flags< BasicDebugFlags >
 
struct  typed_flags< BmpMirrorFlags >
 
struct  typed_flags< BoolAttrFlags >
 
struct  typed_flags< BorderWidthImplFlags >
 
struct  typed_flags< BorderWindowHitTest >
 
struct  typed_flags< BorderWindowStyle >
 
struct  typed_flags< BorderWindowTitleType >
 
struct  typed_flags< BrowseMode >
 
struct  typed_flags< BrowserMode >
 
struct  typed_flags< ButtonDialogFlags >
 
struct  typed_flags< CCAFlags >
 
struct  typed_flags< CellPosFlag >
 
struct  typed_flags< CellShiftDisabledFlags >
 
struct  typed_flags< ChangeType >
 
struct  typed_flags< CharFlags >
 
struct  typed_flags< ColumnAttributeGroup >
 
struct  typed_flags< ColumnTransferFormatFlags >
 
struct  typed_flags< comphelper::EConfigurationModes >
 
struct  typed_flags< ConfigFlags >
 
struct  typed_flags< ConfigItemMode >
 
struct  typed_flags< ConfigurationHints >
 
struct  typed_flags< connectivity::TraversalParts >
 
struct  typed_flags< ContinuationFlags >
 
struct  typed_flags< ControlState >
 
struct  typed_flags< ControlStatus >
 
struct  typed_flags< cpuid::InstructionSetFlags >
 
struct  typed_flags< CreateNameFlags >
 
struct  typed_flags< CRFlags >
 
struct  typed_flags< Css1FrameSize >
 
struct  typed_flags< Css1ScriptFlags >
 
struct  typed_flags< CTL_STATE >
 
struct  typed_flags< CustomShapeHandleModes >
 
struct  typed_flags< CutFlagValue >
 
struct  typed_flags< DAFlags >
 
struct  typed_flags< dbaui::MessBoxStyle >
 
struct  typed_flags< DbGridControlOptions >
 
struct  typed_flags< DeactivateRC >
 
struct  typed_flags< DelContentType >
 
struct  typed_flags< DialogControlFlags >
 
struct  typed_flags< DialogMask >
 
struct  typed_flags< DictionaryPathFlags >
 
struct  typed_flags< DisplayOptions >
 
struct  typed_flags< DocState >
 
struct  typed_flags< DragDropMode >
 
struct  typed_flags< DragFullOptions >
 
struct  typed_flags< DrawButtonFlags >
 
struct  typed_flags< DrawFrameFlags >
 
struct  typed_flags< DrawGridFlags >
 
struct  typed_flags< DrawImageFlags >
 
struct  typed_flags< DrawModeFlags >
 
struct  typed_flags< DrawSymbolFlags >
 
struct  typed_flags< DrawTextFlags >
 
struct  typed_flags< E3dDragConstraint >
 
struct  typed_flags< EAFlags >
 
struct  typed_flags< EditBrowseBoxFlags >
 
struct  typed_flags< EditStatusFlags >
 
struct  typed_flags< EDocStates >
 
struct  typed_flags< EEControlBits >
 
struct  typed_flags< EndExtTextInputFlags >
 
struct  typed_flags< EscherGraphicProviderFlags >
 
struct  typed_flags< EVControlBits >
 
struct  typed_flags< ExcColRowFlags >
 
struct  typed_flags< ExcTabBufFlags >
 
struct  typed_flags< ExpandMode >
 
struct  typed_flags< ExtTextInputAttr >
 
struct  typed_flags< FieldFlags >
 
struct  typed_flags< FileControlMode_Internal >
 
struct  typed_flags< FileDialogFlags >
 
struct  typed_flags< FileViewFlags >
 
struct  typed_flags< FindRanges >
 
struct  typed_flags< Flags >
 
struct  typed_flags< FloatWinPopupEndFlags >
 
struct  typed_flags< FloatWinPopupFlags >
 
struct  typed_flags< FlyProtectFlags >
 
struct  typed_flags< FontAttribute >
 
struct  typed_flags< FontChangeMask >
 
struct  typed_flags< FontEmphasisMark >
 
struct  typed_flags< FontKerning >
 
struct  typed_flags< FontListFontNameType >
 
struct  typed_flags< FontType >
 
struct  typed_flags< Found >
 
struct  typed_flags< FoundFlags >
 
struct  typed_flags< FrameAnalyzerFlags >
 
struct  typed_flags< FrameSelFlags >
 
struct  typed_flags< FrameTypeFlags >
 
struct  typed_flags< FrmValidFlags >
 
struct  typed_flags< FSysStyle >
 
struct  typed_flags< FuncFlags >
 
struct  typed_flags< GalleryItemFlags >
 
struct  typed_flags< GetAttribsFlags >
 
struct  typed_flags< GetCursorFlags >
 
struct  typed_flags< GetDefaultFontFlags >
 
struct  typed_flags< GetFocusFlags >
 
struct  typed_flags< GlyphItemFlags >
 
struct  typed_flags< GotoObjFlags >
 
struct  typed_flags< GraphicAdjustmentFlags >
 
struct  typed_flags< GraphicFilterImportFlags >
 
struct  typed_flags< HandleFlags >
 
struct  typed_flags< HasAttrFlags >
 
struct  typed_flags< HeaderBarItemBits >
 
struct  typed_flags< HelpEventMode >
 
struct  typed_flags< HiddenInformation >
 
struct  typed_flags< HtmlContainerFlags >
 
struct  typed_flags< HtmlContextFlags >
 
struct  typed_flags< HtmlFrameFormatFlags >
 
struct  typed_flags< HtmlFrmOpts >
 
struct  typed_flags< HyperDialogEvent >
 
struct  typed_flags< IconChoiceFlags >
 
struct  typed_flags< ImageLoadFlags >
 
struct  typed_flags< ImplFontAttrs >
 
struct  typed_flags< ImplPaintFlags >
 
struct  typed_flags< ImportFlags >
 
struct  typed_flags< InitOutDevFlags >
 
struct  typed_flags< InitWindowFacet >
 
struct  typed_flags< InputContextFlags >
 
struct  typed_flags< InsertContentsFlags >
 
struct  typed_flags< InsertDeleteFlags >
 
struct  typed_flags< InvalidateFlags >
 
struct  typed_flags< InvertFlags >
 
struct  typed_flags< IsAttrAtPos >
 
struct  typed_flags< Job >
 
struct  typed_flags< JobSetFlags >
 
struct  typed_flags< KeyIndicatorState >
 
struct  typed_flags< LB >
 
struct  typed_flags< LBoxFlags >
 
struct  typed_flags< ListBoxEntryFlags >
 
struct  typed_flags< LoadEnvFeatures >
 
struct  typed_flags< LoadFormsFlags >
 
struct  typed_flags< LoadUrlFlags >
 
struct  typed_flags< LoginFlags >
 
struct  typed_flags< LOKSpecialFlags >
 
struct  typed_flags< LoopGridsFlags >
 
struct  typed_flags< MailTextFormats >
 
struct  typed_flags< MappingType >
 
struct  typed_flags< MenuEnableFlags >
 
struct  typed_flags< MenuFlags >
 
struct  typed_flags< MenuItemBits >
 
struct  typed_flags< MessBoxStyle >
 
struct  typed_flags< ModifyFlags >
 
struct  typed_flags< ModKeyFlags >
 
struct  typed_flags< MouseEventModifiers >
 
struct  typed_flags< MouseFollowFlags >
 
struct  typed_flags< MouseSettingsOptions >
 
struct  typed_flags< MoveItemFlags >
 
struct  typed_flags< NavState >
 
struct  typed_flags< OCommonBehaviourTabPageFlags >
 
struct  typed_flags< PaintPartFlags >
 
struct  typed_flags< ParaFlag >
 
struct  typed_flags< ParentClipMode >
 
struct  typed_flags< ParserFlags >
 
struct  typed_flags< PickerFlags >
 
struct  typed_flags< PivotFunc >
 
struct  typed_flags< PolyOptimizeFlags >
 
struct  typed_flags< PopupMenuFlags >
 
struct  typed_flags< PosSizeFlags >
 
struct  typed_flags< PresentationFlags >
 
struct  typed_flags< PrintQueueFlags >
 
struct  typed_flags< PropertyMoreFlags >
 
struct  typed_flags< PropFlags >
 
struct  typed_flags< PropsSet >
 
struct  typed_flags< PropUIFlags >
 
struct  typed_flags< PROT >
 
struct  typed_flags< QuickHelpFlags >
 
struct  typed_flags< RedlineFlags >
 
struct  typed_flags< RegAccessMode >
 
struct  typed_flags< RTFieldAccess >
 
struct  typed_flags< RulerBorderStyle >
 
struct  typed_flags< RulerMarginStyle >
 
struct  typed_flags< SADFlags >
 
struct  typed_flags< SalFrameStyleFlags >
 
struct  typed_flags< SalFrameToTop >
 
struct  typed_flags< SalInvert >
 
struct  typed_flags< SalLayoutFlags >
 
struct  typed_flags< SbAttributes >
 
struct  typed_flags< SbiImageFlags >
 
struct  typed_flags< SbiStreamFlags >
 
struct  typed_flags< SbxFlagBits >
 
struct  typed_flags< sc::MatrixEdge >
 
struct  typed_flags< SCAFlags >
 
struct  typed_flags< ScanlineFormat >
 
struct  typed_flags< ScBreakType >
 
struct  typed_flags< ScCharFlags >
 
struct  typed_flags< ScClipMark >
 
struct  typed_flags< ScCloneFlags >
 
struct  typed_flags< ScCsvDiff >
 
struct  typed_flags< ScDragSrc >
 
struct  typed_flags< ScMatValType >
 
struct  typed_flags< ScMF >
 
struct  typed_flags< ScPasteFlags >
 
struct  typed_flags< ScRangeData::Type >
 
struct  typed_flags< ScRecalcMode >
 
struct  typed_flags< ScRefFlags >
 
struct  typed_flags< ScrollFlags >
 
struct  typed_flags< ScScenarioFlags >
 
struct  typed_flags< SdrAlign >
 
struct  typed_flags< SdrEscapeDirection >
 
struct  typed_flags< SdrGrafObjTransformsAttrs >
 
struct  typed_flags< SdrInsertFlags >
 
struct  typed_flags< SdrSearchOptions >
 
struct  typed_flags< SdrSnap >
 
struct  typed_flags< SearchOptionFlags >
 
struct  typed_flags< SelectionEngineFlags >
 
struct  typed_flags< SelectionOptions >
 
struct  typed_flags< SelectionType >
 
struct  typed_flags< SetAttrMode >
 
struct  typed_flags< sfx2::ApplicationType >
 
struct  typed_flags< SfxCallMode >
 
struct  typed_flags< SfxChildVisibility >
 
struct  typed_flags< SfxChildWindowFlags >
 
struct  typed_flags< SfxDisableFlags >
 
struct  typed_flags< SfxDispatcherPopFlags >
 
struct  typed_flags< SfxFilterFlags >
 
struct  typed_flags< SfxLoadedFlags >
 
struct  typed_flags< SfxModelFlags >
 
struct  typed_flags< SfxPrinterChangeFlags >
 
struct  typed_flags< SfxShellFeature >
 
struct  typed_flags< SfxShowExtras >
 
struct  typed_flags< SfxSlotMode >
 
struct  typed_flags< SfxStyleFamily >
 
struct  typed_flags< SfxStyleSearchBits >
 
struct  typed_flags< SfxTemplateFlags >
 
struct  typed_flags< SfxViewShellFlags >
 
struct  typed_flags< SfxVisibilityFlags >
 
struct  typed_flags< ShapeFlag >
 
struct  typed_flags< ShowFlags >
 
struct  typed_flags< ShowTrackFlags >
 
struct  typed_flags< SizingFlags >
 
struct  typed_flags< SotExchangeActionFlags >
 
struct  typed_flags< SplitWindowItemFlags >
 
struct  typed_flags< StartAutoScrollFlags >
 
struct  typed_flags< StartTrackingFlags >
 
struct  typed_flags< StatusBarItemBits >
 
struct  typed_flags< StreamMode >
 
struct  typed_flags< StyleFlags >
 
struct  typed_flags< StyleSettingsOptions >
 
struct  typed_flags< SubColFlags >
 
struct  typed_flags< SubsFontFlags >
 
struct  typed_flags< SubtotalFlags >
 
struct  typed_flags< SvItemStateFlags >
 
struct  typed_flags< SvLBoxTabFlags >
 
struct  typed_flags< SvNumFormatType >
 
struct  typed_flags< SvNumInputOptions >
 
struct  typed_flags< SvStreamCompressFlags >
 
struct  typed_flags< SvTLEntryFlags >
 
struct  typed_flags< SvTreeFlags >
 
struct  typed_flags< SvTreeListBoxFlags >
 
struct  typed_flags< SvtScriptType >
 
struct  typed_flags< SvxAnchorIds >
 
struct  typed_flags< SvxBackgroundTabFlags >
 
struct  typed_flags< SvxBoxInfoItemValidFlags >
 
struct  typed_flags< SvxIconViewFlags >
 
struct  typed_flags< SvxLanguageListFlags >
 
struct  typed_flags< SvXMLErrorFlags >
 
struct  typed_flags< SvXmlExportFlags >
 
struct  typed_flags< SvXMLExportFlags >
 
struct  typed_flags< SvXMLImportFlags >
 
struct  typed_flags< SvxMSDffHandleFlags >
 
struct  typed_flags< SvxNumRuleFlags >
 
struct  typed_flags< SvxRulerDragFlags >
 
struct  typed_flags< SvxRulerSupportFlags >
 
struct  typed_flags< SvxZoomEnableFlags >
 
struct  typed_flags< sw::ListLevelIndents >
 
struct  typed_flags< sw::mark::RestoreMode >
 
struct  typed_flags< SwBorderModes >
 
struct  typed_flags< SwContentFrameInvFlags >
 
struct  typed_flags< SwContentIndexReg::UpdateMode >
 
struct  typed_flags< SwCopyFlags >
 
struct  typed_flags< SwCursorSelOverFlags >
 
struct  typed_flags< SwCursorSkipMode >
 
struct  typed_flags< SwDeleteFlags >
 
struct  typed_flags< SwDoc::RowColMode >
 
struct  typed_flags< SwFltStackEntry::RegionMode >
 
struct  typed_flags< SwFlyFrameInvFlags >
 
struct  typed_flags< SwFrameInvFlags >
 
struct  typed_flags< SwFrameType >
 
struct  typed_flags< SwInsertFlags >
 
struct  typed_flags< SwInsertNumTypes >
 
struct  typed_flags< SwInsertTableFlags >
 
struct  typed_flags< SwInvalidateFlags >
 
struct  typed_flags< SwMoveFlags >
 
struct  typed_flags< SwNodeType >
 
struct  typed_flags< SwPageFrameInvFlags >
 
struct  typed_flags< SwReaderType >
 
struct  typed_flags< SwScriptInfo::MarkKind >
 
struct  typed_flags< SwSectionFrameInvFlags >
 
struct  typed_flags< SwTabFrameInvFlags >
 
struct  typed_flags< SwTableAutoFormatUpdateFlags >
 
struct  typed_flags< SwTableSearchType >
 
struct  typed_flags< SwTOIOptions >
 
struct  typed_flags< SwTOOElements >
 
struct  typed_flags< SwTOXElement >
 
struct  typed_flags< SwXmlFlags >
 
struct  typed_flags< SystemTextColorFlags >
 
struct  typed_flags< SystemWindowFlags >
 
struct  typed_flags< TabBarPageBits >
 
struct  typed_flags< TabitemFlags >
 
struct  typed_flags< TableChgWidthHeightType >
 
struct  typed_flags< TabulatorDisableFlags >
 
struct  typed_flags< TG >
 
struct  typed_flags< ToolBoxItemBits >
 
struct  typed_flags< ToolBoxMenuType >
 
struct  typed_flags< ToTopFlags >
 
struct  typed_flags< TrackingEventFlags >
 
struct  typed_flags< TransferBufferType >
 
struct  typed_flags< TransliterationFlags >
 
struct  typed_flags< UpdateFlags >
 
struct  typed_flags< UseOnPage >
 
struct  typed_flags< ValidateFlags >
 
struct  typed_flags< vcl::font::FontTypeFaces >
 
struct  typed_flags< vcl::pdf::GraphicsStateUpdateFlags >
 
struct  typed_flags< vcl::pdf::PDFFindFlags >
 
struct  typed_flags< vcl::PushFlags >
 
struct  typed_flags< vcl::text::ComplexTextLayoutFlags >
 
struct  typed_flags< vcl::WindowDataMask >
 
struct  typed_flags< vcl::WindowState >
 
struct  typed_flags< VclInputFlags >
 
struct  typed_flags< ViewOptCoreFlags2 >
 
struct  typed_flags< ViewOptFlags >
 
struct  typed_flags< ViewOptFlags2 >
 
struct  typed_flags< VisitFlags >
 
struct  typed_flags< WheelMode >
 
struct  typed_flags< WindowBorderStyle >
 
struct  typed_flags< WindowExtendedStyle >
 
struct  typed_flags< WindowHitTest >
 
struct  typed_flags< WizardButtonFlags >
 
struct  typed_flags< XclStrFlags >
 
struct  typed_flags< XMLShapeExportFlags >
 
struct  typed_flags< XOutFlags >
 
struct  typed_flags< ZOrderFlags >
 
struct  typed_flags<::sd::tools::IdleState >
 
struct  typed_flags<::sw::DeleteAndInsertMode >
 
struct  UnsafeRefCountingPolicy
 Thread-unsafe refcounting. More...
 
struct  vector_pool
 

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 >
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 >)
 

Enumeration Type Documentation

◆ Length

enum class o3tl::Length
strong
Enumerator
mm100 
mm10 
mm 
cm 
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.

Function Documentation

◆ checked_add() [1/2]

template<typename T >
std::enable_if< std::is_signed< T >::value, bool >::type o3tl::checked_add ( a,
b,
T &  result 
)
inline

Definition at line 153 of file safeint.hxx.

References a, and result.

◆ checked_add() [2/2]

template<typename T >
std::enable_if< std::is_unsigned< T >::value, bool >::type o3tl::checked_add ( a,
b,
T &  result 
)
inline

Definition at line 166 of file safeint.hxx.

References a, and result.

◆ checked_multiply() [1/2]

template<typename T >
std::enable_if< std::is_signed< T >::value, bool >::type o3tl::checked_multiply ( a,
b,
T &  result 
)
inline

Definition at line 111 of file safeint.hxx.

References a, and result.

◆ checked_multiply() [2/2]

template<typename T >
std::enable_if< std::is_unsigned< T >::value, bool >::type o3tl::checked_multiply ( a,
b,
T &  result 
)
inline

Definition at line 141 of file safeint.hxx.

References a, and result.

◆ checked_sub() [1/2]

template<typename T >
std::enable_if< std::is_signed< T >::value, bool >::type o3tl::checked_sub ( a,
b,
T &  result 
)
inline

Definition at line 178 of file safeint.hxx.

References a, and result.

◆ checked_sub() [2/2]

template<typename T >
std::enable_if< std::is_unsigned< T >::value, bool >::type o3tl::checked_sub ( a,
b,
T &  result 
)
inline

Definition at line 191 of file safeint.hxx.

References a, and result.

◆ clamp_to_unsigned()

template<typename T1 , typename T2 >
constexpr std::enable_if_t< std::is_unsigned_v< T1 >, T1 > o3tl::clamp_to_unsigned ( T2  value)
constexpr

Definition at line 212 of file safeint.hxx.

References make_unsigned(), and value.

◆ cmp_equal()

template<typename T1 , typename T2 >
constexpr bool o3tl::cmp_equal ( T1  value1,
T2  value2 
)
constexprnoexcept

Definition at line 35 of file intcmp.hxx.

References make_unsigned(), and value2.

Referenced by cmp_not_equal(), and operator==().

◆ cmp_greater()

template<typename T1 , typename T2 >
constexpr bool o3tl::cmp_greater ( T1  value1,
T2  value2 
)
constexprnoexcept

Definition at line 73 of file intcmp.hxx.

References cmp_less(), and value2.

Referenced by cmp_less_equal(), and operator>().

◆ cmp_greater_equal()

template<typename T1 , typename T2 >
constexpr bool o3tl::cmp_greater_equal ( T1  value1,
T2  value2 
)
constexprnoexcept

Definition at line 83 of file intcmp.hxx.

References cmp_less(), and value2.

Referenced by operator>=().

◆ cmp_less()

template<typename T1 , typename T2 >
constexpr bool o3tl::cmp_less ( T1  value1,
T2  value2 
)
constexprnoexcept

Definition at line 57 of file intcmp.hxx.

References make_unsigned(), and value2.

Referenced by cmp_greater(), cmp_greater_equal(), and operator<().

◆ cmp_less_equal()

template<typename T1 , typename T2 >
constexpr bool o3tl::cmp_less_equal ( T1  value1,
T2  value2 
)
constexprnoexcept

Definition at line 78 of file intcmp.hxx.

References cmp_greater(), and value2.

Referenced by operator<=().

◆ cmp_not_equal()

template<typename T1 , typename T2 >
constexpr bool o3tl::cmp_not_equal ( T1  value1,
T2  value2 
)
constexprnoexcept

Definition at line 52 of file intcmp.hxx.

References cmp_equal(), and value2.

Referenced by operator!=().

◆ compareToAscii()

int o3tl::compareToAscii ( std::u16string_view  s1,
std::string_view  s2 
)
inline

Definition at line 36 of file string_view.hxx.

◆ compareToIgnoreAsciiCase()

int o3tl::compareToIgnoreAsciiCase ( std::u16string_view  s1,
std::u16string_view  s2 
)
inline

Definition at line 71 of file string_view.hxx.

◆ convert() [1/3]

template<typename N >
constexpr auto o3tl::convert ( N  n,
sal_Int64  mul,
sal_Int64  div 
)
constexpr

Definition at line 210 of file unit_conversion.hxx.

References div(), o3tl::detail::MulDiv(), and n.

◆ convert() [2/3]

template<typename N , typename U >
constexpr auto o3tl::convert ( N  n,
from,
to 
)
constexpr

Definition at line 216 of file unit_conversion.hxx.

References convert(), from, o3tl::detail::md(), n, and to.

◆ convert() [3/3]

template<typename N , typename U >
constexpr auto o3tl::convert ( N  n,
from,
to,
bool &  bOverflow,
sal_Int64  nDefault = 0 
)
constexpr

Definition at line 230 of file unit_conversion.hxx.

References from, o3tl::detail::md(), o3tl::detail::MulDiv(), n, and to.

◆ convertSaturate()

template<typename N , typename U >
constexpr auto o3tl::convertSaturate ( N  n,
from,
to 
)
constexpr

Definition at line 238 of file unit_conversion.hxx.

References from, o3tl::detail::md(), o3tl::detail::MulDivSaturate(), n, and to.

◆ convertsToAtLeast()

template<typename F , typename I >
constexpr std::enable_if_t< std::is_floating_point_v< F > &&std::is_integral_v< I >, bool > o3tl::convertsToAtLeast ( value,
min 
)
constexpr

Definition at line 25 of file float_int_conversion.hxx.

References F, min(), and value.

Referenced by saturating_cast().

◆ convertsToAtMost()

template<typename F , typename I >
constexpr std::enable_if_t< std::is_floating_point_v< F > &&std::is_integral_v< I >, bool > o3tl::convertsToAtMost ( value,
max 
)
constexpr

Definition at line 38 of file float_int_conversion.hxx.

References F, max, and value.

Referenced by saturating_cast().

◆ doAccess()

template<typename T >
detail::Optional< T >::type o3tl::doAccess ( css::uno::Any const &  any)
inline

Access the value of a specific type stored in an Any, throwing an exception on failure.

Attention: \n A proxy returned from this function must not outlive the
corresponding Any passed into this function (as it may constitute a pointer into the Any's internals). However, unlike with tryAccess, the benefit of allowing this function to operate on temporaries appears to outweigh its dangers.
Note
Ideally this would be a public member function of css::uno::Any. See tryAccess for details.
Template Parameters
Tthe C++ representation of a UNO type that can be contained in a UNO ANY. See tryAccess for details.
Parameters
anyan Any value.
Returns
a positive proxy for the value of the specified type obtained from the given Any. See tryAccess for details.
Exceptions
css::uno::RuntimeExceptionwhen 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().

◆ ends_with() [1/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::ends_with ( std::basic_string_view< charT, traits >  sv,
charT const *  x 
)
constexpr

Definition at line 285 of file string_view.hxx.

References ends_with(), and x.

◆ ends_with() [2/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::ends_with ( std::basic_string_view< charT, traits >  sv,
charT const *  x,
std::basic_string_view< charT, traits > *  rest 
)
constexpr

Definition at line 380 of file string_view.hxx.

References ends_with(), and x.

◆ ends_with() [3/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::ends_with ( std::basic_string_view< charT, traits >  sv,
charT  x 
)
constexprnoexcept

Definition at line 276 of file string_view.hxx.

References x.

◆ ends_with() [4/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::ends_with ( std::basic_string_view< charT, traits >  sv,
charT  x,
std::basic_string_view< charT, traits > *  rest 
)
constexprnoexcept

Definition at line 368 of file string_view.hxx.

References ends_with(), and x.

◆ ends_with() [5/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::ends_with ( std::basic_string_view< charT, traits >  sv,
std::basic_string_view< charT, traits >  x 
)
constexprnoexcept

Definition at line 265 of file string_view.hxx.

References x.

Referenced by ends_with().

◆ ends_with() [6/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::ends_with ( std::basic_string_view< charT, traits >  sv,
std::basic_string_view< charT, traits >  x,
std::basic_string_view< charT, traits > *  rest 
)
constexprnoexcept

Definition at line 355 of file string_view.hxx.

References ends_with(), and x.

◆ ends_with() [7/10]

constexpr bool o3tl::ends_with ( std::string_view  sv,
std::string_view  x 
)
constexprnoexcept

Definition at line 305 of file string_view.hxx.

References x.

◆ ends_with() [8/10]

constexpr bool o3tl::ends_with ( std::string_view  sv,
std::string_view  x,
std::string_view *  rest 
)
constexprnoexcept

Definition at line 404 of file string_view.hxx.

References x.

◆ ends_with() [9/10]

constexpr bool o3tl::ends_with ( std::u16string_view  sv,
std::u16string_view  x 
)
constexprnoexcept

Definition at line 309 of file string_view.hxx.

References x.

◆ ends_with() [10/10]

constexpr bool o3tl::ends_with ( std::u16string_view  sv,
std::u16string_view  x,
std::u16string_view *  rest 
)
constexprnoexcept

Definition at line 408 of file string_view.hxx.

References x.

◆ endsWithIgnoreAsciiCase() [1/2]

bool o3tl::endsWithIgnoreAsciiCase ( std::u16string_view  s1,
std::string_view  s2,
std::u16string_view *  rest = nullptr 
)
inline

Definition at line 106 of file string_view.hxx.

◆ endsWithIgnoreAsciiCase() [2/2]

bool o3tl::endsWithIgnoreAsciiCase ( std::u16string_view  s1,
std::u16string_view  s2,
std::u16string_view *  rest = nullptr 
)
inline

Definition at line 95 of file string_view.hxx.

References matchIgnoreAsciiCase().

◆ equalsAscii()

bool o3tl::equalsAscii ( std::u16string_view  s1,
std::string_view  s2 
)
inline

Definition at line 28 of file string_view.hxx.

◆ equalsIgnoreAsciiCase() [1/3]

bool o3tl::equalsIgnoreAsciiCase ( std::string_view  s1,
std::string_view  s2 
)
inline

Definition at line 60 of file string_view.hxx.

◆ equalsIgnoreAsciiCase() [2/3]

bool o3tl::equalsIgnoreAsciiCase ( std::u16string_view  s1,
std::string_view  s2 
)
inline

Definition at line 52 of file string_view.hxx.

◆ equalsIgnoreAsciiCase() [3/3]

bool o3tl::equalsIgnoreAsciiCase ( std::u16string_view  s1,
std::u16string_view  s2 
)
inline

Definition at line 42 of file string_view.hxx.

◆ forceAccess()

template<typename T >
detail::Optional< T >::type o3tl::forceAccess ( css::uno::Any const &  any)
inline

Access the value of a specific type stored in an Any, knowing the Any contains a value of a matching type.

Attention: \n A proxy returned from this function must not outlive the
corresponding Any passed into this function (as it may constitute a pointer into the Any's internals). However, unlike with tryAccess, the benefit of allowing this function to operate on temporaries appears to outweigh its dangers.
Note
Ideally this would be a public member function of css::uno::Any. See tryAccess for details.
Template Parameters
Tthe C++ representation of a UNO type that can be contained in a UNO ANY. See tryAccess for details.
Parameters
anyan Any value.
Returns
a positive proxy for the value of the specified type obtained from the given Any. See tryAccess for details.

Definition at line 313 of file any.hxx.

References any.

◆ getToken() [1/8]

template<typename charT , typename traits = std::char_traits<charT>>
std::basic_string_view< charT, traits > o3tl::getToken ( std::basic_string_view< charT, traits >  pStr,
sal_Int32  nToken,
charT  cTok,
sal_Int32 &  rnIndex 
)
inline

Definition at line 167 of file string_view.hxx.

References nToken.

◆ getToken() [2/8]

template<typename charT , typename traits = std::char_traits<charT>>
std::basic_string_view< charT, traits > o3tl::getToken ( std::basic_string_view< charT, traits >  sv,
charT  delimiter,
std::size_t &  position 
)
inline

Definition at line 128 of file string_view.hxx.

References n, position(), and t.

◆ getToken() [3/8]

std::string_view o3tl::getToken ( std::string_view  sv,
char  delimiter,
std::size_t &  position 
)
inline

Definition at line 151 of file string_view.hxx.

References position().

◆ getToken() [4/8]

std::string_view o3tl::getToken ( std::string_view  sv,
sal_Int32  nToken,
char  cTok 
)
inline

Definition at line 223 of file string_view.hxx.

References nIndex, and nToken.

◆ getToken() [5/8]

std::string_view o3tl::getToken ( std::string_view  sv,
sal_Int32  nToken,
char  cTok,
sal_Int32 &  rnIndex 
)
inline

Definition at line 213 of file string_view.hxx.

References nToken.

◆ getToken() [6/8]

std::u16string_view o3tl::getToken ( std::u16string_view  sv,
char16_t  delimiter,
std::size_t &  position 
)
inline

Definition at line 155 of file string_view.hxx.

References position().

◆ getToken() [7/8]

std::u16string_view o3tl::getToken ( std::u16string_view  sv,
sal_Int32  nToken,
char16_t  cTok 
)
inline

Definition at line 228 of file string_view.hxx.

References nIndex, and nToken.

◆ getToken() [8/8]

std::u16string_view o3tl::getToken ( std::u16string_view  sv,
sal_Int32  nToken,
char16_t  cTok,
sal_Int32 &  rnIndex 
)
inline

Definition at line 218 of file string_view.hxx.

References nToken.

◆ hash_combine() [1/4]

template<typename T , typename N >
std::enable_if_t<(sizeof(N)==4)> o3tl::hash_combine ( N nSeed,
T const &  nValue 
)
inline

Definition at line 30 of file hash_combine.hxx.

References N, and nValue.

◆ hash_combine() [2/4]

template<typename T , typename N >
std::enable_if_t<(sizeof(N)==8)> o3tl::hash_combine ( N nSeed,
T const &  nValue 
)
inline

Definition at line 48 of file hash_combine.hxx.

References N, and nValue.

◆ hash_combine() [3/4]

template<typename T , typename N >
std::enable_if_t<(sizeof(N)==4)> o3tl::hash_combine ( N nSeed,
T const *  pValue,
size_t  nCount 
)
inline

Definition at line 19 of file hash_combine.hxx.

References i, N, and nCount.

◆ hash_combine() [4/4]

template<typename T , typename N >
std::enable_if_t<(sizeof(N)==8)> o3tl::hash_combine ( N nSeed,
T const *  pValue,
size_t  nCount 
)
inline

Definition at line 37 of file hash_combine.hxx.

References i, N, and nCount.

◆ iterateCodePoints()

sal_uInt32 o3tl::iterateCodePoints ( std::u16string_view  string,
sal_Int32 *  indexUtf16,
sal_Int32  incrementCodePoints = 1 
)
inline

Definition at line 512 of file string_view.hxx.

References length, and n.

◆ make_shared()

template<class T , class... Args>
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.

◆ make_shared_array()

template<typename T >
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.

◆ make_unsigned()

template<typename T >
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > o3tl::make_unsigned ( value)
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().

◆ matchIgnoreAsciiCase() [1/2]

bool o3tl::matchIgnoreAsciiCase ( std::u16string_view  s1,
std::string_view  s2,
sal_Int32  fromIndex = 0 
)
inline

Definition at line 86 of file string_view.hxx.

◆ matchIgnoreAsciiCase() [2/2]

bool o3tl::matchIgnoreAsciiCase ( std::u16string_view  s1,
std::u16string_view  s2,
sal_Int32  fromIndex = 0 
)
inline

Definition at line 77 of file string_view.hxx.

Referenced by endsWithIgnoreAsciiCase().

◆ narrowing()

template<typename T1 , typename T2 >
constexpr T1 o3tl::narrowing ( T2  value)
constexpr

Definition at line 225 of file safeint.hxx.

References value.

◆ operator!=() [1/2]

template<class T , class P >
bool o3tl::operator!= ( const cow_wrapper< T, P > &  a,
const cow_wrapper< T, P > &  b 
)
inline

◆ operator!=() [2/2]

template<typename T1 , typename T2 >
constexpr bool o3tl::operator!= ( IntCmp< T1 >  value1,
IntCmp< T2 >  value2 
)
constexpr

Definition at line 106 of file intcmp.hxx.

References cmp_not_equal(), o3tl::IntCmp< T >::value, and value2.

◆ operator+()

template<typename UT , typename PT >
strong_int< UT, PT > o3tl::operator+ ( strong_int< UT, PT > const &  lhs,
strong_int< UT, PT > const &  rhs 
)

◆ operator-()

template<typename UT , typename PT >
strong_int< UT, PT > o3tl::operator- ( strong_int< UT, PT > const &  lhs,
strong_int< UT, PT > const &  rhs 
)

◆ operator<() [1/2]

template<class A , class B , class P >
bool o3tl::operator< ( const cow_wrapper< A, P > &  a,
const cow_wrapper< B, P > &  b 
)
inline

◆ operator<() [2/2]

template<typename T1 , typename T2 >
constexpr bool o3tl::operator< ( IntCmp< T1 >  value1,
IntCmp< T2 >  value2 
)
constexpr

Definition at line 111 of file intcmp.hxx.

References cmp_less(), o3tl::IntCmp< T >::value, and value2.

◆ operator<=()

template<typename T1 , typename T2 >
constexpr bool o3tl::operator<= ( IntCmp< T1 >  value1,
IntCmp< T2 >  value2 
)
constexpr

Definition at line 121 of file intcmp.hxx.

References cmp_less_equal(), o3tl::IntCmp< T >::value, and value2.

◆ operator==() [1/2]

template<class T , class P >
bool o3tl::operator== ( const cow_wrapper< T, P > &  a,
const cow_wrapper< T, P > &  b 
)
inline

◆ operator==() [2/2]

template<typename T1 , typename T2 >
constexpr bool o3tl::operator== ( IntCmp< T1 >  value1,
IntCmp< T2 >  value2 
)
constexpr

Definition at line 101 of file intcmp.hxx.

References cmp_equal(), o3tl::IntCmp< T >::value, and value2.

◆ operator>()

template<typename T1 , typename T2 >
constexpr bool o3tl::operator> ( IntCmp< T1 >  value1,
IntCmp< T2 >  value2 
)
constexpr

Definition at line 116 of file intcmp.hxx.

References cmp_greater(), o3tl::IntCmp< T >::value, and value2.

◆ operator>=()

template<typename T1 , typename T2 >
constexpr bool o3tl::operator>= ( IntCmp< T1 >  value1,
IntCmp< T2 >  value2 
)
constexpr

Definition at line 126 of file intcmp.hxx.

References cmp_greater_equal(), o3tl::IntCmp< T >::value, and value2.

◆ remove_duplicates()

template<typename T >
void o3tl::remove_duplicates ( std::vector< T > &  rVector)

Definition at line 20 of file vector_utils.hxx.

◆ reset_preserve_ptr_during()

template<typename uniqueptr >
void o3tl::reset_preserve_ptr_during ( uniqueptr &  ptr)

Definition at line 54 of file deleter.hxx.

◆ roundAway()

template<typename F >
std::enable_if_t< std::is_floating_point_v< F >, F > o3tl::roundAway ( value)

Definition at line 64 of file float_int_conversion.hxx.

References F, and value.

◆ runtimeToOUString()

OUString o3tl::runtimeToOUString ( char const *  runtimeString)
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.

◆ sanitizing_min()

template<typename T >
T o3tl::sanitizing_min ( a,
b 
)
inline

Definition at line 229 of file safeint.hxx.

References a.

◆ saturating_add()

template<typename T >
constexpr T o3tl::saturating_add ( a,
b 
)
inlineconstexpr

Definition at line 30 of file safeint.hxx.

References a.

◆ saturating_cast()

template<typename I , typename F >
constexpr std::enable_if_t< std::is_floating_point_v< F > &&std::is_integral_v< I >, I > o3tl::saturating_cast ( f)
constexpr

Definition at line 51 of file float_int_conversion.hxx.

References convertsToAtLeast(), and convertsToAtMost().

◆ saturating_sub()

template<typename T >
constexpr T o3tl::saturating_sub ( a,
b 
)
inlineconstexpr

Definition at line 47 of file safeint.hxx.

References a.

◆ saturating_toggle_sign()

template<typename T >
std::enable_if< std::is_signed< T >::value, T >::type o3tl::saturating_toggle_sign ( a)
inline

Definition at line 65 of file safeint.hxx.

References a.

◆ sprintf()

template<std::size_t N, typename... T>
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.

◆ starts_with() [1/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::starts_with ( std::basic_string_view< charT, traits >  sv,
charT const *  x 
)
constexpr

Definition at line 256 of file string_view.hxx.

References starts_with(), and x.

◆ starts_with() [2/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::starts_with ( std::basic_string_view< charT, traits >  sv,
charT const *  x,
std::basic_string_view< charT, traits > *  rest 
)
constexpr

Definition at line 343 of file string_view.hxx.

References starts_with(), and x.

◆ starts_with() [3/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::starts_with ( std::basic_string_view< charT, traits >  sv,
charT  x 
)
constexprnoexcept

Definition at line 247 of file string_view.hxx.

References x.

◆ starts_with() [4/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::starts_with ( std::basic_string_view< charT, traits >  sv,
charT  x,
std::basic_string_view< charT, traits > *  rest 
)
constexprnoexcept

Definition at line 331 of file string_view.hxx.

References starts_with(), and x.

◆ starts_with() [5/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::starts_with ( std::basic_string_view< charT, traits >  sv,
std::basic_string_view< charT, traits >  x 
)
constexprnoexcept

Definition at line 237 of file string_view.hxx.

References x.

Referenced by starts_with().

◆ starts_with() [6/10]

template<typename charT , typename traits = std::char_traits<charT>>
constexpr bool o3tl::starts_with ( std::basic_string_view< charT, traits >  sv,
std::basic_string_view< charT, traits >  x,
std::basic_string_view< charT, traits > *  rest 
)
constexprnoexcept

Definition at line 318 of file string_view.hxx.

References starts_with(), and x.

◆ starts_with() [7/10]

constexpr bool o3tl::starts_with ( std::string_view  sv,
std::string_view  x 
)
constexprnoexcept

Definition at line 297 of file string_view.hxx.

References x.

◆ starts_with() [8/10]

constexpr bool o3tl::starts_with ( std::string_view  sv,
std::string_view  x,
std::string_view *  rest 
)
constexprnoexcept

Definition at line 395 of file string_view.hxx.

References x.

◆ starts_with() [9/10]

constexpr bool o3tl::starts_with ( std::u16string_view  sv,
std::u16string_view  x 
)
constexprnoexcept

Definition at line 301 of file string_view.hxx.

References x.

◆ starts_with() [10/10]

constexpr bool o3tl::starts_with ( std::u16string_view  sv,
std::u16string_view  x,
std::u16string_view *  rest 
)
constexprnoexcept

Definition at line 399 of file string_view.hxx.

References x.

◆ swap()

template<class T , class P >
void o3tl::swap ( cow_wrapper< T, P > &  a,
cow_wrapper< T, P > &  b 
)
inline

◆ temporary() [1/2]

template<typename T >
constexpr T & o3tl::temporary ( T &&  x)
constexpr

Definition at line 21 of file temporary.hxx.

References x.

◆ temporary() [2/2]

template<typename T >
constexpr T & o3tl::temporary ( T &  )
constexprdelete

◆ to_underlying()

template<typename T >
constexpr std::underlying_type_t< T > o3tl::to_underlying ( e)
constexpr

◆ toDouble() [1/2]

double o3tl::toDouble ( std::string_view  str)
inline

Definition at line 506 of file string_view.hxx.

◆ toDouble() [2/2]

double o3tl::toDouble ( std::u16string_view  str)
inline

Definition at line 502 of file string_view.hxx.

◆ toInt32() [1/2]

sal_Int32 o3tl::toInt32 ( std::string_view  str,
sal_Int16  radix = 10 
)
inline

Definition at line 467 of file string_view.hxx.

References n, and SAL_MAX_INT32.

◆ toInt32() [2/2]

sal_Int32 o3tl::toInt32 ( std::u16string_view  str,
sal_Int16  radix = 10 
)
inline

Definition at line 460 of file string_view.hxx.

References n, and SAL_MAX_INT32.

◆ toInt64() [1/2]

sal_Int64 o3tl::toInt64 ( std::string_view  str,
sal_Int16  radix = 10 
)
inline

Definition at line 496 of file string_view.hxx.

◆ toInt64() [2/2]

sal_Int64 o3tl::toInt64 ( std::u16string_view  str,
sal_Int16  radix = 10 
)
inline

Definition at line 492 of file string_view.hxx.

◆ toTwips()

template<typename N >
constexpr auto o3tl::toTwips ( N  number,
Length  from 
)
constexpr

Definition at line 222 of file unit_conversion.hxx.

References convert(), from, and twip.

◆ toUInt32() [1/2]

sal_uInt32 o3tl::toUInt32 ( std::string_view  str,
sal_Int16  radix = 10 
)
inline

Definition at line 483 of file string_view.hxx.

References n, and SAL_MAX_UINT32.

◆ toUInt32() [2/2]

sal_uInt32 o3tl::toUInt32 ( std::u16string_view  str,
sal_Int16  radix = 10 
)
inline

Definition at line 476 of file string_view.hxx.

References n, and SAL_MAX_UINT32.

◆ trim() [1/3]

template<typename charT , typename traits = std::char_traits<charT>>
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().

◆ trim() [2/3]

auto o3tl::trim ( std::string_view  str)
inline

Definition at line 456 of file string_view.hxx.

◆ trim() [3/3]

auto o3tl::trim ( std::u16string_view  str)
inline

Definition at line 457 of file string_view.hxx.

◆ tryAccess() [1/3]

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 o3tl::tryAccess ( css::uno::Any const &  any)
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.)

Attention: \n A proxy returned from this function must not outlive the
corresponding Any passed into this function (as it may constitute a pointer into the Any's internals). That is the reason why this function is restricted to lvalue arguments (i.e., to non-temporary Any objects), to avoid misuses like
css::uno::Any f();
if (auto p = o3tl::tryAccess<css::beans::NamedValue>(f())) {
return p->Name;
}
Note
Ideally this would be a public member function of css::uno::Any (at least conditional on LIBO_INTERNAL_ONLY, as it requires C++11). However, as std::optional (which would be needed to implement the proxies) is only available since C++14, we need to use std::optional for now. But To not make every entity that includes <com/sun/star/uno/Any.hxx> depend on boost_headers, keep this here for now.
Template Parameters
Tthe 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.
Parameters
anyan Any value.
Returns
a positive proxy for the value of the specified type obtained from the given Any, or a negative proxy if no such value can be obtained.

Definition at line 148 of file any.hxx.

References any, and cppu::UnoType< typename T >::get().

◆ tryAccess() [2/3]

template<typename T >
std::enable_if< detail::IsDerivedReference< T >::value, typenamedetail::Optional< T >::type >::type o3tl::tryAccess ( css::uno::Any const &  any)
inline

Definition at line 249 of file any.hxx.

References any.

◆ tryAccess() [3/3]

template<typename T >
detail::Optional< T >::type o3tl::tryAccess ( css::uno::Any const volatile &&  )
delete

◆ tryAccess< bool >()

template<>
detail::Optional< bool >::type o3tl::tryAccess< bool > ( css::uno::Any const &  any)
inline

Definition at line 163 of file any.hxx.

References any.

◆ tryAccess< css::uno::Any >()

template<>
detail::Optional< css::uno::Any >::type o3tl::tryAccess< css::uno::Any > ( css::uno::Any const &  )
delete

◆ tryAccess< double >()

template<>
detail::Optional< double >::type o3tl::tryAccess< double > ( css::uno::Any const &  any)
inline

Definition at line 217 of file any.hxx.

References any.

◆ tryAccess< float >()

template<>
detail::Optional< float >::type o3tl::tryAccess< float > ( css::uno::Any const &  any)
inline

Definition at line 211 of file any.hxx.

References any.

◆ tryAccess< sal_Bool >()

template<>
detail::Optional< sal_Bool >::type o3tl::tryAccess< sal_Bool > ( css::uno::Any const &  )
delete

◆ tryAccess< sal_Int16 >()

template<>
detail::Optional< sal_Int16 >::type o3tl::tryAccess< sal_Int16 > ( css::uno::Any const &  any)
inline

Definition at line 175 of file any.hxx.

References any.

◆ tryAccess< sal_Int32 >()

template<>
detail::Optional< sal_Int32 >::type o3tl::tryAccess< sal_Int32 > ( css::uno::Any const &  any)
inline

Definition at line 187 of file any.hxx.

References any.

◆ tryAccess< sal_Int64 >()

template<>
detail::Optional< sal_Int64 >::type o3tl::tryAccess< sal_Int64 > ( css::uno::Any const &  any)
inline

Definition at line 199 of file any.hxx.

References any.

◆ tryAccess< sal_Int8 >()

template<>
detail::Optional< sal_Int8 >::type o3tl::tryAccess< sal_Int8 > ( css::uno::Any const &  any)
inline

Definition at line 169 of file any.hxx.

References any.

◆ tryAccess< sal_uInt16 >()

template<>
detail::Optional< sal_uInt16 >::type o3tl::tryAccess< sal_uInt16 > ( css::uno::Any const &  any)
inline

Definition at line 181 of file any.hxx.

References any.

◆ tryAccess< sal_uInt32 >()

template<>
detail::Optional< sal_uInt32 >::type o3tl::tryAccess< sal_uInt32 > ( css::uno::Any const &  any)
inline

Definition at line 193 of file any.hxx.

References any.

◆ tryAccess< sal_uInt64 >()

template<>
detail::Optional< sal_uInt64 >::type o3tl::tryAccess< sal_uInt64 > ( css::uno::Any const &  any)
inline

Definition at line 205 of file any.hxx.

References any.

◆ tryAccess< void >()

template<>
detail::Optional< void >::type o3tl::tryAccess< void > ( css::uno::Any const &  any)
inline

Definition at line 155 of file any.hxx.

References any.

◆ unsafe_downcast()

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 > o3tl::unsafe_downcast ( BasePtr  p)

Definition at line 26 of file unsafe_downcast.hxx.

References p.

Variable Documentation

◆ begin

template<typename T >
enumrange< T >::Iterator o3tl::begin(enumrange< T >) ( enumrange< T >  )

Definition at line 72 of file enumrange.hxx.

◆ end

template<typename T >
enumrange< T >::Iterator o3tl::end(enumrange< T >) ( enumrange< T >  )

Definition at line 78 of file enumrange.hxx.