diff --git a/source/text/sbasic/shared/03/sf_string.xhp b/source/text/sbasic/shared/03/sf_string.xhp
index 6ca6447c01..80d228c31c 100644
--- a/source/text/sbasic/shared/03/sf_string.xhp
+++ b/source/text/sbasic/shared/03/sf_string.xhp
@@ -128,7 +128,7 @@
-
+
\n \r \t
@@ -146,7 +146,7 @@
- To have the escape sequence "\n" interpreted as an actual string, simply use "\\n" instead of "\" & Chr(10).
+ To have the escape sequence "\n" interpreted as an actual string, simply use "\\n" instead of "\" & Chr(10).
Non-printable characters:
Characters defined in the Unicode Character Database as “Other” or “Separator” are considered as non-printable characters.
@@ -343,10 +343,10 @@
Count --------------------------------------------------------------------------------------------------------------------------
-
+ String service;Count
-
Count
+
Count
Counts the number of occurrences of a substring or a regular expression within a string.
@@ -476,10 +476,10 @@
InputStr: The string to be searchedRegex: The regular expression
- Start: The position in the string where the search will begin. This parameter is passed by reference, so after execution the value of Start will point to the first character of the found substring. If no matching substring is found, Start will be set to 0.
+ Start: The position in the string where the search will begin. This parameter is passed by reference, so after execution the value of Start will point to the first character of the found substring. If no matching substring is found, Start will be set to 0.CaseSensitive: Default = FalseForward: Determines the direction of the search. If True, search moves forward. If False search moves backwards (Default = True)
- At the first iteration, if Forward = True, then Start should be equal to 1, whereas if Forward = False then Start should be equal to Len(InputStr)
+ At the first iteration, if Forward = True, then Start should be equal to 1, whereas if Forward = False then Start should be equal to Len(InputStr)
Dim lStart As Long : lStart = 1
@@ -577,7 +577,7 @@
SF_String.IsAlpha(InputStr As String) As Boolean
- InputStr: The string to be checked. If empty, the method returns False.
+ InputStr: The string to be checked. If empty, the method returns False.
MsgBox SF_String.IsAlpha("àénΣlPµ") 'True
@@ -1234,7 +1234,7 @@
a = SF_String.SplitNotQuoted("abc,""def,ghi""", ",")' a = Array("abc", """def,ghi""")a = SF_String.SplitNotQuoted("abc,""def\"",ghi""", ",")
- ' a = Array("abc", """def\"",ghi""")
+ ' a = Array("abc", """def\"",ghi""")a = SF_String.SplitNotQuoted("abc,""def\"",ghi"""",", ",")' a = Array("abc", """def\"",ghi""", "")
diff --git a/source/text/sbasic/shared/03/sf_textstream.xhp b/source/text/sbasic/shared/03/sf_textstream.xhp
index 99c158e19f..1659d32a54 100644
--- a/source/text/sbasic/shared/03/sf_textstream.xhp
+++ b/source/text/sbasic/shared/03/sf_textstream.xhp
@@ -42,16 +42,16 @@
The file must be closed with the CloseFile method after all read or write operations have been executed:
- myFile.CloseFile()
+ myFile.CloseFile()Optionally, the resources used by the TextStream instance can be released using the Dispose method:
- Set myFile = myFile.Dispose()
+ Set myFile = myFile.Dispose()The methods in the TextStream service are mostly based on the XTextInputStream and XTextOutputStream UNO interfaces.
Properties
-
+ TextStream service;AtEndOfStreamTextStream service;EncodingTextStream service;FileName
@@ -228,10 +228,10 @@
Dim FSO : FSO = CreateScriptService("FileSystem") 'Opens the text file with the names to be read Dim inputFile as Object
- Set inputFile = FSO.OpenTextFile("~/Documents/Students.txt")
+ Set inputFile = FSO.OpenTextFile("~/Documents/Students.txt") 'Reads all the contents in the input file as a single string
- Dim allData as String
- allData = inputFile.ReadAll()
+ Dim allData as String
+ allData = inputFile.ReadAll() 'Splits the string into an array Dim arrNames as Variant arrNames = SF_String.SplitLines(allData)
diff --git a/source/text/sbasic/shared/03/sf_timer.xhp b/source/text/sbasic/shared/03/sf_timer.xhp
index dce3465a5a..809d473cc6 100644
--- a/source/text/sbasic/shared/03/sf_timer.xhp
+++ b/source/text/sbasic/shared/03/sf_timer.xhp
@@ -26,7 +26,7 @@
ScriptForge.Timer service
The Timer service measures the amount of time it takes to run user scripts.
- A Timer measures durations. It can be:
+ A Timer measures durations. It can be:Started, to indicate when to start measuring time.
@@ -38,7 +38,7 @@
Resumed, to continue tracking running time after the Timer has been suspended.
- Restarted, which will cancel previous measurements and start the Timer at zero.
+ Restarted, which will cancel previous measurements and start the Timer at zero.
@@ -175,7 +175,7 @@
Continue
- Resumes the Timer if it has been suspended
+ Resumes the Timer if it has been suspendedFalse if the timer is not suspended
@@ -186,7 +186,7 @@
Restart
- Terminates the timer and discard its current property values, restarting as a new clean Timer
+ Terminates the Timer and discards its current property values, restarting as a new clean TimerFalse if the timer is inactive
@@ -227,7 +227,7 @@
-