summaryrefslogtreecommitdiff
path: root/wizards/source/tools
diff options
context:
space:
mode:
authorMatthew J. Francis <mjay.francis@gmail.com>2015-03-25 13:01:17 +0800
committerNoel Grandin <noelgrandin@gmail.com>2015-03-25 06:40:40 +0000
commitca07d5bef335b220139b858a5b54aa62983a66e1 (patch)
treeaf136935a98cb9883923514eaa21462842767677 /wizards/source/tools
parent5a5c9d0fa42201d0fbec2670f097f00a8ff91d2c (diff)
tdf#68547 Turkısh "ı" ıs specıal
Capital "i" is "İ" Small "I" is "ı" Therefore, any BASIC we ship had better be clean of case-insensitive function name comparisons (or at least those involving "i"s), because they will not work when the system locale is Turkish. Change-Id: Ibf3a35a55b6b1ba384731dfa92caf24b51245530 Reviewed-on: https://gerrit.libreoffice.org/14995 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'wizards/source/tools')
-rw-r--r--wizards/source/tools/Listbox.xba4
-rw-r--r--wizards/source/tools/Strings.xba12
-rw-r--r--wizards/source/tools/UCB.xba2
3 files changed, 9 insertions, 9 deletions
diff --git a/wizards/source/tools/Listbox.xba b/wizards/source/tools/Listbox.xba
index 2ac741ce68aa..2f4e48b402e6 100644
--- a/wizards/source/tools/Listbox.xba
+++ b/wizards/source/tools/Listbox.xba
@@ -172,10 +172,10 @@ Dim iOldSourceSelect as Integer
m = 0
For n = 0 To MaxOriginalIndex
SearchString = OriginalList(n)
- If IndexinArray(SearchString, SelList()) &lt;&gt; -1 Then
+ If IndexInArray(SearchString, SelList()) &lt;&gt; -1 Then
NewSourceList(m) = SearchString
m = m + 1
- ElseIf IndexinArray(SearchString, SourceList()) &lt;&gt; -1 Then
+ ElseIf IndexInArray(SearchString, SourceList()) &lt;&gt; -1 Then
NewSourceList(m) = SearchString
m = m + 1
End If
diff --git a/wizards/source/tools/Strings.xba b/wizards/source/tools/Strings.xba
index f91b8f4dff87..d05555fd9901 100644
--- a/wizards/source/tools/Strings.xba
+++ b/wizards/source/tools/Strings.xba
@@ -158,7 +158,7 @@ End Sub
&apos; Checks if a Field (LocField) is already defined in an Array
&apos; Returns &apos;True&apos; or &apos;False&apos;
-Function FieldinArray(LocArray(), MaxIndex as integer, LocField as String) As Boolean
+Function FieldInArray(LocArray(), MaxIndex as integer, LocField as String) As Boolean
Dim i as integer
For i = Lbound(LocArray()) to MaxIndex
If Ucase(LocArray(i)) = Ucase(LocField) Then
@@ -172,7 +172,7 @@ End Function
&apos; Checks if a Field (LocField) is already defined in an Array
&apos; Returns &apos;True&apos; or &apos;False&apos;
-Function FieldinList(LocField, BigList()) As Boolean
+Function FieldInList(LocField, BigList()) As Boolean
Dim i as integer
For i = Lbound(BigList()) to Ubound(BigList())
If LocField = BigList(i) Then
@@ -186,15 +186,15 @@ End Function
&apos; Retrieves the Index of the delivered String &apos;SearchString&apos; in
&apos; the Array LocList()&apos;
-Function IndexinArray(SearchString as String, LocList()) as Integer
+Function IndexInArray(SearchString as String, LocList()) as Integer
Dim i as integer
For i = Lbound(LocList(),1) to Ubound(LocList(),1)
If Ucase(LocList(i,0)) = Ucase(SearchString) Then
- IndexinArray = i
+ IndexInArray = i
Exit Function
End if
Next
- IndexinArray = -1
+ IndexInArray = -1
End Function
@@ -356,7 +356,7 @@ Dim LocFileName as String
End Function
-Function CountCharsinString(BigString, LocChar as String, ByVal StartPos as Integer) as Integer
+Function CountCharsInString(BigString, LocChar as String, ByVal StartPos as Integer) as Integer
Dim LocCount%, LocPos%
LocCount = 0
Do
diff --git a/wizards/source/tools/UCB.xba b/wizards/source/tools/UCB.xba
index ed1ae1c719b8..73d849cc8fea 100644
--- a/wizards/source/tools/UCB.xba
+++ b/wizards/source/tools/UCB.xba
@@ -89,7 +89,7 @@ Dim sFileArray(StartUbound,1) as String
If RealFileContent &lt;&gt; &quot;&quot; Then
&apos; Retrieve the Index in the Array, where a Filename is positioned
If Not IsMissing(sFileContent()) Then
- If (FieldinArray(sFileContent(), Ubound(sFileContent), RealFileContent)) Then
+ If (FieldInArray(sFileContent(), Ubound(sFileContent), RealFileContent)) Then
&apos; The extension of the current file passes the filter and is therefore admitted to the
&apos; fileList
If Not IsMissing(sExtension) Then