From 1a28d0647ccd790bac0c1dbdad6eda44a5c8eaa1 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Mon, 11 Nov 2019 21:58:34 -0300 Subject: Add FINDB, SEARCHB and REPLACEB Help pages Change-Id: Ie8a7c5762f41484d36837008226cc446584e3110 Reviewed-on: https://gerrit.libreoffice.org/82481 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- AllLangHelp_scalc.mk | 3 +++ source/text/scalc/01/04060110.xhp | 8 +++--- source/text/scalc/01/func_findb.xhp | 45 +++++++++++++++++++++++++++++++ source/text/scalc/01/func_replaceb.xhp | 48 ++++++++++++++++++++++++++++++++++ source/text/scalc/01/func_searchb.xhp | 46 ++++++++++++++++++++++++++++++++ 5 files changed, 146 insertions(+), 4 deletions(-) create mode 100644 source/text/scalc/01/func_findb.xhp create mode 100644 source/text/scalc/01/func_replaceb.xhp create mode 100644 source/text/scalc/01/func_searchb.xhp diff --git a/AllLangHelp_scalc.mk b/AllLangHelp_scalc.mk index 2fcc39a4ec..538b4ecadb 100644 --- a/AllLangHelp_scalc.mk +++ b/AllLangHelp_scalc.mk @@ -201,6 +201,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,scalc,\ helpcontent2/source/text/scalc/01/func_edate \ helpcontent2/source/text/scalc/01/func_eomonth \ helpcontent2/source/text/scalc/01/func_error_type \ + helpcontent2/source/text/scalc/01/func_findb \ helpcontent2/source/text/scalc/01/func_forecastetsadd \ helpcontent2/source/text/scalc/01/func_forecastetsmult \ helpcontent2/source/text/scalc/01/func_forecastetsstatadd \ @@ -236,9 +237,11 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,scalc,\ helpcontent2/source/text/scalc/01/func_now \ helpcontent2/source/text/scalc/01/func_rawsubtract \ helpcontent2/source/text/scalc/01/func_regex \ + helpcontent2/source/text/scalc/01/func_replaceb \ helpcontent2/source/text/scalc/01/func_roundsig \ helpcontent2/source/text/scalc/01/func_second \ helpcontent2/source/text/scalc/01/func_skewp \ + helpcontent2/source/text/scalc/01/func_searchb \ helpcontent2/source/text/scalc/01/func_sumifs \ helpcontent2/source/text/scalc/01/func_switch \ helpcontent2/source/text/scalc/01/func_textjoin \ diff --git a/source/text/scalc/01/04060110.xhp b/source/text/scalc/01/04060110.xhp index 664d238859..5e24c67a82 100644 --- a/source/text/scalc/01/04060110.xhp +++ b/source/text/scalc/01/04060110.xhp @@ -349,7 +349,7 @@ -

LEFTB

+

LEFTB

Returns the first characters of a DBCS text. @@ -391,7 +391,7 @@ -

LENB

+

LENB

For double-byte character set (DBCS) languages, returns the number of bytes used to represent the characters in a text string. @@ -451,7 +451,7 @@ -

MIDB

+

MIDB

Returns a text string of a DBCS text. The parameters specify the starting position and the number of characters. @@ -564,7 +564,7 @@ -

RIGHTB

+

RIGHTB

Returns the last character or characters of a text with double bytes characters sets (DBCS). diff --git a/source/text/scalc/01/func_findb.xhp b/source/text/scalc/01/func_findb.xhp new file mode 100644 index 0000000000..0ab9ead47d --- /dev/null +++ b/source/text/scalc/01/func_findb.xhp @@ -0,0 +1,45 @@ + + + + + + + FINDB Function + /text/scalc/01/func_findb.xhp + + + +
+ + + FINDB Function + find text;FINDB Function + +

FINDB

+ Returns the starting position of a given text, using byte positions. FINDB is case sensitive. +
+ + + FINDB( Find Text ; Text ; Position ) + Find Text: The text or text expression to be found. + Text: the text in which the search is to be made. + Position: The position in the text where the search starts. + + =FINDB("ᄫᄬ";"ᄩᄔᄕᄜᄝᄞᄠgᄢᄣᄫᄬᄭᄮᄯᄲᄶ";17) returns 19. +
+ + + + + + +
+ +
diff --git a/source/text/scalc/01/func_replaceb.xhp b/source/text/scalc/01/func_replaceb.xhp new file mode 100644 index 0000000000..52966391cb --- /dev/null +++ b/source/text/scalc/01/func_replaceb.xhp @@ -0,0 +1,48 @@ + + + + + + + REPLACEB Function + /text/scalc/01/func_replaceb.xhp + + + +
+ + + REPLACEB Function + replace text;REPLACEB Function + +

REPLACEB

+ Returns text where an old text is replaced with a new text, using byte positions. +
+ + + REPLACEB( Text ; Position ; Length ; NewText ) + Text: A text expression or reference to a cell containing a text expression in which the characters are to be replaced. + Position: the character position from which text is to be replaced. + Length: the number of characters to be replaced. + NewText: the text to be inserted. + + + =REPLACEB("ᄩᄔᄕᄜᄝᄞᄠᄢᄣᄫᄬᄭᄮᄯᄲᄶ";4;1;"ab") returns "ᄩ abᄕᄜᄝᄞᄠᄢᄣᄫᄬᄭᄮᄯᄲᄶ" . + +
+ + + + + + +
+ +
diff --git a/source/text/scalc/01/func_searchb.xhp b/source/text/scalc/01/func_searchb.xhp new file mode 100644 index 0000000000..201a007696 --- /dev/null +++ b/source/text/scalc/01/func_searchb.xhp @@ -0,0 +1,46 @@ + + + + + + + SEARCHB Function + /text/scalc/01/func_searchb.xhp + + + +
+ + + SEARCHB Function + search text;SEARCHB Function + +

SEARCHB

+ Returns the starting position of a given text, using byte positions (not case sensitive). +
+ + + SEARCHB( Find text ; Text ; Position) + Find Text: The text or text expression to be found. + Text: the text in which the search is to be made. + Position: The position in the text where the search starts. + + + =SEARCHB("ᄫᄬ";"ᄩᄔᄕᄜᄝᄞᄠgᄢᄣᄫᄬᄭᄮᄯᄲᄶ";17) returns 20. +
+ + + + + + +
+ +
-- cgit