From 0345245e860375a32c9a437c4a9d9cae807134e9 Mon Sep 17 00:00:00 2001 From: Shashank Date: Mon, 29 May 2017 12:40:26 +0530 Subject: CMSCOPE changed --- modules/string/help/en_US/addchapter.sce | 11 ++ modules/string/help/en_US/ascii.xml | 71 ++++++++ modules/string/help/en_US/asciimat.xml | 63 +++++++ modules/string/help/en_US/blanks.xml | 51 ++++++ modules/string/help/en_US/char.xml | 108 +++++++++++ modules/string/help/en_US/convstr.xml | 69 +++++++ modules/string/help/en_US/emptystr.xml | 95 ++++++++++ modules/string/help/en_US/eval.xml | 60 +++++++ modules/string/help/en_US/evstr.xml | 126 +++++++++++++ modules/string/help/en_US/grep.xml | 131 ++++++++++++++ modules/string/help/en_US/isalphanum.xml | 67 +++++++ modules/string/help/en_US/isascii.xml | 66 +++++++ modules/string/help/en_US/isdigit.xml | 71 ++++++++ modules/string/help/en_US/isletter.xml | 74 ++++++++ modules/string/help/en_US/isnum.xml | 94 ++++++++++ modules/string/help/en_US/justify.xml | 104 +++++++++++ modules/string/help/en_US/length.xml | 123 +++++++++++++ modules/string/help/en_US/part.xml | 139 ++++++++++++++ modules/string/help/en_US/regexp.xml | 164 +++++++++++++++++ modules/string/help/en_US/sci2exp.xml | 147 +++++++++++++++ modules/string/help/en_US/strcat.xml | 126 +++++++++++++ modules/string/help/en_US/strchr.xml | 82 +++++++++ modules/string/help/en_US/strcmp.xml | 105 +++++++++++ modules/string/help/en_US/strcmpi.xml | 83 +++++++++ modules/string/help/en_US/strcspn.xml | 79 ++++++++ modules/string/help/en_US/strindex.xml | 136 ++++++++++++++ modules/string/help/en_US/string.xml | 146 +++++++++++++++ modules/string/help/en_US/strings.xml | 50 ++++++ modules/string/help/en_US/stripblanks.xml | 66 +++++++ modules/string/help/en_US/strncpy.xml | 80 +++++++++ modules/string/help/en_US/strrchr.xml | 80 +++++++++ modules/string/help/en_US/strrev.xml | 57 ++++++ modules/string/help/en_US/strsplit.xml | 161 +++++++++++++++++ modules/string/help/en_US/strspn.xml | 74 ++++++++ modules/string/help/en_US/strstr.xml | 81 +++++++++ modules/string/help/en_US/strsubst.xml | 108 +++++++++++ modules/string/help/en_US/strtod.xml | 117 ++++++++++++ modules/string/help/en_US/strtok.xml | 78 ++++++++ modules/string/help/en_US/tokenpos.xml | 85 +++++++++ modules/string/help/en_US/tokens.xml | 81 +++++++++ modules/string/help/fr_FR/addchapter.sce | 11 ++ modules/string/help/fr_FR/asciimat.xml | 58 ++++++ modules/string/help/fr_FR/eval.xml | 37 ++++ modules/string/help/fr_FR/evstr.xml | 105 +++++++++++ modules/string/help/fr_FR/isnum.xml | 95 ++++++++++ modules/string/help/fr_FR/string.xml | 128 +++++++++++++ modules/string/help/ja_JP/addchapter.sce | 11 ++ modules/string/help/ja_JP/ascii.xml | 132 ++++++++++++++ modules/string/help/ja_JP/asciimat.xml | 63 +++++++ modules/string/help/ja_JP/blanks.xml | 86 +++++++++ modules/string/help/ja_JP/char.xml | 194 ++++++++++++++++++++ modules/string/help/ja_JP/convstr.xml | 127 +++++++++++++ modules/string/help/ja_JP/emptystr.xml | 162 +++++++++++++++++ modules/string/help/ja_JP/eval.xml | 105 +++++++++++ modules/string/help/ja_JP/evstr.xml | 236 ++++++++++++++++++++++++ modules/string/help/ja_JP/grep.xml | 242 +++++++++++++++++++++++++ modules/string/help/ja_JP/isalphanum.xml | 123 +++++++++++++ modules/string/help/ja_JP/isascii.xml | 119 ++++++++++++ modules/string/help/ja_JP/isdigit.xml | 127 +++++++++++++ modules/string/help/ja_JP/isletter.xml | 121 +++++++++++++ modules/string/help/ja_JP/isnum.xml | 155 ++++++++++++++++ modules/string/help/ja_JP/justify.xml | 173 ++++++++++++++++++ modules/string/help/ja_JP/length.xml | 118 ++++++++++++ modules/string/help/ja_JP/part.xml | 124 +++++++++++++ modules/string/help/ja_JP/regexp.xml | 158 ++++++++++++++++ modules/string/help/ja_JP/sci2exp.xml | 272 ++++++++++++++++++++++++++++ modules/string/help/ja_JP/strcat.xml | 223 +++++++++++++++++++++++ modules/string/help/ja_JP/strchr.xml | 142 +++++++++++++++ modules/string/help/ja_JP/strcmp.xml | 179 ++++++++++++++++++ modules/string/help/ja_JP/strcmpi.xml | 149 +++++++++++++++ modules/string/help/ja_JP/strcspn.xml | 134 ++++++++++++++ modules/string/help/ja_JP/strindex.xml | 260 +++++++++++++++++++++++++++ modules/string/help/ja_JP/string.xml | 142 +++++++++++++++ modules/string/help/ja_JP/strings.xml | 89 +++++++++ modules/string/help/ja_JP/stripblanks.xml | 110 ++++++++++++ modules/string/help/ja_JP/strncpy.xml | 140 +++++++++++++++ modules/string/help/ja_JP/strrchr.xml | 138 ++++++++++++++ modules/string/help/ja_JP/strrev.xml | 92 ++++++++++ modules/string/help/ja_JP/strsplit.xml | 290 ++++++++++++++++++++++++++++++ modules/string/help/ja_JP/strspn.xml | 138 ++++++++++++++ modules/string/help/ja_JP/strstr.xml | 135 ++++++++++++++ modules/string/help/ja_JP/strsubst.xml | 194 ++++++++++++++++++++ modules/string/help/ja_JP/strtod.xml | 231 ++++++++++++++++++++++++ modules/string/help/ja_JP/strtok.xml | 139 ++++++++++++++ modules/string/help/ja_JP/tokenpos.xml | 142 +++++++++++++++ modules/string/help/ja_JP/tokens.xml | 134 ++++++++++++++ modules/string/help/pt_BR/addchapter.sce | 11 ++ modules/string/help/pt_BR/ascii.xml | 60 +++++++ modules/string/help/pt_BR/blanks.xml | 49 +++++ modules/string/help/pt_BR/char.xml | 105 +++++++++++ modules/string/help/pt_BR/convstr.xml | 70 ++++++++ modules/string/help/pt_BR/emptystr.xml | 81 +++++++++ modules/string/help/pt_BR/eval.xml | 45 +++++ modules/string/help/pt_BR/evstr.xml | 97 ++++++++++ modules/string/help/pt_BR/grep.xml | 110 ++++++++++++ modules/string/help/pt_BR/isalphanum.xml | 67 +++++++ modules/string/help/pt_BR/isascii.xml | 64 +++++++ modules/string/help/pt_BR/isdigit.xml | 67 +++++++ modules/string/help/pt_BR/isletter.xml | 67 +++++++ modules/string/help/pt_BR/isnum.xml | 76 ++++++++ modules/string/help/pt_BR/justify.xml | 95 ++++++++++ modules/string/help/pt_BR/length.xml | 79 ++++++++ modules/string/help/pt_BR/part.xml | 95 ++++++++++ modules/string/help/pt_BR/regexp.xml | 105 +++++++++++ modules/string/help/pt_BR/sci2exp.xml | 114 ++++++++++++ modules/string/help/pt_BR/strcat.xml | 109 +++++++++++ modules/string/help/pt_BR/strchr.xml | 76 ++++++++ modules/string/help/pt_BR/strcmp.xml | 87 +++++++++ modules/string/help/pt_BR/strcmpi.xml | 77 ++++++++ modules/string/help/pt_BR/strcspn.xml | 73 ++++++++ modules/string/help/pt_BR/strindex.xml | 129 +++++++++++++ modules/string/help/pt_BR/string.xml | 121 +++++++++++++ modules/string/help/pt_BR/strings.xml | 51 ++++++ modules/string/help/pt_BR/stripblanks.xml | 59 ++++++ modules/string/help/pt_BR/strncpy.xml | 76 ++++++++ modules/string/help/pt_BR/strrchr.xml | 76 ++++++++ modules/string/help/pt_BR/strrev.xml | 54 ++++++ modules/string/help/pt_BR/strsplit.xml | 77 ++++++++ modules/string/help/pt_BR/strspn.xml | 74 ++++++++ modules/string/help/pt_BR/strstr.xml | 73 ++++++++ modules/string/help/pt_BR/strsubst.xml | 97 ++++++++++ modules/string/help/pt_BR/strtod.xml | 66 +++++++ modules/string/help/pt_BR/strtok.xml | 78 ++++++++ modules/string/help/pt_BR/tokenpos.xml | 81 +++++++++ modules/string/help/pt_BR/tokens.xml | 77 ++++++++ modules/string/help/ru_RU/addchapter.sce | 11 ++ modules/string/help/ru_RU/ascii.xml | 73 ++++++++ modules/string/help/ru_RU/asciimat.xml | 64 +++++++ modules/string/help/ru_RU/blanks.xml | 51 ++++++ modules/string/help/ru_RU/char.xml | 110 ++++++++++++ modules/string/help/ru_RU/convstr.xml | 69 +++++++ modules/string/help/ru_RU/emptystr.xml | 97 ++++++++++ modules/string/help/ru_RU/eval.xml | 59 ++++++ modules/string/help/ru_RU/evstr.xml | 122 +++++++++++++ modules/string/help/ru_RU/grep.xml | 131 ++++++++++++++ modules/string/help/ru_RU/isalphanum.xml | 69 +++++++ modules/string/help/ru_RU/isascii.xml | 69 +++++++ modules/string/help/ru_RU/isdigit.xml | 72 ++++++++ modules/string/help/ru_RU/isletter.xml | 74 ++++++++ modules/string/help/ru_RU/isnum.xml | 79 ++++++++ modules/string/help/ru_RU/justify.xml | 103 +++++++++++ modules/string/help/ru_RU/length.xml | 118 ++++++++++++ modules/string/help/ru_RU/part.xml | 100 +++++++++++ modules/string/help/ru_RU/regexp.xml | 162 +++++++++++++++++ modules/string/help/ru_RU/sci2exp.xml | 116 ++++++++++++ modules/string/help/ru_RU/strcat.xml | 119 ++++++++++++ modules/string/help/ru_RU/strchr.xml | 81 +++++++++ modules/string/help/ru_RU/strcmp.xml | 103 +++++++++++ modules/string/help/ru_RU/strcmpi.xml | 83 +++++++++ modules/string/help/ru_RU/strcspn.xml | 78 ++++++++ modules/string/help/ru_RU/strindex.xml | 138 ++++++++++++++ modules/string/help/ru_RU/string.xml | 140 +++++++++++++++ modules/string/help/ru_RU/strings.xml | 50 ++++++ modules/string/help/ru_RU/stripblanks.xml | 66 +++++++ modules/string/help/ru_RU/strncpy.xml | 85 +++++++++ modules/string/help/ru_RU/strrchr.xml | 82 +++++++++ modules/string/help/ru_RU/strrev.xml | 57 ++++++ modules/string/help/ru_RU/strsplit.xml | 164 +++++++++++++++++ modules/string/help/ru_RU/strspn.xml | 76 ++++++++ modules/string/help/ru_RU/strstr.xml | 81 +++++++++ modules/string/help/ru_RU/strsubst.xml | 109 +++++++++++ modules/string/help/ru_RU/strtod.xml | 76 ++++++++ modules/string/help/ru_RU/strtok.xml | 79 ++++++++ modules/string/help/ru_RU/tokenpos.xml | 84 +++++++++ modules/string/help/ru_RU/tokens.xml | 79 ++++++++ 165 files changed, 16839 insertions(+) create mode 100755 modules/string/help/en_US/addchapter.sce create mode 100755 modules/string/help/en_US/ascii.xml create mode 100755 modules/string/help/en_US/asciimat.xml create mode 100755 modules/string/help/en_US/blanks.xml create mode 100755 modules/string/help/en_US/char.xml create mode 100755 modules/string/help/en_US/convstr.xml create mode 100755 modules/string/help/en_US/emptystr.xml create mode 100755 modules/string/help/en_US/eval.xml create mode 100755 modules/string/help/en_US/evstr.xml create mode 100755 modules/string/help/en_US/grep.xml create mode 100755 modules/string/help/en_US/isalphanum.xml create mode 100755 modules/string/help/en_US/isascii.xml create mode 100755 modules/string/help/en_US/isdigit.xml create mode 100755 modules/string/help/en_US/isletter.xml create mode 100755 modules/string/help/en_US/isnum.xml create mode 100755 modules/string/help/en_US/justify.xml create mode 100755 modules/string/help/en_US/length.xml create mode 100755 modules/string/help/en_US/part.xml create mode 100755 modules/string/help/en_US/regexp.xml create mode 100755 modules/string/help/en_US/sci2exp.xml create mode 100755 modules/string/help/en_US/strcat.xml create mode 100755 modules/string/help/en_US/strchr.xml create mode 100755 modules/string/help/en_US/strcmp.xml create mode 100755 modules/string/help/en_US/strcmpi.xml create mode 100755 modules/string/help/en_US/strcspn.xml create mode 100755 modules/string/help/en_US/strindex.xml create mode 100755 modules/string/help/en_US/string.xml create mode 100755 modules/string/help/en_US/strings.xml create mode 100755 modules/string/help/en_US/stripblanks.xml create mode 100755 modules/string/help/en_US/strncpy.xml create mode 100755 modules/string/help/en_US/strrchr.xml create mode 100755 modules/string/help/en_US/strrev.xml create mode 100755 modules/string/help/en_US/strsplit.xml create mode 100755 modules/string/help/en_US/strspn.xml create mode 100755 modules/string/help/en_US/strstr.xml create mode 100755 modules/string/help/en_US/strsubst.xml create mode 100755 modules/string/help/en_US/strtod.xml create mode 100755 modules/string/help/en_US/strtok.xml create mode 100755 modules/string/help/en_US/tokenpos.xml create mode 100755 modules/string/help/en_US/tokens.xml create mode 100755 modules/string/help/fr_FR/addchapter.sce create mode 100755 modules/string/help/fr_FR/asciimat.xml create mode 100755 modules/string/help/fr_FR/eval.xml create mode 100755 modules/string/help/fr_FR/evstr.xml create mode 100755 modules/string/help/fr_FR/isnum.xml create mode 100755 modules/string/help/fr_FR/string.xml create mode 100755 modules/string/help/ja_JP/addchapter.sce create mode 100755 modules/string/help/ja_JP/ascii.xml create mode 100755 modules/string/help/ja_JP/asciimat.xml create mode 100755 modules/string/help/ja_JP/blanks.xml create mode 100755 modules/string/help/ja_JP/char.xml create mode 100755 modules/string/help/ja_JP/convstr.xml create mode 100755 modules/string/help/ja_JP/emptystr.xml create mode 100755 modules/string/help/ja_JP/eval.xml create mode 100755 modules/string/help/ja_JP/evstr.xml create mode 100755 modules/string/help/ja_JP/grep.xml create mode 100755 modules/string/help/ja_JP/isalphanum.xml create mode 100755 modules/string/help/ja_JP/isascii.xml create mode 100755 modules/string/help/ja_JP/isdigit.xml create mode 100755 modules/string/help/ja_JP/isletter.xml create mode 100755 modules/string/help/ja_JP/isnum.xml create mode 100755 modules/string/help/ja_JP/justify.xml create mode 100755 modules/string/help/ja_JP/length.xml create mode 100755 modules/string/help/ja_JP/part.xml create mode 100755 modules/string/help/ja_JP/regexp.xml create mode 100755 modules/string/help/ja_JP/sci2exp.xml create mode 100755 modules/string/help/ja_JP/strcat.xml create mode 100755 modules/string/help/ja_JP/strchr.xml create mode 100755 modules/string/help/ja_JP/strcmp.xml create mode 100755 modules/string/help/ja_JP/strcmpi.xml create mode 100755 modules/string/help/ja_JP/strcspn.xml create mode 100755 modules/string/help/ja_JP/strindex.xml create mode 100755 modules/string/help/ja_JP/string.xml create mode 100755 modules/string/help/ja_JP/strings.xml create mode 100755 modules/string/help/ja_JP/stripblanks.xml create mode 100755 modules/string/help/ja_JP/strncpy.xml create mode 100755 modules/string/help/ja_JP/strrchr.xml create mode 100755 modules/string/help/ja_JP/strrev.xml create mode 100755 modules/string/help/ja_JP/strsplit.xml create mode 100755 modules/string/help/ja_JP/strspn.xml create mode 100755 modules/string/help/ja_JP/strstr.xml create mode 100755 modules/string/help/ja_JP/strsubst.xml create mode 100755 modules/string/help/ja_JP/strtod.xml create mode 100755 modules/string/help/ja_JP/strtok.xml create mode 100755 modules/string/help/ja_JP/tokenpos.xml create mode 100755 modules/string/help/ja_JP/tokens.xml create mode 100755 modules/string/help/pt_BR/addchapter.sce create mode 100755 modules/string/help/pt_BR/ascii.xml create mode 100755 modules/string/help/pt_BR/blanks.xml create mode 100755 modules/string/help/pt_BR/char.xml create mode 100755 modules/string/help/pt_BR/convstr.xml create mode 100755 modules/string/help/pt_BR/emptystr.xml create mode 100755 modules/string/help/pt_BR/eval.xml create mode 100755 modules/string/help/pt_BR/evstr.xml create mode 100755 modules/string/help/pt_BR/grep.xml create mode 100755 modules/string/help/pt_BR/isalphanum.xml create mode 100755 modules/string/help/pt_BR/isascii.xml create mode 100755 modules/string/help/pt_BR/isdigit.xml create mode 100755 modules/string/help/pt_BR/isletter.xml create mode 100755 modules/string/help/pt_BR/isnum.xml create mode 100755 modules/string/help/pt_BR/justify.xml create mode 100755 modules/string/help/pt_BR/length.xml create mode 100755 modules/string/help/pt_BR/part.xml create mode 100755 modules/string/help/pt_BR/regexp.xml create mode 100755 modules/string/help/pt_BR/sci2exp.xml create mode 100755 modules/string/help/pt_BR/strcat.xml create mode 100755 modules/string/help/pt_BR/strchr.xml create mode 100755 modules/string/help/pt_BR/strcmp.xml create mode 100755 modules/string/help/pt_BR/strcmpi.xml create mode 100755 modules/string/help/pt_BR/strcspn.xml create mode 100755 modules/string/help/pt_BR/strindex.xml create mode 100755 modules/string/help/pt_BR/string.xml create mode 100755 modules/string/help/pt_BR/strings.xml create mode 100755 modules/string/help/pt_BR/stripblanks.xml create mode 100755 modules/string/help/pt_BR/strncpy.xml create mode 100755 modules/string/help/pt_BR/strrchr.xml create mode 100755 modules/string/help/pt_BR/strrev.xml create mode 100755 modules/string/help/pt_BR/strsplit.xml create mode 100755 modules/string/help/pt_BR/strspn.xml create mode 100755 modules/string/help/pt_BR/strstr.xml create mode 100755 modules/string/help/pt_BR/strsubst.xml create mode 100755 modules/string/help/pt_BR/strtod.xml create mode 100755 modules/string/help/pt_BR/strtok.xml create mode 100755 modules/string/help/pt_BR/tokenpos.xml create mode 100755 modules/string/help/pt_BR/tokens.xml create mode 100755 modules/string/help/ru_RU/addchapter.sce create mode 100755 modules/string/help/ru_RU/ascii.xml create mode 100755 modules/string/help/ru_RU/asciimat.xml create mode 100755 modules/string/help/ru_RU/blanks.xml create mode 100755 modules/string/help/ru_RU/char.xml create mode 100755 modules/string/help/ru_RU/convstr.xml create mode 100755 modules/string/help/ru_RU/emptystr.xml create mode 100755 modules/string/help/ru_RU/eval.xml create mode 100755 modules/string/help/ru_RU/evstr.xml create mode 100755 modules/string/help/ru_RU/grep.xml create mode 100755 modules/string/help/ru_RU/isalphanum.xml create mode 100755 modules/string/help/ru_RU/isascii.xml create mode 100755 modules/string/help/ru_RU/isdigit.xml create mode 100755 modules/string/help/ru_RU/isletter.xml create mode 100755 modules/string/help/ru_RU/isnum.xml create mode 100755 modules/string/help/ru_RU/justify.xml create mode 100755 modules/string/help/ru_RU/length.xml create mode 100755 modules/string/help/ru_RU/part.xml create mode 100755 modules/string/help/ru_RU/regexp.xml create mode 100755 modules/string/help/ru_RU/sci2exp.xml create mode 100755 modules/string/help/ru_RU/strcat.xml create mode 100755 modules/string/help/ru_RU/strchr.xml create mode 100755 modules/string/help/ru_RU/strcmp.xml create mode 100755 modules/string/help/ru_RU/strcmpi.xml create mode 100755 modules/string/help/ru_RU/strcspn.xml create mode 100755 modules/string/help/ru_RU/strindex.xml create mode 100755 modules/string/help/ru_RU/string.xml create mode 100755 modules/string/help/ru_RU/strings.xml create mode 100755 modules/string/help/ru_RU/stripblanks.xml create mode 100755 modules/string/help/ru_RU/strncpy.xml create mode 100755 modules/string/help/ru_RU/strrchr.xml create mode 100755 modules/string/help/ru_RU/strrev.xml create mode 100755 modules/string/help/ru_RU/strsplit.xml create mode 100755 modules/string/help/ru_RU/strspn.xml create mode 100755 modules/string/help/ru_RU/strstr.xml create mode 100755 modules/string/help/ru_RU/strsubst.xml create mode 100755 modules/string/help/ru_RU/strtod.xml create mode 100755 modules/string/help/ru_RU/strtok.xml create mode 100755 modules/string/help/ru_RU/tokenpos.xml create mode 100755 modules/string/help/ru_RU/tokens.xml (limited to 'modules/string/help') diff --git a/modules/string/help/en_US/addchapter.sce b/modules/string/help/en_US/addchapter.sce new file mode 100755 index 000000000..7ff6a942d --- /dev/null +++ b/modules/string/help/en_US/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Strings",SCI+"/modules/string/help/en_US",%T); + diff --git a/modules/string/help/en_US/ascii.xml b/modules/string/help/en_US/ascii.xml new file mode 100755 index 000000000..45395a3f1 --- /dev/null +++ b/modules/string/help/en_US/ascii.xml @@ -0,0 +1,71 @@ + + + + + ascii + string ASCII conversions + + + Calling Sequence + a = ascii(txt) + txt = ascii(a) + + + + Arguments + + + txt + + a character string or a matrix of character strings. + + + + a + + a vector of integer ASCII codes + + + + + + Description + + This function converts Scilab string to a vector of ASCII code (the first 127 + codes are ASCII) or vector of ASCII code to Scilab strings. + + + If txt is a matrix of string, ascii(txt) is + equivalent to ascii(strcat(txt)). + + + + Examples + + + + See Also + + + code2str + + + str2code + + + + diff --git a/modules/string/help/en_US/asciimat.xml b/modules/string/help/en_US/asciimat.xml new file mode 100755 index 000000000..e65d084c9 --- /dev/null +++ b/modules/string/help/en_US/asciimat.xml @@ -0,0 +1,63 @@ + + + + + asciimat + string matrix ASCII conversions + + + Calling Sequence + + a = asciimat(txt) + txt = asciimat(a) + + + + Arguments + + + txt + + + a character string or matrix of strings. + + + + + a + + + a vector or matrix of integer ASCII codes. + + + + + + + Description + + This function converts Scilab string to ASCII code or a + matrix of ASCII code to Scilab string. Output is a matrix + having the same number of rows than input, what is not the + case with ascii. + + + + See Also + + + ascii + + + + diff --git a/modules/string/help/en_US/blanks.xml b/modules/string/help/en_US/blanks.xml new file mode 100755 index 000000000..adb7f8d9d --- /dev/null +++ b/modules/string/help/en_US/blanks.xml @@ -0,0 +1,51 @@ + + + + + blanks + create string of blank characters + + + Calling Sequence + txt = blanks(n) + + + Arguments + + + txt + + a single character string. + + + + n + + an integer, number of blanks. + + + + + + Description + + blanks(n) is a string of n blanks. + + + + Examples + + + diff --git a/modules/string/help/en_US/char.xml b/modules/string/help/en_US/char.xml new file mode 100755 index 000000000..fd4a8aa1d --- /dev/null +++ b/modules/string/help/en_US/char.xml @@ -0,0 +1,108 @@ + + + + + char + converts in a character array + + + Calling Sequence + + y = char(x) + y = char(st1, st2, st3,...) + + + + Arguments + + + x + + a cell array of strings, or an array of ASCII codes. + + + + st1, st2, st3 + + arrays of strings. + + + + y + + a vector of strings (column). + + + + + + Description + + One input argument : + + + Given a cell of array of strings x, this function + returns a vector of strings y in which the rows are the + concatenated components of corresponding rows of the cell array of strings. + + + Given an array of ASCII codes x, this function + returns a array of strings y corresponding into ASCII + codes. If dimensions of x are [n1, n2, n3, n4,...], + then returned value has same size as input value except second dimension, i.e. + the dimensions of y are [n1, n3, n4,...]. + + + More than one input argument : + + + Given arrays of strings st1, st2, st3,..., this function + returns a vector of strings in which the rows are the concatenated + components of corresponding rows of st1, st2, st3,.... + In the vector y all strings sti + are completed by blanks to have the same length as the max length of + sti. + + + + Examples + + + + See Also + + + ascii + + + asciimat + + + + diff --git a/modules/string/help/en_US/convstr.xml b/modules/string/help/en_US/convstr.xml new file mode 100755 index 000000000..78fb9d79c --- /dev/null +++ b/modules/string/help/en_US/convstr.xml @@ -0,0 +1,69 @@ + + + + + convstr + case conversion + + + Calling Sequence + [y] = convstr(str, [flag]) + + + Arguments + + + str, y + + a matrix of character strings. + + + + flag + + a character option with possible values: + + + 'u' + + for upper; + + + + 'l' + + for lower. + + + + + + + + + Description + + The convstr function converts the matrix of strings + str into lower case (for flag = + "l"; default value) or upper case (for + flag = "u"). + + + + Examples + + + diff --git a/modules/string/help/en_US/emptystr.xml b/modules/string/help/en_US/emptystr.xml new file mode 100755 index 000000000..2b71ff6b6 --- /dev/null +++ b/modules/string/help/en_US/emptystr.xml @@ -0,0 +1,95 @@ + + + + + emptystr + zero length string + + + Calling Sequence + s = emptystr() + s = emptystr(a) + s = emptystr(m, n) + + + + Arguments + + + a + + + a matrix of size mx n. + + + + + s + + a matrix of character strings. + + + + m, n + + integers + + + + + + Description + + The emptystr function returns a matrix of zero + length character strings. + + + With no input argument emptystr returns a zero + length character string. + + + With a matrix a for input argument + emptystr returns a zero length character + strings matrix of the same size. + + + With two integer arguments emptystr returns a + m x n zero + length character strings matrix. + + + + Examples + + + + See Also + + + part + + + length + + + string + + + + diff --git a/modules/string/help/en_US/eval.xml b/modules/string/help/en_US/eval.xml new file mode 100755 index 000000000..e9fdfdf37 --- /dev/null +++ b/modules/string/help/en_US/eval.xml @@ -0,0 +1,60 @@ + + + + + eval + evaluation of a matrix of strings + + + Calling Sequence + [H] = eval(Z) + + + Arguments + + + Z + + a matrix of character string. + + + + + + Description + + The eval function returns the evaluation of the matrix of character strings + Z. + + + + Examples + + + + See Also + + + evstr + + + execstr + + + + diff --git a/modules/string/help/en_US/evstr.xml b/modules/string/help/en_US/evstr.xml new file mode 100755 index 000000000..c79b9b890 --- /dev/null +++ b/modules/string/help/en_US/evstr.xml @@ -0,0 +1,126 @@ + + + + + evstr + evaluation of expressions + + + Calling Sequence + + H = evstr(Z) + [H, ierr] = evstr(Z) + + + + Arguments + + + Z + + + a matrix of character strings M or + list(M,Subexp) + + + + M + + a matrix of character strings. + + + + Subexp + + a vector of character strings. + + + + + + + H + + a matrix. + + + + ierr + + an integer, error indicator. + + + + + + Description + + Returns the result of the evaluation of the matrix of character + strings M. Each element of the matrix must define a + valid Scilab expression. + + + If the evaluation of M expression leads to an + error, the single return value version, H = evstr(M), + raises the error as usual. The two return values version, + [H,ierr] = evstr(M), on the other hand, produces no + error, but returns the error number in ierr. + + + If Z is a list, Subexp is a + vector of character strings, that defines subexpressions which are + evaluated before evaluating M. These subexpressions + must be referred to as %(k) in M, + where k is the subexpression's index in + Subexp. + + + evstr('a = 1') is not valid (use execstr + instead). + + + Nan, NaN will be interpreted as %nan. + + + Inf will be interpreted as %inf. + + + Note that Z should not be composed of continuation marks (..). + + + + Examples + + a = 1; b = 2; + Z = ['a', 'b'] ; + evstr(Z) + + Z = list(['%(1)','%(1)-%(2)'],['a+1','b+1']); + evstr(Z) + + evstr('NaN'), evstr('Inf') + + //The two return values version + [H, ierr] = evstr(Z) // no error + Z = ['a', 'b', 'c'] ;// the variable c is undefined + [H, ierr] = evstr(Z) // error 4: Undefined variable: c + + + + See Also + + + execstr + + + + diff --git a/modules/string/help/en_US/grep.xml b/modules/string/help/en_US/grep.xml new file mode 100755 index 000000000..83b352740 --- /dev/null +++ b/modules/string/help/en_US/grep.xml @@ -0,0 +1,131 @@ + + + + + grep + find matches of a string in a vector of strings + + + Calling Sequence + row = grep(haystack, needle ) + [row, which] = grep(haystack, needle ) + row = grep(haystack, needle, [flag]) + [row, which] = grep(haystack, needle, [flag]) + + + + Arguments + + + haystack + + a row vector of character strings. + + + + needle + + + a character string or a row vector of character strings. The + string(s) to search in haystack. + + + + + row + + + a vector of indices: row where a match has been found or an + empty matrix if no match found. + + + + + which + + + a vector of indices: index of needle string found + or an empty matrix if no match found. + + + + + flag + + + a character ("r" for regular expression). + + + + + + + Description + + For each entry of haystack, grep + searches if at least a string in needle which matches a + substring. The haystack entries index where at least a + match has been found are returned in the row output + argument. The optional which output argument gives the + index of first string of needle found. + + + When using the third parameter flag="r", the + needle is expected to be a regular expression string. + In this case, grep uses the + needle as a regular expression and compares it + against haystack according to the regular expressions + rules. See the regexp function for details about + regular expressions. + + + + Example #1 + + In the following example, we search one or two strings in a text, + which is stored in the txt variable. + + + + + Example #2 + In the following example, we perform regexp searches. + + + + See Also + + + strindex + + + regexp + + + + diff --git a/modules/string/help/en_US/isalphanum.xml b/modules/string/help/en_US/isalphanum.xml new file mode 100755 index 000000000..68976c0ae --- /dev/null +++ b/modules/string/help/en_US/isalphanum.xml @@ -0,0 +1,67 @@ + + + + + isalphanum + check that characters of a string are alphanumerics + + + Calling Sequence + res = isalphanum(str) + + + Arguments + + + str + + a character string. + + + + res + + a boolean matrix. + + + + + + Description + + res = isalphanum(str) returns an array the same size as + str containing logical %t + (true) where the elements of str are + alphanumerics and logical %f (false) where they + are not. + + + + Examples + + + + See Also + + + isletter + + + isdigit + + + + diff --git a/modules/string/help/en_US/isascii.xml b/modules/string/help/en_US/isascii.xml new file mode 100755 index 000000000..54d3d94d3 --- /dev/null +++ b/modules/string/help/en_US/isascii.xml @@ -0,0 +1,66 @@ + + + + + isascii + tests if character is a 7-bit US-ASCII character + + + Calling Sequence + res = isascii(str) + + + Arguments + + + str + + a character string or an array of integers. + + + + res + + a boolean matrix. + + + + + + Description + + res = isascii(str) returns %t + (TRUE) if entries of str are a 7-bit + US-ASCII character code between 0 and octal 0177 inclusive (or + entries of str are 7-bit US-ASCII characters). + Otherwise returns %f (FALSE). + + + + Examples + + + + See Also + + + isalphanum + + + + diff --git a/modules/string/help/en_US/isdigit.xml b/modules/string/help/en_US/isdigit.xml new file mode 100755 index 000000000..15c47d858 --- /dev/null +++ b/modules/string/help/en_US/isdigit.xml @@ -0,0 +1,71 @@ + + + + + isdigit + + check that characters of a string are digits between 0 and 9 + + + + Calling Sequence + res = isdigit(str) + + + Arguments + + + str + + a character string. + + + + res + + a boolean matrix. + + + + + + Description + + res = isdigit(str) returns an array the same size as + str containing logical %t + (TRUE) where the elements of str are digits and + logical %f (FALSE) where they are not. + + + + Examples + + + + See Also + + + isalphanum + + + isletter + + + isnum + + + + diff --git a/modules/string/help/en_US/isletter.xml b/modules/string/help/en_US/isletter.xml new file mode 100755 index 000000000..af2d15c45 --- /dev/null +++ b/modules/string/help/en_US/isletter.xml @@ -0,0 +1,74 @@ + + + + + isletter + + check that characters of a string are alphabetic letters + + + + Calling Sequence + res = isletter(str) + + + Arguments + + + str + + a character string. + + + + res + + a boolean matrix. + + + + + + Description + + res = isletter(str) returns an array the same size as + str containing logical %t + (true) where the elements of str are letters of + the alphabet and logical %f (false) where they + are not. + + + + Examples + + + + See Also + + + isalphanum + + + isdigit + + + + diff --git a/modules/string/help/en_US/isnum.xml b/modules/string/help/en_US/isnum.xml new file mode 100755 index 000000000..8b1d6cf88 --- /dev/null +++ b/modules/string/help/en_US/isnum.xml @@ -0,0 +1,94 @@ + + + + + isnum + tests if a string represents a number + + + Calling Sequence + res = isnum(str) + + + Arguments + + + str + + + a character string or a matrix of character strings. + + + + + res + + a boolean matrix. + + + + + + Description + + res = isnum(str) returns %t if + str represents a number. + + + isnum does not handle "operations", but only pure scalar numbers. + For instance, isnum("1+2*3") will return %f. + Complex numbers are not concerned, because one complex number is defined by the addition of two parts. + + + + Examples + + + + See Also + + + isletter + + + isdigit + + + isalphanum + + + evstr + + + + diff --git a/modules/string/help/en_US/justify.xml b/modules/string/help/en_US/justify.xml new file mode 100755 index 000000000..9ce7e9576 --- /dev/null +++ b/modules/string/help/en_US/justify.xml @@ -0,0 +1,104 @@ + + + + + justify + justify character array + + + Calling Sequence + Tj = justify(T, opt) + + + Arguments + + + T + + a matrix of character strings. + + + + Tj + + + a matrix of character strings. The justified result. + + + + + opt + + + a character option with possible values: + + + + 'r' or 'right' + + for right justification; + + + + 'l' or 'left' + + for left justification; + + + + 'c' or 'center' + + for centering justification. + + + + + + + + + Description + + The justify function justifies the column of a + matrix of string according to the given option opt. + + + + Examples + + + + See Also + + + length + + + part + + + + diff --git a/modules/string/help/en_US/length.xml b/modules/string/help/en_US/length.xml new file mode 100755 index 000000000..4b60897ce --- /dev/null +++ b/modules/string/help/en_US/length.xml @@ -0,0 +1,123 @@ + + + + + length + length of object + + + Calling Sequence + n = length(M) + + + Arguments + + + M + + + a matrix (usual or polynomial or character string) or a + list. + + + + + n + + an integer or a matrix of integers. + + + + + + Description + + For usual or polynomial matrix n is the integer + equal to number of rows times number of columns + of M. (Also valid for M + a boolean matrix). + + + For matrices made of character strings (and in particular for a + character string) length returns in + n the length of entries of the matrix of + character strings M. + + + The length of a list is the number of elements in the list (also + given by size). + + + The length of a mlist is by default the number of elements in the + mlist, but you can overload it (see example). Note that for a non-string + hypermatrix, there is no need to overload the function. Indeed, length + returns the product of the dimensions of the hypermatrix. + + + length('123') is 3. + length([1,2;3,4]) is 4. + + + + WARNING : length of a sparse matrix + returns the max of dimensions and not the product + of the dimensions. (For example: + length(sparse(eye(12,2))) + returns max(12,2) and not 24). + Please use size(...,'*') with sparse matrix. + + + + + Examples + + + + + See Also + + + size + + + + + History + + + 5.4.0 + + This function allows overloading for mlist type. + + + + + diff --git a/modules/string/help/en_US/part.xml b/modules/string/help/en_US/part.xml new file mode 100755 index 000000000..2cc4e086a --- /dev/null +++ b/modules/string/help/en_US/part.xml @@ -0,0 +1,139 @@ + + + + + part + Extraction of characters from strings + + + Calling Sequence + [strings_out] = part(strings_in, v) + + + Arguments + + + strings_in + + a character string or matrix of character string. + + + + v + + + a vector of integer values containing the indices of characters to be extracted. + $ is accepted and means length(strings_in). + + + + + strings_out + + a character string or matrix of character string. + + + + + + Description + + This function extracts characters from strings. The characters to be + extracted are referred to by their indices contained in v. + + + + strings_out is filled with whitespace characters when indices + are beyond the input string's length. + + + v may contain $ symbol which stands for the + length of string_in. + + + + Examples + ['a' 'a' 'a'] +part(['a', 'abc', 'abcd'], [1, 1]) // => ['aa' 'aa' 'aa'] +part(['a', 'abc', 'abcd'], [1, 1, 2]) // => ['aa' 'aab' 'aab'] + +// Repeating a character N times: +N = 10; part('-', ones(1:N)) // => '----------' + +// Repeating a pattern N times: +N = 6; pat = '- '; +part(pat, ones(1:N).*.(1:length(pat))) // => '- - - - - - ' + +// Using $ = implicit length of strings: +// 1) +part(['a string' 'another longer one'], $-2:$ ) // => [ 'ing' 'one'] + +// 2) Another implementation for strrev(): +part('Hello world', $:-1:1) // => 'dlrow olleH' + +// 3) With unranging $: +part('Hello world', [ $ 4:5 ]) // => 'dlo' + +// 4) Mixing scalar or unrangin $ with ranging ones is not possible: +part("Hello", [ 1 $-1:$ $ ]) // => error + ]]> + + + See Also + + + string + + + strsplit + + + length + + + + + + History + + + 5.5.0 + + $ standing for length(input_strings) is now accepted in indices of selected characters + + + + + diff --git a/modules/string/help/en_US/regexp.xml b/modules/string/help/en_US/regexp.xml new file mode 100755 index 000000000..995faca47 --- /dev/null +++ b/modules/string/help/en_US/regexp.xml @@ -0,0 +1,164 @@ + + + + + regexp + + find a substring that matches the regular expression string + + + + Calling Sequence + + [start] = regexp(input, pattern, [flag]) + [start, final] = regexp(input, pattern, [flag]) + [start, final, match] = regexp(input, pattern, [flag]) + [start, final, match, foundString] = regexp(input, pattern, [flag]) + + + + Arguments + + + input + + a string. + + + + pattern + + + a character string (under the rules of regular expression). + + + + + start + + + the starting index of each substring of + input that matches the regular + expression string pattern. + + + + + final + + + the ending index of each substring of + input that matches the regular + expression string pattern. + + + + + match + + + the text of each substring of input + that matches pattern. + + + + + foundString + + + the captured parenthesized subpatterns. + + + + + [flag] + + + 'o' for matching the pattern once. + + + + + + + Description + + The rules of regular expression are similar to Perl language. For a + quick start, see + http://perldoc.perl.org/perlrequick.html. + For a more in-depth tutorial on, see + http://perldoc.perl.org/perlretut.html + and for the reference page, see + http://perldoc.perl.org/perlre.html + + + A difference with Perl is that matching a position but no character + (for example, with /^/ or + /(?=o)/) is a successful match in Perl but not + in Scilab. + + + + Examples + \w+): (?P\d+)/') +d(1)=="foobar" +d(2)=="2012" + + ]]> + + + See Also + + + strindex + + + + + History + + + 5.4.0 + + A new output argument, foundString, has been added to retrieve subpatterns matches. + + + + + diff --git a/modules/string/help/en_US/sci2exp.xml b/modules/string/help/en_US/sci2exp.xml new file mode 100755 index 000000000..125bd9dd8 --- /dev/null +++ b/modules/string/help/en_US/sci2exp.xml @@ -0,0 +1,147 @@ + + + + + sci2exp + converts an expression to a string + + + Calling Sequence + t = sci2exp(a [,nam] [,lmax]) + + + Arguments + + + a + + a scilab expression, may be: + + + - + + a constant; + + + + - + + a polynomial; + + + + - + + a string matrix; + + + + - + + a list; + + + + - + + a boolean matrix; + + + + - + + a handle (only figure and uicontrol). + + + + + + + nam + + a character string. + + + + t + + + a vector of strings, contains the expression or the affectation instruction. + + + + + lmax + + + an integer, contains the maximum line length. Default + value is 0, + which indicates no line length + control; a single string is returned. + + + + + + + Description + + sci2exp converts expression to an instruction string if nam is + given or to an expression string. + + + + Remarks + + + + If a is a handle, sci2exp gives a result which has no hierarchical links, + that is, with empty fields for parent and children. + + + + + t can be impacted by format. + + + + + + + Examples + + + + See Also + + + prettyprint + + + format + + + + diff --git a/modules/string/help/en_US/strcat.xml b/modules/string/help/en_US/strcat.xml new file mode 100755 index 000000000..c869a52ee --- /dev/null +++ b/modules/string/help/en_US/strcat.xml @@ -0,0 +1,126 @@ + + + + + strcat + concatenates character strings + + + Calling Sequence + + txt = strcat(strings [,string_added]) + txt = strcat(strings [,string_added, ["flag"]]) + + + + Arguments + + + strings + + a vector or matrix of strings. + + + + string_added + + + a string added, default value is the zero length character + string "". + + + + + txt + + a string. + + + + "flag" + + + a character ("r" for concatenation of + rows in the matrix strings, + "c" for concatenations of columns in the + matrix strings). + + + + + + + Description + + txt = strcat(strings) concatenates character strings: + txt = strings(1) + ... + strings(n). + + + txt = strcat(strings, string_added) returns + txt = strings(1) + string_added + ... + string_added + strings(n). + + + The plus symbol does the same: "a"+"b" is the + same as strcat(["a","b"]).. + + + If the size of strings is one, it returns + txt = strings(1); + + + strcat('A','B') returns 'A' and not + 'AB' as strcat(['A','B']). + + + If strings is a matrix of strings, + txt = strcat(strings, "", "r") returns a row vector of strings. + Each entry of txt results from the concatenation of rows along + the related column. + txt = strcat(strings, "", "c") returns a column vector of strings. + Each entry of txt results from the concatenation of columns along + the related row. + + + + Examples + + + + See Also + + + string + + + strings + + + + diff --git a/modules/string/help/en_US/strchr.xml b/modules/string/help/en_US/strchr.xml new file mode 100755 index 000000000..284969dff --- /dev/null +++ b/modules/string/help/en_US/strchr.xml @@ -0,0 +1,82 @@ + + + + + strchr + + find the first occurrence of a character in a string + + + + Calling Sequence + res = strchr(haystack, char) + + + Arguments + + + haystack + + + a character string or matrix of character strings. + + + + + char + + a character. + + + + res + + + a character string or matrix of character strings. + + + + + + + Description + + res = strchr(haystack, char) returns the first + occurrence of character in the string haystack. + + + char must contain only one string or as many + strings as in haystack (each one being one- + character-long). + + + + Examples + + + + See Also + + + strrchr + + + strstr + + + + diff --git a/modules/string/help/en_US/strcmp.xml b/modules/string/help/en_US/strcmp.xml new file mode 100755 index 000000000..6089d6cc9 --- /dev/null +++ b/modules/string/help/en_US/strcmp.xml @@ -0,0 +1,105 @@ + + + + + strcmp + compare character strings + + + Calling Sequence + res = strcmp(string_one, string_two, ['i']) + + + Arguments + + + string_one + + + a character string or matrix of character strings. + + + + + string_two + + + a character string or matrix of character strings. + + + + + 'i' + + + an optional parameter to do strcmpi + (case independent), default value is 's'. + + + + + res + + a matrix of integers. + + + + + + Description + + res = strcmp(string_one, string_two) (or + res = strcmp(string_one, string_two, 's')) returns an + integral value indicating the relationship between the strings. + + + The value greater than zero indicates that the first character that + does not match has a greater value in string_one + than in string_two and the value less than zero + indicates the opposite (lexicographical order). + + + The value equal zero indicates that string_one + and string_two are equal. + + + res = strcmp(string_one, string_two, 'i') returns + 0 if string_one is equal to + string_two (case independently) and + 1 indicates the opposite. + + + + Examples + + + + See Also + + + strcat + + + strcmpi + + + + diff --git a/modules/string/help/en_US/strcmpi.xml b/modules/string/help/en_US/strcmpi.xml new file mode 100755 index 000000000..4bf33eda1 --- /dev/null +++ b/modules/string/help/en_US/strcmpi.xml @@ -0,0 +1,83 @@ + + + + + strcmpi + + compare character strings (case independent) + + + + Calling Sequence + res = strcmpi(string_one, string_two) + + + Arguments + + + string_one + + + a character string or matrix of character strings. + + + + + string_two + + + a character string or matrix of character strings. + + + + + res + + a matrix of integers. + + + + + + Description + + res = strcmpi(string_one, string_two) returns an + integral value indicating the relationship between the strings. The two strings are compared in using the lexicographical order. + + + The value is 0 if string_one + is equal to string_two (case independently), + 1 if string_one is greater than string_two and -1 else. + + + + Examples + + + + See Also + + + strcat + + + strcmp + + + + diff --git a/modules/string/help/en_US/strcspn.xml b/modules/string/help/en_US/strcspn.xml new file mode 100755 index 000000000..059a212df --- /dev/null +++ b/modules/string/help/en_US/strcspn.xml @@ -0,0 +1,79 @@ + + + + + strcspn + get span until character in string + + + Calling Sequence + res = strcspn(string_one, string_two) + + + Arguments + + + string_one + + + a character string or matrix of character strings. + + + + + string_two + + + a character string or matrix of character strings. + + + + + res + + a matrix. + + + + + + Description + + res = strcspn(string_one,string_two) scans + string_one for the first occurrence of any of the + characters that are part of string_two, returning + the number of characters of string_one read + before this first occurrence. + + + string_two must have same dimensions than string_one or string_two + must be a string. + + + + Examples + + + + See Also + + + strspn + + + + diff --git a/modules/string/help/en_US/strindex.xml b/modules/string/help/en_US/strindex.xml new file mode 100755 index 000000000..3c2b1f160 --- /dev/null +++ b/modules/string/help/en_US/strindex.xml @@ -0,0 +1,136 @@ + + + + + strindex + + search position of a character string in an other string + + + + Calling Sequence + + ind = strindex(haystack, needle, [flag]) + [ind, which] = strindex(haystack, needle, [flag]) + + + + Arguments + + + haystack + + + a character string. The string where to search + occurrences of needle. + + + + + needle + + + a character string or character string vector. The + string(s) to search in haystack. + + + + + ind + + a vector of indexes. + + + + which + + a vector of indexes. + + + + flag + + + a string ("r" for regular expression). + + + + + + + Description + + strindex searches indexes where + needle(i) is found in haystack. + + + For each k it exist an i such + that part(haystack,ind(k)+(0:length(needle(i))-1)) is + the same string than needle(i). If + which argument is required it contains these + i. When using the third parameter "r", the needle + should be a string of regular expression. And then strindex is going to + match it with haystack according to the regular express rules. + + + strindex without regular expression argument is + based on Knuth-Morris-Pratt algorithm. + + + This algorithm is more powerful than that used in Scilab 4.x. In + some special case, result can be different. + + Example: + // Scilab 5.x + -->[k,w]=strindex('aab',['a','ab']) + w = 1. 1. 2. k = 1. 2. 2. + // Scilab 4.x + -->[k,w]=strindex('aab',['a','ab']) + w = 1. 1. k = 1. 2. + + The rules of regular expression are similar to Perl language. For a + quick start, see http://perldoc.perl.org/perlrequick.html. + For a more in-depth tutorial on, see http://perldoc.perl.org/perlretut.html + and for the reference page, see http://perldoc.perl.org/perlre.html + + + + Examples + + + + See Also + + + string + + + strings + + + regexp + + + strsubst + + + + diff --git a/modules/string/help/en_US/string.xml b/modules/string/help/en_US/string.xml new file mode 100755 index 000000000..c12e645b5 --- /dev/null +++ b/modules/string/help/en_US/string.xml @@ -0,0 +1,146 @@ + + + + + string + conversion to string + + + Calling Sequence + string(x) + [out, in, text] = string(x) + + + + Arguments + + + x + + + a boolean, complex, real, integer, polynomial matrix, + an implicit size, a library or a function. + + + + + + + Description + + The string function converts a matrix x into a matrix of strings. + + + If x is a function [out, in, text] = string(x) + returns three vectors of strings: out + is the vector of output variables, in is the vector of + input variables, and text is the (column) vector of the + source code of the function. + + + If x is a lib variable + (library), text is a character string column vector. The first element + contains the path of library file and the other the name of functions it + defines. + + + Character strings are defined as 'string' + (between quotes) or "string" (between doublequotes); + matrices of strings are defined as usual constant matrices. + + + Concatenation of strings is made by the + + operation. + + + For complex, real, integer, polynomial matrix + string output is managed by format function (see examples). + + + Note that string([]) returns []. + + + + Examples + + string(rand(2, 2)) + + deff("y = mymacro(x)", "y = x + 1") + [out, in, text] = string(mymacro) + x = 123.356; + disp("Result is " + string(x)); + + disp("/" + string(~%t) + "/"); + disp("/" + string(%i+1) + "/"); + disp("/" + string(int16(-123)) + "/"); + disp("/" + string(1 + %s + %s^3) + "/"); + + string(corelib) + + v = format(); + disp(string(%pi)) + format(24); + disp(string(%pi)) + format(v(2)) + + string(1:4:$) + + + + See Also + + + part + + + length + + + quote + + + evstr + + + execstr + + + strsubst + + + strcat + + + strindex + + + sci2exp + + + format + + + + + History + + + 5.4.0 + + implicit size type managed as input argument. + + + + + diff --git a/modules/string/help/en_US/strings.xml b/modules/string/help/en_US/strings.xml new file mode 100755 index 000000000..e9265d8a1 --- /dev/null +++ b/modules/string/help/en_US/strings.xml @@ -0,0 +1,50 @@ + + + + + strings + Scilab Object, character strings + + + Description + + Strings are defined as 'string' (between quotes) or + "string" (between doublequotes); + matrices of strings are defined as usual constant matrices. + + + Concatenation of two strings is made by a +: string1 + string2. + + + + Examples + + + + See Also + + + part + + + length + + + strcat + + + + diff --git a/modules/string/help/en_US/stripblanks.xml b/modules/string/help/en_US/stripblanks.xml new file mode 100755 index 000000000..a624e6006 --- /dev/null +++ b/modules/string/help/en_US/stripblanks.xml @@ -0,0 +1,66 @@ + + + + + stripblanks + + strips / trims leading and trailing + blanks (and tabs) of strings + + + + Calling Sequence + txt = stripblanks(txt[,tabs]) + + + Arguments + + + txt + + + a character string or matrix of character strings. + + + + + tabs + + + a boolean, if %t then tabs are also stripped (default value is %f). + + + + + + + Description + + The stripblanks function strips / trims leading and trailing blanks (and tabs) of strings. + + + + Examples + + + diff --git a/modules/string/help/en_US/strncpy.xml b/modules/string/help/en_US/strncpy.xml new file mode 100755 index 000000000..9adf2c37c --- /dev/null +++ b/modules/string/help/en_US/strncpy.xml @@ -0,0 +1,80 @@ + + + + + strncpy + copy characters from strings + + + Calling Sequence + res = strncpy(str1, num) + + + Arguments + + + str1 + + + a character string or matrix of character strings. + + + + + num + + + an integer or a matrix of integers, maximum number of characters to be copied from source. + + + + + res + + + a character string or matrix of character strings. + + + + + + + Description + + res = strncpy(str1, num) copies the first num characters of source str1 to destination res. + + + num must have same dimensions than + str1 or num must be an integer number. + + + + Examples + + + + See Also + + + strcat + + + strcmp + + + + diff --git a/modules/string/help/en_US/strrchr.xml b/modules/string/help/en_US/strrchr.xml new file mode 100755 index 000000000..cfd887775 --- /dev/null +++ b/modules/string/help/en_US/strrchr.xml @@ -0,0 +1,80 @@ + + + + + strrchr + + find the last occurrence of a character in a string + + + + Calling Sequence + res = strrchr(str1, char) + + + Arguments + + + str1 + + + a character string or matrix of character strings. + + + + + char + + a character or matrix of characters. + + + + res + + + a character string or matrix of character strings. + + + + + + + Description + + res = strrchr(str1, char) returns the last occurrence of character char in the string str1. + + + char must have same dimensions than + str1 or only one character. + + + + Examples + + + + See Also + + + strchr + + + strstr + + + + diff --git a/modules/string/help/en_US/strrev.xml b/modules/string/help/en_US/strrev.xml new file mode 100755 index 000000000..6f41398a3 --- /dev/null +++ b/modules/string/help/en_US/strrev.xml @@ -0,0 +1,57 @@ + + + + + strrev + returns string reversed + + + Calling Sequence + res = strrev(str1) + + + Arguments + + + str1 + + + a character string or matrix of character strings. + + + + + res + + + a character string or matrix of character strings. + + + + + + + Description + + res = strrev(str1) returns string reversed. + + + + Examples + + + diff --git a/modules/string/help/en_US/strsplit.xml b/modules/string/help/en_US/strsplit.xml new file mode 100755 index 000000000..0ec182758 --- /dev/null +++ b/modules/string/help/en_US/strsplit.xml @@ -0,0 +1,161 @@ + + + + + strsplit + split a string into a vector of strings + + + Calling Sequence + + v = strsplit(str,ind) + [v, matched_separators] = strsplit(str) + [v, matched_separators] = strsplit(str, matrix_of_strings, limit) + [v, matched_separators] = strsplit(str, regexp_pattern, limit) + + + + Arguments + + + str + + a character string to split. + + + + ind + + + a vector of strictly increasing indices in the interval + [1 length(str)-1]. + + + + + v + + + the resulting column vector of string (dimension >size(ind,'*')+1). + + + + + matched_separators + + + a column vector of the matched separators. + + + + + matrix_of_strings + + + a matrix of strings to search in str. + + + + + regexp_pattern + + a regular expression pattern. + + + + limit + + maximum of limit elements. + + + + + + Description + + v= strsplit(str, ind) splits the string + str into a vector of strings at the points given by the + indices in ind (after each characters pointed to by the + index in ind). + + + strsplit(str) returns same thing as + strsplit(str,1:length(str)-1). + + + strsplit(str, regexp_pattern, limit) returns an + column vector of strings, each of which is a substring of + str formed by splitting it on boundaries formed + by the case-sensitive regular expression pattern. + + + If there are n occurrences of pattern, the + returned array will contain n+1 items. + + + For example, if there is no occurrence of pattern, an array with + only one element will be returned. Of course, this is also true if str is empty. + + + If limit is set, the returned array will contain + a maximum of limit elements with the last element containing the + whole rest of string. + + + strsplit(str, matrix_of_strings, limit) splits + str on any of elements. It allows to + split on different separators for users without regexp knowledge. + + + If strsplit() is called with a second output + argument, the column vector of the matched separators is returned. + + + + Examples + + + + See Also + + + part + + + strcat + + + tokens + + + regexp + + + + diff --git a/modules/string/help/en_US/strspn.xml b/modules/string/help/en_US/strspn.xml new file mode 100755 index 000000000..885978c4a --- /dev/null +++ b/modules/string/help/en_US/strspn.xml @@ -0,0 +1,74 @@ + + + + + strspn + get span of character set in string + + + Calling Sequence + res = strspn(str1, str2) + + + Arguments + + + str1 + + + a character string or matrix of character strings. + + + + + str2 + + + a character string or matrix of character strings. + + + + + res + + a matrix of character strings. + + + + + + Description + + res = strspn(str1, str2) returns the length of the initial portion of str1 which consists only of characters that are part of str2. + + + str1 must have same dimensions as str2 or str2 must be 1x1 string. The output will be the same dimensions as str1 in both cases. + + + + Examples + + + + See Also + + + strcspn + + + + diff --git a/modules/string/help/en_US/strstr.xml b/modules/string/help/en_US/strstr.xml new file mode 100755 index 000000000..c171a97f5 --- /dev/null +++ b/modules/string/help/en_US/strstr.xml @@ -0,0 +1,81 @@ + + + + + strstr + locate substring + + + Calling Sequence + res = strstr(haystack, needle) + + + Arguments + + + haystack + + + a character string or matrix of character strings. + + + + + needle + + + a character string or matrix of character strings. + + + + + res + + + a character string or matrix of character strings. + + + + + + + Description + + res = strstr(haystack, needle) returns a string matrix + starting from where the first occurrence of + needle in haystack to the end + of haystack, or '' if there + needle is not part of haystack. + + + + Examples + + + + See Also + + + strrchr + + + strchr + + + + diff --git a/modules/string/help/en_US/strsubst.xml b/modules/string/help/en_US/strsubst.xml new file mode 100755 index 000000000..61c7806a2 --- /dev/null +++ b/modules/string/help/en_US/strsubst.xml @@ -0,0 +1,108 @@ + + + + + strsubst + + substitute a character string by another in a character string + + + + Calling Sequence + + string_out = strsubst(string_in, searchStr, replaceStr) + string_out = strsubst(string_in, searchStr, replaceStr, [flag]) + + + + Arguments + + + string_in + + + a matrix of character strings. The strings where to + search occurrences of searchStr. + + + + + searchStr + + + a character string. The string to search in + string_in. + + + + + replaceStr + + + a character string. The replacement string. + + + + + string_out + + + a matrix of character strings. The result of the + substitution on searchStr by + replaceStr in string_in. + + + + + flag + + + a character ("r" for regular expression). + + + + + + + Description + + The strsubst function replaces all occurrences of + searchStr in string_in by + replaceStr. + + + When using the forth parameter "r", the searchStr should be a + string of regular expression. And then strsubst is going to match it with + string_in and replace according to the regular expression rules. + + + + Examples + + + + See Also + + + string + + + strings + + + + diff --git a/modules/string/help/en_US/strtod.xml b/modules/string/help/en_US/strtod.xml new file mode 100755 index 000000000..cd668f04e --- /dev/null +++ b/modules/string/help/en_US/strtod.xml @@ -0,0 +1,117 @@ + + + + + strtod + convert string to double + + + Calling Sequence + + d = strtod(str [,decimalseparator]) + [d, endstr] = strtod(str [,decimalseparator]) + + + + Arguments + + + str + + + a character string or matrix of character strings. + + + + + decimalseparator + + + the decimal separator chosen: "." (by default) or ",". + + + + + d + + + a real or matrix of reals. + + + + + endstr + + + a character string or matrix of character strings (next + character in str after the numerical + value). + + + + + + + Description + + [d, endstr] = strtod(str) parses strings + str interpreting its content as a floating point + number and returns its value as a real. If str does not contain any numerical value then d equals Nan. + + + + Remarks + + + + This function is based on the strtod C function which causes different behaviors on Windows and Linux. In fact, on Windows, it is possible to use + d or D for exponents, but it is not possible to use hexadecimal numbers. + + + + + Note that strtod("%inf") returns Nan. + + + + + + + Examples + + + + History + + + 5.5.0 + + New optional input: decimalseparator (SEP 97). + + + + 5.4.1 + + If str does not contain any numerical value then d equals Nan instead of 0 in previous versions. + + + + + diff --git a/modules/string/help/en_US/strtok.xml b/modules/string/help/en_US/strtok.xml new file mode 100755 index 000000000..5bcb806fc --- /dev/null +++ b/modules/string/help/en_US/strtok.xml @@ -0,0 +1,78 @@ + + + + + strtok + split string into tokens + + + Calling Sequence + res = strtok(str, delimiters) + + + Arguments + + + str + + a character string. + + + + delimiters + + a character string. + + + + res + + a character string. + + + + + + Description + + res = strtok(str, delimiters) sequence of calls to + this function split str into tokens, which are + sequences of contiguous characters separated by any of the + characters that are part of delimiters. + + + + Examples + '' ) + token = strtok(" r,"); + TOKENS = [TOKENS,token]; +end +disp(TOKENS); + ]]> + + + See Also + + + strrchr + + + strchr + + + + diff --git a/modules/string/help/en_US/tokenpos.xml b/modules/string/help/en_US/tokenpos.xml new file mode 100755 index 000000000..d278f49f4 --- /dev/null +++ b/modules/string/help/en_US/tokenpos.xml @@ -0,0 +1,85 @@ + + + + + tokenpos + + returns the tokens positions in a character string + + + + Calling Sequence + kdf = tokenpos(str [,delimiter]) + + + Arguments + + + str + + + a character string. The string where to search the tokens. + + + + + delimiter + + + (optional) a character or a vector of characters. The tokens delimiters. + + + + + kdf + + + a two column matrix, first column gives the index of the + beginning of the tokens, the second gives the index of + the last character of the tokens. + + + + + + + Description + + kdf = tokenpos(str [,delimiter]) searches the tokens + included in the string str. The + delimiter default value is [" ",<Tab>] + where <Tab> stands for + ascii(9). It returns the indices of the first and last + characters of each found tokens. + + + + Examples + + + + See Also + + + strindex + + + tokens + + + + diff --git a/modules/string/help/en_US/tokens.xml b/modules/string/help/en_US/tokens.xml new file mode 100755 index 000000000..bce3d9c41 --- /dev/null +++ b/modules/string/help/en_US/tokens.xml @@ -0,0 +1,81 @@ + + + + + tokens + returns the tokens of a character string + + + Calling Sequence + T = tokens(str [,delimiter]) + + + Arguments + + + str + + + a character string. The string where to search the tokens. + + + + + delimiter + + + (optional) a character or a vector of characters. The tokens delimiters. + + + + + T + + + a column vector of found tokens. + + + + + + + Description + + T = tokens(str [,delimiter]) searches the tokens + included in the string str. The + delimiter default value is [" ",<Tab>] + where <Tab> stands for ascii(9). + + + + Examples + + + + See Also + + + strindex + + + tokenpos + + + + diff --git a/modules/string/help/fr_FR/addchapter.sce b/modules/string/help/fr_FR/addchapter.sce new file mode 100755 index 000000000..b4d068841 --- /dev/null +++ b/modules/string/help/fr_FR/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Chaînes de caractères",SCI+"/modules/string/help/fr_FR",%T); + diff --git a/modules/string/help/fr_FR/asciimat.xml b/modules/string/help/fr_FR/asciimat.xml new file mode 100755 index 000000000..4f43731b5 --- /dev/null +++ b/modules/string/help/fr_FR/asciimat.xml @@ -0,0 +1,58 @@ + + + + + asciimat + conversion d'une matrice de chaînes ASCII + + + Séquence d'appel + + a = asciimat(txt) + txt = asciimat(a) + + + + Paramètres + + + txt + + chaîne de caractères ou matrice de chaînes + + + + a + + vecteur ou matrice de codes ASCII + + + + + + Description + + Cette fonction convertit une chaîne de caractères Scilab en codes ASCII ou une matrice de codes ASCII en chaîne de caractères Scilab. + La valeur retournée est une matrice ayant le même nombre de lignes que l'entrée, + ce qui n'est pas le cas de la fonction ascii. + + + + Voir aussi + + + ascii + + + + diff --git a/modules/string/help/fr_FR/eval.xml b/modules/string/help/fr_FR/eval.xml new file mode 100755 index 000000000..8a19e9908 --- /dev/null +++ b/modules/string/help/fr_FR/eval.xml @@ -0,0 +1,37 @@ + + + + eval + évaluation d'une matrice de chaînes de caractères + + + Séquence d'appel + [H]= eval(Z) + + + Description + renvoie le résultat de l'évaluation d'une matrice de chaînes de + caractères Z. + + + + Exemples + + + + Voir aussi + + + evstr + + + execstr + + + + diff --git a/modules/string/help/fr_FR/evstr.xml b/modules/string/help/fr_FR/evstr.xml new file mode 100755 index 000000000..5a7555e36 --- /dev/null +++ b/modules/string/help/fr_FR/evstr.xml @@ -0,0 +1,105 @@ + + + + evstr + évaluation d'une expression + + + Séquence d'appel + H=evstr(Z) + [H,ierr]=evstr(Z) + + + + Paramètres + + + Z + + + matrice de chaînes de caractères M ou + list(M,Subexp) + + + + M + + matrice de chaînes de caractères + + + + Subexp + + vecteur de chaînes de caractères + + + + + + + H + + matrice + + + + ierr + + entier, 0 ou numéro de l'erreur + + + + + + Description + Renvoie le résultat de l'évaluation de la matrice de chaînes de + caractères M. Chaque élément de la matrice doit être + une expression Scilab valide. + + + Si l'évaluation d'un terme de M conduit à une + erreur, la syntaxe habituelle H=evstr(M), déclenche le + message d'erreur. Dans la syntaxe [H,ierr]=evstr(M) + aucun message d'erreur n'est produit, mais le numéro de l'erreur est + renvoyé dans ierr. + + + Si Z est une liste, Subexp est + un vecteur de chaînes de caractères qui définit des sous-expressions qui + sont évaluées avant M. Ces sous-expressions doivent + être référencées par l'expression %(k) dans + M, où k est la position de la + sous-expression dans la liste Subexp. + + evstr('a=1') n'est pas valide (utiliser pour cela + execstr). + + Nan et Nan seront interpretés comme %nan. + Inf sera interpreté comme %inf + + Note : Z ne doit pas comporter de marques de suite (..). + + + + Exemples + + + + Voir aussi + + + execstr + + + + diff --git a/modules/string/help/fr_FR/isnum.xml b/modules/string/help/fr_FR/isnum.xml new file mode 100755 index 000000000..9552ae7f6 --- /dev/null +++ b/modules/string/help/fr_FR/isnum.xml @@ -0,0 +1,95 @@ + + + + + isnum + teste si une chaîne de caractères représente un nombre + + + Séquence d'appel + res = isnum(str) + + + Paramètres + + + str + + + une matrice de chaînes de caractères. + + + + + res + + une matrice de booléens. + + + + + + Description + + res = isnum(str) retourne %t si + str représente un nombre. + + + isnum ne supporte pas les "opérations", mais seulement des scalaires purs. + Par exemple, isnum("1+2*3") retourne %f. + Les nombres complexes ne sont pas conernés par cela, + puisqu'un nombre complexe est défini par l'addition de deux parties. + + + + Exemples + + + + Voir aussi + + + isletter + + + isdigit + + + isalphanum + + + evstr + + + + diff --git a/modules/string/help/fr_FR/string.xml b/modules/string/help/fr_FR/string.xml new file mode 100755 index 000000000..f759376a4 --- /dev/null +++ b/modules/string/help/fr_FR/string.xml @@ -0,0 +1,128 @@ + + + + + string + conversion en chaîne de caractères + + + Séquence d'appel + string(x) + [out, in, text] = string(x) + + + + Paramètres + + + x + + Booléen, complexe, réel, entier, polynôme matrice, + bibliotheque ou fonction + + + + + + + Description + Convertit une matrice en matrice de chaînes de caractères. + + Si x est une fonction [out, in, text] = + string(x) + + retourne 3 vecteurs de chaînes de caractères : + out est le vecteur des variables de sortie, + in est le vecteur des variables d'entrée, et + text est le vecteur colonne du code source de la + fonction. + + + Si x est une variable bibliotheque + lib, text est un vecteur colonne de chaînes de + caractères. Le premier élément contient le chemin de la bibliothèque et + l'autre élément le nom des fonctions qui sont définies dans cette + bibliothèque. + + Les chaînes de caractères sont définies de la façon suivant, + 'string' (entre quotes) ou "string" + (entre double quotes); les matrices de chaînes de caractères sont définies + comme des matrices constantes normales. + + La concaténation des chaînes de caractères est effectuée par + l'opérateur +. + + + pour les types Booléen, complexe, réel, entier, polynôme matrice le texte issu de string est dependant de la fonction format (voir exemples). + + + Notez que string([]) renvoie []. + + + + Exemples + + + + Voir aussi + + + part + + + length + + + quote + + + evstr + + + execstr + + + strsubst + + + strcat + + + strindex + + + sci2exp + + + + diff --git a/modules/string/help/ja_JP/addchapter.sce b/modules/string/help/ja_JP/addchapter.sce new file mode 100755 index 000000000..0a891d0da --- /dev/null +++ b/modules/string/help/ja_JP/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Strings",SCI+"/modules/string/help/ja_JP",%T); + diff --git a/modules/string/help/ja_JP/ascii.xml b/modules/string/help/ja_JP/ascii.xml new file mode 100755 index 000000000..884735714 --- /dev/null +++ b/modules/string/help/ja_JP/ascii.xml @@ -0,0 +1,132 @@ + + + + + + + + + ascii + + 文字列をアスキー変換する + + + + + + 呼び出し手順 + + a=ascii(txt) + + txt=ascii(a) + + + + + + + + 引数 + + + + + + txt + + + + 文字列または文字列の行列. + + + + + + + + a + + + + 整数アスキーコードのベクトル + + + + + + + + + + + + 説明 + + + + この関数はScilab文字列をアスキーコード + + (最初の127個のコードはASCIIです)またはアスキーコードののベクトルに変換します. + + もしくは,アスキーコードのベクトルをScilab文字列に変換します. + + + + + + txt が文字列の行列の場合, + + ascii(txt) は + + ascii(strcat(txt))と等価です + + + + + + + + + + + + + + + + 参照 + + + + + + code2str + + + + + + str2code + + + + + + + + + diff --git a/modules/string/help/ja_JP/asciimat.xml b/modules/string/help/ja_JP/asciimat.xml new file mode 100755 index 000000000..ece5a041c --- /dev/null +++ b/modules/string/help/ja_JP/asciimat.xml @@ -0,0 +1,63 @@ + + + + + asciimat + 文字列行列アスキー変換 + + + 呼び出し手順 + + a = asciimat(txt) + txt = asciimat(a) + + + + 引数 + + + txt + + + 文字列または文字列の行列. + + + + + a + + + 整数アスキーコードのベクトルまたは行列. + + + + + + + 説明 + + この関数は,Scilab文字列をアスキーコードに変換または + アスキーコードの行列をScilab文字列に変換します. + 出力は,asciiの場合と異なり, + 入力と同じ行数を有する行列です. + + + + 参照 + + + ascii + + + + diff --git a/modules/string/help/ja_JP/blanks.xml b/modules/string/help/ja_JP/blanks.xml new file mode 100755 index 000000000..1275dfb5d --- /dev/null +++ b/modules/string/help/ja_JP/blanks.xml @@ -0,0 +1,86 @@ + + + + + + + + + blanks + + 空白文字からなる文字列を作成する + + + + + + 呼び出し手順 + + txt=blanks(n) + + + + + + 引数 + + + + + + txt + + + + 文字列 + + + + + + + + n + + + + 空白の数 + + + + + + + + + + + + D説明 + + blanks(n) はn個の空白からなる文字列です. + + + + + + + + + + + + + diff --git a/modules/string/help/ja_JP/char.xml b/modules/string/help/ja_JP/char.xml new file mode 100755 index 000000000..b9feec967 --- /dev/null +++ b/modules/string/help/ja_JP/char.xml @@ -0,0 +1,194 @@ + + + + + + + + + char + + char 関数 + + + + + + 呼び出し手順 + + + + y = char(x) + + y = char(st1, st2, st3,....) + + + + + + + + 引数 + + + + + + x + + + + 文字列配列のセル, またはアスキーコードの配列 + + + + + + + + st1,st2,st3 + + + + 文字列配列 + + + + + + + + y: + + + + 文字列(列)ベクトル + + + + + + + + + + + + 説明 + + + + 入力引数が一つの場合 : + + + + + + 文字列配列xのセルを指定すると, この関数は + + 文字列セルの要素を行とする文字列ベクトル y + + を返します. + + + + + + アスキーコードxの配列を指定すると, + + この関数はそのアスキーコードに対応する文字列の配列 y + + を返します. + + xの次元が [n1, n2, n3, n4,...]の場合, + + 返り値は2番目の次元以外は入力値と同じ大きさを有します. + + すなわち,yの次元は, + + [n1, n3, n4,...]となります. + + + + + + 入力引数が1より多い場合 : + + + + + + 文字列配列 + + st1,st2,st3,...を指定すると, この関数は, + + st1,st2,st3,...を結合した要素が行となる + + 文字列のベクトルを返します. + + ベクトル y においては, + + 文字列stiの末尾を空白で埋めることにより, + + stiの最長のものと同じ長さにしています. + + + + + + + + + + + + + + + + 参照 + + + + + + ascii + + + + + + asciimat + + + + + + + + + diff --git a/modules/string/help/ja_JP/convstr.xml b/modules/string/help/ja_JP/convstr.xml new file mode 100755 index 000000000..953099ae2 --- /dev/null +++ b/modules/string/help/ja_JP/convstr.xml @@ -0,0 +1,127 @@ + + + + + + + + + convstr + + 大文字小文字変換 + + + + + + 呼び出し手順 + + [y] = convstr(str, [flag]) + + + + + + 引数 + + + + + + str, y + + + + 文字列の行列 + + + + + + + + flag + + + + 文字オプションで指定可能な値は以下のとおり + + + + + + 'u' + + + + 大文字に変換 + + + + + + + + 'l' + + + + 小文字に変換 + + + + + + + + + + + + + + + + + + 説明 + + + + convstr関数は,文字列の行列 + + strを + + 小文字に変換(flag = "l"の場合; + + デフォルト値)または + + 大文字(flag = "u"の場合)に変換します. + + + + + + + + + + + + + + + diff --git a/modules/string/help/ja_JP/emptystr.xml b/modules/string/help/ja_JP/emptystr.xml new file mode 100755 index 000000000..7754decb1 --- /dev/null +++ b/modules/string/help/ja_JP/emptystr.xml @@ -0,0 +1,162 @@ + + + + + + + + + emptystr + + 長さ0の文字列 + + + + + + 呼び出し手順 + + s = emptystr() + + s = emptystr(a) + + s = emptystr(m, n) + + + + + + + + 引数 + + + + + + a + + + + 大きさ m x nの行列 + + + + + + + + s + + + + 文字列の行列 + + + + + + + + m,n + + + + 整数 + + + + + + + + + + + + 説明 + + + + 長さ0の文字列の行列を返します. + + + + + + 入力引数を指定しない場合,長さ0の文字列を返します. + + + + + + 入力引数に行列を指定した場合,同じ大きさの長さ0の文字列行列を返します. + + + + + + 2個の整数を引数に指定した場合, + + m x n + + の長さ0の文字列行列を返します. + + + + + + + + + + + + + + + + 参照 + + + + + + part + + + + + + length + + + + + + string + + + + + + + + + diff --git a/modules/string/help/ja_JP/eval.xml b/modules/string/help/ja_JP/eval.xml new file mode 100755 index 000000000..3c70a1d70 --- /dev/null +++ b/modules/string/help/ja_JP/eval.xml @@ -0,0 +1,105 @@ + + + + + + + + + eval + + 文字列の行列を評価する + + + + + + 呼び出し手順 + + [H] = eval(Z) + + + + + + 引数 + + + + + + Z + + + + 文字列の行列. + + + + + + + + + + + + 説明 + + + + eval関数は, + + 文字列の行列Zを評価したものを返します. + + + + + + + + + + + + + + + + S参照 + + + + + + evstr + + + + + + execstr + + + + + + + + + diff --git a/modules/string/help/ja_JP/evstr.xml b/modules/string/help/ja_JP/evstr.xml new file mode 100755 index 000000000..4756b07e6 --- /dev/null +++ b/modules/string/help/ja_JP/evstr.xml @@ -0,0 +1,236 @@ + + + + + + + evstr + + 式を評価する + + + + + + 呼び出し手順 + + + + H = evstr(Z) + + [H, ierr] = evstr(Z) + + + + + + + + 引数 + + + + + + Z + + + + + + 文字列の行列 M または + + list(M,Subexp) + + + + + + + + M + + + + 文字列の行列 + + + + + + + + Subexp + + + + 文字列のベクトル + + + + + + + + + + + + + + H + + + + 行列 + + + + + + + + ierr + + + + 整数, エラーインジケータ + + + + + + + + + + + + 説明 + + + + 文字列の行列Mを評価した結果を返します. + + 行列の各要素は有効なScilab式を定義している必要があります. + + + + + + M式の評価でエラーが発生した場合, + + 戻り値が1つの版,H = evstr(M),では通常と同様に + + エラーを発生します. + + 一方,戻り値が2つの版,[H,ierr] = evstr(M), + + はエラーを発生しませんが,ierrにエラー番号が + + 返されます. + + + + + + Z がリストの場合, Subexp は + + 文字列のベクトルとなり,Mを評価する前に + + 評価されるsub_expressionsを定義します. + + これらのsub_expressionsは,Mの中では + + %(k)として参照する必要があります. + + ただし,kSubexpにおける + + sub-expressionのインデックスです. + + + + + + evstr('a = 1') は有効ではありません + + (代わりにexecstrを使用してください). + + + + + Nan, NaN + + は %nan と評価されます. + + + + + Inf%inf と評価されます. + + + + + + Z は,継続記号 (..)で分解できない + + ことに注意してください. + + + + + + + + + + + + a = 1; b = 2; + + Z = ['a', 'b'] ; + + evstr(Z) + + + + Z = list(['%(1)','%(1)-%(2)'],['a+1','b+1']); + + evstr(Z) + + + + evstr('NaN'), evstr('Inf') + + + + //The two return values version + + [H, ierr] = evstr(Z) // no error + + Z = ['a', 'b', 'c'] ;// the variable c is undefined + + [H, ierr] = evstr(Z) // error 4: Undefined variable: c + + + + + + + + 参照 + + + + + + execstr + + + + + + + + + diff --git a/modules/string/help/ja_JP/grep.xml b/modules/string/help/ja_JP/grep.xml new file mode 100755 index 000000000..4091326a2 --- /dev/null +++ b/modules/string/help/ja_JP/grep.xml @@ -0,0 +1,242 @@ + + + + + + + + + grep + + 文字列のベクトルの中で指定した文字列に一致するかどうかを調べる + + + + + + 呼び出し手順 + + row=grep(haystack,needle ) + + [row,which]=grep(haystack,needle ) + + row=grep(haystack,needle ,[flag]) + + [row,which]=grep(haystack,needle ,[flag]) + + + + + + + + 引数 + + + + + + haystack + + + + 文字列の行ベクトル. + + + + + + + + needle + + + + 文字列または文字列の行ベクトル. + + haystackの中で文字列を探します. + + + + + + + + + + row + + + + インデックスのベクトル: + + 一致するものが見つかった行, + + または一致するものが見つからなかった場合は空の行列. + + + + + + + + + + which + + + + インデックスのベクトル: + + 見つかったneedle文字列のインデックスまたは + + 一致するものがなかった場合は空の行列. + + + + + + + + + + flag + + + + + 文字 (正規表現の場合は"r") + + + + + + + + + + + + + 説明 + + + + + + haystackの各エントリについて, + + grepは少なくとも + + needleの中の一つの文字列が + + 部分文字列に一致するかどうかを探します. + + 最低でも一致するものが一つある + + haystackのエントリのインデックスが + + 出力引数rowに返されます. + + オプションの出力引数whichは, + + needleの最初に見つかった文字列のインデックスを + + 指定します. + + + + + + 3番目のパラメータにflag="r" + + を指定した場合, + + needleに正規表現文字列を指定できます. + + この場合, grepneedle + + を正規表現として使用し,正規表現の規則に基づいて + + haystackとこの文字列を比較します. + + 正規表現に関する詳細については関数regexp + + を参照ください. + + + + + + + + 例 #1 + + + + 以下の例では,txt変数に保存されている + + テキスト中で,1つまたは2つの文字列を探します. + + + + + + + + + + 例 #2 + + 以下の例では, 正規表現検索を行ないます. + + + + + + + + 参照 + + + + + + strindex + + + + + + regexp + + + + + + + + + diff --git a/modules/string/help/ja_JP/isalphanum.xml b/modules/string/help/ja_JP/isalphanum.xml new file mode 100755 index 000000000..f3f51a778 --- /dev/null +++ b/modules/string/help/ja_JP/isalphanum.xml @@ -0,0 +1,123 @@ + + + + + + + + + isalphanum + + 文字列の文字がアルファベットまたは数字であるかどうかを調べる + + + + + + 呼び出し手順 + + res = isalphanum(str) + + + + + + 引数 + + + + + + str + + + + 文字列. + + + + + + + + res + + + + 論理値行列. + + + + + + + + + + + + 説明 + + + + res = isalphanum(str)str + + と同じ大きさの配列を返します. + + この配列の要素は,対応するstr + + の要素がアルファベットまたは数字である + + 場合に論理値 %t (true), + + そうでない場合は %f (false) を返します. + + + + + + + + + + + + + + + + 参照 + + + + + + isletter + + + + + + isdigit + + + + + + + + + diff --git a/modules/string/help/ja_JP/isascii.xml b/modules/string/help/ja_JP/isascii.xml new file mode 100755 index 000000000..8cbb771ba --- /dev/null +++ b/modules/string/help/ja_JP/isascii.xml @@ -0,0 +1,119 @@ + + + + + + + + + isascii + + 文字が7ビットUS-ASCII文字であるかどうかを確認する + + + + + + 呼び出し手順 + + res = isascii(str) + + + + + + 引数 + + + + + + str + + + + 文字列または整数の配列. + + + + + + + + res + + + + 論理値行列. + + + + + + + + + + + + 説明 + + + + res = isascii(str)は, + + strのエントリが + + 0および8進数表現で0177の間の7ビットUS-ASCII文字コード + + (またはstrのエントリが7ビットUS-ASCII文字列) + + の場合に%t (TRUE), + + それ以外の場合に %f (FALSE). + + + + + + + + + + + + + + + + 参照 + + + + + + isalphanum + + + + + + + + + diff --git a/modules/string/help/ja_JP/isdigit.xml b/modules/string/help/ja_JP/isdigit.xml new file mode 100755 index 000000000..aec9ecbc5 --- /dev/null +++ b/modules/string/help/ja_JP/isdigit.xml @@ -0,0 +1,127 @@ + + + + + + + + + isdigit + + 文字列の文字が0と9の間の数値であるかどうかを調べる + + + + + + 呼び出し手順 + + res = isdigit(str) + + + + + + 引数 + + + + + + str + + + + 文字列. + + + + + + + + res + + + + 論理値の行列. + + + + + + + + + + + + 説明 + + + + res = isdigit(str) は, + + strと同じ大きさの配列を返します. + + 配列の要素は,対応するstrの要素が数値の場合に + + 論理値%t (TRUE), + + それ以外の場合に論理値%f (FALSE)となります. + + + + + + + + + + + + + + + + 参照 + + + + + + isalphanum + + + + + + isletter + + + + + + isnum + + + + + + + + + diff --git a/modules/string/help/ja_JP/isletter.xml b/modules/string/help/ja_JP/isletter.xml new file mode 100755 index 000000000..813f28d9b --- /dev/null +++ b/modules/string/help/ja_JP/isletter.xml @@ -0,0 +1,121 @@ + + + + + + + + + isletter + + 文字列の文字がアルファベット文字であるかどうかを調べる + + + + + + 呼び出し手順 + + res = isletter(str) + + + + + + 引数 + + + + + + str + + + + 文字列. + + + + + + + + res + + + + 論理値の行列. + + + + + + + + + + + + 説明 + + + + res = isletter(str)は, + + strと同じ大きさの配列を返します. + + 配列の要素は,対応する strの要素が + + アルファベット文字の場合に論理値%t (TRUE), + + それ以外の場合に論理値%f (FALSE)となります. + + + + + + + + + + + + + + + + 参照 + + + + + + isalphanum + + + + + + isdigit + + + + + + + + + diff --git a/modules/string/help/ja_JP/isnum.xml b/modules/string/help/ja_JP/isnum.xml new file mode 100755 index 000000000..2a14214c5 --- /dev/null +++ b/modules/string/help/ja_JP/isnum.xml @@ -0,0 +1,155 @@ + + + + + + + + + isnum + + 文字列が数字であるかどうかを調べる + + + + + + 呼び出し手順 + + res = isnum(str) + + + + + + 引数 + + + + + + str + + + + 文字列または文字列の行列. + + + + + + + + res + + + + 論理値の行列. + + + + + + + + + + + + 説明 + + + + res = isnum(str)は, + + strが数値を表す場合に%t + + を返します. + + + + + + isnum は "演算"を処理せずに, + + スカラー数値のみを扱います. + + 例えば, isnum("1+2*3")%fを返します. + + 複素数は2つの部分の加算として定義されるため, + + 対応していません. + + + + + + + + + + + + + + + + 参照 + + + + + + isletter + + + + + + isdigit + + + + + + isalphanum + + + + + + evstr + + + + + + + + + diff --git a/modules/string/help/ja_JP/justify.xml b/modules/string/help/ja_JP/justify.xml new file mode 100755 index 000000000..bb84d87af --- /dev/null +++ b/modules/string/help/ja_JP/justify.xml @@ -0,0 +1,173 @@ + + + + + + + + + justify + + 文字配列を整列 + + + + + + 呼び出し手順 + + Tj = justify(T, opt) + + + + + + 引数 + + + + + + T + + + + 文字列の行列. + + + + + + + + Tj + + + + 文字列の行列. 揃えられた結果 + + + + + + + + opt + + + + 文字オプション,以下の値を指定できます: + + + + + + 'r'または'right' + + + + 右揃え + + + + + + + + 'l'または'left' + + + + 左揃え + + + + + + + + 'c'または'center' + + + + 中央揃え + + + + + + + + + + + + + + + + + + 説明 + + + + justify関数は, + + 指定したオプションoptに基づき + + 文字列の行列の列を整列します. + + + + + + + + + + + + + + + + 参照 + + + + + + length + + + + + + part + + + + + + + + + diff --git a/modules/string/help/ja_JP/length.xml b/modules/string/help/ja_JP/length.xml new file mode 100755 index 000000000..bca3af3d2 --- /dev/null +++ b/modules/string/help/ja_JP/length.xml @@ -0,0 +1,118 @@ + + + + + length + オブジェクトの長さ + + + 呼び出し手順 + n=length(M) + + + 引数 + + + M + + 行列 (通常または多項式または文字列) または + リスト + + + + + n + + 整数または整数行列 + + + + + + 説明 + + 通常または多項式の行列の場合, nは + Mの行の数に列の数を乗じた整数になります. + (Mが論理値行列の場合にも有効) + + 文字列からなる行列の場合 (および部分的に文字列の場合) + lengthは, + 文字列の行列Mのエントリの長さを + nに返します. + + リストの長さはリストの中の要素の長さです + (sizeでも出力されます). + + + mlistのlengthはデフォルトでmlistの要素数ですが, + オーバーロードすることができます(例参照). + 文字列でないハイパー行列は, + 関数をオーバーロードする必要がないことに注意してください. + さもなくば,lengthは + ハイパー行列の次元の積を返します. + + + length('123')3となります. + length([1,2;3,4])4となります. + + + + 警告 : + 疎行列のlengthは, + 行列の最大次元を返し,次元の積ではありません. + (例えば: + length(sparse(eye(12,2)))は, + 24)ではなくmax(12,2) を返します. + 疎行列の場合は size(...,'*')を使用してください. + + + + + + + + + + 参照 + + + size + + + + + 履歴 + + + 5.4.0 + + この関数によりmlist型のオーバーロードが可能となりました. + + + + + diff --git a/modules/string/help/ja_JP/part.xml b/modules/string/help/ja_JP/part.xml new file mode 100755 index 000000000..a22c2efbc --- /dev/null +++ b/modules/string/help/ja_JP/part.xml @@ -0,0 +1,124 @@ + + + + + part + 文字列の展開 + + + 呼び出し手順 + [strings_out] = part(strings_in, v) + + + 引数 + + + strings_in + + 文字列または文字列の行列. + + + + v + + + 展開する文字の添字を有する整数値のベクトル. + $ を使用可能で, + length(strings_in)を意味します. + + + + + strings_out + + 文字列または文字列の行列. + + + + + + 説明 + + この関数は,文字列から文字を展開します. + 展開する文字はvに含まれる + 添字により参照されます. + + + 添字が入力文字の長さを超える場合, + strings_out は,空白文字で埋められます. + + + v は,string_inの長さを意味する + $記号を含むことができます. + + + + + ['a' 'a' 'a'] +part(['a', 'abc', 'abcd'], [1, 1]) // => ['aa' 'aa' 'aa'] +part(['a', 'abc', 'abcd'], [1, 1, 2]) // => ['aa' 'aab' 'aab'] +// 文字をN回反復 +N = 10; part('-', ones(1:N)) // => '----------' +// パターンをN回反復: +N = 6; pat = '- '; +part(pat, ones(1:N).*.(1:length(pat))) // => '- - - - - - ' +// $ = 暗黙的な文字列長 を使用: +// 1) +part(['a string' 'another longer one'], $-2:$ ) // => [ 'ing' 'one'] +// 2) strrev()の別の実装: +part('Hello world', $:-1:1) // => 'dlrow olleH' +// 3) 範囲を示さない$を使用: +part('Hello world', [ $ 4:5 ]) // => 'dlo' +// 4) 範囲を示す$が使用できない状況でスカラーと範囲ではない$を混用: +part("Hello", [ 1 $-1:$ $ ]) // => エラー + ]]> + + + 参照 + + + string + + + strsplit + + + length + + + + + 履歴 + + + 5.5.0 + + length(input_strings)を意味する $ は, + 選択した文字の添字として使用可能になりました. + + + + + diff --git a/modules/string/help/ja_JP/regexp.xml b/modules/string/help/ja_JP/regexp.xml new file mode 100755 index 000000000..0f2de9715 --- /dev/null +++ b/modules/string/help/ja_JP/regexp.xml @@ -0,0 +1,158 @@ + + + + + regexp + 正規表現文字列に一致する部分文字列を探す + + + 呼び出し手順 + + [start] = regexp(input, pattern, [flag]) + [start, final] = regexp(input, pattern, [flag]) + [start, final, match] = regexp(input, pattern, [flag]) + [start, final, match, foundString] = regexp(input, pattern, [flag]) + + + + 引数 + + + input + + 文字列. + + + + pattern + + (正規表現の規則に基づく)文字列 + + + + start + + + 正規表現文字列patternに + 一致するinputの各部分文字列の + 開始添字 + + + + + final + + + 正規表現文字列patternに + 一致するinputの各部分文字列の + 終端添字 + + + + + match + + + patternに一致する + inputの各部分文字列のテキスト. + + + + + match + + + patternにマッチするinput + の部分文字列のテキスト. + + + + + foundString + + + 取得された括弧で括られたサブパターン. + + + + + [flag] + + + パターンに一回マッチする場合は,'o'. + + + + + + + 説明 + + Perl言語に似た正規表現の規則. + すぐに始めるには, + http://perldoc.perl.org/perlrequick.htmlを参照ください. + より詳細なチュートリアルについては, + http://perldoc.perl.org/perlretut.htmlを参照ください. + また,リファレンスについてはhttp://perldoc.perl.org/perlre.htmlを参照ください. + + + Perlとの違いは,Perlでは文字ではない位置 + (例えば,/^/または/(?=o)/) + にPerlではマッチできますが,Scilabではできません. + + + + + \w+): (?P\d+)/') +d(1)=="foobar" +d(2)=="2012" + ]]> + + + 参照 + + + strindex + + + + + 履歴 + + + 5.4.0 + + サブパターンマッチの結果を取得するために + 新しい出力引数, foundString, が追加されました. + + + + + diff --git a/modules/string/help/ja_JP/sci2exp.xml b/modules/string/help/ja_JP/sci2exp.xml new file mode 100755 index 000000000..8ed6522d0 --- /dev/null +++ b/modules/string/help/ja_JP/sci2exp.xml @@ -0,0 +1,272 @@ + + + + + + + + + sci2exp + + 式を文字列に変換 + + + + + + 呼び出し手順 + + t = sci2exp(a [,nam] [,lmax]) + + + + + + 引数 + + + + + + a + + + + 以下に示すscilab式 + + + + + + - + + + + 定数, + + + + + + + + - + + + + 多項式 + + + + + + + + - + + + + 文字列行列 + + + + + + + + - + + + + リスト + + + + + + + + - + + + + 論理値行列 + + + + + + + + - + + + + ハンドル(図およびuicontrolのみ). + + + + + + + + + + + + + + nam + + + + 文字列 + + + + + + + + t + + + + 文字列ベクトルで, 式またはダミー命令を含みます + + + + + + + + lmax + + + + + + 整数で, 行の最大長を有します. + + デフォルト値は0で, + + 行の長さを制御を行わず, + + 単一の文字列が返されることを示します. + + + + + + + + + + + + + + 説明 + + + + sci2expは, + + namが指定されるた場合には + + 式を命令文字列に,さもなくば式文字列に変換します. + + + + + + + + 注意 + + + + + + + + a がハンドルの場合, + + sci2exp は階層的リンクがない結果 + + つまり,親および子の空のフィールドの結果を出力します. + + + + + + + + + + t は,formatの + + 影響を受けます. + + + + + + + + + + + + + + + + + + + + 参照 + + + + + + prettyprint + + + + + + format + + + + + + + + + diff --git a/modules/string/help/ja_JP/strcat.xml b/modules/string/help/ja_JP/strcat.xml new file mode 100755 index 000000000..5e23bc5bc --- /dev/null +++ b/modules/string/help/ja_JP/strcat.xml @@ -0,0 +1,223 @@ + + + + + + + + + strcat + + 文字列を結合する + + + + + + 呼び出し手順 + + + + txt = strcat(strings [,string_added]) + + txt = strcat(strings [,string_added, ["flag"]]) + + + + + + + + 引数 + + + + + + strings + + + + 文字列のベクトルまたは行列 + + + + + + + + string_added + + + + + + 追加される文字列, デフォルト値は長さ0の文字列 + + "" + + + + + + + + + + txt + + + + 文字列 + + + + + + + + "flag" + + + + + + 文字列 ("r"は + + 行列stringsの行の結合, + + "c"は + + 行列stringsの列の結合) + + + + + + + + + + + + + + 説明 + + + + txt = strcat(strings)は文字列を結合します: + + txt = strings(1) + ... + strings(n). + + + + + + txt = strcat(strings, string_added)は, + + txt = strings(1) + string_added + ... + string_added + strings(n) + + を返します. + + + + + + プラス記号の動作は同じです: "a"+"b" は + + strcat(["a","b"])と同じです. + + + + + + strings の大きさが1の場合, + + txt = strings(1)を返します. + + + + + + strcat('A','B')'A'を返し, + + strcat(['A','B'])のように'AB' + + とはなりません. + + + + + + stringsが文字列の行列の場合, + + strcat(strings,"",'r') は文字列の行ベクトルを返します. + + この行ベクトルのエントリは行結合の毛化です.文字列の列ベクトルを返します. + + この列ベクトルのエントリは列結合の結果です. + + + + + + + + + + + + + + + + 参照 + + + + + + string + + + + + + strings + + + + + + + + + diff --git a/modules/string/help/ja_JP/strchr.xml b/modules/string/help/ja_JP/strchr.xml new file mode 100755 index 000000000..c27aa1c9f --- /dev/null +++ b/modules/string/help/ja_JP/strchr.xml @@ -0,0 +1,142 @@ + + + + + + + + + strchr + + 文字列の中で指定した文字が最初に現れる位置を探す + + + + + + 呼び出し手順 + + res = strchr(haystack, char) + + + + + + 引数 + + + + + + haystack + + + + 文字列または文字列の行列 + + + + + + + + char + + + + 文字. + + + + + + + + res + + + + 文字列または文字列の行列 + + + + + + + + + + + + 説明 + + + + res = strchr(haystack, char) は, + + 文字列haystackの中で指定した + + 文字が最初に現れる位置を返します. + + + + + + charは文字列を1つのみ,または, + + haystackと同じ数だけ有する + + 必要があります + + (各文字列の長さは1文字分のみ). + + + + + + + + + + + + + + + + 参照 + + + + + + strrchr + + + + + + strstr + + + + + + + + + diff --git a/modules/string/help/ja_JP/strcmp.xml b/modules/string/help/ja_JP/strcmp.xml new file mode 100755 index 000000000..c5a869eba --- /dev/null +++ b/modules/string/help/ja_JP/strcmp.xml @@ -0,0 +1,179 @@ + + + + + + + + + strcmp + + 文字列を比較 + + + + + + 呼び出し手順 + + res = strcmp(string_one, string_two, [,'i']) + + + + + + 引数 + + + + + + string_one + + + + 文字列または文字列の行列 + + + + + + + + string_two + + + + 文字列または文字列の行列 + + + + + + + + 'i' + + + + + + strcmpi + + (大文字小文字に依存)を使用するためのパラメータ, デフォルト値は + + 's'. + + + + + + + + + + res + + + + 整数の行列. + + + + + + + + + + + + 説明 + + + + res = strcmp(string_one, string_two) + + (またはres = strcmp(string_one, string_two, 's'))は, + + 文字列の間の関係(辞書順)を示す整数値を返します. + + + + + + ゼロより大きい値は,一致しない最初の文字について, + + string_oneの方が + + string_twoよりも大きな値を有している + + ことを示します. + + + + + + res = strcmp(string_one, string_two, 'i')は, + + string_one が + + string_two (大文字小文字を区別しません) + + に等しい場合に0を返し, + + 1はその逆を示します. + + + + + + + + + + + + + + + + 参照 + + + + + + strcat + + + + + + strcmpi + + + + + + + + + diff --git a/modules/string/help/ja_JP/strcmpi.xml b/modules/string/help/ja_JP/strcmpi.xml new file mode 100755 index 000000000..333a87b72 --- /dev/null +++ b/modules/string/help/ja_JP/strcmpi.xml @@ -0,0 +1,149 @@ + + + + + + + + + strcmpi + + 文字列を比較 (大文字小文字を区別) + + + + + + 呼び出し手順 + + res = strcmpi(string_one,string_two) + + + + + + 引数 + + + + + + string_one + + + + 文字列または文字列の行列 + + + + + + + + string_two + + + + 文字列または文字列の行列 + + + + + + + + res + + + + 整数の行列. + + + + + + + + + + + + 説明 + + + + res = strcmpi(string_one, string_two)は, + + 文字列の間の関係を示す内部的な値を返します. + + 2つの文字列は辞書式順序により + + 比較されます. + + + + + + string_onestring_two + + に等しい場合(大文字小文字を区別しません), 値は + + 0 となり, + + string_oneが + + string_twoより大きい場合に1, + + それ以外は-1となります. + + + + + + + + + + + + + + + + 参照 + + + + + + strcat + + + + + + strcmp + + + + + + + + + diff --git a/modules/string/help/ja_JP/strcspn.xml b/modules/string/help/ja_JP/strcspn.xml new file mode 100755 index 000000000..014a4bf09 --- /dev/null +++ b/modules/string/help/ja_JP/strcspn.xml @@ -0,0 +1,134 @@ + + + + + + + + + strcspn + + 文字列の中の文字までの間隔を得る + + + + + + Calling Sequence + + res = strcspn(string_one, string_two) + + + + + + 引数 + + + + + + string_one + + + + 文字列または文字列の行列 + + + + + + + + string_two + + + + 文字列または文字列の行列 + + + + + + + + res + + + + 行列. + + + + + + + + + + + + 説明 + + + + res = strcspn(string_one,string_two)は, + + string_oneの中で + + string_twoの一部の文字のどれかが最初に現れる位置を + + 探し,それが最初に現れるまでのstring_oneの文字数を返します. + + + + + + string_twoの次元がstring_oneと + + 同じ,またはstring_twoが文字列である必要があります. + + + + + + + + + + + + + + + + 参照 + + + + + + strspn + + + + + + + + + diff --git a/modules/string/help/ja_JP/strindex.xml b/modules/string/help/ja_JP/strindex.xml new file mode 100755 index 000000000..ee598c4f6 --- /dev/null +++ b/modules/string/help/ja_JP/strindex.xml @@ -0,0 +1,260 @@ + + + + + + + + + strindex + + 他の文字列の中で指定した文字列の位置を探す. + + + + + + 呼び出し手順 + + + + ind = strindex(haystack, needle, [flag]) + + [ind, which] = strindex(haystack, needle, [flag]) + + + + + + + + 引数 + + + + + + haystack + + + + + + 文字列. + + needleが現れる場所を探す文字列 + + + + + + + + + + needle + + + + + + 文字列または文字列ベクトル. + + haystackで探す文字列 + + + + + + + + + + ind + + + + 添字のベクトル + + + + + + + + which + + + + 添字のベクトル + + + + + + + + flag + + + + + 文字列("r"の場合は正規表現) + + + + + + + + + + + + + 説明 + + + + strindexは, + + haystackの中でneedle(i)が + + 見つかる場所のインデックスを探します. + + + + + + 各kに関して, + + part(haystack,ind(k)+(0:length(needle(i))-1)) + + がneedle(i)と同じ文字列となるよな + + iが存在します. + + which引数が必要な場合, + + これにはこれらのiが含まれる必要があります. + + 3番目のパラメータ"r"を指定する場合, + + needleは正規表現の文字列とする必要があります. + + この場合, strindexは正規表現式の規則に基づき + + haystackを検索します. + + + + + + 正規表現式引数を指定しないstrindexは + + Knuth-Morris-Prattアルゴリズムに基づきます. + + + + + + このアルゴリズムは Scilab 4.x で使用されるものよりも + + より強力です. いくつかの特殊なケースでは,結果が異なることがあります. + + + + 例: + + // Scilab 5.x + + -->[k,w]=strindex('aab',['a','ab']) + + w = 1. 1. 2. k = 1. 2. 2. + + // Scilab 4.x + + -->[k,w]=strindex('aab',['a','ab']) + + w = 1. 1. k = 1. 2. + + + + 正規表現の規則はPerl言語に似ていますT. 使い始めるには, + + http://perldoc.perl.org/perlrequick.htmlを参照してください. + + より詳細なチュートリアルについては http://perldoc.perl.org/perlretut.html + + を参照ください. + + リファレンスについては, http://perldoc.perl.org/perlre.html + + を参照してください + + + + + + + + + + + + + + + + 参照 + + + + + + string + + + + + + strings + + + + + + regexp + + + + + + strsubst + + + + + + + + + diff --git a/modules/string/help/ja_JP/string.xml b/modules/string/help/ja_JP/string.xml new file mode 100755 index 000000000..52220a166 --- /dev/null +++ b/modules/string/help/ja_JP/string.xml @@ -0,0 +1,142 @@ + + + + + string + 文字列に変換 + + + 呼び出し手順 + string(x) + [out, in, text] = string(x) + + + + 引数 + + + x + + + 論理値, 複素数, 実数, 整数, 多項式行列, + 暗黙の大きさ, ライブラリまたは関数. + + + + + + + 説明 + + string関数は + 行列x を文字列の行列に変換します. + + + xが関数の場合, + [out, in, text] = string(x) は + 3つの文字列ベクトルを返します: + out は出力変数のベクトル, + in は入力変数のベクトル, そして text は + 関数のソースコードの(列)ベクトルです. + + + xlib変数の場合, + textは文字列の列ベクトルとなります. + 最初の要素は,ライブラリファイルのパス, + その他の要素は定義する関数の名前を有します. + + + 文字列は'string' (引用符で括る)または + "string" (二重引用符で括る)で定義されます; + 文字列の行列は通常の定数行列として定義されます. + + + 文字列の結合は+操作により行われます. + + + 複素数, 実数, 整数, 多項式行列の場合, + string の出力は + format function (例参照)で管理されます. + + + string([]) は []を返すことに注意してください. + + + + + + + + 参照 + + + part + + + length + + + quote + + + evstr + + + execstr + + + strsubst + + + strcat + + + strindex + + + sci2exp + + + format + + + + + 履歴 + + + 5.4.0 + + 暗黙の大きさの型が入力引数として管理されます. + + + + + diff --git a/modules/string/help/ja_JP/strings.xml b/modules/string/help/ja_JP/strings.xml new file mode 100755 index 000000000..e5824aad6 --- /dev/null +++ b/modules/string/help/ja_JP/strings.xml @@ -0,0 +1,89 @@ + + + + + + + + + strings + + Scilabオブジェクト, 文字列 + + + + + + 説明 + + + + 文字列は 'string' (引用符で括る) または + + "string" (二重引用符で括る)と定義されます; + + 文字列の行列は通常の定数行列と同様に定義されます. + + + + + + 2つの文字列の結合は + により作成されます: + + string1 + string2. + + + + + + + + + + + + + + + + S参照 + + + + + + part + + + + + + length + + + + + + strcat + + + + + + + + + diff --git a/modules/string/help/ja_JP/stripblanks.xml b/modules/string/help/ja_JP/stripblanks.xml new file mode 100755 index 000000000..d72a8cd74 --- /dev/null +++ b/modules/string/help/ja_JP/stripblanks.xml @@ -0,0 +1,110 @@ + + + + + + + + + stripblanks + + + + 文字列の先頭または末尾の空白(およびタブ)を取り除く + + + + + + + + 呼び出し手順 + + txt = stripblanks(txt[,tabs]) + + + + + + 引数 + + + + + + txt + + + + 文字列または文字列の行列 + + + + + + + + tabs + + + + + + 論理値, %tの場合タブも削除されます + + (デフォルト値は %fです). + + + + + + + + + + + + + + 説明 + + + + stripblanks関数は, + + 文字列の先頭または末尾の空白(およびタブ)を取り除きます. + + + + + + + + + + + + + + + diff --git a/modules/string/help/ja_JP/strncpy.xml b/modules/string/help/ja_JP/strncpy.xml new file mode 100755 index 000000000..254a6a867 --- /dev/null +++ b/modules/string/help/ja_JP/strncpy.xml @@ -0,0 +1,140 @@ + + + + + + + + + strncpy + + 文字列から文字をコピーする + + + + + + 呼び出し手順 + + res = strncpy(str1, num) + + + + + + 引数 + + + + + + str1 + + + + 文字列または文字列の行列 + + + + + + + + num + + + + 行列で,ソースからコピーされる文字の最大長 + + + + + + + + res + + + + 文字列または文字列の行列 + + + + + + + + + + + + 説明 + + + + res = strncpy(str1, num) は, + + ソースstr1から + + デスティネーションresに + + 最初のnum文字をコピーします. + + + + + + numstr1と同じ次元であるか, + + numが整数値である必要があります. + + + + + + + + + + + + + + + + 参照 + + + + + + strcat + + + + + + strcmp + + + + + + + + + diff --git a/modules/string/help/ja_JP/strrchr.xml b/modules/string/help/ja_JP/strrchr.xml new file mode 100755 index 000000000..c8cc837e9 --- /dev/null +++ b/modules/string/help/ja_JP/strrchr.xml @@ -0,0 +1,138 @@ + + + + + + + + + strrchr + + 文字列の中で指定した文字が最後に現れる場所を探す + + + + + + 呼び出し手順 + + res = strrchr(str1, char) + + + + + + 引数 + + + + + + str1 + + + + 文字列または文字列の行列 + + + + + + + + char + + + + 文字. + + + + + + + + res + + + + 文字列または文字列の行列 + + + + + + + + + + + + 説明 + + + + res = strrchr(str1, char)は, + + 文字列str1の中で指定した文字 + + charが最後に現れる場所を返します. + + + + + + charstr1と同じ次元 + + または1文字である必要があります. + + + + + + + + + + + + + + + + 参照 + + + + + + strchr + + + + + + strstr + + + + + + + + + diff --git a/modules/string/help/ja_JP/strrev.xml b/modules/string/help/ja_JP/strrev.xml new file mode 100755 index 000000000..04e958218 --- /dev/null +++ b/modules/string/help/ja_JP/strrev.xml @@ -0,0 +1,92 @@ + + + + + + + + + strrev + + 文字列を逆順にして返す + + + + + + 呼び出し手順 + + res = strrev(str1) + + + + + + 引数 + + + + + + str1 + + + + 文字列または文字列の行列 + + + + + + + + res + + + + 文字列または文字列の行列 + + + + + + + + + + + + 説明 + + + + res = strrev(str1) 文字列を逆順にして返します. + + + + + + + + + + + + + + + diff --git a/modules/string/help/ja_JP/strsplit.xml b/modules/string/help/ja_JP/strsplit.xml new file mode 100755 index 000000000..6e93db9f2 --- /dev/null +++ b/modules/string/help/ja_JP/strsplit.xml @@ -0,0 +1,290 @@ + + + + + + + + + strsplit + + 文字列を文字列のベクトルに分割する + + + + + + 呼び出し手順 + + + + v = strsplit(str,ind) + + [v, matched_separators] = strsplit(str) + + [v, matched_separators] = strsplit(str, matrix_of_strings, limit) + + [v, matched_separators] = strsplit(str, regexp_pattern, limit) + + + + + + + + 引数 + + + + + + str + + + + 分割する文字列 + + + + + + + + ind + + + + + + [1 length(str)-1] の範囲の + + 単調増加のインデックスのベクトル. + + + + + + + + + + v + + + + + + 得られた文字列の列ベクトル (次元 + + >size(ind,'*')+1). + + + + + + + + + + matched_separators + + + + 一致したセパレータの列ベクトル + + + + + + + + matrix_of_strings + + + + strの中で検索する文字列の行列 + + + + + + + + regexp_pattern + + + + 正規表現パターン + + + + + + + + limit + + + + 要素数の最大値 + + + + + + + + + + + + 説明 + + + + v= strsplit(str, ind)は,文字列strを + + indで添字が指定された点 + + (indの添字が指す各文字の後)で, + + 文字列のベクトルに分割します. + + + + + + strsplit(str) は, + + strsplit(str,1:length(str)-1)と同じ文字列を返します. + + + + + + strsplit(str, regexp_pattern, limit)は + + 文字列の列ベクトルを返します. + + その各々は,大文字小文字を区別する正規表現により構築された境界で + + 分割されたstr の部分文字列です. + + + + + + パターンがn回現れる場合, + + 返される配列はn+1個の要素を有します. + + + + + + 例えば, パターンが1回も存在しなかった場合, + + 1要素のみの配列が返されます. + + もちろん,これはstrが空の場合も同じです. + + + + + + limitが設定された場合,返される配列には + + 最大limit個の要素が含まれ, + + その最後の要素には文字列の残り全体が含まれます. + + + + + + strsplit(str, matrix_of_strings, limit)は, + + strを任意の要素で分割します. + + これにより, + + 正規表現を知らないユーザが異なるセパレータで分割することが + + できるようになります. + + + + + + strsplit()が第2の出力引数を指定してコールされた場合, + + 一致したセパレータの列ベクトルが返されます. + + + + + + + + + + + + + + + + 参照 + + + + + + part + + + + + + strcat + + + + + + tokens + + + + + + regexp + + + + + + + + + diff --git a/modules/string/help/ja_JP/strspn.xml b/modules/string/help/ja_JP/strspn.xml new file mode 100755 index 000000000..b7374af84 --- /dev/null +++ b/modules/string/help/ja_JP/strspn.xml @@ -0,0 +1,138 @@ + + + + + + + + + strspn + + 文字列において指定した文字集合の幅を取得 + + + + + + 呼び出し手順 + + res = strspn(str1, str2) + + + + + + 引数 + + + + + + str1 + + + + 文字列または文字列の行列 + + + + + + + + str2 + + + + 文字列または文字列の行列 + + + + + + + + res + + + + 文字列の行列. + + + + + + + + + + + + 説明 + + + + res = strspn(str1, str2)は, + + str2に含まれる文字のみからなる + + str1の先頭部分の長さを返します. + + + + + + str1str2と次元が同じ, + + もしくは, + + str2が1x1の文字列である必要があります. + + どちらの場合でも, + + 出力はstr1と同じ次元となります. + + + + + + + + + + + + + + + + 参照 + + + + + + strcspn + + + + + + + + + diff --git a/modules/string/help/ja_JP/strstr.xml b/modules/string/help/ja_JP/strstr.xml new file mode 100755 index 000000000..08b298c22 --- /dev/null +++ b/modules/string/help/ja_JP/strstr.xml @@ -0,0 +1,135 @@ + + + + + + + + + strstr + + 部分文字列を取得 + + + + + + 呼び出し手順 + + res = strstr(haystack, needle) + + + + + + 引数 + + + + + + haystack + + + + 文字列または文字列の行列 + + + + + + + + needle + + + + 文字列または文字列の行列 + + + + + + + + res + + + + 文字列または文字列の行列 + + + + + + + + + + + + 説明 + + + + res = strstr(haystack, needle)は, + + haystackの中でneedleが最初に現れる位置から + + haystackの末尾までの文字列行列を返します. + + haystackの部分が見つからない場合は + + ''を返します. + + + + + + + + + + + + + + + + 参照 + + + + + + strrchr + + + + + + strchr + + + + + + + + + diff --git a/modules/string/help/ja_JP/strsubst.xml b/modules/string/help/ja_JP/strsubst.xml new file mode 100755 index 000000000..f0605a739 --- /dev/null +++ b/modules/string/help/ja_JP/strsubst.xml @@ -0,0 +1,194 @@ + + + + + + + + + strsubst + + 文字列を他の文字列で置換する. + + + + + + 呼び出し手順 + + + + string_out = strsubst(string_in, searchStr, replaceStr) + + string_out = strsubst(string_in, searchStr, replaceStr, [flag]) + + + + + + + + 引数 + + + + + + string_in + + + + + + 文字列の行列. searchStrの存在を + + 探す文字列 + + + + + + + + + + searchStr + + + + + + 文字列. + + string_inの中で探す文字列. + + + + + + + + + + replaceStr + + + + 文字列. 置換する文字列. + + + + + + + + str_out + + + + + + 文字列の行列. string_inの中の + + searchStrを + + replaceStrで置換した結果. + + + + + + + + + + flag + + + + + 文字列 (正規表現の場合は"r") + + + + + + + + + + + + + 説明 + + + + strsubst関数は,string_inの中に + + 存在する全てのsearchStrreplaceStrで + + 置換します. + + + + + + 4番目のパラメータ "r"を使用する時, + + searchStr は正規表現の文字列となります. + + strsubstはこれをstring_inとマッチさせ, + + 正規表現式の規則に基づき置換を行ないます. + + + + + + + + + + + + + + + + 参照 + + + + + + string + + + + + + strings + + + + + + + + + diff --git a/modules/string/help/ja_JP/strtod.xml b/modules/string/help/ja_JP/strtod.xml new file mode 100755 index 000000000..419805d5d --- /dev/null +++ b/modules/string/help/ja_JP/strtod.xml @@ -0,0 +1,231 @@ + + + + + + + + + strtod + + 文字列を倍精度実数に変換. + + + + + + 呼び出し手順 + + + + d = strtod(str [,decimalseparator]) + + [d, endstr] = strtod(str [,decimalseparator]) + + + + + + + + 引数 + + + + + + str + + + + + + 文字列または文字列の行列 + + + + + + + + + + decimalseparator + + + + + + 選択した10進数セパレータ: "." (デフォルト) または ",". + + + + + + + + + + d + + + + + + 実数または実数の行列 + + + + + + + + + + endstr + + + + + + 文字列または文字列の行列 + + (strの中で数値の後に続く文字). + + + + + + + + + + + + + + 説明 + + + + [d, endstr] = strtod(str) は, + + 文字列str を + + パースし,その内容を浮動小数点数として解釈して, + + その値を実数として返します. + + strに数値が含まれていない場合, + + dNanとなります. + + + + + + + + 注意 + + + + + + + + この関数はWindowsとLinuxで動作が異なるstrtod C関数に基づきます. + + 実際, Windows では指数部にd または D を使用できますが, + + 16進数を使用することはできません. + + + + + + + + + + strtod("%inf")Nanを + + 返すことに注意してください. + + + + + + + + + + + + + + + + + + + + + + 履歴 + + + + + + 5.5.0 + + + + 新しいオプション入力: decimalseparator (SEP 97). + + + + + + + + 5.4.1 + + + + str に数値が含まれていない場合, + + d は以前のバージョンのように + + 0ではなく, + + Nanとなります. + + + + + + + + + + + diff --git a/modules/string/help/ja_JP/strtok.xml b/modules/string/help/ja_JP/strtok.xml new file mode 100755 index 000000000..1d71782b6 --- /dev/null +++ b/modules/string/help/ja_JP/strtok.xml @@ -0,0 +1,139 @@ + + + + + + + + + strtok + + 文字列をトークンに分割 + + + + + + 呼び出し手順 + + res = strtok(str, delimiters) + + + + + + 引数 + + + + + + str + + + + 文字列 + + + + + + + + delimiters + + + + 文字列 + + + + + + + + res + + + + 文字列 + + + + + + + + + + + + 説明 + + + + res = strtok(str, delimiters) + + この関数を連続してコールすることにより, + + strをトークンに分割します. + + トークンはdelimitersの文字のどれかで + + 区切られた連続する一連の文字です. + + + + + + + + + + '' ) + token = strtok(" r,"); + TOKENS = [TOKENS,token]; +end +disp(TOKENS); + ]]> + + + + + + 参照o + + + + + + strrchr + + + + + + strchr + + + + + + + + + diff --git a/modules/string/help/ja_JP/tokenpos.xml b/modules/string/help/ja_JP/tokenpos.xml new file mode 100755 index 000000000..f45d59f41 --- /dev/null +++ b/modules/string/help/ja_JP/tokenpos.xml @@ -0,0 +1,142 @@ + + + + + + + + + tokenpos + + 文字列の中のトークンの位置を返す + + + + + + 呼び出し手順 + + kdf = tokenpos(str [,delimiter]) + + + + + + 引数 + + + + + + str + + + + 文字列. トークンを探す文字列. + + + + + + + + delimiter + + + + (オプション) 文字列または文字列のベクトル. トークンデリミタ. + + + + + + + + kdf + + + + + + 2列の行列で, 最初の列はトークン開始位置の添字, + + 2列目はトークンの最後の文字の添字を出力します. + + + + + + + + + + + + + + 説明 + + + + kdf = tokenpos(str [,delimiter])は文字列 + + strに含まれるトークンを探します. + + delimiter のデフォルト値は + + [" ",<Tab>]です. + + ただし, <Tab>ascii(9)を意味します. + + この関数は各トークンが見つかった最初および最後の文字のインデックスを返します. + + + + + + + + + + + + + + + + 参照 + + + + + + strindex + + + + + + tokens + + + + + + + + + diff --git a/modules/string/help/ja_JP/tokens.xml b/modules/string/help/ja_JP/tokens.xml new file mode 100755 index 000000000..3c5e4c267 --- /dev/null +++ b/modules/string/help/ja_JP/tokens.xml @@ -0,0 +1,134 @@ + + + + + + + + + tokens + + 文字列のトークンを返す. + + + + + + 呼び出し手順 + + T = tokens(str [,delimiter]) + + + + + + 引数 + + + + + + str + + + + 文字列. トークンを探す文字列. + + + + + + + + delimiter + + + + (オプション) 文字または文字のベクトル. トークンデリミタ. + + + + + + + + T + + + + みつかったトークンの列ベクトル + + + + + + + + + + + + 説明 + + + + T = tokens(str [,delimiter]) は, + + 文字列strの中に含まれるトークンを探します. + + delimiterのデフォルト値は + + [" ",<Tab>]です. + + ただし, <Tab> はascii(9)を意味します. + + + + + + + + + + + + + + + + 参照 + + + + + + strindex + + + + + + tokenpos + + + + + + + + + diff --git a/modules/string/help/pt_BR/addchapter.sce b/modules/string/help/pt_BR/addchapter.sce new file mode 100755 index 000000000..0fb05ca1d --- /dev/null +++ b/modules/string/help/pt_BR/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Cadeias de Caracteres (Strings)",SCI+"/modules/string/help/pt_BR",%T); + diff --git a/modules/string/help/pt_BR/ascii.xml b/modules/string/help/pt_BR/ascii.xml new file mode 100755 index 000000000..46f0c4c11 --- /dev/null +++ b/modules/string/help/pt_BR/ascii.xml @@ -0,0 +1,60 @@ + + + + + ascii + conversão ASCII de strings + + + Seqüência de Chamamento + a=ascii(txt) + txt=ascii(a) + + + + Parâmetros + + + txt + + um string ou matriz de strings + + + + a + + um vetor de códigos ASCII inteiros + + + + + + Descrição + Esta função converte um string Scilab para um vetor de códigos + ASCII, ou um vetor de códigos ASCII em strings Scilab + + + Se txt é uma matriz de strings, + ascii(txt) é equivalente a + ascii(strcat(txt)) + + + + Exemplos + + + diff --git a/modules/string/help/pt_BR/blanks.xml b/modules/string/help/pt_BR/blanks.xml new file mode 100755 index 000000000..fe10da09e --- /dev/null +++ b/modules/string/help/pt_BR/blanks.xml @@ -0,0 +1,49 @@ + + + + + blanks + cria strings de caracteres em branco + + + Seqncia de Chamamento + txt=blanks(n) + + + Parmetros + + + txt + + um nico string + + + + n + + nmero de caracteres em branco + + + + + + Descrio + blanks(n) um string de n caracteres em branco. + + + Exemplos + + + diff --git a/modules/string/help/pt_BR/char.xml b/modules/string/help/pt_BR/char.xml new file mode 100755 index 000000000..cc0a50b75 --- /dev/null +++ b/modules/string/help/pt_BR/char.xml @@ -0,0 +1,105 @@ + + + + + char + funo char + + + Seqncia de Chamamento + y=char( x) + y=char(st1,st2,st3,....) + + + + Parmetros + + + x + + um cell de arrays de strings, ou um array de cdigos ASCII + + + + + st1,st2,st3 + + arrays de strings + + + + y: + + vetor (coluna) de strings + + + + + + Descrio + + Argumento de uma entrada : + + + Dado um cell de arrays de strings x, esta funo + retorna um vetor de strings y no qual as linhas so + componentes do cell de strings. + + + Dado um array de cdigos ASCII x, esta funo + retorna um array de strings y correspondente aos + cdigos ASCII. Se dims (x)=[n1,n2,n3,n4,....], ento o + valor retornado tem o mesmo tamanho que o valor de entrada, ao invs do + segundo dims, dims(y)=[n1,n3,n4,..] + + + Argumento de mais de uma entrada : + + + Dados arrays de strings + st1,st2,st3,..., esta funo retorna um vetor de + strings no qual as linhas so os componentes de st1,st2,st3,... + + No vetor y o comprimento + de todos os strings sti completado por lacunas, para terem o mesmo + comprimento que o comprimento mximo de sti. + + + + Exemplos + + + + Ver Tambm + + + asciimat + + + + diff --git a/modules/string/help/pt_BR/convstr.xml b/modules/string/help/pt_BR/convstr.xml new file mode 100755 index 000000000..9ac11fba5 --- /dev/null +++ b/modules/string/help/pt_BR/convstr.xml @@ -0,0 +1,70 @@ + + + + + convstr + converso maisculas-minsculas, + minsculas-maisculas + + + + Seqncia de Chamamento + [y]=convstr(str, [flag]) + + + Parmetros + + + str, y + + uma matriz de strings + + + + flag + + um caractere de opo com dois possveis valores + + + 'u' + + para maisculas + + + + 'l' + + para minsculas + + + + + + + + + Descrio + + converts a matriz de strings str-matrix para + caracteres minsculos ("l" ; valor padro) ou para + maisculos ("u"). + + + + Exemplos + + + diff --git a/modules/string/help/pt_BR/emptystr.xml b/modules/string/help/pt_BR/emptystr.xml new file mode 100755 index 000000000..517b3b892 --- /dev/null +++ b/modules/string/help/pt_BR/emptystr.xml @@ -0,0 +1,81 @@ + + + + + emptystr + string de comprimento zero + + + Seqncia de Chamamento + s=emptystr() + s=emptystr(a) + s=emptystr(m,n) + + + + Parmetros + + + a + + qualquer tipo de matriz + + + + s + + matriz de strings + + + + m,n + + inteiros + + + + + + Descrio + Retorna uma matriz de strings de comprimento zero. + Sem argumentos de entrada, retorna um string de comprimento + zero. + + Com uma matriz como argumento de entrada, retorna uma matriz de + strings de comprimento zero de mesmo tamanho. + + Com dois argumentos inteiros, retorna uma matriz mxn de strings de + comprimento zero. + + + + Exemplos + + + + Ver Tambm + + + part + + + length + + + string + + + + diff --git a/modules/string/help/pt_BR/eval.xml b/modules/string/help/pt_BR/eval.xml new file mode 100755 index 000000000..8519fa58e --- /dev/null +++ b/modules/string/help/pt_BR/eval.xml @@ -0,0 +1,45 @@ + + + + + eval + avaliao de uma matriz de strings + + + Seqncia de Chamamento + [H]= eval(Z) + + + Descrio + Retorna a avaliao da matriz de strings + Z. + + + + Exemplos + + + + Ver Tambm + + + evstr + + + execstr + + + + diff --git a/modules/string/help/pt_BR/evstr.xml b/modules/string/help/pt_BR/evstr.xml new file mode 100755 index 000000000..cf61d8b5d --- /dev/null +++ b/modules/string/help/pt_BR/evstr.xml @@ -0,0 +1,97 @@ + + + + evstr + avaliação de expressões + + + Seqüência de Chamamento + H=evstr(Z) + [H,ierr]=evstr(Z) + + + + Parâmetros + + + Z + + + matriz de strings M ou + list(M,Subexp) + + + + M + + matriz de strings + + + + Subexp + + vetor de strings + + + + + + + H + + matriz + + + + ierr + + inteiro, indicador de erro + + + + + + Descrição + Retorna o resultado da avaliação da matriz de strings + M. Cada elemento da matriz deve definir uma expressão + Scilab válida. + + + Se a avaliação de M levar a um erro, a versão de + valor de único retorno, H=evstr(M), levanta erro de + modo usual. A versão de dois valores de retorno, + [H,ierr]=evstr(M) , por outro lado, não produz erro, + mas retorna o número de erro em ierr. + + + Se Z é uma lista, Subexp é um + vetor de strings, que define subexpressões que são avaliadas antes da + avaliação de M. Estas subexpressões devem ser referidas + como %(k) em M, onde + k é o índice da subexpressão em + Subexp. + + + evstr('a=1') não é válido (use execstr ao + invés). + + + + Exemplos + a = 1; b = 2; Z = ['a','b'] ; evstr(Z) + + a = 1; b = 2; Z = list(['%(1)','%(1)-%(2)'],['a+1','b+1']); + evstr(Z) + + evstr('NaN'), evstr('Inf') + + + + Ver Também + + + execstr + + + + diff --git a/modules/string/help/pt_BR/grep.xml b/modules/string/help/pt_BR/grep.xml new file mode 100755 index 000000000..3d5b42236 --- /dev/null +++ b/modules/string/help/pt_BR/grep.xml @@ -0,0 +1,110 @@ + + + + + grep + acha correspondncias de um string em um vetor de + strings + + + + Seqncia de Chamamento + row=grep(haystack,needle ) + [row,which]=grep(haystack,needle ) + row=grep(haystack,needle ,[flag]) + [row,which]=grep(haystack,needle ,[flag]) + + + + Parmetros + + + haystack + + vetor linha de strings + + + + needle + + string ou vetor linha de strings . O(s) string(s) a serem + procurados em haystack. + + + + + row + + vetor de ndices: linha onde uma correspondncia foi + encontrada, ou matriz vazia se nenhuma ocorrncia tiver sido + encontrada + + + + + which + + vetor de ndices: ndice do string needle encontrado, ou uma + matriz vazia, se nenhuma correspondncia tiver sido + encontrada + + + + + flag + + caractere ("r" para expresso regular) + + + + + + Descrio + Para cada entradada de haystack , grep procura se pelo menos um + string em needle corresponde a um substring. Os ndices das entradas de + haystack onde pelo menos uma entrada foi encontrada so retornados no + argumento row. O argumento opcional which fornece o ndice do primeiro + string de needle encontrado. Quando se usa o terceiro parmetro "r", + needle deve ser substitudo por uma expresso regular. Ento, grep vai + corresponder a haystack de acordo com as regras regulares + expressas. + + + + Exemplos + + + + Ver Tambm + + + strindex + + + + diff --git a/modules/string/help/pt_BR/isalphanum.xml b/modules/string/help/pt_BR/isalphanum.xml new file mode 100755 index 000000000..a1aae0b5e --- /dev/null +++ b/modules/string/help/pt_BR/isalphanum.xml @@ -0,0 +1,67 @@ + + + + + isalphanum + verifica se os caracteres de um string so + alfanumricos + + + + Seqncia de Chamamento + res = isalphanum(str) + + + Parmetros + + + str + + string + + + + res + + matriz de valores booleanos + + + + + + Descrio + + res = isalphanum(str) retorna um array de mesmo + tamanho que str contendo valores lgicos %t (true) onde os elementos de + str so alfanumricos e %f (false) onde eles no so. + + + + Exemplos + + + + Ver Tambm + + + isletter + + + isdigit + + + + diff --git a/modules/string/help/pt_BR/isascii.xml b/modules/string/help/pt_BR/isascii.xml new file mode 100755 index 000000000..1f129103d --- /dev/null +++ b/modules/string/help/pt_BR/isascii.xml @@ -0,0 +1,64 @@ + + + + + isascii + verifica se um caractere do tipo 7-bit US-ASCII + + + Seqncia de Chamamento + res = isascii(str) + + + Parmetros + + + str + + string + + + + res + + uma matriz de booleanos + + + + + + Descrio + + res = isascii(str) retorna verdadeiro (%T) se c + um cdigo 7-bit US-ASCII entre 0 e 0177 octal, inclusive. Caso contrrio, + retorna falso (%F). + + + + Exemplos + + + + Ver Tambm + + + isalphanum + + + + diff --git a/modules/string/help/pt_BR/isdigit.xml b/modules/string/help/pt_BR/isdigit.xml new file mode 100755 index 000000000..209a4a3b0 --- /dev/null +++ b/modules/string/help/pt_BR/isdigit.xml @@ -0,0 +1,67 @@ + + + + + isdigit + checa se os caracteres de um string so nmeros entre 0 e + 9 + + + + Seqncia de Chamamento + res = isdigit(str) + + + Parmetros + + + str + + string + + + + res + + matriz de valores booleanos + + + + + + Descrio + + res = isdigit(str) retorna um array com mesmo + tamanho que str com valores %T (verdadeiro) onde os elementos de str so + dgitos de 0 a 9 e %F (falso) onde eles no so. + + + + Exemplos + + + + Ver Tambm + + + isalphanum + + + isletter + + + + diff --git a/modules/string/help/pt_BR/isletter.xml b/modules/string/help/pt_BR/isletter.xml new file mode 100755 index 000000000..b2ffce5fa --- /dev/null +++ b/modules/string/help/pt_BR/isletter.xml @@ -0,0 +1,67 @@ + + + + + isletter + verifica se os caracteres de um string so letras do + alfabeto + + + + Seqncia de Chamamento + res = isletter(str) + + + Parmetros + + + str + + string + + + + res + + matriz de booleanos + + + + + + Descrio + + res = isletter(str) retorna um array de mesmo + tamanho que str com %t (verdadeiro) onde os elementos de str so letras do + alfabeto e %f (false) onde eles no so. + + + + Exemplos + + + + Ver Tambm + + + isalphanum + + + isdigit + + + + diff --git a/modules/string/help/pt_BR/isnum.xml b/modules/string/help/pt_BR/isnum.xml new file mode 100755 index 000000000..87a4d26c3 --- /dev/null +++ b/modules/string/help/pt_BR/isnum.xml @@ -0,0 +1,76 @@ + + + + + isnum + testa se um string representa um nmero + + + Seqncia de Chamamento + res = isnum(str) + + + Parmetros + + + str + + um string ou matriz de strings + + + + res + + matriz de booleanos + + + + + + Descrio + + res = isnum(str)retorna %T se str representa um + nmero + + + + Exemplos + + + + Ver Tambm + + + isletter + + + isdigit + + + isalphanum + + + + + Autores + + P.M + + + diff --git a/modules/string/help/pt_BR/justify.xml b/modules/string/help/pt_BR/justify.xml new file mode 100755 index 000000000..584d28ee8 --- /dev/null +++ b/modules/string/help/pt_BR/justify.xml @@ -0,0 +1,95 @@ + + + + + justify + justifica um array de caracteres + + + Seqncia de Chamamento + Tj=justify(T,opt) + + + Parmetros + + + T + + matriz de strings + + + + Tj + + matriz de strings. O resultado justificado + + + + opt + + opo com possveis valores + + + 'r' + + ou 'right' para justificao direita + + + + 'l' + + ou 'left' para justificao esquerda + + + + 'c' + + ou 'center' justificao centrada + + + + + + + + + Descrio + + justify justifica a coluna de uma matriz de + strings de acordo com a opo dada. + + + + Exemplos + + + + Ver Tambm + + + length + + + part + + + + diff --git a/modules/string/help/pt_BR/length.xml b/modules/string/help/pt_BR/length.xml new file mode 100755 index 000000000..45993ae94 --- /dev/null +++ b/modules/string/help/pt_BR/length.xml @@ -0,0 +1,79 @@ + + + + + length + comprimento de um objeto + + + Seqüência de Chamamento + n=length(M) + + + Parâmetros + + + M + + matriz (usual ou de polinômios ou de strings) ou lista + + + + n + + inteiro ou matriz de inteiros + + + + + + Descrição + + Para uma matriz usual ou de polinômios, n é o + inteiro igual ao número de linhas vezes o número de colunas de + M. (Também válido para M uma matriz + de booleanos) + + Para matrizes de strings (e, em particular, para um string) + length retorna em n os comprimentos + das entradas da matriz de strings M. + + O comprimento de uma lista é o número de elementos da lista (também + dado por size). + + + length('123') é 3. + length([1,2;3,4]) is 4. + + AVISO : length para matrizes esparsas retorna o máximo das + dimensões, não o produto das dimensões. (exemplo : + length(sparse(eye(12,2))) retorna max(12,2), não 24) + + Utilize size(...,'*') para matrizes esparsas. + + + Exemplos + + + + Ver Também + + + size + + + + diff --git a/modules/string/help/pt_BR/part.xml b/modules/string/help/pt_BR/part.xml new file mode 100755 index 000000000..db861fba3 --- /dev/null +++ b/modules/string/help/pt_BR/part.xml @@ -0,0 +1,95 @@ + + + + + part + extração de strings + + + Seqüência de Chamamento + [strings_out] = part(strings_in, v) + + + Parâmetros + + + strings_in, strings_out + + matriz de strings + + + + v + + vetor linha de inteiros + + + + + + Descrição + + Seja s[k] o caractere k do + string s (ou o espaço em branco se k + >length(s) + + ). + + + part retorna strings_out, uma + matriz de strings, tal que strings_out(i,j) é o string + "s[v(1)]...s[v(n)]" ( + s=strings_in(i,j) ). + + + + Exemplos + + + + Ver Também + + + string + + + length + + + + diff --git a/modules/string/help/pt_BR/regexp.xml b/modules/string/help/pt_BR/regexp.xml new file mode 100755 index 000000000..1ab629295 --- /dev/null +++ b/modules/string/help/pt_BR/regexp.xml @@ -0,0 +1,105 @@ + + + + + regexp + acha um string que corresponde ao string de expressão + regular + + + + Seqüência de Chamamento + [start]=regexp(input,pattern,[flag]) + [start,end,match]=regexp(input,pattern,[flag]) + [start,end]=regexp(input,pattern,[flag]) + [start,end,match]=regexp(input,pattern,[flag]) + + + + Parâmetros + + + input + + string + + + + pattern + + string (sob regras de expressão regular) + + + + start + + o índice de início de cada substring de str que corresponde ao + padrão do string de expressão regular + + + + + end + + o índice de fim de cada substring de str que corresponde ao + padrão do string de expressão regular + + + + + match + + o texto de cada substring de que corresponde a + pattern. + + + + + [flag] + + 'o' para correspondência com padrão uma vez + + + + + + Descrição + As regras de expressão regular são similares às da linguagem Perl. + Para uma introdução rápido , veja http://perldoc.perl.org/perlrequick.html. + Para um tutorial mais profundo, veja http://perldoc.perl.org/perlretut.html + e para página de referência, veja http://perldoc.perl.org/perlre.html + + Uma diferença para Perl é que correspondência entre posições, mas + não entre caracteres (por exemplo, com /^/ ou /(?=o)/) é uma + correspondência válida em Perl, mas não em Scilab. + + + + Exemplos + + + + Ver Também + + + strindex + + + + diff --git a/modules/string/help/pt_BR/sci2exp.xml b/modules/string/help/pt_BR/sci2exp.xml new file mode 100755 index 000000000..9e29d2c69 --- /dev/null +++ b/modules/string/help/pt_BR/sci2exp.xml @@ -0,0 +1,114 @@ + + + + + sci2exp + converte uma expresso para um string + + + Seqncia de Chamamento + t=sci2exp(a [,nam] [,lmax]) + + + Parmetros + + + a + + expresso Scilab. Pode ser: + + + - + + constante, + + + + - + + polinomial + + + + - + + matriz de strings + + + + - + + lista + + + + - + + matriz de booleanos + + + + + + + nam + + string + + + + t + + vetor de strings, contm a expresso ou a instruo de + simulao. + + + + + lmax + + inteiro, contm o comprimento de linha mximo. O valor padro + 90, lmax=0 indica ausncia de controle de + comprimento de linha, um nico string retornado + + + + + + + Descrio + + sci2exp converte expresso para um string de + instruo se nam for fornecido, ou para um string de + expresso. + + + + Exemplos + + + + Ver Tambm + + + prettyprint + + + + diff --git a/modules/string/help/pt_BR/strcat.xml b/modules/string/help/pt_BR/strcat.xml new file mode 100755 index 000000000..0a493ca2a --- /dev/null +++ b/modules/string/help/pt_BR/strcat.xml @@ -0,0 +1,109 @@ + + + + + strcat + concatena strings + + + Seqüência de Chamamento + txt=strcat(vector_of_strings [,string_added]) + txt=strcat(vector_of_strings [,string_added, ["flag"]]) + + + + Parâmetros + + + vector_of_strings + + vetor de strings + + + + string_added + + string adicionado, o valor padrão é emptystr + "" + + + + + txt + + string + + + + "flag" + + string ( "r" para retornar uma matriz linha, "c" para + retornar uma matriz coluna) + + + + + + + Descrição + + txt=strcat(vector_of_strings) concatena strings : + txt=vector_of_strings(1)+...+vector_of_strings(n) + + + txt=strcat(vector_of_strings,string_added) + retorna + txt=vector_of_strings(1)+string_added+...+string_added+vector_of_strings(n). + + + O símbolo de mais faz o mesmo: "a"+"b" é o mesmo + que strcat(["a","b"]). + + Se o tamanho de vector_of_strings for um, retorna + txt=vector_of_strings(1); + + + strcat('A','B') retorna 'A' , não 'AB' como + strcat(['A','B']) + + + + Exemplos + + + + Ver Também + + + string + + + strings + + + + diff --git a/modules/string/help/pt_BR/strchr.xml b/modules/string/help/pt_BR/strchr.xml new file mode 100755 index 000000000..3279d7cb2 --- /dev/null +++ b/modules/string/help/pt_BR/strchr.xml @@ -0,0 +1,76 @@ + + + + + strchr + acha a primeira ocorrncia de um caractere em um + string + + + + Seqncia de Chamamento + res = strchr(haystack,char) + + + Parmetros + + + haystack + + string ou matriz de strings + + + + char + + caractere + + + + res + + string ou matriz de strings + + + + + + Descrio + + res = strchr(haystack,char) retorna a primeira + ocorrncia do caractere no string str. + + char deve ter as mesmas dimenses que haystack, ou apenas um + caractere. + + + + Exemplos + + + + Ver Tambm + + + strrchr + + + strstr + + + + diff --git a/modules/string/help/pt_BR/strcmp.xml b/modules/string/help/pt_BR/strcmp.xml new file mode 100755 index 000000000..6fb53f1de --- /dev/null +++ b/modules/string/help/pt_BR/strcmp.xml @@ -0,0 +1,87 @@ + + + + + strcmp + compara strings + + + Seqncia de Chamamento + res = strcmp(string_one,string_two,[,'i']) + + + Parmetros + + + string_one + + string ou matriz de strings + + + + string_two + + string ou matriz de strings + + + + 'i' + + parmetro para realizao de stricmp (caso independente), o + valor padro 's' + + + + + res + + matrix + + + + + + Descrio + + res = strcmp(string_one,string_two) retorna um + valor inteiro indicando a relao entre os strings. + + Um valor maior que zero indica que o primeiro caractere no + correspondente possui valor maior em string_one que em + string_two + + Um valor abaixo de zero indica o contrrio. + + + Exemplos + + + + Ver Tambm + + + strcat + + + strcmpi + + + + diff --git a/modules/string/help/pt_BR/strcmpi.xml b/modules/string/help/pt_BR/strcmpi.xml new file mode 100755 index 000000000..548ec837b --- /dev/null +++ b/modules/string/help/pt_BR/strcmpi.xml @@ -0,0 +1,77 @@ + + + + + strcmpi + compara strings (caso independente) + + + Seqncia de Chamamento + res = strcmpi(string_one,string_two) + + + Parmetros + + + string_one + + string ou matriz de strings + + + + string_two + + string ou matriz de strings + + + + res + + matriz + + + + + + Descrio + + res = strcmpi(string_one,string_two) retorna um + valor inteiro indicando a relao entre os strings. + + Um valor inteiro maior que zero indica que o primeiro caractere que + no corresponde possui valor maior em string_one que em + string_two + + Um valor negativo indica o contrrio. + + + Exemplos + + + + Ver Tambm + + + strcat + + + strcmp + + + + diff --git a/modules/string/help/pt_BR/strcspn.xml b/modules/string/help/pt_BR/strcspn.xml new file mode 100755 index 000000000..300aeac0a --- /dev/null +++ b/modules/string/help/pt_BR/strcspn.xml @@ -0,0 +1,73 @@ + + + + + strcspn + retorna extenso at um caractere em um string + + + Seqncia de Chamamento + res = strcspn(string_one,string_two) + + + Parmetros + + + string_one + + string ou matriz de strings + + + + string_two + + string ou matriz de strings + + + + res + + matriz + + + + + + Descrio + + res = strcspn(string_one,string_two) l + string_one para a primeira ocorrncia de qualquer caractere que esteja em + string_two, retornando o nmero de caracteres de string_one lidos antes da + primeira ocorrncia. + + string_one deve ter as mesmas dimenses que string_two, ou + string_one deve ser um string. + + + + Exemplos + + + + Ver Tambm + + + strspn + + + + diff --git a/modules/string/help/pt_BR/strindex.xml b/modules/string/help/pt_BR/strindex.xml new file mode 100755 index 000000000..6e8d85f9e --- /dev/null +++ b/modules/string/help/pt_BR/strindex.xml @@ -0,0 +1,129 @@ + + + + + strindex + procura posição de um string em outro + + + Seqüência de Chamamento + ind=strindex(haystack,needle,[flag]) + [ind,which]=strindex(haystack,needle,[flag]) + + + + Parâmetros + + + haystack + + string. O string onde se procurará por ocorrências de + needle + + + + + needle + + string ou vetor de strings . O(s) string(s) a serem procurados + em haystack + + + + + ind + + vetor de índices + + + + which + + vetor de índices + + + + flag + + string ("r" para expressão regular) + + + + + + Descrição + + strindex procura índices onde needle + (i) + + é encontrado em haystack + + + Para cada k existe um i tal + que part(haystack,ind(k)+(0:length(needle(i))-1)) é o + mesmo string que needle(i). Se o argumento + which for requerido, ele contém esses + i. Quando se usa o terceiro parâmetro "r", needle deve + ser um string de expressão regular. Então, strindex irá corresponder a + haystack de acordo com as regras regulares expressas. + + + strindex sem expressão regular é baseado no + algoritmo de Knuth-Morris-Pratt. + + Este algoritmo é mais poderoso que aquele usado no Scilab 4.x. Em + alguns casos especiais, o resultado pode ser diferente. + + Exemplo: + // Scilab 5.x + -->[k,w]=strindex('aab',['a','ab']) + w = 1. 1. 2. k = 1. 2. 2. + // scilab 4.x + -->[k,w]=strindex('aab',['a','ab']) + w = 1. 1. k = 1. 2. + As regras de expressão regular são similares às da linguagem Perl. + Para uma introdução rápida , ver http://perldoc.perl.org/perlrequick.html. + Para um tutorial mais profundo , ver http://perldoc.perl.org/perlretut.html + e para a página de referência, ver http://perldoc.perl.org/perlre.html + + + + Exemplos + + + + Ver Também + + + string + + + strings + + + regexp + + + strsubst + + + + diff --git a/modules/string/help/pt_BR/string.xml b/modules/string/help/pt_BR/string.xml new file mode 100755 index 000000000..5389fab45 --- /dev/null +++ b/modules/string/help/pt_BR/string.xml @@ -0,0 +1,121 @@ + + + + + string + converso para string (cadeia de caracteres) + + + Seqncia de Chamamento + string(x) + [out, in, text] = string(x) + + + + Parmetros + + + x + + matriz de reais ou funo + + + + + + Descrio + Converte uma matriz em uma matriz de strings. + + Se x uma funo [out, in, text] = + string(x) + + retorna trs vetores de strings : + out o vetor de variveis de sada, + in o vetor de variveis de entrada, e + text o vetor (coluna) do cdigo fonte da + funo. + + + Se x uma varivel lib + (bibiloteca), text um vetor coluna de strings. O primeiro elemento + contm o endereo do arquivo biblioteca e o outro o nome da funo que ela + define. + + + Strings so definidos como 'string' (entre aspas + simples) ou "string" (entre aspas duplas); matrizes de + strings so definidas como matrizes de constantes. + + Concatenao de strings feita pela operao + +. + + + + Exemplos + string(rand(2, 2)) + + deff("y = mymacro(x)", "y = x + 1") + [out, in, text] = string(mymacro) + x = 123.356; + disp("Result is " + string(x)); + + disp("/" + string(~%t) + "/"); + disp("/" + string(%i+1) + "/"); + disp("/" + string(int16(-123)) + "/"); + disp("/" + string(1 + %s + %s^3) + "/"); + + string(corelib) + + v = format(); + disp(string(%pi)) + format(24); + disp(string(%pi)) + format(v(2)) + + + + Ver Tambm + + + part + + + length + + + quote + + + evstr + + + execstr + + + strsubst + + + strcat + + + strindex + + + sci2exp + + + format + + + + diff --git a/modules/string/help/pt_BR/strings.xml b/modules/string/help/pt_BR/strings.xml new file mode 100755 index 000000000..74e5b8ecb --- /dev/null +++ b/modules/string/help/pt_BR/strings.xml @@ -0,0 +1,51 @@ + + + + + strings + objeto Scilab, strings (cadeias de caracteres) + + + Descrio + + Strings so definidos como 'string' (entre aspas + simples) ou "string" (entre aspas duplas); matrizes de + strings so definidascomo matrizes constantes, como de uso. + + + A concatenao de dois strings feita por -+ : + string1+string2. + + + + Exemplos + + + + Ver Tambm + + + part + + + length + + + strcat + + + + diff --git a/modules/string/help/pt_BR/stripblanks.xml b/modules/string/help/pt_BR/stripblanks.xml new file mode 100755 index 000000000..1734e39e1 --- /dev/null +++ b/modules/string/help/pt_BR/stripblanks.xml @@ -0,0 +1,59 @@ + + + + + stripblanks + retira espaos em branco (e tabulaes) no incio ou no fim de + strings + + + + Seqncia de Chamamento + txt=stripblanks(txt[,tabs]) + + + Parmetros + + + txt + + um string ou uma matriz de strings + + + + tabs + + se TRUE, retira tambm tabulaes (o valor padro + FALSE) + + + + + + + Descrio + stripblanks retira espaos em branco (e tabulaes) no incio ou no + fim de strings. + + + + Exemplos + + + diff --git a/modules/string/help/pt_BR/strncpy.xml b/modules/string/help/pt_BR/strncpy.xml new file mode 100755 index 000000000..cba5f2866 --- /dev/null +++ b/modules/string/help/pt_BR/strncpy.xml @@ -0,0 +1,76 @@ + + + + + strncpy + copia caracteres de strings + + + Seqncia de Chamamento + res = strncpy(str1,num) + + + Parmetros + + + str1 + + string ou matriz de strings + + + + num + + matriz. Nmeros mximos de caracteres a serem copiados da + fonte + + + + + res + + string ou matriz de strings + + + + + + Descrio + + res = strncpy(str1,num) copia os primeiros num + caracteres da fonte para o destino. + + num deve ter as mesmas dimenses que str1, ou deve ser um + nmero. + + + + Exemplos + + + + Ver Tambm + + + strcat + + + strcmp + + + + diff --git a/modules/string/help/pt_BR/strrchr.xml b/modules/string/help/pt_BR/strrchr.xml new file mode 100755 index 000000000..0f5f83936 --- /dev/null +++ b/modules/string/help/pt_BR/strrchr.xml @@ -0,0 +1,76 @@ + + + + + strrchr + acha a ltima ocorrncia de um caractere em um + string + + + + Seqncia de Chamamento + res = strrchr(str1,char) + + + Parmetros + + + str1 + + string ou matriz de strings + + + + char + + caractere + + + + res + + string ou matriz de strings + + + + + + Descrio + + res = strrchr(str1,char) retorna a ltima + ocorrncia de caractere no string str + + num deve ter as mesmas dimenses que str1, ou apenas um caracteres + char. + + + + Exemplos + + + + Ver Tambm + + + strchr + + + strstr + + + + diff --git a/modules/string/help/pt_BR/strrev.xml b/modules/string/help/pt_BR/strrev.xml new file mode 100755 index 000000000..e309022b4 --- /dev/null +++ b/modules/string/help/pt_BR/strrev.xml @@ -0,0 +1,54 @@ + + + + + strrev + retorna um string invertido + + + Seqncia de Chamamento + res = strrev(str1) + + + Parmetros + + + str1 + + um string ou uma matriz de strings + + + + res + + um string ou uma matriz de strings + + + + + + Descrio + + res = strrev(str1) retorna o string em ordem + inversa + + + + Exemplos + + + diff --git a/modules/string/help/pt_BR/strsplit.xml b/modules/string/help/pt_BR/strsplit.xml new file mode 100755 index 000000000..b46d004d3 --- /dev/null +++ b/modules/string/help/pt_BR/strsplit.xml @@ -0,0 +1,77 @@ + + + + + strsplit + divide um string em um vetor de strings + + + Seqncia de Chamamento + v = strsplit(str,ind) + + + Parmetros + + + str + + string + + + + ind + + um vetor de ndices estritamente crescentes no intervalo + [1 length(str)-1] . + + + + + v + + o vetor coluna resultante de strings (dimenso + size(ind,'*')+1 ). + + + + + + + Descrio + + v= strsplit(str,ind) divide o string + str em um vetor de strings nos pontos dados pelos + ndices em ind (aps cada caractere apontado pelo + ndice em ind). + + + + Exemplos + + + + Ver Tambm + + + strcat + + + tokens + + + + diff --git a/modules/string/help/pt_BR/strspn.xml b/modules/string/help/pt_BR/strspn.xml new file mode 100755 index 000000000..223f23d45 --- /dev/null +++ b/modules/string/help/pt_BR/strspn.xml @@ -0,0 +1,74 @@ + + + + + strspn + retorna a extenso do conjunto de caracteres no + string + + + + Seqncia de Chamamento + res = strspn(str1,str2) + + + Parmetros + + + str1 + + string ou matriz de strings + + + + str2 + + string ou matriz de strings + + + + res + + matriz + + + + + + Descrio + + res = strspn(str1,str2) retorna o comprimento da + poro inicial de str1 que consiste apenas de caracteres que fazem parte + de str2. + + str2 deve ter as mesmas dimenses que str2, ou str1 pode ser um + string. + + + + Exemplos + + + + Ver Tambm + + + strcspn + + + + diff --git a/modules/string/help/pt_BR/strstr.xml b/modules/string/help/pt_BR/strstr.xml new file mode 100755 index 000000000..fd7802e4a --- /dev/null +++ b/modules/string/help/pt_BR/strstr.xml @@ -0,0 +1,73 @@ + + + + + strstr + localiza sub-strings + + + Seqncia de Chamamento + res = strstr(haystack,needle) + + + Parmetros + + + haystack + + string ou matriz de strings + + + + needle + + string ou matriz de strings + + + + res + + string ou matriz de strings + + + + + + Descrio + + res = strstr(haystack,needle) retorna uma matriz + de strings comeando onde da primeira ocorrncia de needle em haystack at + o fim de haystack, ou '' se needle no parte de haystack. + + + + Exemplos + + + + Ver Tambm + + + strrchr + + + strchr + + + + diff --git a/modules/string/help/pt_BR/strsubst.xml b/modules/string/help/pt_BR/strsubst.xml new file mode 100755 index 000000000..af9916450 --- /dev/null +++ b/modules/string/help/pt_BR/strsubst.xml @@ -0,0 +1,97 @@ + + + + + strsubst + substitui um string por outro dentro de um string + + + Seqüência de Chamamento + string_out=strsubst(string_in,searchStr,replaceStr) + string_out=strsubst(string_in,searchStr,replaceStr,[flag]) + + + + Parâmetros + + + string_in + + matriz de strings. Os strings nos quais serão procuradas + ocorrências de searchStr + + + + + searchStr + + + string a se procurar em string. + + + + + replaceStr + + string. O string de reposição + + + + str_out + + matriz de strings. O resultado da substituição em + searchStr por replaceStr em + string + + + + + flag + + string ("r" para expressão regular) + + + + + + Descrição + + strsubst substitui todas as ocorrências de + searchStr em string por + replaceStr. + + Quando se utiliza o quarto argumento "r", searchStr deve ser um + string de uma expressão regular. Então, strsubst o fará corresponder com + string e substituirá de acordo com a regra expressas regulares. + + + + Exemplos + + + + Ver Também + + + string + + + strings + + + + diff --git a/modules/string/help/pt_BR/strtod.xml b/modules/string/help/pt_BR/strtod.xml new file mode 100755 index 000000000..e35a211db --- /dev/null +++ b/modules/string/help/pt_BR/strtod.xml @@ -0,0 +1,66 @@ + + + + + strtod + converte um string para um double + + + Seqüência de Chamamento + d = strtod(str) + [d,endstr] = strtod(str) + + + + Parâmetros + + + str + + string ou matriz de strings + + + + d + + escalar real ou matriz de reais + + + + endstr + + string ou matriz de strings (próximo caractere em str + após o valor numérico). + + + + + + + Descrição + + [d,endstr] = strtod(str) analisa o string str + interpretando o seu conteúdo como um número de ponto flutuante e + retorna o seu valor como um real. + + + + Exemplos + + + diff --git a/modules/string/help/pt_BR/strtok.xml b/modules/string/help/pt_BR/strtok.xml new file mode 100755 index 000000000..02dc3581b --- /dev/null +++ b/modules/string/help/pt_BR/strtok.xml @@ -0,0 +1,78 @@ + + + + + strtok + divide um string em fichas (tokens) + + + Seqncia de Chamamento + res = strtok(str,delimiters) + + + Parmetros + + + str + + string + + + + delimiters + + string + + + + res + + string + + + + + + Descrio + + res = strtok(str,delimiters) divide str em + fichas, que so seqncias de caracteres contguos separados por qualquer + um dos caracteres que fazem parte do string delimiters (delimiters = + delimitadores). + + + + Exemplos + '' ) + token = strtok(" ,"); + TOKENS = [TOKENS,token]; +end +disp(TOKENS); + ]]> + + + Ver Tambm + + + strrchr + + + strchr + + + + diff --git a/modules/string/help/pt_BR/tokenpos.xml b/modules/string/help/pt_BR/tokenpos.xml new file mode 100755 index 000000000..1205ecc25 --- /dev/null +++ b/modules/string/help/pt_BR/tokenpos.xml @@ -0,0 +1,81 @@ + + + + + tokenpos + retorna as posies das fichas (token) em um + string + + + + Seqncia de Chamamento + kdf=tokenpos(str [,delimiter]) + + + Parmetros + + + str + + string. O string onde se deve procurar fichas + + + + delimiter + + (opcional) um caractere ou vetor de caracteres. Os + delimitadores de fichas. + + + + + kdf + + matriz de duas colunas, a primeira coluna fornece os ndices + dos primeiros caracteres das fichas, a segunda fornece os ndices + dos ltimos caracteres das fichas. + + + + + + + Descrio + + kdf=tokenpos(str [,delimiter]) busca as fichas + inclusas no string str. O valor padro de + delimiter [" ",<Tab>] onde <Tab> + ascii(9). Retorna os ndices dos primeiros e ltimos + caracteres de cada ficha encontrada. + + + + Exemplos + + + + Ver Tambm + + + strindex + + + tokens + + + + diff --git a/modules/string/help/pt_BR/tokens.xml b/modules/string/help/pt_BR/tokens.xml new file mode 100755 index 000000000..aa01e0ba0 --- /dev/null +++ b/modules/string/help/pt_BR/tokens.xml @@ -0,0 +1,77 @@ + + + + + tokens + retorna as fichas (tokens) de um string + + + Seqncia de Chamamento + T=tokens(str [,delimiter]) + + + Parmetros + + + str + + string, o local de procura dos tokens + + + + delimiter + + (opcional) um caractere ou um vetor de caracteres. Os + delimitadores de fichas. + + + + + T + + vetor coluna de fichas encontradas + + + + + + Descrio + + T=tokens(str [,delimiter]) procura pelos tokens + inclusos no string str. O padro de + delimiter [" ",<Tab>] onde <Tab> + ascii(9). + + + + Exemplos + + + + Ver Tambm + + + strindex + + + tokenpos + + + + diff --git a/modules/string/help/ru_RU/addchapter.sce b/modules/string/help/ru_RU/addchapter.sce new file mode 100755 index 000000000..ef3bc5339 --- /dev/null +++ b/modules/string/help/ru_RU/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("Строки",SCI+"/modules/string/help/ru_RU",%T); + diff --git a/modules/string/help/ru_RU/ascii.xml b/modules/string/help/ru_RU/ascii.xml new file mode 100755 index 000000000..7cd9d363a --- /dev/null +++ b/modules/string/help/ru_RU/ascii.xml @@ -0,0 +1,73 @@ + + + + + ascii + преобразование в строку ASCII + + + Последовательность вызова + a = ascii(txt) + txt = ascii(a) + + + + Аргументы + + + txt + + + символьная строка или матрица символьных строк. + + + + + a + + вектор целочисленных значений: ASCII-коды. + + + + + + Описание + + Эта функция преобразует Scilab-строку в вектор ASCII-кодов (первые + 127 кодов являются ASCII) или вектор ASCII-кодов в Scilab-строки. + + + Если txt является матрицей строк, то + ascii(txt) эквивалентна ascii(strcat(txt)). + + + + Примеры + + + + Смотрите также + + + code2str + + + str2code + + + + diff --git a/modules/string/help/ru_RU/asciimat.xml b/modules/string/help/ru_RU/asciimat.xml new file mode 100755 index 000000000..723e8cc65 --- /dev/null +++ b/modules/string/help/ru_RU/asciimat.xml @@ -0,0 +1,64 @@ + + + + + asciimat + преобразование матрицы строк в ASCII-коды и обратно + + + Последовательность вызова + + a = asciimat(txt) + txt = asciimat(a) + + + + Аргументы + + + txt + + + символьная строка или матрица строк. + + + + + a + + + вектор или матрица целочисленных ASCII-кодов. + + + + + + + Описание + + Эта функция преобразует Scilab-строку в ASCII-код или + матрицу ASCII-кодов в Scilab-строку. Аргумент на выходе + является матрицей, у которой то же количество строк, что и у + матрицы на входе, что является отличием от функции + ascii. + + + + Смотрите также + + + ascii + + + + diff --git a/modules/string/help/ru_RU/blanks.xml b/modules/string/help/ru_RU/blanks.xml new file mode 100755 index 000000000..89bc3ff83 --- /dev/null +++ b/modules/string/help/ru_RU/blanks.xml @@ -0,0 +1,51 @@ + + + + + blanks + создание строки из пробелов + + + Последовательность вызова + txt = blanks(n) + + + Аргументы + + + txt + + отдельная символьная строка. + + + + n + + целое число, количество пробелов. + + + + + + Описание + + blanks(n) даёт строку из n пробелов. + + + + Примеры + + + diff --git a/modules/string/help/ru_RU/char.xml b/modules/string/help/ru_RU/char.xml new file mode 100755 index 000000000..7499fbfc6 --- /dev/null +++ b/modules/string/help/ru_RU/char.xml @@ -0,0 +1,110 @@ + + + + + char + преобразует в массив символов + + + Последовательность вызова + y=char(x) + y = char(st1, st2, st3,...) + + + + Аргументы + + + x + + + cell-массив строковых значений или массив ASCII-кодов. + + + + + st1, st2, st3 + + массивы строковых значений. + + + + y + + вектор-столбец строковых значений. + + + + + + Описание + + Один входной аргумент: + + + Для заданного cell-массива строковых значений x данная функция + возвращает вектор строковых значений y в котором строки являются + конкатенированными элементами соответствующих строк cell-массива строковых значений. + + + Для заданного массива ASCII-кодов x данная функция + возвращает массив строковых значений y, соответствующих + ASCII-кодам. Если размеры x равны [n1, n2, n3, n4,...], + то возвращаемое значение имеет те же размеры, что и входное значение за + исключением второго размера, т. е. размеры y равны + [n1, n3, n4,...]. + + + Более одного входного аргумента: + + + Для заданных массивов строковых значений st1, st2, st3,... эта функция + возвращает вектор строковых значений в котором строки являются конкатенированными + элементами соответствующих строк st1, st2, st3,.... В векторе + y всех строковые значения sti дополняются + пробелами чтобы получить ту же длину, что и максимальная длина sti. + + + + Примеры + + + + Смотрите также + + + ascii + + + asciimat + + + + diff --git a/modules/string/help/ru_RU/convstr.xml b/modules/string/help/ru_RU/convstr.xml new file mode 100755 index 000000000..c9af2aa7e --- /dev/null +++ b/modules/string/help/ru_RU/convstr.xml @@ -0,0 +1,69 @@ + + + + + convstr + преобразование регистра + + + Последовательность вызова + [y] = convstr(str, [flag]) + + + Аргументы + + + str, y + + матрица символьных строк. + + + + flag + + необязательный символьный флаг с возможными значениями: + + + 'u' + + для верхнего регистра; + + + + 'l' + + для нижнего регистра. + + + + + + + + + Описание + + Функция convstr преобразует матрицу строк + str в нижний регистр (для flag = "l"; + значение по умолчанию) или в верхний регистр (для + flag = "u"). + + + + Примеры + + + diff --git a/modules/string/help/ru_RU/emptystr.xml b/modules/string/help/ru_RU/emptystr.xml new file mode 100755 index 000000000..7333ea97e --- /dev/null +++ b/modules/string/help/ru_RU/emptystr.xml @@ -0,0 +1,97 @@ + + + + + emptystr + формирование строки нулевой длины + + + Последовательность вызова + s = emptystr() + s = emptystr(a) + s = emptystr(m, n) + + + + Аргументы + + + a + + + матрица размером m на + n. + + + + + s + + + матрица символьных строк. + + + + + m, n + + целые числа. + + + + + + Описание + + Функция emptystr возвращает матрицу символьных + строк нулевой длины. + + + Без входного аргумента emptystr возвращает символьную строку нулевой длины. + + + С матрицей a в качестве входного аргумента + функция emptystr возвращает матрицу символьных + строк нулевой длины того же размера. + + + С двумя целочисленными аргументами функция emptystr + возвращает матрицу символьных строк нулевой длины размером + m на n. + + + + Примеры + + + + Смотрите также + + + part + + + length + + + string + + + + diff --git a/modules/string/help/ru_RU/eval.xml b/modules/string/help/ru_RU/eval.xml new file mode 100755 index 000000000..1129a3b9a --- /dev/null +++ b/modules/string/help/ru_RU/eval.xml @@ -0,0 +1,59 @@ + + + + + eval + вычисление матрицы строк + + + Последовательность вызова + [H] = eval(Z) + + + Аргументы + + + Z + + матрица символьных строк. + + + + + + Описание + + Функция eval возвращает вычисление матрицы символьных строк Z. + + + + Примеры + + + + Смотрите также + + + evstr + + + execstr + + + + diff --git a/modules/string/help/ru_RU/evstr.xml b/modules/string/help/ru_RU/evstr.xml new file mode 100755 index 000000000..94ccf74a8 --- /dev/null +++ b/modules/string/help/ru_RU/evstr.xml @@ -0,0 +1,122 @@ + + + + + evstr + вычисление выражений + + + Последовательность вызова + + H = evstr(Z) + [H, ierr] = evstr(Z) + + + + Аргументы + + + Z + + + матрица символьных строк M или + list(M,Subexp) + + + + M + + матрица символьных строк. + + + + Subexp + + вектор символьных строк. + + + + + + + H + + матрица. + + + + ierr + + целое число, указатель ошибки. + + + + + + Описание + + Возвращает результат вычисления матрицы символьных строк + M. Каждый элемент матрицы должен определять + корректное Scilab-выражение. + + + Если вычисление выражения M ведёт к ошибке, то в + случае с одним возвращаемым значением, H = evstr(M), + возникает ошибка как обычно. В случае с двумя возвращаемыми + значениями, [H,ierr] = evstr(M), ошибки не возникает, + но возвращается номер ошибки в ierr. + + + Если Z - список, то Subexp - + вектор символьных строк, который определяет подвыражения, которые + вычисляются до вычисления M. К этим + подвыражениям следует обращаться как %(k) в + M, где k - это индекс + подвыражения в Subexp. + + + evstr('a = 1') не корректно (вместо этого используйте + функцию execstr). + + + Nan, NaN будут + интерпретироваться как %nan. + + + Inf будет интерпретироваться как %inf. + + + + Примеры + + a = 1; b = 2; + Z = ['a', 'b'] ; + evstr(Z) + Z = list(['%(1)','%(1)-%(2)'],['a+1','b+1']); + evstr(Z) + + evstr('NaN'), evstr('Inf') + //Вариант с двумя возвращаемыми значениями + [H, ierr] = evstr(Z) // ошибки нет + Z = ['a', 'b', 'c'] ;// переменная c не определена + [H, ierr] = evstr(Z) // error 4: Неизвестная переменная: c + + + + Смотрите также + + + execstr + + + + diff --git a/modules/string/help/ru_RU/grep.xml b/modules/string/help/ru_RU/grep.xml new file mode 100755 index 000000000..ba4d3efb1 --- /dev/null +++ b/modules/string/help/ru_RU/grep.xml @@ -0,0 +1,131 @@ + + + + + grep + поиск соответствий строки в векторе строк + + + Последовательность вызова + row = grep(haystack, needle ) + [row, which] = grep(haystack, needle ) + row = grep(haystack, needle, [flag]) + [row, which] = grep(haystack, needle, [flag]) + + + + Аргументы + + + haystack + + вектор-строка символьных строк. + + + + needle + + + символьная строка или вектор-строка символьных строк. + Строка (строки), которая ищется в haystack. + + + + + row + + + вектор индексов: строка, где было найдено соответствие + или пустая матрица, если соответствие не найдено. + + + + + which + + + вектор индексов: индекс найденной строки + needle или пустая матрица, если + соответствия не найдено. + + + + + flag + + + символ ("r" для регулярного выражения). + + + + + + + Описание + + Для каждого элемента haystack функция grep + ищет соответствие подстроки со строкой в needle. + Индекс элементов haystack, где было найдено + соответствие, возвращается в выходном аргументе + row. Необязательный выходной аргумент + which даёт индекс первого найденного строкового + значения в needle. + + + Когда используется третий параметр flag="r", + то ожидается, что needle будет строкой + регулярного выражения. В этом случае grep + использует needle в качестве регулярного + выражения и сравнивает его с haystack в + соответствии с правилами регулярного выражения. См. подробности по регулярным выражениям в функции regexp. + + + + Пример №1 + + В следующем примере мы ищем одну или две строки в тексте, который + хранится в переменной txt. + + + + + Пример №2 + + В следующем примере выполняется поиск с помощью регулярных выражений. + + + + + Смотрите также + + + strindex + + + regexp + + + + diff --git a/modules/string/help/ru_RU/isalphanum.xml b/modules/string/help/ru_RU/isalphanum.xml new file mode 100755 index 000000000..77f9e9ebe --- /dev/null +++ b/modules/string/help/ru_RU/isalphanum.xml @@ -0,0 +1,69 @@ + + + + + isalphanum + + проверка того, что символы строки являются буквенно-цифровыми + + + + Последовательность вызова + res = isalphanum(str) + + + Аргументы + + + str + + символьная строка. + + + + res + + матрица логических значений. + + + + + + Описание + + res = isalphanum(str) возвращает массив того же + размера, что и str, содержащий логические + значения %t (истина) там, где элементы + str являются буквенно-цифровыми, и логические + значения %f (ложь) там, где они не являются. + + + + Примеры + + + + Смотрите также + + + isletter + + + isdigit + + + + diff --git a/modules/string/help/ru_RU/isascii.xml b/modules/string/help/ru_RU/isascii.xml new file mode 100755 index 000000000..a4407b405 --- /dev/null +++ b/modules/string/help/ru_RU/isascii.xml @@ -0,0 +1,69 @@ + + + + + isascii + + проверяет - является ли символ 7-битным US-ASCII-символом + + + + Последовательность вызова + res = isascii(str) + + + Аргументы + + + str + + символьная строка или массив целых чисел. + + + + res + + матрица логических значений. + + + + + + Описание + + res = isascii(str) возвращает %t + (ИСТИНА), если элементы str соответствуют 7-битному + коду US-ASCII-символов между 0 и восьмеричным 0177 + включительно (или являются US-ASCII-символами). + В противном случае возвращает %f (ЛОЖЬ). + + + + Примеры + + + + Смотрите также + + + isalphanum + + + + diff --git a/modules/string/help/ru_RU/isdigit.xml b/modules/string/help/ru_RU/isdigit.xml new file mode 100755 index 000000000..0c4661972 --- /dev/null +++ b/modules/string/help/ru_RU/isdigit.xml @@ -0,0 +1,72 @@ + + + + + isdigit + + проверка того, что символы в строке являются цифрами между 0 и 9 + + + + Последовательность вызова + res = isdigit(str) + + + Аргументы + + + str + + символьная строка. + + + + res + + матрица логических значений. + + + + + + Описание + + res = isdigit(str) возвращает массив того же + размера, что и str, содержащий логическое + значение %t (ИСТИНА) там, где элементы + str являются цифрами, и логическое значение + %f (ЛОЖЬ) там, где они не являются. + + + + Примеры + + + + Смотрите также + + + isalphanum + + + isletter + + + isnum + + + + diff --git a/modules/string/help/ru_RU/isletter.xml b/modules/string/help/ru_RU/isletter.xml new file mode 100755 index 000000000..e0701b27a --- /dev/null +++ b/modules/string/help/ru_RU/isletter.xml @@ -0,0 +1,74 @@ + + + + + isletter + + проверка того, что символы в строке являются буквами алфавита + + + + Последовательность вызова + res = isletter(str) + + + Аргументы + + + str + + символьная строка. + + + + res + + матрица логических значений. + + + + + + Описание + + res = isletter(str) возвращает массив того же + размера, что и str, содержащий логическое + значение %t (ИСТИНА) там, где элементы + str являются буквами алфавита, и логическое + значение %f (ЛОЖЬ) там, где они не являются. + + + + Примеры + + + + Смотрите также + + + isalphanum + + + isdigit + + + + diff --git a/modules/string/help/ru_RU/isnum.xml b/modules/string/help/ru_RU/isnum.xml new file mode 100755 index 000000000..398d1f85d --- /dev/null +++ b/modules/string/help/ru_RU/isnum.xml @@ -0,0 +1,79 @@ + + + + + isnum + + проверка того, что строка представляет число + + + + Последовательность вызова + res = isnum(str) + + + Аргументы + + + str + + + символьная строка или матрица символьных строк. + + + + + res + + матрица логических значений. + + + + + + Описание + + res = isnum(str) возвращает %t, если str представляет число. + + + + Примеры + + + + Смотрите также + + + isletter + + + isdigit + + + isalphanum + + + + diff --git a/modules/string/help/ru_RU/justify.xml b/modules/string/help/ru_RU/justify.xml new file mode 100755 index 000000000..e2284e994 --- /dev/null +++ b/modules/string/help/ru_RU/justify.xml @@ -0,0 +1,103 @@ + + + + + justify + выравнивание массива символов + + + Последовательность вызова + Tj = justify(T, opt) + + + Аргументы + + + T + + матрица символьных строк. + + + + Tj + + + матрица символьных строк. Результат выравнивания. + + + + + opt + + + символьная опция с возможными значениями: + + + + 'r' или 'right' + + для выравнивания по правому краю; + + + + 'l' или 'left' + + для выравнивания по левому краю; + + + + 'c' или 'center' + + для выравнивания по центру. + + + + + + + + + Описание + + Функция justify выравнивает столбцы матрицы строк в соответствии с заданной опцией opt. + + + + Примеры + + + + Смотрите также + + + length + + + part + + + + + diff --git a/modules/string/help/ru_RU/length.xml b/modules/string/help/ru_RU/length.xml new file mode 100755 index 000000000..d1916dddf --- /dev/null +++ b/modules/string/help/ru_RU/length.xml @@ -0,0 +1,118 @@ + + + + + length + длина объекта + + + Последовательность вызова + n = length(M) + + + Аргументы + + + M + + + матрица (обычная или полиномиальная или символьных строк) или список. + + + + + n + + + целое число или матрица целочисленных значений. + + + + + + + Описание + + Для обычной или полиномиальной матрицы n является целым числом, равным произведению количества строк и + столбцов M. (Также корректно и для матрицы + логических значений M). + + + Для матриц, составленных из символьных строк (и, в частности, для + символьной строки), функция length возвращает + в n длину элементов матрицы символьных строк + M. + + + Длина списка - это количество элементов в списке (также получается с помощью функции size). + + + Длина матричноориентированного списка (mlist) равна по умолчанию + количеству элементов в этом списке, но вы можете перегрузить length (см. пример). + + + length('123') равно 3. + length([1,2;3,4]) равно 4. + + + + Внимание: length разрежённой матрицы + возвращает максимум размерностей а не произведение + размерностей. (Например: length(sparse(eye(12,2))) + возвращает max(12,2) а не 24). + Пожалуйста, к разрежённой матрице применяйте + size(...,'*'). + + + + + Примеры + + + + + Смотрите также + + + size + + + + + История + + + 5.4.0 + + Эта функция позволяет перегрузку для типа mlist. + + + + + diff --git a/modules/string/help/ru_RU/part.xml b/modules/string/help/ru_RU/part.xml new file mode 100755 index 000000000..a3d828b7a --- /dev/null +++ b/modules/string/help/ru_RU/part.xml @@ -0,0 +1,100 @@ + + + + + part + выделение строк + + + Последовательность вызова + [strings_out] = part(strings_in, v) + + + Аргументы + + + strings_in, strings_out + + матрицы символьных строк. + + + + v + + вектор-строка целочисленных значений. + + + + + + Описание + + Обозначим как s[k] k-тый + символ строки s (или пробел, если + k >length(s)). + + + Функция part возвращает + strings_out, матрицу символьных строк, такую, что + strings_out(i,j) является строкой + "s[v(1)]...s[v(n)]" + (s = strings_in(i,j)). + + + + Примеры + + + + Смотрите также + + + string + + + strsplit + + + length + + + + diff --git a/modules/string/help/ru_RU/regexp.xml b/modules/string/help/ru_RU/regexp.xml new file mode 100755 index 000000000..10d9600b0 --- /dev/null +++ b/modules/string/help/ru_RU/regexp.xml @@ -0,0 +1,162 @@ + + + + + regexp + + поиск подстроки, соответствующей строке регулярного выражения + + + + Последовательность вызова + + [start] = regexp(input, pattern, [flag]) + [start, end] = regexp(input, pattern, [flag]) + [start, end, match] = regexp(input, pattern, [flag]) + [start, end, match, foundString] = regexp(input, pattern, [flag]) + + + + Аргументы + + + input + + символьная строка. + + + + pattern + + + символьная строка, шаблон (по правилам регулярных + выражений). + + + + + start + + + начальный индекс каждой подстроки + input, которая соответствует строке + регулярного выражения pattern. + + + + + end + + + конечный индекс каждой подстроки + input, которая соответствует строке + регулярного выражения pattern. + + + + + match + + + текст каждой подстроки input, + которая соответствует шаблону pattern. + + + + + foundString + + + текст, выделенный элементами шаблона, заключёнными в скобки. + + + + + [flag] + + + 'o' для одного соответствия шаблону. + + + + + + + Описание + + Правила регулярного выражения схожи с языком Perl. Для быстрого старта смотрите + http://perldoc.perl.org/perlrequick.html. + Для более глубокого изучения смотрите + http://perldoc.perl.org/perlretut.html, + а для справки смотрите + http://perldoc.perl.org/perlre.html. + + + Отличие от Perl заключается в том, что соответствие позиции, а не символа (например, с /^/ или + /(?=o)/) будет успешным в Perl, но не в Scilab'е. + + + + Примеры + \w+): (?P\d+)/') +d(1)=="foobar" +d(2)=="2012" + ]]> + + + Смотрите также + + + strindex + + + + + История + + + 5.4.0 + + Добавлен новый выходной аргумент, foundString, для + получения соответствий элементам шаблона. + + + + + diff --git a/modules/string/help/ru_RU/sci2exp.xml b/modules/string/help/ru_RU/sci2exp.xml new file mode 100755 index 000000000..d8f7c9947 --- /dev/null +++ b/modules/string/help/ru_RU/sci2exp.xml @@ -0,0 +1,116 @@ + + + + + sci2exp + преобразует выражение в строку + + + Последовательность вызова + t = sci2exp(a [,nam] [,lmax]) + + + Аргументы + + + a + + Scilab-выражение, может быть: + + + - + + константа; + + + + - + + полином; + + + + - + + матрица строк; + + + + - + + список; + + + + - + + матрица логических значений. + + + + + + + nam + + символьная строка. + + + + t + + + вектор строк, содержащих выражение или инструкцию. + + + + + lmax + + + целое число, содержащее максимальную длину строки. По + умолчанию оно равно 90, + lmax=0 указывает, что нет управления + длиной отдельной строки; возвращается одиночная строка. + + + + + + + Описание + + Функция sci2exp преобразует выражение в строку + инструкции, если указано nam или в строку + выражения. + + + + Примеры + + + + Смотрите также + + + prettyprint + + + + diff --git a/modules/string/help/ru_RU/strcat.xml b/modules/string/help/ru_RU/strcat.xml new file mode 100755 index 000000000..af352171f --- /dev/null +++ b/modules/string/help/ru_RU/strcat.xml @@ -0,0 +1,119 @@ + + + + + strcat + связывает символьные строки + + + Последовательность вызова + + txt = strcat(strings [,string_added]) + txt = strcat(strings [,string_added, ["flag"]]) + + + + Аргументы + + + strings + + вектор или матрица строк. + + + + string_added + + + добавляемая строка, значение по умолчанию равно символьной строке нулевой длины "". + + + + + txt + + строка. + + + + "flag" + + + символьное значение ("r" для связки строк в матрице strings, + "c" для связки столбцов в матрице strings). + + + + + + + Описание + + txt = strcat(strings) связывает символьные строки: + txt = strings(1) + ... + strings(n). + + + txt = strcat(strings, string_added) возвращает + txt = strings(1) + string_added + ... + string_added + strings(n). + + + Символ "плюс" делает то же самое, что strcat(["a","b"]).. + + + Если размер strings равен единице, то + возвращается txt = strings(1); + + + strcat('A','B') возвращает 'A' а не + 'AB', как strcat(['A','B']). + + + Если strings является матрицей строк, то + strcat(strings,"",'r') возвращает вектор-строку строк. + Элементы вектор-строки является результатом связки строк. + strcat(strings,"",'c') возвращает вектор-столбец + строк. Элементы вектор-столбца являются результатом связки столбцов. + + + + Примеры + + + + Смотрите также + + + string + + + strings + + + + diff --git a/modules/string/help/ru_RU/strchr.xml b/modules/string/help/ru_RU/strchr.xml new file mode 100755 index 000000000..4b2ceb0ad --- /dev/null +++ b/modules/string/help/ru_RU/strchr.xml @@ -0,0 +1,81 @@ + + + + + strchr + + поиск первого появления символа в строке + + + + Последовательность вызова + res = strchr(haystack, char) + + + Аргументы + + + haystack + + + символьная строка или матрица символьных строк. + + + + + char + + символ. + + + + res + + + символьная строка или матрица символьных строк. + + + + + + + Описание + + res = strchr(haystack, char) возвращает первое появление символа в строке haystack. + + + char должна содержать только одиночную строку или + столько строк, сколько их в haystack (каждая из + которых длиной в один символ). + + + + Примеры + + + + Смотрите также + + + strrchr + + + strstr + + + + diff --git a/modules/string/help/ru_RU/strcmp.xml b/modules/string/help/ru_RU/strcmp.xml new file mode 100755 index 000000000..d074d0cc1 --- /dev/null +++ b/modules/string/help/ru_RU/strcmp.xml @@ -0,0 +1,103 @@ + + + + + strcmp + сравнение символьных строк + + + Последовательность вызова + res = strcmp(string_one, string_two, ['i']) + + + Аргументы + + + string_one + + + символьная строка или матрица символьных строк. + + + + + string_two + + + символьная строка или матрица символьных строк. + + + + + 'i' + + + необязательный параметр для того, чтобы сделать strcmpi + (независимость от регистра), значение по умолчанию - 's'. + + + + + res + + матрица целочисленных значений. + + + + + + Описание + + res = strcmp(string_one, string_two) (или + res = strcmp(string_one, string_two, 's')) возвращает + интегральное значение, указывающее отношение между строками. + + + Значение больше нуля указывает, что первый символ, который не соответствует, имеет большее значение в string_one, чем в string_two, а значение меньше нуля указывает обратное. + + + Значение равное нулю указывает на то, что + string_one и string_two + равны. + + + res = strcmp(string_one, string_two, 'i') возвращает + 0, если string_one равна + string_two (независимо от регистра), а + 1 указывает обратное. + + + + Примеры + + + + Смотрите также + + + strcat + + + strcmpi + + + + diff --git a/modules/string/help/ru_RU/strcmpi.xml b/modules/string/help/ru_RU/strcmpi.xml new file mode 100755 index 000000000..5eafb654b --- /dev/null +++ b/modules/string/help/ru_RU/strcmpi.xml @@ -0,0 +1,83 @@ + + + + + strcmpi + + сравнение символьных строк (без учёта регистра) + + + + Последовательность вызова + res = strcmpi(string_one, string_two) + + + Аргументы + + + string_one + + + символьная строка или матрица символьных строк. + + + + + string_two + + + символьная строка или матрица символьных строк. + + + + + res + + матрица целочисленных значений. + + + + + + Описание + + res = strcmpi(string_one, string_two) возвращает + интегральное значение, указывающее отношение между строками. + + + Значение равно 0, если + string_one равна string_two + (независимо от регистра), а 1 указывает обратное. + + + + Примеры + + + + Смотрите также + + + strcat + + + strcmp + + + + diff --git a/modules/string/help/ru_RU/strcspn.xml b/modules/string/help/ru_RU/strcspn.xml new file mode 100755 index 000000000..0991bd43c --- /dev/null +++ b/modules/string/help/ru_RU/strcspn.xml @@ -0,0 +1,78 @@ + + + + + strcspn + получение интервала до символа в строке + + + Последовательность вызова + res = strcspn(string_one, string_two) + + + Аргументы + + + string_one + + + символьная строка или матрица символьных строк. + + + + + string_two + + + символьная строка или матрица символьных строк. + + + + + res + + матрица. + + + + + + Описание + + res = strcspn(string_one,string_two) сканирует + string_one на предмет первого появления любого из + символов, которые являются частью string_two, + возвращая количество символов string_one, прочитанных до этого первого появления. + + + string_two должна быть того же размера, что и string_one, либо string_two + должна быть строкой. + + + + Примеры + + + + Смотрите также + + + strspn + + + + diff --git a/modules/string/help/ru_RU/strindex.xml b/modules/string/help/ru_RU/strindex.xml new file mode 100755 index 000000000..f7f7c24ec --- /dev/null +++ b/modules/string/help/ru_RU/strindex.xml @@ -0,0 +1,138 @@ + + + + + strindex + + поиск положения символьной строки в другой строке + + + + Последовательность вызова + + ind = strindex(haystack, needle, [flag]) + [ind, which] = strindex(haystack, needle, [flag]) + + + + Аргументы + + + haystack + + + символьная строка. Строка, в которой ищутся совпадения + с needle. + + + + + needle + + + символьная строка или вектор символьных строк. Строка + (строки) которая ищется в haystack. + + + + + ind + + вектор индексов. + + + + which + + вектор индексов. + + + + flag + + + строка ("r" для регулярного + выражения). + + + + + + + Описание + + Функция strindex ищет индексы, где найдена + needle(i) в haystack. + + + Для каждого k существует такая + i, что part(haystack,ind(k)+(0:length(needle(i))-1)) + является той же самой строкой, что и needle(i). + Если указан аргумент which, то он содержит эти + i. Когда используется третий параметр + "r", то needle должна быть + строкой регулярного выражения, и тогда + strindex будет сравнивать её с + haystack по правилам регулярного выражения. + + + strindex без аргумента регулярного выражения + основывается на алгоритме Кнута-Морриса-Пратта [Knuth-Morris-Pratt]. + + + Этот алгоритм более мощный, чем тот, который использовался в Scilab + 4.x. В некоторых частных случаях результат может быть различным. + + Пример: + // Scilab 5.x + -->[k,w]=strindex('aab',['a','ab']) + w = 1. 1. 2. k = 1. 2. 2. + // Scilab 4.x + -->[k,w]=strindex('aab',['a','ab']) + w = 1. 1. k = 1. 2. + + Правила регулярного выражения сходны с языком Perl. Для быстрого старта см.http://perldoc.perl.org/perlrequick.html. + Для более глубокого изучения см. http://perldoc.perl.org/perlretut.html, + а для справки см. http://perldoc.perl.org/perlre.html. + + + + Примеры + + + + Смотрите также + + + string + + + strings + + + regexp + + + strsubst + + + + diff --git a/modules/string/help/ru_RU/string.xml b/modules/string/help/ru_RU/string.xml new file mode 100755 index 000000000..407cc33db --- /dev/null +++ b/modules/string/help/ru_RU/string.xml @@ -0,0 +1,140 @@ + + + + + string + преобразование в строку + + + Последовательность вызова + + string(x) + [out, in, text] = string(x) + + + + Аргументы + + + x + + + булева, комплексная, вещественная, целочисленная, полиномиальная матрица, неявный размер, библиотека или функция. + + + + + + + Описание + + Функция string преобразует матрицу + x в матрицу строк. + + + Если x является функцией, то [out, in, text] = string(x) возвращает три вектора строк: out - вектор выходных переменных, in - вектор входных переменных, а text - вектор (вектор-столбец) исходного кода функции. + + + Если x является переменной типа + lib (библиотекой), то text + является вектор-столбцом символьных строк. Первый элемент содержит + путь до файла библиотеки, а другой - имя функций, которые она + определяет. + + + Символьные строки определяются как 'строка' + (между одинарными кавычками) или "строка" (между + двойными кавычками); матрицы строк определяются как обычные матрицы констант. + + + Связка строк выполняется с помощью операции +. + + + Для комплексной, вещественной, целочисленной, полиномиальной + матрицы вывод функции string управляется с + помощью функции format (см. примеры). + + + + Примеры + + string(rand(2, 2)) + + deff("y = mymacro(x)", "y = x + 1") + [out, in, text] = string(mymacro) + x = 123.356; + disp("Результат равен " + string(x)); + + disp("/" + string(~%t) + "/"); + disp("/" + string(%i+1) + "/"); + disp("/" + string(int16(-123)) + "/"); + disp("/" + string(1 + %s + %s^3) + "/"); + + string(corelib) + + v = format(); + disp(string(%pi)) + format(24); + disp(string(%pi)) + format(v(2)) + string(1:4:$) + + + + Смотрите также + + + part + + + length + + + кавычка + + + evstr + + + execstr + + + strsubst + + + strcat + + + strindex + + + sci2exp + + + format + + + + + История + + + 5.4.0 + + implicit size type managed as input argument. + + + + + diff --git a/modules/string/help/ru_RU/strings.xml b/modules/string/help/ru_RU/strings.xml new file mode 100755 index 000000000..1a228718a --- /dev/null +++ b/modules/string/help/ru_RU/strings.xml @@ -0,0 +1,50 @@ + + + + + strings + объект Scilab'а, символьные строки + + + Описание + + Строки определяются как 'строка' (между одинарными + кавычками) или "строка" (между двойными кавычками); + матрицы строк определяются как обычные матрицы. + + + Связка двух строк выполняется с помощью операции +: string1 + string2. + + + + Примеры + + + + Смотрите также + + + part + + + length + + + strcat + + + + diff --git a/modules/string/help/ru_RU/stripblanks.xml b/modules/string/help/ru_RU/stripblanks.xml new file mode 100755 index 000000000..0ffa2b0d0 --- /dev/null +++ b/modules/string/help/ru_RU/stripblanks.xml @@ -0,0 +1,66 @@ + + + + + stripblanks + + отсекает пробелы (и табуляцию) в начале и в конце строк + + + + Последовательность вызова + txt = stripblanks(txt[,tabs]) + + + Аргументы + + + txt + + + символьная строка или матрица символьных строк. + + + + + tabs + + + логическое значение, если %t, то + символы табуляции также будут отсечены (значение по умолчанию - %f). + + + + + + + Описание + + Функция stripblanks отсекает пробелы (и табуляцию) в начале и конце строк. + + + + Примеры + + + diff --git a/modules/string/help/ru_RU/strncpy.xml b/modules/string/help/ru_RU/strncpy.xml new file mode 100755 index 000000000..ff9fbd63b --- /dev/null +++ b/modules/string/help/ru_RU/strncpy.xml @@ -0,0 +1,85 @@ + + + + + strncpy + копирование символов из строк + + + Последовательность вызова + res = strncpy(str1, num) + + + Аргументы + + + str1 + + + символьная строка или матрица символьных строк. + + + + + num + + + целое число или матрица целых чисел, максимальное + количество символов, которые нужно скопировать из + исходника. + + + + + res + + + символьная строка или матрица символьных строк. + + + + + + + Описание + + res = strncpy(str1, num) копирует первые + num символов из исходника str1 + в назначение res. + + + num должен быть тех же размеров, что и + str1, либо num должен быть + целым числом. + + + + Примеры + + + + Смотрите также + + + strcat + + + strcmp + + + + diff --git a/modules/string/help/ru_RU/strrchr.xml b/modules/string/help/ru_RU/strrchr.xml new file mode 100755 index 000000000..35dbbdb98 --- /dev/null +++ b/modules/string/help/ru_RU/strrchr.xml @@ -0,0 +1,82 @@ + + + + + strrchr + + поиск последнего появления символа в строке + + + + Последовательность вызова + res = strrchr(str1, char) + + + Аргументы + + + str1 + + + символьная строка или матрица символьных строк. + + + + + char + + символ или матрица символов. + + + + res + + + символьная строка или матрица символьных строк. + + + + + + + Описание + + res = strrchr(str1, char) возвращает последнее + появление символа char в строке + str1. + + + char должен иметь те же размеры, что и + str1, либо он должен быть только одним символом. + + + + Примеры + + + + Смотрите также + + + strchr + + + strstr + + + + diff --git a/modules/string/help/ru_RU/strrev.xml b/modules/string/help/ru_RU/strrev.xml new file mode 100755 index 000000000..dddea3f47 --- /dev/null +++ b/modules/string/help/ru_RU/strrev.xml @@ -0,0 +1,57 @@ + + + + + strrev + возвращает перевёрнутую строку + + + Последовательность вызова + res = strrev(str1) + + + Аргументы + + + str1 + + + символьная строка или матрица символьных строк. + + + + + res + + + символьная строка или матрица символьных строк. + + + + + + + Описание + + res = strrev(str1) возвращает перевёрнутую строку. + + + + Примеры + + + diff --git a/modules/string/help/ru_RU/strsplit.xml b/modules/string/help/ru_RU/strsplit.xml new file mode 100755 index 000000000..36ea1aae0 --- /dev/null +++ b/modules/string/help/ru_RU/strsplit.xml @@ -0,0 +1,164 @@ + + + + + strsplit + деление строки на вектор строк + + + Последовательность вызова + + v = strsplit(str,ind) + [v, matched_separators] = strsplit(str) + [v, matched_separators] = strsplit(str, matrix_of_strings, limit) + [v, matched_separators] = strsplit(str, regexp_pattern, limit) + + + + Аргументы + + + str + + символьная строка, которую следует разделить. + + + + ind + + + вектор индексов в строго возрастающем порядке в интервале [1 length(str)-1]. + + + + + v + + + результирующий вектор-столбец строк (размер >size(ind,'*')+1). + + + + + matched_separators + + + вектор-столбец совпавших разделителей. + + + + + matrix_of_strings + + + матрица строк, которые ищутся в str. + + + + + regexp_pattern + + шаблон регулярного выражения. + + + + limit + + максимальный предел элементов. + + + + + + Описание + + v= strsplit(str, ind) делит строку + str на вектор строк в местах, указанных с + помощью индексов ind (после каждого символа, + на который указывает индекс в ind). + + + strsplit(str) возвращает то же, что и + strsplit(str,1:length(str)-1). + + + strsplit(str, regexp_pattern, limit) возвращает вектор + строк, каждая из которых является подстрокой из + str, сформированной делением + str на интервалы, сформированные шаблоном + регулярного выражения, чувствительного к регистру. + + + Если есть n совпадений с шаблоном, то + возвращённый массив будет содержать n+1 + элементов. + + + Например, если нет совпадений с шаблоном, то будет возвращён массив + только с одним элементом. Конечно это так же будет и в случае, + когда str пустая. + + + Если установлен предел limit, то возвращённый + массив будет содержать максимальное разрешённое количество + элементов с последним элементом, содержащим весь остаток строки. + + + strsplit(str, matrix_of_strings, limit) делит + str любое количество элементов. Это позволяет + пользователям, не знающим регулярные выражения, делить по разным + разделителям. + + + Если вызывается strsplit() со вторым выходным + аргументом, то возвращается вектор-столбец совпавших разделителей. + + + + Примеры + + + + Смотрите также + + + part + + + strcat + + + tokens + + + regexp + + + + diff --git a/modules/string/help/ru_RU/strspn.xml b/modules/string/help/ru_RU/strspn.xml new file mode 100755 index 000000000..d039b3925 --- /dev/null +++ b/modules/string/help/ru_RU/strspn.xml @@ -0,0 +1,76 @@ + + + + + strspn + получение интервала набора символов в строке + + + Последовательность вызова + res = strspn(str1, str2) + + + Аргументы + + + str1 + + + символьная строка или матрица символьных строк. + + + + + str2 + + + символьная строка или матрица символьных строк. + + + + + res + + матрица символьных строк. + + + + + + Описание + + res = strspn(str1, str2) возвращает длину начальной + части str1, которая состоит только из символов, + которые являются частью str2. + + + str2 должна иметь те же размеры, что и str1, либо str2 должна быть строкой. + + + + Примеры + + + + Смотрите также + + + strcspn + + + + diff --git a/modules/string/help/ru_RU/strstr.xml b/modules/string/help/ru_RU/strstr.xml new file mode 100755 index 000000000..62b11c746 --- /dev/null +++ b/modules/string/help/ru_RU/strstr.xml @@ -0,0 +1,81 @@ + + + + + strstr + обнаружение подстроки + + + Последовательность вызова + res = strstr(haystack, needle) + + + Аргументы + + + haystack + + + символьная строка или матрица символьных строк. + + + + + needle + + + символьная строка или матрица символьных строк. + + + + + res + + + символьная строка или матрица символьных строк. + + + + + + + Описание + + res = strstr(haystack, needle) возвращает матрицу строк + начиная от того места, где в haystack впервые + встретилась needle и до конца + haystack, либо '', если + needle не является частью haystack. + + + + Примеры + + + + Смотрите также + + + strrchr + + + strchr + + + + diff --git a/modules/string/help/ru_RU/strsubst.xml b/modules/string/help/ru_RU/strsubst.xml new file mode 100755 index 000000000..5f91105f4 --- /dev/null +++ b/modules/string/help/ru_RU/strsubst.xml @@ -0,0 +1,109 @@ + + + + + strsubst + + замена одной символьной строки другой + + + + Последовательность вызова + + string_out = strsubst(string_in, searchStr, replaceStr) + string_out = strsubst(string_in, searchStr, replaceStr, [flag]) + + + + Аргументы + + + string_in + + + матрица символьных строк. Строки, в которых ищутся + совпадения с searchStr. + + + + + searchStr + + + символьная строка. Строка, которая ищется в + string_in. + + + + + replaceStr + + + Символьная строка. Строка замены. + + + + + string_out + + + матрица символьных строк. Результат замены строки searchStr строкой + replaceStr в string_in. + + + + + flag + + + символ ("r" для регулярного выражения). + + + + + + + Описание + + Функция strsubst заменяет все совпадения со + строкой searchStr в матрице строк + string_in строкой replaceStr. + + + Когда используется четвёртый параметр "r", то + строка searchStr должна быть регулярным + выражением. Тогда strsubst будет будет + сопоставлять её с string_in и заменять в + соответствии с правилами регулярных выражений. + + + + Примеры + + + + Смотрите также + + + string + + + strings + + + + diff --git a/modules/string/help/ru_RU/strtod.xml b/modules/string/help/ru_RU/strtod.xml new file mode 100755 index 000000000..a95a806eb --- /dev/null +++ b/modules/string/help/ru_RU/strtod.xml @@ -0,0 +1,76 @@ + + + + + strtod + + преобразование строки в число удвоенной точности + + + + Последовательность вызова + + d = strtod(str) + [d, endstr] = strtod(str) + + + + Аргументы + + + str + + + символьная строка или матрица символьных строк. + + + + + d + + + вещественное число или матрица вещественных чисел. + + + + + endstr + + + символьная строка или матрица символьных строк + (следующий символ в str после + числового значения). + + + + + + + Описание + + [d, endstr] = strtod(str) анализирует строки + str, интерпретируя их содержимое как числа с + плавающей запятой, и возвращает их значения в виде вещественных + чисел. + + + + Примеры + + + diff --git a/modules/string/help/ru_RU/strtok.xml b/modules/string/help/ru_RU/strtok.xml new file mode 100755 index 000000000..ede33e85d --- /dev/null +++ b/modules/string/help/ru_RU/strtok.xml @@ -0,0 +1,79 @@ + + + + + strtok + разделение строки на лексемы + + + Последовательность вызова + res = strtok(str, delimiters) + + + Аргументы + + + str + + символьная строка. + + + + delimiters + + символьная строка, разделители + + + + res + + символьная строка. + + + + + + Описание + + Последовательность вызовов res = strtok(str, delimiters) + этой функции делит строку str на лексемы, которые + являются непрерывными последовательностями символов, разделённых + любым из тех символов, которые входят в разделители + delimiters. + + + + Примеры + '' ) + token = strtok(" ,"); + TOKENS = [TOKENS,token]; +end +disp(TOKENS); + ]]> + + + Смотрите также + + + strrchr + + + strchr + + + + diff --git a/modules/string/help/ru_RU/tokenpos.xml b/modules/string/help/ru_RU/tokenpos.xml new file mode 100755 index 000000000..96aeb89b2 --- /dev/null +++ b/modules/string/help/ru_RU/tokenpos.xml @@ -0,0 +1,84 @@ + + + + + tokenpos + + возвращает положение лексем в символьной строке + + + + Последовательность вызова + kdf = tokenpos(str [,delimiter]) + + + Аргументы + + + str + + + символьная строка. Строка в которой ищутся лексемы. + + + + + delimiter + + + (необязательный) символ или вектор символов. Разделители лексем. + + + + + kdf + + + матрица из двух столбцов; первый столбец даёт индекс + начала лексемы, второй даёт индекс последнего символа + лексемы. + + + + + + + Описание + + kdf = tokenpos(str [,delimiter]) ищет лексемы, + содержащиеся в строке str. Значение разделителя delimiter по умолчанию [" ",<Tab>], + где <Tab> стоит вместо + ascii(9). Эта функция возвращает индексы первого и + последнего символов каждой найденной лексемы. + + + + Примеры + + + + Смотрите также + + + strindex + + + tokens + + + + diff --git a/modules/string/help/ru_RU/tokens.xml b/modules/string/help/ru_RU/tokens.xml new file mode 100755 index 000000000..e08b8f4b0 --- /dev/null +++ b/modules/string/help/ru_RU/tokens.xml @@ -0,0 +1,79 @@ + + + + + tokens + возвращает лексемы символьной строки + + + Последовательность вызова + T = tokens(str [,delimiter]) + + + Аргументы + + + str + + + символьная строка. Строка в которой ищутся лексемы. + + + + + delimiter + + + (необязательный) символ или вектор символов. Разделители лексем. + + + + + T + + + вектор-столбец найденных лексем. + + + + + + + Описание + + T = tokens(str [,delimiter]) ищет лексемы, содержащиеся + в строке str. Значение разделителя + delimiter по умолчанию [" ",<Tab>], + где <Tab> стоит вместо ascii(9). + + + + Примеры + + + + Смотрите также + + + strindex + + + tokenpos + + + + -- cgit