LibreOffice Module scripting (master) 1
Classes | Typedefs | Functions | Variables
stringresource Namespace Reference

Classes

class  BinaryOutput
 
struct  LocaleItem
 
class  StringResourceImpl
 
class  StringResourcePersistenceImpl
 
class  StringResourceWithLocationImpl
 
class  StringResourceWithStorageImpl
 

Typedefs

typedef std::unordered_map< OUString, OUString > IdToStringMap
 
typedef std::unordered_map< OUString, sal_Int32 > IdToIndexMap
 
typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo, css::resource::XStringResourceManager > StringResourceImpl_BASE
 
typedef ::cppu::ImplInheritanceHelper< StringResourceImpl, css::resource::XStringResourcePersistence > StringResourcePersistenceImpl_BASE
 
typedef ::cppu::ImplInheritanceHelper< StringResourcePersistenceImpl, css::lang::XInitialization, css::resource::XStringResourceWithStorage > StringResourceWithStorageImpl_BASE
 
typedef ::cppu::ImplInheritanceHelper< StringResourcePersistenceImpl, css::lang::XInitialization, css::resource::XStringResourceWithLocation > StringResourceWithLocationImpl_BASE
 

Functions

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * scripting_StringResourcePersistenceImpl_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 
static bool checkNamingSceme (std::u16string_view aName, std::u16string_view aNameBase, Locale &aLocale)
 
static OUString implGetNameScemeForLocaleItem (const LocaleItem *pLocaleItem)
 
static bool isWhiteSpace (sal_Unicode c)
 
static void skipWhites (const sal_Unicode *pBuf, sal_Int32 nLen, sal_Int32 &ri)
 
static bool isHexDigit (sal_Unicode c, sal_uInt16 &nDigitVal)
 
static sal_Unicode getEscapeChar (const sal_Unicode *pBuf, sal_Int32 nLen, sal_Int32 &ri)
 
static void CheckContinueInNextLine (const Reference< io::XTextInputStream2 > &xTextInputStream, OUString &aLine, bool &bEscapePending, const sal_Unicode *&pBuf, sal_Int32 &nLen, sal_Int32 &i)
 
static sal_Unicode getHexCharForDigit (sal_uInt16 nDigitVal)
 
static void implWriteCharToBuffer (OUStringBuffer &aBuf, sal_Unicode cu, bool bKey)
 
static void implWriteStringWithEncoding (const OUString &aStr, Reference< io::XTextOutputStream2 > const &xTextOutputStream, bool bKey)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * scripting_StringResourceWithStorageImpl_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * scripting_StringResourceWithLocationImpl_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 

Variables

constexpr OUStringLiteral aNameBaseDefaultStr = u"strings"
 

Typedef Documentation

◆ IdToIndexMap

typedef std::unordered_map< OUString, sal_Int32> stringresource::IdToIndexMap

Definition at line 58 of file stringresource.hxx.

◆ IdToStringMap

typedef std::unordered_map< OUString, OUString> stringresource::IdToStringMap

Definition at line 51 of file stringresource.hxx.

◆ StringResourceImpl_BASE

typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo, css::resource::XStringResourceManager > stringresource::StringResourceImpl_BASE

Definition at line 80 of file stringresource.hxx.

◆ StringResourcePersistenceImpl_BASE

typedef ::cppu::ImplInheritanceHelper< StringResourceImpl, css::resource::XStringResourcePersistence > stringresource::StringResourcePersistenceImpl_BASE

Definition at line 188 of file stringresource.hxx.

◆ StringResourceWithLocationImpl_BASE

typedef ::cppu::ImplInheritanceHelper< StringResourcePersistenceImpl, css::lang::XInitialization, css::resource::XStringResourceWithLocation > stringresource::StringResourceWithLocationImpl_BASE

Definition at line 407 of file stringresource.hxx.

◆ StringResourceWithStorageImpl_BASE

typedef ::cppu::ImplInheritanceHelper< StringResourcePersistenceImpl, css::lang::XInitialization, css::resource::XStringResourceWithStorage > stringresource::StringResourceWithStorageImpl_BASE

Definition at line 329 of file stringresource.hxx.

Function Documentation

◆ CheckContinueInNextLine()

static void stringresource::CheckContinueInNextLine ( const Reference< io::XTextInputStream2 > &  xTextInputStream,
OUString &  aLine,
bool &  bEscapePending,
const sal_Unicode *&  pBuf,
sal_Int32 &  nLen,
sal_Int32 &  i 
)
static

◆ checkNamingSceme()

static bool stringresource::checkNamingSceme ( std::u16string_view  aName,
std::u16string_view  aNameBase,
Locale &  aLocale 
)
static

◆ getEscapeChar()

static sal_Unicode stringresource::getEscapeChar ( const sal_Unicode pBuf,
sal_Int32  nLen,
sal_Int32 &  ri 
)
static

◆ getHexCharForDigit()

static sal_Unicode stringresource::getHexCharForDigit ( sal_uInt16  nDigitVal)
static

Definition at line 1852 of file stringresource.cxx.

Referenced by implWriteCharToBuffer().

◆ implGetNameScemeForLocaleItem()

static OUString stringresource::implGetNameScemeForLocaleItem ( const LocaleItem pLocaleItem)
static

◆ implWriteCharToBuffer()

static void stringresource::implWriteCharToBuffer ( OUStringBuffer &  aBuf,
sal_Unicode  cu,
bool  bKey 
)
static

Definition at line 1858 of file stringresource.cxx.

References aBuf, getHexCharForDigit(), and i.

Referenced by implWriteStringWithEncoding().

◆ implWriteStringWithEncoding()

static void stringresource::implWriteStringWithEncoding ( const OUString &  aStr,
Reference< io::XTextOutputStream2 > const &  xTextOutputStream,
bool  bKey 
)
static

◆ isHexDigit()

static bool stringresource::isHexDigit ( sal_Unicode  c,
sal_uInt16 &  nDigitVal 
)
static

Definition at line 1641 of file stringresource.cxx.

References isHexDigit().

Referenced by getEscapeChar(), and isHexDigit().

◆ isWhiteSpace()

static bool stringresource::isWhiteSpace ( sal_Unicode  c)
static

◆ scripting_StringResourcePersistenceImpl_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * stringresource::scripting_StringResourcePersistenceImpl_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 60 of file stringresource.cxx.

◆ scripting_StringResourceWithLocationImpl_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * stringresource::scripting_StringResourceWithLocationImpl_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 2276 of file stringresource.cxx.

◆ scripting_StringResourceWithStorageImpl_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * stringresource::scripting_StringResourceWithStorageImpl_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 2002 of file stringresource.cxx.

◆ skipWhites()

static void stringresource::skipWhites ( const sal_Unicode pBuf,
sal_Int32  nLen,
sal_Int32 &  ri 
)
static

Variable Documentation

◆ aNameBaseDefaultStr

constexpr OUStringLiteral stringresource::aNameBaseDefaultStr = u"strings"
constexpr