Kaydet (Commit) 00e52e1e authored tarafından Caolán McNamara's avatar Caolán McNamara

make indent sane

üst 66c3510e
......@@ -86,14 +86,11 @@ public:
/// Preferred ctor with service manager specified
CharClass(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xSF,
const ::com::sun::star::lang::Locale& rLocale
);
const ::com::sun::star::lang::Locale& rLocale);
/// Depricated ctor, tries to get a process service manager or to load the
/// library directly.
CharClass(
const ::com::sun::star::lang::Locale& rLocale
);
CharClass(const ::com::sun::star::lang::Locale& rLocale);
~CharClass();
......@@ -106,15 +103,21 @@ public:
/// isdigit() on ascii values
static inline sal_Bool isAsciiDigit( sal_Unicode c )
{ return c < 128 ? sal_Bool(isdigit( (unsigned char) c ) != 0) : sal_False; }
{
return c < 128 ? sal_Bool(isdigit( (unsigned char) c ) != 0) : sal_False;
}
/// isalpha() on ascii values
static inline sal_Bool isAsciiAlpha( sal_Unicode c )
{ return c < 128 ? sal_Bool(isalpha( (unsigned char) c ) != 0) : sal_False; }
{
return c < 128 ? sal_Bool(isalpha( (unsigned char) c ) != 0) : sal_False;
}
/// isalnum() on ascii values
static inline sal_Bool isAsciiAlphaNumeric( sal_Unicode c )
{ return c < 128 ? sal_Bool(isalnum( (unsigned char) c ) != 0) : sal_False; }
{
return c < 128 ? sal_Bool(isalnum( (unsigned char) c ) != 0) : sal_False;
}
/// isdigit() on ascii values of entire string
static sal_Bool isAsciiNumeric( const String& rStr );
......@@ -215,21 +218,33 @@ public:
void toUpper( rtl::OUString& rStr ) const;
void toUpper( String& rStr ) const
{ rStr = toUpper( rStr, 0, rStr.Len() ); }
{
rStr = toUpper( rStr, 0, rStr.Len() );
}
void toLower( rtl::OUString& rStr ) const;
void toLower( String& rStr ) const
{ rStr = toLower( rStr, 0, rStr.Len() ); }
{
rStr = toLower( rStr, 0, rStr.Len() );
}
inline String upper( const String& rStr ) const
{ return toUpper( rStr, 0, rStr.Len() ); }
{
return toUpper( rStr, 0, rStr.Len() );
}
inline String lower( const String& rStr ) const
{ return toLower( rStr, 0, rStr.Len() ); }
{
return toLower( rStr, 0, rStr.Len() );
}
const ::rtl::OUString& toUpper_rtl( ::rtl::OUString& _rStr ) const { return _rStr = toUpper_rtl( _rStr, 0, _rStr.getLength() ); }
const ::rtl::OUString& toLower_rtl( ::rtl::OUString& _rStr ) const { return _rStr = toLower_rtl( _rStr, 0, _rStr.getLength() ); }
const ::rtl::OUString& toUpper_rtl( ::rtl::OUString& _rStr ) const
{
return _rStr = toUpper_rtl( _rStr, 0, _rStr.getLength() );
}
const ::rtl::OUString& toLower_rtl( ::rtl::OUString& _rStr ) const
{
return _rStr = toLower_rtl( _rStr, 0, _rStr.getLength() );
}
};
#endif // _UNOTOOLS_CHARCLASS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment