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
acc9fb5c
Kaydet (Commit)
acc9fb5c
authored
Şub 16, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prevent misuses of RTL_CONSTASCII_USTRINGPARAM
works only on 64 bit platforms, though.
üst
a5661d71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
string.hxx
sal/inc/rtl/string.hxx
+16
-0
ustring.hxx
sal/inc/rtl/ustring.hxx
+25
-0
No files found.
sal/inc/rtl/string.hxx
Dosyayı görüntüle @
acc9fb5c
...
@@ -495,6 +495,14 @@ public:
...
@@ -495,6 +495,14 @@ public:
str
,
strLength
,
strLength
)
==
0
;
str
,
strLength
,
strLength
)
==
0
;
}
}
// This overload is left undefined, to detect calls of matchL that
// erroneously use RTL_CONSTASCII_USTRINGPARAM instead of
// RTL_CONSTASCII_STRINGPARAM (but would lead to ambiguities on 32 bit
// platforms):
#if SAL_TYPES_SIZEOFLONG == 8
void
matchL
(
char
const
*
,
sal_Int32
,
rtl_TextEncoding
)
const
;
#endif
/**
/**
Match against a substring appearing in this string, ignoring the case of
Match against a substring appearing in this string, ignoring the case of
ASCII letters.
ASCII letters.
...
@@ -686,6 +694,14 @@ public:
...
@@ -686,6 +694,14 @@ public:
return
n
<
0
?
n
:
n
+
fromIndex
;
return
n
<
0
?
n
:
n
+
fromIndex
;
}
}
// This overload is left undefined, to detect calls of indexOfL that
// erroneously use RTL_CONSTASCII_USTRINGPARAM instead of
// RTL_CONSTASCII_STRINGPARAM (but would lead to ambiguities on 32 bit
// platforms):
#if SAL_TYPES_SIZEOFLONG == 8
void
indexOfL
(
char
const
*
,
sal_Int32
,
rtl_TextEncoding
)
const
;
#endif
/**
/**
Returns the index within this string of the last occurrence of
Returns the index within this string of the last occurrence of
the specified substring, searching backward starting at the end.
the specified substring, searching backward starting at the end.
...
...
sal/inc/rtl/ustring.hxx
Dosyayı görüntüle @
acc9fb5c
...
@@ -681,6 +681,14 @@ public:
...
@@ -681,6 +681,14 @@ public:
asciiStr
,
asciiStrLength
)
==
0
;
asciiStr
,
asciiStrLength
)
==
0
;
}
}
// This overload is left undefined, to detect calls of matchAsciiL that
// erroneously use RTL_CONSTASCII_USTRINGPARAM instead of
// RTL_CONSTASCII_STRINGPARAM (but would lead to ambiguities on 32 bit
// platforms):
#if SAL_TYPES_SIZEOFLONG == 8
void
matchAsciiL
(
char
const
*
,
sal_Int32
,
rtl_TextEncoding
)
const
;
#endif
/**
/**
Match against a substring appearing in this string, ignoring the case of
Match against a substring appearing in this string, ignoring the case of
ASCII letters.
ASCII letters.
...
@@ -711,6 +719,15 @@ public:
...
@@ -711,6 +719,15 @@ public:
asciiStr
,
asciiStrLength
)
==
0
;
asciiStr
,
asciiStrLength
)
==
0
;
}
}
// This overload is left undefined, to detect calls of
// matchIgnoreAsciiCaseAsciiL that erroneously use
// RTL_CONSTASCII_USTRINGPARAM instead of RTL_CONSTASCII_STRINGPARAM (but
// would lead to ambiguities on 32 bit platforms):
#if SAL_TYPES_SIZEOFLONG == 8
void
matchIgnoreAsciiCaseAsciiL
(
char
const
*
,
sal_Int32
,
rtl_TextEncoding
)
const
;
#endif
/**
/**
Check whether this string ends with a given substring.
Check whether this string ends with a given substring.
...
@@ -905,6 +922,14 @@ public:
...
@@ -905,6 +922,14 @@ public:
return
ret
<
0
?
ret
:
ret
+
fromIndex
;
return
ret
<
0
?
ret
:
ret
+
fromIndex
;
}
}
// This overload is left undefined, to detect calls of indexOfAsciiL that
// erroneously use RTL_CONSTASCII_USTRINGPARAM instead of
// RTL_CONSTASCII_STRINGPARAM (but would lead to ambiguities on 32 bit
// platforms):
#if SAL_TYPES_SIZEOFLONG == 8
void
indexOfAsciiL
(
char
const
*
,
sal_Int32
len
,
rtl_TextEncoding
)
const
;
#endif
/**
/**
Returns the index within this string of the last occurrence of
Returns the index within this string of the last occurrence of
the specified substring, searching backward starting at the end.
the specified substring, searching backward starting at the end.
...
...
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