Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
00e52e1e
Kaydet (Commit)
00e52e1e
authored
Ock 06, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make indent sane
üst
66c3510e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
16 deletions
+31
-16
charclass.hxx
unotools/inc/unotools/charclass.hxx
+31
-16
No files found.
unotools/inc/unotools/charclass.hxx
Dosyayı görüntüle @
00e52e1e
...
...
@@ -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: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment