diff options
Diffstat (limited to 'modules/string')
881 files changed, 76850 insertions, 0 deletions
diff --git a/modules/string/.libs/libscistring-algo.a b/modules/string/.libs/libscistring-algo.a Binary files differnew file mode 100755 index 000000000..693ecd51f --- /dev/null +++ b/modules/string/.libs/libscistring-algo.a diff --git a/modules/string/.libs/libscistring-algo.la b/modules/string/.libs/libscistring-algo.la new file mode 120000 index 000000000..595c2a313 --- /dev/null +++ b/modules/string/.libs/libscistring-algo.la @@ -0,0 +1 @@ +../libscistring-algo.la
\ No newline at end of file diff --git a/modules/string/.libs/libscistring.a b/modules/string/.libs/libscistring.a Binary files differnew file mode 100755 index 000000000..98d86276a --- /dev/null +++ b/modules/string/.libs/libscistring.a diff --git a/modules/string/.libs/libscistring.la b/modules/string/.libs/libscistring.la new file mode 120000 index 000000000..11bb2c61a --- /dev/null +++ b/modules/string/.libs/libscistring.la @@ -0,0 +1 @@ +../libscistring.la
\ No newline at end of file diff --git a/modules/string/Makefile b/modules/string/Makefile new file mode 100755 index 000000000..f2856dbde --- /dev/null +++ b/modules/string/Makefile @@ -0,0 +1,2136 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# modules/string/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2007 - INRIA - Sylvestre LEDRU +# +# This file is distributed under the same license as the Scilab package. + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr> +# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +# +# 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 +# + +########## +### Makefile included stuff +### Target, variable, suffixes which are supposed to be useful in every makefile.am +########## + + + +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/scilab +pkgincludedir = $(includedir)/scilab +pkglibdir = $(libdir)/scilab +pkglibexecdir = $(libexecdir)/scilab +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \ + $(top_srcdir)/config/depcomp +am__append_1 = java +subdir = modules/string +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \ + $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \ + $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \ + $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \ + $(top_srcdir)/m4/intel_compiler.m4 \ + $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \ + $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \ + $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \ + $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \ + $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \ + $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkglibdir)" \ + "$(DESTDIR)$(libscistring_la_etcdir)" \ + "$(DESTDIR)$(libscistring_la_rootdir)" \ + "$(DESTDIR)$(libscistring_la_sci_gatewaydir)" +LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES) +libscistring_algo_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = src/c/libscistring_algo_la-code2str.lo \ + src/c/libscistring_algo_la-stripblanks.lo \ + src/c/libscistring_algo_la-convstr.lo \ + src/c/libscistring_algo_la-men_Sutils.lo \ + src/c/libscistring_algo_la-tokens.lo \ + src/c/libscistring_algo_la-strsplit.lo \ + src/c/libscistring_algo_la-partfunction.lo \ + src/c/libscistring_algo_la-InitializeString.lo \ + src/c/libscistring_algo_la-setScilabCharactersCodes.lo \ + src/c/libscistring_algo_la-cvstr.lo \ + src/c/libscistring_algo_la-getfastcode.lo \ + src/c/libscistring_algo_la-pcre_private.lo \ + src/c/libscistring_algo_la-pcre_error.lo \ + src/c/libscistring_algo_la-isletter.lo \ + src/c/libscistring_algo_la-isdigit.lo \ + src/c/libscistring_algo_la-strsubst.lo \ + src/c/libscistring_algo_la-stristr.lo \ + src/c/libscistring_algo_la-stringsstrrchr.lo \ + src/c/libscistring_algo_la-stringsstrrev.lo \ + src/c/libscistring_algo_la-stringsCompare.lo \ + src/c/libscistring_algo_la-isalphanum.lo \ + src/c/libscistring_algo_la-StringConvert.lo \ + src/c/libscistring_algo_la-scistrtostr.lo \ + src/c/libscistring_algo_la-stringToDouble.lo \ + src/c/libscistring_algo_la-isnum.lo \ + src/c/libscistring_algo_la-stringToComplex.lo \ + src/c/libscistring_algo_la-complex_array.lo +am__objects_2 = src/cpp/libscistring_algo_la-sort_inter.lo +am__objects_3 = +am_libscistring_algo_la_OBJECTS = $(am__objects_1) $(am__objects_2) \ + $(am__objects_3) +libscistring_algo_la_OBJECTS = $(am_libscistring_algo_la_OBJECTS) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +am__v_lt_1 = +am_libscistring_algo_la_rpath = +#am_libscistring_algo_la_rpath = +am__DEPENDENCIES_1 = +libscistring_la_DEPENDENCIES = libscistring-algo.la \ + $(am__DEPENDENCIES_1) +am__objects_4 = sci_gateway/c/libscistring_la-gw_string.lo \ + sci_gateway/c/libscistring_la-sci_ascii.lo \ + sci_gateway/c/libscistring_la-sci_code2str.lo \ + sci_gateway/c/libscistring_la-sci_convstr.lo \ + sci_gateway/c/libscistring_la-sci_emptystr.lo \ + sci_gateway/c/libscistring_la-sci_grep.lo \ + sci_gateway/c/libscistring_la-sci_length.lo \ + sci_gateway/c/libscistring_la-sci_part.lo \ + sci_gateway/c/libscistring_la-sci_str2code.lo \ + sci_gateway/c/libscistring_la-sci_strcat.lo \ + sci_gateway/c/libscistring_la-sci_strindex.lo \ + sci_gateway/c/libscistring_la-sci_string.lo \ + sci_gateway/c/libscistring_la-sci_stripblanks.lo \ + sci_gateway/c/libscistring_la-sci_strsplit.lo \ + sci_gateway/c/libscistring_la-sci_strsubst.lo \ + sci_gateway/c/libscistring_la-sci_tokens.lo \ + sci_gateway/c/libscistring_la-sci_strcmp.lo \ + sci_gateway/c/libscistring_la-sci_isletter.lo \ + sci_gateway/c/libscistring_la-sci_isdigit.lo \ + sci_gateway/c/libscistring_la-sci_isalphanum.lo \ + sci_gateway/c/libscistring_la-sci_isascii.lo \ + sci_gateway/c/libscistring_la-sci_strchr.lo \ + sci_gateway/c/libscistring_la-sci_strcspn.lo \ + sci_gateway/c/libscistring_la-sci_strncpy.lo \ + sci_gateway/c/libscistring_la-sci_strrev.lo \ + sci_gateway/c/libscistring_la-sci_strspn.lo \ + sci_gateway/c/libscistring_la-sci_strstr.lo \ + sci_gateway/c/libscistring_la-sci_strtod.lo \ + sci_gateway/c/libscistring_la-sci_strtok.lo \ + sci_gateway/c/libscistring_la-sci_regexp.lo \ + sci_gateway/c/libscistring_la-sci_isnum.lo +am__objects_5 = sci_gateway/fortran/sci_f_string.lo \ + sci_gateway/fortran/strops.lo +am_libscistring_la_OBJECTS = $(am__objects_4) $(am__objects_5) +libscistring_la_OBJECTS = $(am_libscistring_la_OBJECTS) +libscistring_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=F77 \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(F77LD) \ + $(AM_FFLAGS) $(FFLAGS) $(libscistring_la_LDFLAGS) $(LDFLAGS) \ + -o $@ +am_libscistring_la_rpath = +#am_libscistring_la_rpath = -rpath $(pkglibdir) +AM_V_P = $(am__v_P_$(V)) +am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I. -I$(top_builddir)/modules/core/includes +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_$(V)) +am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) +am__v_CXX_0 = @echo " CXX " $@; +am__v_CXX_1 = +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_$(V)) +am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CXXLD_0 = @echo " CXXLD " $@; +am__v_CXXLD_1 = +F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) +LTF77COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=F77 $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) +AM_V_F77 = $(am__v_F77_$(V)) +am__v_F77_ = $(am__v_F77_$(AM_DEFAULT_VERBOSITY)) +am__v_F77_0 = @echo " F77 " $@; +am__v_F77_1 = +F77LD = $(F77) +F77LINK = $(LIBTOOL) $(AM_V_lt) --tag=F77 $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(F77LD) $(AM_FFLAGS) $(FFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_F77LD = $(am__v_F77LD_$(V)) +am__v_F77LD_ = $(am__v_F77LD_$(AM_DEFAULT_VERBOSITY)) +am__v_F77LD_0 = @echo " F77LD " $@; +am__v_F77LD_1 = +SOURCES = $(libscistring_algo_la_SOURCES) $(libscistring_la_SOURCES) +DIST_SOURCES = $(libscistring_algo_la_SOURCES) \ + $(libscistring_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(libscistring_la_etc_DATA) $(libscistring_la_root_DATA) \ + $(libscistring_la_sci_gateway_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing aclocal-1.14 +ALL_LINGUAS = en_US fr_FR zh_CN zh_TW ru_RU ca_ES de_DE es_ES pt_BR ja_JP it_IT uk_UA pl_PL cs_CZ +ALL_LINGUAS_DOC = en_US fr_FR pt_BR ja_JP ru_RU +AMTAR = $${TAR-tar} +AM_DEFAULT_VERBOSITY = 1 +ANT = /usr/bin/ant +ANTLR = /usr/share/java/antlr.jar +AR = ar +ARPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -larpack +ASM3 = /usr/share/java/asm3-3.3.2.jar +AUTOCONF = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoconf +AUTOHEADER = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoheader +AUTOMAKE = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing automake-1.14 +AVALON_FRAMEWORK = /home/shashank/scilab-master_5.5.2/thirdparty/avalon-framework.jar +AWK = mawk +BATIK = /home/shashank/scilab-master_5.5.2/thirdparty/batik-all-1.7.jar +BLAS_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lblas +CC = gcc +CCACHE = +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CHECKSTYLE = +COBERTURA = /usr/share/java/cobertura.jar +COMMONS_BEANUTILS = +COMMONS_IO = /home/shashank/scilab-master_5.5.2/thirdparty/commons-io.jar +COMMONS_LOGGING = /home/shashank/scilab-master_5.5.2/thirdparty/commons-logging.jar +CPP = gcc -E +CPPFLAGS = +CURL_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +CURL_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/curl-config +CURL_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lcurl -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lssl -lcrypto -lrt -lz +CURL_VERSION = libcurl 7.19.7 +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DEFS = -DHAVE_CONFIG_H +DEMOTOOLS_ENABLE = yes +DEPDIR = .deps +DLLTOOL = false +DOCBOOK_ROOT = /home/shashank/scilab-master_5.5.2/thirdparty/docbook/ +DOXYGEN_BIN = +DSYMUTIL = +DUMPBIN = +ECHO_C = +ECHO_N = -n +ECHO_T = +ECJ = /home/shashank/scilab-master_5.5.2/thirdparty/ecj.jar +EGREP = /bin/grep -E +EXEEXT = +F77 = gfortran +FFLAGS = -g -O2 +FFTW3_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lfftw3 +FFTW_ENABLE = yes +FGREP = /bin/grep -F +FLEXDOCK = /home/shashank/scilab-master_5.5.2/thirdparty/flexdock-1.2.4.jar +FLIBS = -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lquadmath +FOP = /home/shashank/scilab-master_5.5.2/thirdparty/fop.jar +FREEHEP_GRAPHICS2D = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphics2d.jar +FREEHEP_GRAPHICSIO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio.jar +FREEHEP_GRAPHICSIO_EMF = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio-emf.jar +FREEHEP_IO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-io.jar +FREEHEP_UTIL = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-util.jar +GENHTML = +GETTEXT_MACRO_VERSION = 0.19 +GIWS_BIN = +GLUEGEN2_RT = /home/shashank/scilab-master_5.5.2/thirdparty/gluegen2-rt.jar +GMSGFMT = /usr/bin/msgfmt +GMSGFMT_015 = /usr/bin/msgfmt +GRAPHICS_ENABLE = yes +GREP = /bin/grep +GUI_ENABLE = yes +HDF5_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +HDF5_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lhdf5 -lhdf5_hl +HELP_ENABLE = yes +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +INTLLIBS = +INTL_MACOSX_LIBS = +JAR = /usr/lib/jvm/java-8-openjdk-amd64/bin/jar +JAVA = /usr/lib/jvm/java-8-openjdk-amd64/bin/java +JAVAC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javac +JAVAC_DEBUG = off +JAVADOC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc +JAVAH = /usr/lib/jvm/java-8-openjdk-amd64/bin/javah +JAVASCI_ENABLE = yes +JAVA_ENABLE = yes +JAVA_G = /usr/lib/jvm/java-8-openjdk-amd64/bin/java +JAVA_HOME = /usr/lib/jvm/java-8-openjdk-amd64 +JAVA_JNI_INCLUDE = -I/usr/lib/jvm/java-8-openjdk-amd64/include -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux +JAVA_JNI_LIBS = -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 -ljava -lverify -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljvm +JDB = /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb +JEUCLID_CORE = /home/shashank/scilab-master_5.5.2/thirdparty/jeuclid-core.jar +JGRAPHX = /home/shashank/scilab-master_5.5.2/thirdparty/jgraphx.jar +JHALL = /home/shashank/scilab-master_5.5.2/thirdparty/jhall.jar +JLATEXMATH = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-1.0.3.jar +JLATEXMATH_FOP = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-fop-1.0.3.jar +JOGL2 = /home/shashank/scilab-master_5.5.2/thirdparty/jogl2.jar +JROSETTA_API = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-API.jar +JROSETTA_ENGINE = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-engine.jar +JUNIT4 = /usr/share/java/junit4.jar +LAPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -llapack +LCOV = +LD = /usr/bin/ld -m elf_x86_64 +LDFLAGS = -Wl,--no-as-needed +LIBICONV = -liconv +LIBINTL = +LIBM = -lm +LIBOBJS = +LIBS = -lpthread -ldl -lcurses -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIPO = +LN_S = ln -s +LOGGING_LEVEL = SEVERE +LOOKS = /home/shashank/scilab-master_5.5.2/thirdparty/looks-2.1.1.jar +LTLIBICONV = -liconv +LTLIBINTL = +LTLIBOBJS = +MAINT = # +MAKEINFO = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing makeinfo +MANIFEST_TOOL = : +MATIO_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +MATIO_ENABLE = yes +MATIO_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lm -lz -lmatio -lhdf5 +MKDIR_P = /bin/mkdir -p +MPI_ENABLE = no +MSGCAT = /usr/bin/msgcat +MSGFMT = /usr/bin/msgfmt +MSGFMT_015 = /usr/bin/msgfmt +MSGMERGE = /usr/bin/msgmerge +NM = nm +NMEDIT = +OBJDUMP = objdump +OBJEXT = o +OCAMLC = ocamlc +OCAMLDEP = ocamldep +OCAMLLEX = ocamllex +OCAMLOPT = ocamlopt +OCAMLYACC = ocamlyacc +OPENMPI_CC = +OPENMPI_CFLAGS = +OPENMPI_CXX = +OPENMPI_CXXFLAGS = +OPENMPI_LIBS = +OPENMP_CFLAGS = -fopenmp +OPENMP_CXXFLAGS = -fopenmp +OPENMP_ENABLE = yes +OPENMP_LIBS = -lgomp -lstdc++ +OTOOL = +OTOOL64 = +PACKAGE = scilab +PACKAGE_BUGREPORT = http://bugzilla.scilab.org/ +PACKAGE_NAME = Scilab +PACKAGE_STRING = Scilab 5 +PACKAGE_TARNAME = scilab +PACKAGE_URL = +PACKAGE_VERSION = 5 +PATH_SEPARATOR = : +PCRE_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +PCRE_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/pcre-config +PCRE_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lpcreposix -lpcre +PCRE_VERSION = 8.35 +PKG_CONFIG = /usr/bin/pkg-config +POSUB = po +POW_LIB = +PYTHON = +RANLIB = ranlib +RELOCATABLE = no +RT_LIB = -lrt +SAXON = /home/shashank/scilab-master_5.5.2/thirdparty/saxon9he.jar +SCILAB_BINARY_VERSION = 5.5.2 +SCILAB_LIBRARY_VERSION = 5:5:2 +SCILAB_VERSION_MAINTENANCE = 2 +SCILAB_VERSION_MAJOR = 5 +SCILAB_VERSION_MINOR = 5 +SCIRENDERER = ${modules.dir}/scirenderer/${build.jar.dir}/scirenderer.jar +SCIRENDERER_CP = $SCILAB/modules/scirenderer/jar/scirenderer.jar +SCI_CFLAGS = -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector +SCI_CXXFLAGS = -DNDEBUG -fno-stack-protector +SCI_FFLAGS = -DNDEBUG -m64 -fPIC +SCI_LDFLAGS = +SED = /bin/sed +SET_MAKE = +SET_RELOCATABLE = +SHELL = /bin/bash +SKINLF = /home/shashank/scilab-master_5.5.2/thirdparty/skinlf.jar +SPLINT = no +STRIP = strip +SWIG_BIN = +SWIG_JAVA = +SWIG_RUNTIME_LIBS_DIR = +SWIG_SCILAB = +TCLTK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -ltk8.5 -L/home/shashank/scilab-master_5.5.2/usr/lib -ltcl8.5 -ldl +TCL_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include +TK_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include +UMFPACK_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +UMFPACK_ENABLE = yes +UMFPACK_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lumfpack -lamd +USE_NLS = yes +VERSION = 5 +WITH_OCAML = +WITH_TKSCI = yes +XCOS_ENABLE = yes +XGETTEXT = /usr/bin/xgettext +XGETTEXT_015 = /usr/bin/xgettext +XGETTEXT_EXTRA_OPTIONS = +XMKMF = +XMLGRAPHICS_COMMONS = /home/shashank/scilab-master_5.5.2/thirdparty/xmlgraphics-commons-1.4.jar +XML_APIS_EXT = /home/shashank/scilab-master_5.5.2/thirdparty/xml-apis-ext.jar +XML_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/xml2-config +XML_FLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include/libxml2 +XML_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lxml2 -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lz -lm -ldl +XML_VERSION = 2.9.1 +X_CFLAGS = +X_EXTRA_LIBS = +X_LIBS = +X_PRE_LIBS = +abs_builddir = /home/shashank/scilab-master_5.5.2/modules/string +abs_srcdir = /home/shashank/scilab-master_5.5.2/modules/string +abs_top_builddir = /home/shashank/scilab-master_5.5.2 +abs_top_srcdir = /home/shashank/scilab-master_5.5.2 +ac_ct_AR = ar +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_DUMPBIN = +ac_ct_F77 = gfortran +am__include = include +am__leading_dot = . +am__quote = +am__tar = $${TAR-tar} chof - "$$tardir" +am__untar = $${TAR-tar} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +cxx_present = yes +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = ${SHELL} /home/shashank/scilab-master_5.5.2/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = $(MKDIR_P) +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_build_prefix = ../../ +top_builddir = ../.. +top_srcdir = ../.. +STRING_C_SOURCES = src/c/code2str.c \ +src/c/stripblanks.c \ +src/c/convstr.c \ +src/c/men_Sutils.c \ +src/c/tokens.c \ +src/c/strsplit.c \ +src/c/partfunction.c \ +src/c/InitializeString.c \ +src/c/setScilabCharactersCodes.c \ +src/c/cvstr.c \ +src/c/getfastcode.c \ +src/c/pcre_private.c \ +src/c/pcre_error.c \ +src/c/isletter.c \ +src/c/isdigit.c \ +src/c/strsubst.c \ +src/c/stristr.c \ +src/c/stringsstrrchr.c \ +src/c/stringsstrrev.c \ +src/c/stringsCompare.c \ +src/c/isalphanum.c \ +src/c/StringConvert.c \ +src/c/scistrtostr.c \ +src/c/stringToDouble.c \ +src/c/isnum.c \ +src/c/stringToComplex.c \ +src/c/complex_array.c + +STRING_CPP_SOURCES = \ + src/cpp/sort_inter.cpp + +STRING_FORTRAN_SOURCES = +GATEWAY_C_SOURCES = sci_gateway/c/gw_string.c \ +sci_gateway/c/sci_ascii.c \ +sci_gateway/c/sci_code2str.c \ +sci_gateway/c/sci_convstr.c \ +sci_gateway/c/sci_emptystr.c \ +sci_gateway/c/sci_grep.c \ +sci_gateway/c/sci_length.c \ +sci_gateway/c/sci_part.c \ +sci_gateway/c/sci_str2code.c \ +sci_gateway/c/sci_strcat.c \ +sci_gateway/c/sci_strindex.c \ +sci_gateway/c/sci_string.c \ +sci_gateway/c/sci_stripblanks.c \ +sci_gateway/c/sci_strsplit.c \ +sci_gateway/c/sci_strsubst.c \ +sci_gateway/c/sci_tokens.c \ +sci_gateway/c/sci_strcmp.c \ +sci_gateway/c/sci_isletter.c \ +sci_gateway/c/sci_isdigit.c \ +sci_gateway/c/sci_isalphanum.c \ +sci_gateway/c/sci_isascii.c \ +sci_gateway/c/sci_strchr.c \ +sci_gateway/c/sci_strcspn.c \ +sci_gateway/c/sci_strncpy.c \ +sci_gateway/c/sci_strrev.c \ +sci_gateway/c/sci_strspn.c \ +sci_gateway/c/sci_strstr.c \ +sci_gateway/c/sci_strtod.c \ +sci_gateway/c/sci_strtok.c \ +sci_gateway/c/sci_regexp.c \ +sci_gateway/c/sci_isnum.c + +GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/sci_f_string.f \ +sci_gateway/fortran/strops.f + +libscistring_la_CPPFLAGS = -I$(srcdir)/src/c \ + -I$(srcdir)/includes/ \ + -I$(srcdir)/src/cpp/ \ + -I$(top_srcdir)/modules/functions/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + -I$(top_srcdir)/modules/spreadsheet/src/c/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + $(PCRE_CFLAGS) \ + $(AM_CPPFLAGS) + +#pkglib_LTLIBRARIES = libscistring.la +noinst_LTLIBRARIES = libscistring-algo.la libscistring.la +#noinst_LTLIBRARIES = libscistring-algo.la +libscistring_la_LDFLAGS = $(AM_LDFLAGS) +libscistring_algo_la_SOURCES = $(STRING_C_SOURCES) $(STRING_CPP_SOURCES) $(STRING_FORTRAN_SOURCES) +libscistring_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) +libscistring_algo_la_CPPFLAGS = $(libscistring_la_CPPFLAGS) + +# For the code check (splint) +CHECK_SRC = $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES) +INCLUDE_FLAGS = $(libscistring_la_CPPFLAGS) + +# commented since it is the first module to be processed +libscistring_la_LIBADD = libscistring-algo.la $(PCRE_LIBS) + +#### Target ###### +modulename = string + +#### string : Conf files #### +libscistring_la_rootdir = $(mydatadir) +libscistring_la_root_DATA = license.txt + +####string : init scripts #### +libscistring_la_etcdir = $(mydatadir)/etc +libscistring_la_etc_DATA = etc/string.quit etc/string.start + +####string : gateway declaration #### +libscistring_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libscistring_la_sci_gateway_DATA = sci_gateway/string_gateway.xml + +# Where all the Scilab stuff is installed (macros, help, ...) +mydatadir = $(pkgdatadir)/modules/$(modulename) + +# Set AM_* SCI detected settings +AM_CPPFLAGS = $(SCI_CPPFLAGS) +AM_CFLAGS = $(SCI_CFLAGS) +AM_CXXFLAGS = $(SCI_CXXFLAGS) +# append includes to AM_FFLAGS to manage fortran includes +AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/ + +# Tag shared libraries with the Scilab version +AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION) + +# splint options +SPLINT_OPTIONS = -weak -booltype BOOL + +########################### JAVA ###################################### +#### We are delegating java compilation to ant... Thanks to that +#### the procedure will be the same with Microsoft Windows (C) +#### and Linux/Unix +####################################################################### +TARGETS_ALL = $(am__append_1) + +################ MACROS ###################### +# Rule to build a macro +# NOT USED AT THE MOMENT +SUFFIXES = .sci + +########### INSTALL DOCUMENTATION ################### + +# Install documentation files into the right target +# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because +# automake needs the html files to be present which is not the case when +# we are building Scilab + +# Where it should be installed +pkgdocdir = $(mydatadir) + +# What is the mask of the help source +DOCMASKXML = *.xml + +# What is the mask of the MathML sources +DOCMASKMML = *.mml + +########### INSTALL DATA ################### +# Install macros, help & demos +# Where it should be installed +pkgmacrosdir = $(mydatadir) +# Which directory we process +MACRODIRS = macros/ +# Mask of the Scilab sources macros +MACROMASK = *.sci +# Mask of the Scilab executable sources macros +MACROBUILDMASK = *.sce +# Mask of the Scilab compiled macros +MACROBINMASK = *.bin +# List of the standard directory for tests +TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java +# Where the demos should be installed +pkgdemosdir = $(mydatadir) +# List of the standard directory for demos +DEMOS_DIR = demos +# List of the standard directory for examples +EXAMPLES_DIR = examples +# Where to export JAVA archives (.jar) +JARDIR = jar/ +# JAR files mask +JARMASK = *.jar +# Chapter file +HELP_CHAPTERDIR = help/ +HELP_CHAPTERFILE = addchapter.sce +HELP_CHAPTERLANG = en_US fr_FR pt_BR +all: all-am + +.SUFFIXES: +.SUFFIXES: .sci .bin .c .cpp .f .lo .o .obj +$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/string/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/string/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; +$(top_srcdir)/Makefile.incl.am: + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: # $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): # $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ + } + +uninstall-pkglibLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ + done + +clean-pkglibLTLIBRARIES: + -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) + @list='$(pkglib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +src/c/$(am__dirstamp): + @$(MKDIR_P) src/c + @: > src/c/$(am__dirstamp) +src/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/c/$(DEPDIR) + @: > src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-code2str.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stripblanks.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-convstr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-men_Sutils.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-tokens.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-strsplit.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-partfunction.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-InitializeString.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-setScilabCharactersCodes.lo: \ + src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-cvstr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-getfastcode.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-pcre_private.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-pcre_error.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-isletter.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-isdigit.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-strsubst.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stristr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringsstrrchr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringsstrrev.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringsCompare.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-isalphanum.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-StringConvert.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-scistrtostr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringToDouble.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-isnum.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringToComplex.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-complex_array.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/cpp/$(am__dirstamp): + @$(MKDIR_P) src/cpp + @: > src/cpp/$(am__dirstamp) +src/cpp/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/cpp/$(DEPDIR) + @: > src/cpp/$(DEPDIR)/$(am__dirstamp) +src/cpp/libscistring_algo_la-sort_inter.lo: src/cpp/$(am__dirstamp) \ + src/cpp/$(DEPDIR)/$(am__dirstamp) + +libscistring-algo.la: $(libscistring_algo_la_OBJECTS) $(libscistring_algo_la_DEPENDENCIES) $(EXTRA_libscistring_algo_la_DEPENDENCIES) + $(AM_V_CXXLD)$(CXXLINK) $(am_libscistring_algo_la_rpath) $(libscistring_algo_la_OBJECTS) $(libscistring_algo_la_LIBADD) $(LIBS) +sci_gateway/c/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c + @: > sci_gateway/c/$(am__dirstamp) +sci_gateway/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c/$(DEPDIR) + @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-gw_string.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_ascii.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_code2str.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_convstr.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_emptystr.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_grep.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_length.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_part.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_str2code.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strcat.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strindex.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_string.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_stripblanks.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strsplit.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strsubst.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_tokens.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strcmp.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isletter.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isdigit.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isalphanum.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isascii.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strchr.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strcspn.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strncpy.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strrev.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strspn.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strstr.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strtod.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strtok.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_regexp.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isnum.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/fortran + @: > sci_gateway/fortran/$(am__dirstamp) +sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/fortran/$(DEPDIR) + @: > sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/sci_f_string.lo: \ + sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/strops.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) + +libscistring.la: $(libscistring_la_OBJECTS) $(libscistring_la_DEPENDENCIES) $(EXTRA_libscistring_la_DEPENDENCIES) + $(AM_V_F77LD)$(libscistring_la_LINK) $(am_libscistring_la_rpath) $(libscistring_la_OBJECTS) $(libscistring_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f sci_gateway/c/*.$(OBJEXT) + -rm -f sci_gateway/c/*.lo + -rm -f sci_gateway/fortran/*.$(OBJEXT) + -rm -f sci_gateway/fortran/*.lo + -rm -f src/c/*.$(OBJEXT) + -rm -f src/c/*.lo + -rm -f src/cpp/*.$(OBJEXT) + -rm -f src/cpp/*.lo + +distclean-compile: + -rm -f *.tab.c + +include sci_gateway/c/$(DEPDIR)/libscistring_la-gw_string.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_ascii.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_code2str.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_convstr.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_emptystr.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_grep.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isalphanum.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isascii.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isdigit.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isletter.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isnum.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_length.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_part.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_regexp.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_str2code.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcat.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strchr.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcmp.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcspn.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strindex.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_string.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_stripblanks.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strncpy.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strrev.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsplit.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strspn.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strstr.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsubst.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtod.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtok.Plo +include sci_gateway/c/$(DEPDIR)/libscistring_la-sci_tokens.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-InitializeString.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-StringConvert.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-code2str.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-complex_array.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-convstr.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-cvstr.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-getfastcode.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-isalphanum.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-isdigit.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-isletter.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-isnum.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-men_Sutils.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-partfunction.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-pcre_error.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-pcre_private.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-scistrtostr.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-setScilabCharactersCodes.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-stringToComplex.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-stringToDouble.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-stringsCompare.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrchr.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrev.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-stripblanks.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-stristr.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-strsplit.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-strsubst.Plo +include src/c/$(DEPDIR)/libscistring_algo_la-tokens.Plo +include src/cpp/$(DEPDIR)/libscistring_algo_la-sort_inter.Plo + +.c.o: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ $< + +.c.obj: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Plo +# $(AM_V_CC)source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $< + +src/c/libscistring_algo_la-code2str.lo: src/c/code2str.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-code2str.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-code2str.Tpo -c -o src/c/libscistring_algo_la-code2str.lo `test -f 'src/c/code2str.c' || echo '$(srcdir)/'`src/c/code2str.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-code2str.Tpo src/c/$(DEPDIR)/libscistring_algo_la-code2str.Plo +# $(AM_V_CC)source='src/c/code2str.c' object='src/c/libscistring_algo_la-code2str.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-code2str.lo `test -f 'src/c/code2str.c' || echo '$(srcdir)/'`src/c/code2str.c + +src/c/libscistring_algo_la-stripblanks.lo: src/c/stripblanks.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stripblanks.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stripblanks.Tpo -c -o src/c/libscistring_algo_la-stripblanks.lo `test -f 'src/c/stripblanks.c' || echo '$(srcdir)/'`src/c/stripblanks.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stripblanks.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stripblanks.Plo +# $(AM_V_CC)source='src/c/stripblanks.c' object='src/c/libscistring_algo_la-stripblanks.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stripblanks.lo `test -f 'src/c/stripblanks.c' || echo '$(srcdir)/'`src/c/stripblanks.c + +src/c/libscistring_algo_la-convstr.lo: src/c/convstr.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-convstr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-convstr.Tpo -c -o src/c/libscistring_algo_la-convstr.lo `test -f 'src/c/convstr.c' || echo '$(srcdir)/'`src/c/convstr.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-convstr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-convstr.Plo +# $(AM_V_CC)source='src/c/convstr.c' object='src/c/libscistring_algo_la-convstr.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-convstr.lo `test -f 'src/c/convstr.c' || echo '$(srcdir)/'`src/c/convstr.c + +src/c/libscistring_algo_la-men_Sutils.lo: src/c/men_Sutils.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-men_Sutils.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-men_Sutils.Tpo -c -o src/c/libscistring_algo_la-men_Sutils.lo `test -f 'src/c/men_Sutils.c' || echo '$(srcdir)/'`src/c/men_Sutils.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-men_Sutils.Tpo src/c/$(DEPDIR)/libscistring_algo_la-men_Sutils.Plo +# $(AM_V_CC)source='src/c/men_Sutils.c' object='src/c/libscistring_algo_la-men_Sutils.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-men_Sutils.lo `test -f 'src/c/men_Sutils.c' || echo '$(srcdir)/'`src/c/men_Sutils.c + +src/c/libscistring_algo_la-tokens.lo: src/c/tokens.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-tokens.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-tokens.Tpo -c -o src/c/libscistring_algo_la-tokens.lo `test -f 'src/c/tokens.c' || echo '$(srcdir)/'`src/c/tokens.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-tokens.Tpo src/c/$(DEPDIR)/libscistring_algo_la-tokens.Plo +# $(AM_V_CC)source='src/c/tokens.c' object='src/c/libscistring_algo_la-tokens.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-tokens.lo `test -f 'src/c/tokens.c' || echo '$(srcdir)/'`src/c/tokens.c + +src/c/libscistring_algo_la-strsplit.lo: src/c/strsplit.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-strsplit.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-strsplit.Tpo -c -o src/c/libscistring_algo_la-strsplit.lo `test -f 'src/c/strsplit.c' || echo '$(srcdir)/'`src/c/strsplit.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-strsplit.Tpo src/c/$(DEPDIR)/libscistring_algo_la-strsplit.Plo +# $(AM_V_CC)source='src/c/strsplit.c' object='src/c/libscistring_algo_la-strsplit.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-strsplit.lo `test -f 'src/c/strsplit.c' || echo '$(srcdir)/'`src/c/strsplit.c + +src/c/libscistring_algo_la-partfunction.lo: src/c/partfunction.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-partfunction.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-partfunction.Tpo -c -o src/c/libscistring_algo_la-partfunction.lo `test -f 'src/c/partfunction.c' || echo '$(srcdir)/'`src/c/partfunction.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-partfunction.Tpo src/c/$(DEPDIR)/libscistring_algo_la-partfunction.Plo +# $(AM_V_CC)source='src/c/partfunction.c' object='src/c/libscistring_algo_la-partfunction.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-partfunction.lo `test -f 'src/c/partfunction.c' || echo '$(srcdir)/'`src/c/partfunction.c + +src/c/libscistring_algo_la-InitializeString.lo: src/c/InitializeString.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-InitializeString.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-InitializeString.Tpo -c -o src/c/libscistring_algo_la-InitializeString.lo `test -f 'src/c/InitializeString.c' || echo '$(srcdir)/'`src/c/InitializeString.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-InitializeString.Tpo src/c/$(DEPDIR)/libscistring_algo_la-InitializeString.Plo +# $(AM_V_CC)source='src/c/InitializeString.c' object='src/c/libscistring_algo_la-InitializeString.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-InitializeString.lo `test -f 'src/c/InitializeString.c' || echo '$(srcdir)/'`src/c/InitializeString.c + +src/c/libscistring_algo_la-setScilabCharactersCodes.lo: src/c/setScilabCharactersCodes.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-setScilabCharactersCodes.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-setScilabCharactersCodes.Tpo -c -o src/c/libscistring_algo_la-setScilabCharactersCodes.lo `test -f 'src/c/setScilabCharactersCodes.c' || echo '$(srcdir)/'`src/c/setScilabCharactersCodes.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-setScilabCharactersCodes.Tpo src/c/$(DEPDIR)/libscistring_algo_la-setScilabCharactersCodes.Plo +# $(AM_V_CC)source='src/c/setScilabCharactersCodes.c' object='src/c/libscistring_algo_la-setScilabCharactersCodes.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-setScilabCharactersCodes.lo `test -f 'src/c/setScilabCharactersCodes.c' || echo '$(srcdir)/'`src/c/setScilabCharactersCodes.c + +src/c/libscistring_algo_la-cvstr.lo: src/c/cvstr.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-cvstr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-cvstr.Tpo -c -o src/c/libscistring_algo_la-cvstr.lo `test -f 'src/c/cvstr.c' || echo '$(srcdir)/'`src/c/cvstr.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-cvstr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-cvstr.Plo +# $(AM_V_CC)source='src/c/cvstr.c' object='src/c/libscistring_algo_la-cvstr.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-cvstr.lo `test -f 'src/c/cvstr.c' || echo '$(srcdir)/'`src/c/cvstr.c + +src/c/libscistring_algo_la-getfastcode.lo: src/c/getfastcode.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-getfastcode.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-getfastcode.Tpo -c -o src/c/libscistring_algo_la-getfastcode.lo `test -f 'src/c/getfastcode.c' || echo '$(srcdir)/'`src/c/getfastcode.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-getfastcode.Tpo src/c/$(DEPDIR)/libscistring_algo_la-getfastcode.Plo +# $(AM_V_CC)source='src/c/getfastcode.c' object='src/c/libscistring_algo_la-getfastcode.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-getfastcode.lo `test -f 'src/c/getfastcode.c' || echo '$(srcdir)/'`src/c/getfastcode.c + +src/c/libscistring_algo_la-pcre_private.lo: src/c/pcre_private.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-pcre_private.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-pcre_private.Tpo -c -o src/c/libscistring_algo_la-pcre_private.lo `test -f 'src/c/pcre_private.c' || echo '$(srcdir)/'`src/c/pcre_private.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-pcre_private.Tpo src/c/$(DEPDIR)/libscistring_algo_la-pcre_private.Plo +# $(AM_V_CC)source='src/c/pcre_private.c' object='src/c/libscistring_algo_la-pcre_private.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-pcre_private.lo `test -f 'src/c/pcre_private.c' || echo '$(srcdir)/'`src/c/pcre_private.c + +src/c/libscistring_algo_la-pcre_error.lo: src/c/pcre_error.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-pcre_error.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-pcre_error.Tpo -c -o src/c/libscistring_algo_la-pcre_error.lo `test -f 'src/c/pcre_error.c' || echo '$(srcdir)/'`src/c/pcre_error.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-pcre_error.Tpo src/c/$(DEPDIR)/libscistring_algo_la-pcre_error.Plo +# $(AM_V_CC)source='src/c/pcre_error.c' object='src/c/libscistring_algo_la-pcre_error.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-pcre_error.lo `test -f 'src/c/pcre_error.c' || echo '$(srcdir)/'`src/c/pcre_error.c + +src/c/libscistring_algo_la-isletter.lo: src/c/isletter.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-isletter.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-isletter.Tpo -c -o src/c/libscistring_algo_la-isletter.lo `test -f 'src/c/isletter.c' || echo '$(srcdir)/'`src/c/isletter.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-isletter.Tpo src/c/$(DEPDIR)/libscistring_algo_la-isletter.Plo +# $(AM_V_CC)source='src/c/isletter.c' object='src/c/libscistring_algo_la-isletter.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-isletter.lo `test -f 'src/c/isletter.c' || echo '$(srcdir)/'`src/c/isletter.c + +src/c/libscistring_algo_la-isdigit.lo: src/c/isdigit.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-isdigit.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-isdigit.Tpo -c -o src/c/libscistring_algo_la-isdigit.lo `test -f 'src/c/isdigit.c' || echo '$(srcdir)/'`src/c/isdigit.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-isdigit.Tpo src/c/$(DEPDIR)/libscistring_algo_la-isdigit.Plo +# $(AM_V_CC)source='src/c/isdigit.c' object='src/c/libscistring_algo_la-isdigit.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-isdigit.lo `test -f 'src/c/isdigit.c' || echo '$(srcdir)/'`src/c/isdigit.c + +src/c/libscistring_algo_la-strsubst.lo: src/c/strsubst.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-strsubst.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-strsubst.Tpo -c -o src/c/libscistring_algo_la-strsubst.lo `test -f 'src/c/strsubst.c' || echo '$(srcdir)/'`src/c/strsubst.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-strsubst.Tpo src/c/$(DEPDIR)/libscistring_algo_la-strsubst.Plo +# $(AM_V_CC)source='src/c/strsubst.c' object='src/c/libscistring_algo_la-strsubst.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-strsubst.lo `test -f 'src/c/strsubst.c' || echo '$(srcdir)/'`src/c/strsubst.c + +src/c/libscistring_algo_la-stristr.lo: src/c/stristr.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stristr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stristr.Tpo -c -o src/c/libscistring_algo_la-stristr.lo `test -f 'src/c/stristr.c' || echo '$(srcdir)/'`src/c/stristr.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stristr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stristr.Plo +# $(AM_V_CC)source='src/c/stristr.c' object='src/c/libscistring_algo_la-stristr.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stristr.lo `test -f 'src/c/stristr.c' || echo '$(srcdir)/'`src/c/stristr.c + +src/c/libscistring_algo_la-stringsstrrchr.lo: src/c/stringsstrrchr.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringsstrrchr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrchr.Tpo -c -o src/c/libscistring_algo_la-stringsstrrchr.lo `test -f 'src/c/stringsstrrchr.c' || echo '$(srcdir)/'`src/c/stringsstrrchr.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrchr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrchr.Plo +# $(AM_V_CC)source='src/c/stringsstrrchr.c' object='src/c/libscistring_algo_la-stringsstrrchr.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringsstrrchr.lo `test -f 'src/c/stringsstrrchr.c' || echo '$(srcdir)/'`src/c/stringsstrrchr.c + +src/c/libscistring_algo_la-stringsstrrev.lo: src/c/stringsstrrev.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringsstrrev.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrev.Tpo -c -o src/c/libscistring_algo_la-stringsstrrev.lo `test -f 'src/c/stringsstrrev.c' || echo '$(srcdir)/'`src/c/stringsstrrev.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrev.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrev.Plo +# $(AM_V_CC)source='src/c/stringsstrrev.c' object='src/c/libscistring_algo_la-stringsstrrev.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringsstrrev.lo `test -f 'src/c/stringsstrrev.c' || echo '$(srcdir)/'`src/c/stringsstrrev.c + +src/c/libscistring_algo_la-stringsCompare.lo: src/c/stringsCompare.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringsCompare.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringsCompare.Tpo -c -o src/c/libscistring_algo_la-stringsCompare.lo `test -f 'src/c/stringsCompare.c' || echo '$(srcdir)/'`src/c/stringsCompare.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringsCompare.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringsCompare.Plo +# $(AM_V_CC)source='src/c/stringsCompare.c' object='src/c/libscistring_algo_la-stringsCompare.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringsCompare.lo `test -f 'src/c/stringsCompare.c' || echo '$(srcdir)/'`src/c/stringsCompare.c + +src/c/libscistring_algo_la-isalphanum.lo: src/c/isalphanum.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-isalphanum.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-isalphanum.Tpo -c -o src/c/libscistring_algo_la-isalphanum.lo `test -f 'src/c/isalphanum.c' || echo '$(srcdir)/'`src/c/isalphanum.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-isalphanum.Tpo src/c/$(DEPDIR)/libscistring_algo_la-isalphanum.Plo +# $(AM_V_CC)source='src/c/isalphanum.c' object='src/c/libscistring_algo_la-isalphanum.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-isalphanum.lo `test -f 'src/c/isalphanum.c' || echo '$(srcdir)/'`src/c/isalphanum.c + +src/c/libscistring_algo_la-StringConvert.lo: src/c/StringConvert.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-StringConvert.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-StringConvert.Tpo -c -o src/c/libscistring_algo_la-StringConvert.lo `test -f 'src/c/StringConvert.c' || echo '$(srcdir)/'`src/c/StringConvert.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-StringConvert.Tpo src/c/$(DEPDIR)/libscistring_algo_la-StringConvert.Plo +# $(AM_V_CC)source='src/c/StringConvert.c' object='src/c/libscistring_algo_la-StringConvert.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-StringConvert.lo `test -f 'src/c/StringConvert.c' || echo '$(srcdir)/'`src/c/StringConvert.c + +src/c/libscistring_algo_la-scistrtostr.lo: src/c/scistrtostr.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-scistrtostr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-scistrtostr.Tpo -c -o src/c/libscistring_algo_la-scistrtostr.lo `test -f 'src/c/scistrtostr.c' || echo '$(srcdir)/'`src/c/scistrtostr.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-scistrtostr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-scistrtostr.Plo +# $(AM_V_CC)source='src/c/scistrtostr.c' object='src/c/libscistring_algo_la-scistrtostr.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-scistrtostr.lo `test -f 'src/c/scistrtostr.c' || echo '$(srcdir)/'`src/c/scistrtostr.c + +src/c/libscistring_algo_la-stringToDouble.lo: src/c/stringToDouble.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringToDouble.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringToDouble.Tpo -c -o src/c/libscistring_algo_la-stringToDouble.lo `test -f 'src/c/stringToDouble.c' || echo '$(srcdir)/'`src/c/stringToDouble.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringToDouble.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringToDouble.Plo +# $(AM_V_CC)source='src/c/stringToDouble.c' object='src/c/libscistring_algo_la-stringToDouble.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringToDouble.lo `test -f 'src/c/stringToDouble.c' || echo '$(srcdir)/'`src/c/stringToDouble.c + +src/c/libscistring_algo_la-isnum.lo: src/c/isnum.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-isnum.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-isnum.Tpo -c -o src/c/libscistring_algo_la-isnum.lo `test -f 'src/c/isnum.c' || echo '$(srcdir)/'`src/c/isnum.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-isnum.Tpo src/c/$(DEPDIR)/libscistring_algo_la-isnum.Plo +# $(AM_V_CC)source='src/c/isnum.c' object='src/c/libscistring_algo_la-isnum.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-isnum.lo `test -f 'src/c/isnum.c' || echo '$(srcdir)/'`src/c/isnum.c + +src/c/libscistring_algo_la-stringToComplex.lo: src/c/stringToComplex.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringToComplex.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringToComplex.Tpo -c -o src/c/libscistring_algo_la-stringToComplex.lo `test -f 'src/c/stringToComplex.c' || echo '$(srcdir)/'`src/c/stringToComplex.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringToComplex.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringToComplex.Plo +# $(AM_V_CC)source='src/c/stringToComplex.c' object='src/c/libscistring_algo_la-stringToComplex.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringToComplex.lo `test -f 'src/c/stringToComplex.c' || echo '$(srcdir)/'`src/c/stringToComplex.c + +src/c/libscistring_algo_la-complex_array.lo: src/c/complex_array.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-complex_array.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-complex_array.Tpo -c -o src/c/libscistring_algo_la-complex_array.lo `test -f 'src/c/complex_array.c' || echo '$(srcdir)/'`src/c/complex_array.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-complex_array.Tpo src/c/$(DEPDIR)/libscistring_algo_la-complex_array.Plo +# $(AM_V_CC)source='src/c/complex_array.c' object='src/c/libscistring_algo_la-complex_array.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-complex_array.lo `test -f 'src/c/complex_array.c' || echo '$(srcdir)/'`src/c/complex_array.c + +sci_gateway/c/libscistring_la-gw_string.lo: sci_gateway/c/gw_string.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-gw_string.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-gw_string.Tpo -c -o sci_gateway/c/libscistring_la-gw_string.lo `test -f 'sci_gateway/c/gw_string.c' || echo '$(srcdir)/'`sci_gateway/c/gw_string.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-gw_string.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-gw_string.Plo +# $(AM_V_CC)source='sci_gateway/c/gw_string.c' object='sci_gateway/c/libscistring_la-gw_string.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-gw_string.lo `test -f 'sci_gateway/c/gw_string.c' || echo '$(srcdir)/'`sci_gateway/c/gw_string.c + +sci_gateway/c/libscistring_la-sci_ascii.lo: sci_gateway/c/sci_ascii.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_ascii.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_ascii.Tpo -c -o sci_gateway/c/libscistring_la-sci_ascii.lo `test -f 'sci_gateway/c/sci_ascii.c' || echo '$(srcdir)/'`sci_gateway/c/sci_ascii.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_ascii.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_ascii.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_ascii.c' object='sci_gateway/c/libscistring_la-sci_ascii.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_ascii.lo `test -f 'sci_gateway/c/sci_ascii.c' || echo '$(srcdir)/'`sci_gateway/c/sci_ascii.c + +sci_gateway/c/libscistring_la-sci_code2str.lo: sci_gateway/c/sci_code2str.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_code2str.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_code2str.Tpo -c -o sci_gateway/c/libscistring_la-sci_code2str.lo `test -f 'sci_gateway/c/sci_code2str.c' || echo '$(srcdir)/'`sci_gateway/c/sci_code2str.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_code2str.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_code2str.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_code2str.c' object='sci_gateway/c/libscistring_la-sci_code2str.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_code2str.lo `test -f 'sci_gateway/c/sci_code2str.c' || echo '$(srcdir)/'`sci_gateway/c/sci_code2str.c + +sci_gateway/c/libscistring_la-sci_convstr.lo: sci_gateway/c/sci_convstr.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_convstr.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_convstr.Tpo -c -o sci_gateway/c/libscistring_la-sci_convstr.lo `test -f 'sci_gateway/c/sci_convstr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_convstr.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_convstr.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_convstr.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_convstr.c' object='sci_gateway/c/libscistring_la-sci_convstr.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_convstr.lo `test -f 'sci_gateway/c/sci_convstr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_convstr.c + +sci_gateway/c/libscistring_la-sci_emptystr.lo: sci_gateway/c/sci_emptystr.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_emptystr.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_emptystr.Tpo -c -o sci_gateway/c/libscistring_la-sci_emptystr.lo `test -f 'sci_gateway/c/sci_emptystr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_emptystr.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_emptystr.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_emptystr.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_emptystr.c' object='sci_gateway/c/libscistring_la-sci_emptystr.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_emptystr.lo `test -f 'sci_gateway/c/sci_emptystr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_emptystr.c + +sci_gateway/c/libscistring_la-sci_grep.lo: sci_gateway/c/sci_grep.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_grep.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_grep.Tpo -c -o sci_gateway/c/libscistring_la-sci_grep.lo `test -f 'sci_gateway/c/sci_grep.c' || echo '$(srcdir)/'`sci_gateway/c/sci_grep.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_grep.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_grep.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_grep.c' object='sci_gateway/c/libscistring_la-sci_grep.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_grep.lo `test -f 'sci_gateway/c/sci_grep.c' || echo '$(srcdir)/'`sci_gateway/c/sci_grep.c + +sci_gateway/c/libscistring_la-sci_length.lo: sci_gateway/c/sci_length.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_length.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_length.Tpo -c -o sci_gateway/c/libscistring_la-sci_length.lo `test -f 'sci_gateway/c/sci_length.c' || echo '$(srcdir)/'`sci_gateway/c/sci_length.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_length.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_length.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_length.c' object='sci_gateway/c/libscistring_la-sci_length.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_length.lo `test -f 'sci_gateway/c/sci_length.c' || echo '$(srcdir)/'`sci_gateway/c/sci_length.c + +sci_gateway/c/libscistring_la-sci_part.lo: sci_gateway/c/sci_part.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_part.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_part.Tpo -c -o sci_gateway/c/libscistring_la-sci_part.lo `test -f 'sci_gateway/c/sci_part.c' || echo '$(srcdir)/'`sci_gateway/c/sci_part.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_part.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_part.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_part.c' object='sci_gateway/c/libscistring_la-sci_part.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_part.lo `test -f 'sci_gateway/c/sci_part.c' || echo '$(srcdir)/'`sci_gateway/c/sci_part.c + +sci_gateway/c/libscistring_la-sci_str2code.lo: sci_gateway/c/sci_str2code.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_str2code.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_str2code.Tpo -c -o sci_gateway/c/libscistring_la-sci_str2code.lo `test -f 'sci_gateway/c/sci_str2code.c' || echo '$(srcdir)/'`sci_gateway/c/sci_str2code.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_str2code.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_str2code.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_str2code.c' object='sci_gateway/c/libscistring_la-sci_str2code.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_str2code.lo `test -f 'sci_gateway/c/sci_str2code.c' || echo '$(srcdir)/'`sci_gateway/c/sci_str2code.c + +sci_gateway/c/libscistring_la-sci_strcat.lo: sci_gateway/c/sci_strcat.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strcat.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcat.Tpo -c -o sci_gateway/c/libscistring_la-sci_strcat.lo `test -f 'sci_gateway/c/sci_strcat.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcat.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcat.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcat.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strcat.c' object='sci_gateway/c/libscistring_la-sci_strcat.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strcat.lo `test -f 'sci_gateway/c/sci_strcat.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcat.c + +sci_gateway/c/libscistring_la-sci_strindex.lo: sci_gateway/c/sci_strindex.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strindex.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strindex.Tpo -c -o sci_gateway/c/libscistring_la-sci_strindex.lo `test -f 'sci_gateway/c/sci_strindex.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strindex.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strindex.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strindex.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strindex.c' object='sci_gateway/c/libscistring_la-sci_strindex.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strindex.lo `test -f 'sci_gateway/c/sci_strindex.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strindex.c + +sci_gateway/c/libscistring_la-sci_string.lo: sci_gateway/c/sci_string.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_string.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_string.Tpo -c -o sci_gateway/c/libscistring_la-sci_string.lo `test -f 'sci_gateway/c/sci_string.c' || echo '$(srcdir)/'`sci_gateway/c/sci_string.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_string.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_string.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_string.c' object='sci_gateway/c/libscistring_la-sci_string.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_string.lo `test -f 'sci_gateway/c/sci_string.c' || echo '$(srcdir)/'`sci_gateway/c/sci_string.c + +sci_gateway/c/libscistring_la-sci_stripblanks.lo: sci_gateway/c/sci_stripblanks.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_stripblanks.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_stripblanks.Tpo -c -o sci_gateway/c/libscistring_la-sci_stripblanks.lo `test -f 'sci_gateway/c/sci_stripblanks.c' || echo '$(srcdir)/'`sci_gateway/c/sci_stripblanks.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_stripblanks.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_stripblanks.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_stripblanks.c' object='sci_gateway/c/libscistring_la-sci_stripblanks.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_stripblanks.lo `test -f 'sci_gateway/c/sci_stripblanks.c' || echo '$(srcdir)/'`sci_gateway/c/sci_stripblanks.c + +sci_gateway/c/libscistring_la-sci_strsplit.lo: sci_gateway/c/sci_strsplit.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strsplit.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsplit.Tpo -c -o sci_gateway/c/libscistring_la-sci_strsplit.lo `test -f 'sci_gateway/c/sci_strsplit.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strsplit.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsplit.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsplit.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strsplit.c' object='sci_gateway/c/libscistring_la-sci_strsplit.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strsplit.lo `test -f 'sci_gateway/c/sci_strsplit.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strsplit.c + +sci_gateway/c/libscistring_la-sci_strsubst.lo: sci_gateway/c/sci_strsubst.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strsubst.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsubst.Tpo -c -o sci_gateway/c/libscistring_la-sci_strsubst.lo `test -f 'sci_gateway/c/sci_strsubst.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strsubst.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsubst.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsubst.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strsubst.c' object='sci_gateway/c/libscistring_la-sci_strsubst.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strsubst.lo `test -f 'sci_gateway/c/sci_strsubst.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strsubst.c + +sci_gateway/c/libscistring_la-sci_tokens.lo: sci_gateway/c/sci_tokens.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_tokens.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_tokens.Tpo -c -o sci_gateway/c/libscistring_la-sci_tokens.lo `test -f 'sci_gateway/c/sci_tokens.c' || echo '$(srcdir)/'`sci_gateway/c/sci_tokens.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_tokens.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_tokens.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_tokens.c' object='sci_gateway/c/libscistring_la-sci_tokens.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_tokens.lo `test -f 'sci_gateway/c/sci_tokens.c' || echo '$(srcdir)/'`sci_gateway/c/sci_tokens.c + +sci_gateway/c/libscistring_la-sci_strcmp.lo: sci_gateway/c/sci_strcmp.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strcmp.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcmp.Tpo -c -o sci_gateway/c/libscistring_la-sci_strcmp.lo `test -f 'sci_gateway/c/sci_strcmp.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcmp.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcmp.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcmp.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strcmp.c' object='sci_gateway/c/libscistring_la-sci_strcmp.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strcmp.lo `test -f 'sci_gateway/c/sci_strcmp.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcmp.c + +sci_gateway/c/libscistring_la-sci_isletter.lo: sci_gateway/c/sci_isletter.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isletter.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isletter.Tpo -c -o sci_gateway/c/libscistring_la-sci_isletter.lo `test -f 'sci_gateway/c/sci_isletter.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isletter.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isletter.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isletter.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_isletter.c' object='sci_gateway/c/libscistring_la-sci_isletter.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isletter.lo `test -f 'sci_gateway/c/sci_isletter.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isletter.c + +sci_gateway/c/libscistring_la-sci_isdigit.lo: sci_gateway/c/sci_isdigit.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isdigit.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isdigit.Tpo -c -o sci_gateway/c/libscistring_la-sci_isdigit.lo `test -f 'sci_gateway/c/sci_isdigit.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isdigit.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isdigit.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isdigit.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_isdigit.c' object='sci_gateway/c/libscistring_la-sci_isdigit.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isdigit.lo `test -f 'sci_gateway/c/sci_isdigit.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isdigit.c + +sci_gateway/c/libscistring_la-sci_isalphanum.lo: sci_gateway/c/sci_isalphanum.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isalphanum.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isalphanum.Tpo -c -o sci_gateway/c/libscistring_la-sci_isalphanum.lo `test -f 'sci_gateway/c/sci_isalphanum.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isalphanum.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isalphanum.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isalphanum.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_isalphanum.c' object='sci_gateway/c/libscistring_la-sci_isalphanum.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isalphanum.lo `test -f 'sci_gateway/c/sci_isalphanum.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isalphanum.c + +sci_gateway/c/libscistring_la-sci_isascii.lo: sci_gateway/c/sci_isascii.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isascii.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isascii.Tpo -c -o sci_gateway/c/libscistring_la-sci_isascii.lo `test -f 'sci_gateway/c/sci_isascii.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isascii.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isascii.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isascii.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_isascii.c' object='sci_gateway/c/libscistring_la-sci_isascii.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isascii.lo `test -f 'sci_gateway/c/sci_isascii.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isascii.c + +sci_gateway/c/libscistring_la-sci_strchr.lo: sci_gateway/c/sci_strchr.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strchr.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strchr.Tpo -c -o sci_gateway/c/libscistring_la-sci_strchr.lo `test -f 'sci_gateway/c/sci_strchr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strchr.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strchr.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strchr.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strchr.c' object='sci_gateway/c/libscistring_la-sci_strchr.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strchr.lo `test -f 'sci_gateway/c/sci_strchr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strchr.c + +sci_gateway/c/libscistring_la-sci_strcspn.lo: sci_gateway/c/sci_strcspn.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strcspn.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcspn.Tpo -c -o sci_gateway/c/libscistring_la-sci_strcspn.lo `test -f 'sci_gateway/c/sci_strcspn.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcspn.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcspn.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcspn.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strcspn.c' object='sci_gateway/c/libscistring_la-sci_strcspn.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strcspn.lo `test -f 'sci_gateway/c/sci_strcspn.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcspn.c + +sci_gateway/c/libscistring_la-sci_strncpy.lo: sci_gateway/c/sci_strncpy.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strncpy.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strncpy.Tpo -c -o sci_gateway/c/libscistring_la-sci_strncpy.lo `test -f 'sci_gateway/c/sci_strncpy.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strncpy.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strncpy.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strncpy.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strncpy.c' object='sci_gateway/c/libscistring_la-sci_strncpy.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strncpy.lo `test -f 'sci_gateway/c/sci_strncpy.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strncpy.c + +sci_gateway/c/libscistring_la-sci_strrev.lo: sci_gateway/c/sci_strrev.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strrev.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strrev.Tpo -c -o sci_gateway/c/libscistring_la-sci_strrev.lo `test -f 'sci_gateway/c/sci_strrev.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strrev.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strrev.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strrev.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strrev.c' object='sci_gateway/c/libscistring_la-sci_strrev.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strrev.lo `test -f 'sci_gateway/c/sci_strrev.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strrev.c + +sci_gateway/c/libscistring_la-sci_strspn.lo: sci_gateway/c/sci_strspn.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strspn.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strspn.Tpo -c -o sci_gateway/c/libscistring_la-sci_strspn.lo `test -f 'sci_gateway/c/sci_strspn.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strspn.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strspn.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strspn.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strspn.c' object='sci_gateway/c/libscistring_la-sci_strspn.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strspn.lo `test -f 'sci_gateway/c/sci_strspn.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strspn.c + +sci_gateway/c/libscistring_la-sci_strstr.lo: sci_gateway/c/sci_strstr.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strstr.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strstr.Tpo -c -o sci_gateway/c/libscistring_la-sci_strstr.lo `test -f 'sci_gateway/c/sci_strstr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strstr.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strstr.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strstr.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strstr.c' object='sci_gateway/c/libscistring_la-sci_strstr.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strstr.lo `test -f 'sci_gateway/c/sci_strstr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strstr.c + +sci_gateway/c/libscistring_la-sci_strtod.lo: sci_gateway/c/sci_strtod.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strtod.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtod.Tpo -c -o sci_gateway/c/libscistring_la-sci_strtod.lo `test -f 'sci_gateway/c/sci_strtod.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strtod.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtod.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtod.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strtod.c' object='sci_gateway/c/libscistring_la-sci_strtod.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strtod.lo `test -f 'sci_gateway/c/sci_strtod.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strtod.c + +sci_gateway/c/libscistring_la-sci_strtok.lo: sci_gateway/c/sci_strtok.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strtok.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtok.Tpo -c -o sci_gateway/c/libscistring_la-sci_strtok.lo `test -f 'sci_gateway/c/sci_strtok.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strtok.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtok.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtok.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_strtok.c' object='sci_gateway/c/libscistring_la-sci_strtok.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strtok.lo `test -f 'sci_gateway/c/sci_strtok.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strtok.c + +sci_gateway/c/libscistring_la-sci_regexp.lo: sci_gateway/c/sci_regexp.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_regexp.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_regexp.Tpo -c -o sci_gateway/c/libscistring_la-sci_regexp.lo `test -f 'sci_gateway/c/sci_regexp.c' || echo '$(srcdir)/'`sci_gateway/c/sci_regexp.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_regexp.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_regexp.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_regexp.c' object='sci_gateway/c/libscistring_la-sci_regexp.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_regexp.lo `test -f 'sci_gateway/c/sci_regexp.c' || echo '$(srcdir)/'`sci_gateway/c/sci_regexp.c + +sci_gateway/c/libscistring_la-sci_isnum.lo: sci_gateway/c/sci_isnum.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isnum.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isnum.Tpo -c -o sci_gateway/c/libscistring_la-sci_isnum.lo `test -f 'sci_gateway/c/sci_isnum.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isnum.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isnum.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isnum.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_isnum.c' object='sci_gateway/c/libscistring_la-sci_isnum.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isnum.lo `test -f 'sci_gateway/c/sci_isnum.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isnum.c + +.cpp.o: + $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CXX)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ +# $(AM_V_CXX_no)$(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: + $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CXX)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ +# $(AM_V_CXX_no)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: + $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Plo +# $(AM_V_CXX)source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ +# $(AM_V_CXX_no)$(LTCXXCOMPILE) -c -o $@ $< + +src/cpp/libscistring_algo_la-sort_inter.lo: src/cpp/sort_inter.cpp + $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT src/cpp/libscistring_algo_la-sort_inter.lo -MD -MP -MF src/cpp/$(DEPDIR)/libscistring_algo_la-sort_inter.Tpo -c -o src/cpp/libscistring_algo_la-sort_inter.lo `test -f 'src/cpp/sort_inter.cpp' || echo '$(srcdir)/'`src/cpp/sort_inter.cpp + $(AM_V_at)$(am__mv) src/cpp/$(DEPDIR)/libscistring_algo_la-sort_inter.Tpo src/cpp/$(DEPDIR)/libscistring_algo_la-sort_inter.Plo +# $(AM_V_CXX)source='src/cpp/sort_inter.cpp' object='src/cpp/libscistring_algo_la-sort_inter.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ +# $(AM_V_CXX_no)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o src/cpp/libscistring_algo_la-sort_inter.lo `test -f 'src/cpp/sort_inter.cpp' || echo '$(srcdir)/'`src/cpp/sort_inter.cpp + +.f.o: + $(AM_V_F77)$(F77COMPILE) -c -o $@ $< + +.f.obj: + $(AM_V_F77)$(F77COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.f.lo: + $(AM_V_F77)$(LTF77COMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs + -rm -rf sci_gateway/fortran/.libs sci_gateway/fortran/_libs + -rm -rf src/c/.libs src/c/_libs + -rm -rf src/cpp/.libs src/cpp/_libs +install-libscistring_la_etcDATA: $(libscistring_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libscistring_la_etc_DATA)'; test -n "$(libscistring_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscistring_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscistring_la_etcdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscistring_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscistring_la_etcdir)" || exit $$?; \ + done + +uninstall-libscistring_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscistring_la_etc_DATA)'; test -n "$(libscistring_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscistring_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libscistring_la_rootDATA: $(libscistring_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libscistring_la_root_DATA)'; test -n "$(libscistring_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscistring_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscistring_la_rootdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscistring_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscistring_la_rootdir)" || exit $$?; \ + done + +uninstall-libscistring_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscistring_la_root_DATA)'; test -n "$(libscistring_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscistring_la_rootdir)'; $(am__uninstall_files_from_dir) +install-libscistring_la_sci_gatewayDATA: $(libscistring_la_sci_gateway_DATA) + @$(NORMAL_INSTALL) + @list='$(libscistring_la_sci_gateway_DATA)'; test -n "$(libscistring_la_sci_gatewaydir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscistring_la_sci_gatewaydir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscistring_la_sci_gatewaydir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscistring_la_sci_gatewaydir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscistring_la_sci_gatewaydir)" || exit $$?; \ + done + +uninstall-libscistring_la_sci_gatewayDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscistring_la_sci_gateway_DATA)'; test -n "$(libscistring_la_sci_gatewaydir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscistring_la_sci_gatewaydir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) all-local +installdirs: + for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscistring_la_etcdir)" "$(DESTDIR)$(libscistring_la_rootdir)" "$(DESTDIR)$(libscistring_la_sci_gatewaydir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/c/$(am__dirstamp) + -rm -f sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/fortran/$(am__dirstamp) + -rm -f src/c/$(DEPDIR)/$(am__dirstamp) + -rm -f src/c/$(am__dirstamp) + -rm -f src/cpp/$(DEPDIR)/$(am__dirstamp) + -rm -f src/cpp/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) src/cpp/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-local distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local install-libscistring_la_etcDATA \ + install-libscistring_la_rootDATA \ + install-libscistring_la_sci_gatewayDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-pkglibLTLIBRARIES + +install-html: install-html-am + +install-html-am: install-html-local + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) src/cpp/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libscistring_la_etcDATA \ + uninstall-libscistring_la_rootDATA \ + uninstall-libscistring_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + +.MAKE: check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \ + check-local clean clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES cscopelist-am \ + ctags ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-local distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-data-local install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-html-local install-info \ + install-info-am install-libscistring_la_etcDATA \ + install-libscistring_la_rootDATA \ + install-libscistring_la_sci_gatewayDATA install-man \ + install-pdf install-pdf-am install-pkglibLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am \ + uninstall-libscistring_la_etcDATA \ + uninstall-libscistring_la_rootDATA \ + uninstall-libscistring_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + + +# This target enables tests for Scilab +check-local: $(top_builddir)/scilab-bin test + if test -d $(mydatadir)/tests; then \ + @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \ + fi +check-code: + if test -f build.xml; then \ + $(ANT) checkstyle; \ + fi + if test -x "$(SPLINT)"; then \ + $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \ + fi +java: +# Some configurations needs to export JAVA_HOME in the current env + @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ + if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT); \ + fi + +clean-java: +# Some configurations needs to export JAVA_HOME in the current env + @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ + if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) clean; \ + fi; + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +#swig: $(SWIG_WRAPPERS) +# @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \ +# SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \ +# if test -n "$(SWIG_WRAPPERS)"; then \ +# for file in $(SWIG_WRAPPERS) ; do \ +# echo "Swig process of $$file (Java) ..."; \ +# $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \ +# done; \ +# fi + +#swig-scilab: $(SWIG_SCILAB_WRAPPERS) +# @SWIG_OUTDIR=src/swig/; \ +# if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \ +# for file in $(SWIG_SCILAB_WRAPPERS) ; do \ +# echo "Swig process of $$file (Scilab) ..."; \ +# $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \ +# done; \ +# fi + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +#giws: $(GIWS_WRAPPERS) +# @GIWS_OUTPUTDIR=src/jni/; \ +# MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \ +# if test -n "$(GIWS_WRAPPERS)"; then \ +# for file in $(GIWS_WRAPPERS) ; do \ +# echo "GIWS process of $$file ..."; \ +# if test -z "$(GIWS_OPTIONS)"; then \ +# $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +# else \ +# echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \ +# $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +# fi \ +# done; \ +# fi + +#giws-exception: +# @GIWS_OUTPUTDIR=src/jni/;\ +# echo "GIWS: Generation of exception class ..."; \ +# $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR + +macros: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been built"; \ + else \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\ + fi) + +# Removes the macros +clean-macros: +# Removes macros (*.bin generated from .sci) + @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \ + rm -f $(builddir)/$$dir/$(MACROBINMASK); \ + done + +test: +# More tests could be added here + @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) test; \ + fi + +all-local: $(TARGETS_ALL) + +.sci.bin: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been build"; \ + else \ + echo "Creating $@"; \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \ + fi ) + +install-html-local: + +install-data-local-local: +# Mainly for javasci + @if test -d $(srcdir)/javadoc; then \ + cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \ + fi +# If the user wants the help sources to be installed + @echo "-------- Install of XML sources of help files --------"; \ + for lang in $(ALL_LINGUAS); do \ + if test -d $(srcdir)/help/$$lang; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \ + if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \ + for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \ + done ; \ + fi; \ + fi; \ + done; \ + @echo "-------- Install of MathML sources --------"; \ + if test -d $(srcdir)/help/mml/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \ + if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \ + for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \ + done ; \ + fi; \ + fi +install-data-local: +# Install the tests + @echo "-------- Install tests (if any) --------"; \ + for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the help chapter + @echo "-------- Install the help chapter (if any) --------"; \ + for lang in $(HELP_CHAPTERLANG); do \ + HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \ + if test -f $$HELPFILE; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + fi; \ + done +# Install the demos & examples + @echo "-------- Install demos & examples (if any) --------"; \ + for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the macros + @echo "-------- Install macros (if any) --------"; \ + for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + if test -d $(srcdir)/$$dir/; then \ + FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\ + if test -n "$(MACROSSPECIALEXT)"; then \ + specialExtDir=""; \ + for specialExt in $(MACROSSPECIALEXT); do \ + specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \ + done; \ + FILELIST="$$FILELIST $$specialExtDir"; \ + fi; \ + for file in `ls -1 $$FILELIST 2>/dev/null`; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \ + done; \ + fi; \ + done +# Install java files (.jar) + @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \ + echo "-------- Install jar files --------"; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \ + for file in $(srcdir)/$(JARDIR)$(JARMASK); do\ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \ + done ; \ + fi + +########### CLEAN ################### +# Clean help (generated automatically by Scilab) +# It used to clean the macro (clean-macros) but this was causing +# make clean && make to fail Scilab startup +clean-local: clean-java +#clean-local: + +distclean-local: + rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_* + +.PHONY: macros java swig giws + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/modules/string/Makefile.am b/modules/string/Makefile.am new file mode 100755 index 000000000..c272ab1d3 --- /dev/null +++ b/modules/string/Makefile.am @@ -0,0 +1,125 @@ +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2007 - INRIA - Sylvestre LEDRU +# +# This file is distributed under the same license as the Scilab package. + +STRING_C_SOURCES = src/c/code2str.c \ +src/c/stripblanks.c \ +src/c/convstr.c \ +src/c/men_Sutils.c \ +src/c/tokens.c \ +src/c/strsplit.c \ +src/c/partfunction.c \ +src/c/InitializeString.c \ +src/c/setScilabCharactersCodes.c \ +src/c/cvstr.c \ +src/c/getfastcode.c \ +src/c/pcre_private.c \ +src/c/pcre_error.c \ +src/c/isletter.c \ +src/c/isdigit.c \ +src/c/strsubst.c \ +src/c/stristr.c \ +src/c/stringsstrrchr.c \ +src/c/stringsstrrev.c \ +src/c/stringsCompare.c \ +src/c/isalphanum.c \ +src/c/StringConvert.c \ +src/c/scistrtostr.c \ +src/c/stringToDouble.c \ +src/c/isnum.c \ +src/c/stringToComplex.c \ +src/c/complex_array.c + +STRING_CPP_SOURCES = \ + src/cpp/sort_inter.cpp + +STRING_FORTRAN_SOURCES = + +GATEWAY_C_SOURCES = sci_gateway/c/gw_string.c \ +sci_gateway/c/sci_ascii.c \ +sci_gateway/c/sci_code2str.c \ +sci_gateway/c/sci_convstr.c \ +sci_gateway/c/sci_emptystr.c \ +sci_gateway/c/sci_grep.c \ +sci_gateway/c/sci_length.c \ +sci_gateway/c/sci_part.c \ +sci_gateway/c/sci_str2code.c \ +sci_gateway/c/sci_strcat.c \ +sci_gateway/c/sci_strindex.c \ +sci_gateway/c/sci_string.c \ +sci_gateway/c/sci_stripblanks.c \ +sci_gateway/c/sci_strsplit.c \ +sci_gateway/c/sci_strsubst.c \ +sci_gateway/c/sci_tokens.c \ +sci_gateway/c/sci_strcmp.c \ +sci_gateway/c/sci_isletter.c \ +sci_gateway/c/sci_isdigit.c \ +sci_gateway/c/sci_isalphanum.c \ +sci_gateway/c/sci_isascii.c \ +sci_gateway/c/sci_strchr.c \ +sci_gateway/c/sci_strcspn.c \ +sci_gateway/c/sci_strncpy.c \ +sci_gateway/c/sci_strrev.c \ +sci_gateway/c/sci_strspn.c \ +sci_gateway/c/sci_strstr.c \ +sci_gateway/c/sci_strtod.c \ +sci_gateway/c/sci_strtok.c \ +sci_gateway/c/sci_regexp.c \ +sci_gateway/c/sci_isnum.c + + + +GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/sci_f_string.f \ +sci_gateway/fortran/strops.f + +libscistring_la_CPPFLAGS = -I$(srcdir)/src/c \ + -I$(srcdir)/includes/ \ + -I$(srcdir)/src/cpp/ \ + -I$(top_srcdir)/modules/functions/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + -I$(top_srcdir)/modules/spreadsheet/src/c/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + $(PCRE_CFLAGS) \ + $(AM_CPPFLAGS) + +if MAINTAINER_MODE +pkglib_LTLIBRARIES = libscistring.la +noinst_LTLIBRARIES = libscistring-algo.la +else +noinst_LTLIBRARIES = libscistring-algo.la libscistring.la +endif + + +libscistring_la_LDFLAGS = $(AM_LDFLAGS) + +libscistring_algo_la_SOURCES = $(STRING_C_SOURCES) $(STRING_CPP_SOURCES) $(STRING_FORTRAN_SOURCES) +libscistring_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) +libscistring_algo_la_CPPFLAGS = $(libscistring_la_CPPFLAGS) + +# For the code check (splint) +CHECK_SRC= $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES) +INCLUDE_FLAGS = $(libscistring_la_CPPFLAGS) + +# commented since it is the first module to be processed +libscistring_la_LIBADD = libscistring-algo.la $(PCRE_LIBS) + +#### Target ###### +modulename=string + + +#### string : Conf files #### +libscistring_la_rootdir = $(mydatadir) +libscistring_la_root_DATA = license.txt + +####string : init scripts #### +libscistring_la_etcdir = $(mydatadir)/etc +libscistring_la_etc_DATA = etc/string.quit etc/string.start + +####string : gateway declaration #### +libscistring_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libscistring_la_sci_gateway_DATA = sci_gateway/string_gateway.xml + +include $(top_srcdir)/Makefile.incl.am + diff --git a/modules/string/Makefile.in b/modules/string/Makefile.in new file mode 100755 index 000000000..ed79cb6e3 --- /dev/null +++ b/modules/string/Makefile.in @@ -0,0 +1,2136 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2007 - INRIA - Sylvestre LEDRU +# +# This file is distributed under the same license as the Scilab package. + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr> +# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +# +# 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 +# + +########## +### Makefile included stuff +### Target, variable, suffixes which are supposed to be useful in every makefile.am +########## + + +VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \ + $(top_srcdir)/config/depcomp +@NEED_JAVA_TRUE@am__append_1 = java +subdir = modules/string +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \ + $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \ + $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \ + $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \ + $(top_srcdir)/m4/intel_compiler.m4 \ + $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \ + $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \ + $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \ + $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \ + $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \ + $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkglibdir)" \ + "$(DESTDIR)$(libscistring_la_etcdir)" \ + "$(DESTDIR)$(libscistring_la_rootdir)" \ + "$(DESTDIR)$(libscistring_la_sci_gatewaydir)" +LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES) +libscistring_algo_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = src/c/libscistring_algo_la-code2str.lo \ + src/c/libscistring_algo_la-stripblanks.lo \ + src/c/libscistring_algo_la-convstr.lo \ + src/c/libscistring_algo_la-men_Sutils.lo \ + src/c/libscistring_algo_la-tokens.lo \ + src/c/libscistring_algo_la-strsplit.lo \ + src/c/libscistring_algo_la-partfunction.lo \ + src/c/libscistring_algo_la-InitializeString.lo \ + src/c/libscistring_algo_la-setScilabCharactersCodes.lo \ + src/c/libscistring_algo_la-cvstr.lo \ + src/c/libscistring_algo_la-getfastcode.lo \ + src/c/libscistring_algo_la-pcre_private.lo \ + src/c/libscistring_algo_la-pcre_error.lo \ + src/c/libscistring_algo_la-isletter.lo \ + src/c/libscistring_algo_la-isdigit.lo \ + src/c/libscistring_algo_la-strsubst.lo \ + src/c/libscistring_algo_la-stristr.lo \ + src/c/libscistring_algo_la-stringsstrrchr.lo \ + src/c/libscistring_algo_la-stringsstrrev.lo \ + src/c/libscistring_algo_la-stringsCompare.lo \ + src/c/libscistring_algo_la-isalphanum.lo \ + src/c/libscistring_algo_la-StringConvert.lo \ + src/c/libscistring_algo_la-scistrtostr.lo \ + src/c/libscistring_algo_la-stringToDouble.lo \ + src/c/libscistring_algo_la-isnum.lo \ + src/c/libscistring_algo_la-stringToComplex.lo \ + src/c/libscistring_algo_la-complex_array.lo +am__objects_2 = src/cpp/libscistring_algo_la-sort_inter.lo +am__objects_3 = +am_libscistring_algo_la_OBJECTS = $(am__objects_1) $(am__objects_2) \ + $(am__objects_3) +libscistring_algo_la_OBJECTS = $(am_libscistring_algo_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +@MAINTAINER_MODE_FALSE@am_libscistring_algo_la_rpath = +@MAINTAINER_MODE_TRUE@am_libscistring_algo_la_rpath = +am__DEPENDENCIES_1 = +libscistring_la_DEPENDENCIES = libscistring-algo.la \ + $(am__DEPENDENCIES_1) +am__objects_4 = sci_gateway/c/libscistring_la-gw_string.lo \ + sci_gateway/c/libscistring_la-sci_ascii.lo \ + sci_gateway/c/libscistring_la-sci_code2str.lo \ + sci_gateway/c/libscistring_la-sci_convstr.lo \ + sci_gateway/c/libscistring_la-sci_emptystr.lo \ + sci_gateway/c/libscistring_la-sci_grep.lo \ + sci_gateway/c/libscistring_la-sci_length.lo \ + sci_gateway/c/libscistring_la-sci_part.lo \ + sci_gateway/c/libscistring_la-sci_str2code.lo \ + sci_gateway/c/libscistring_la-sci_strcat.lo \ + sci_gateway/c/libscistring_la-sci_strindex.lo \ + sci_gateway/c/libscistring_la-sci_string.lo \ + sci_gateway/c/libscistring_la-sci_stripblanks.lo \ + sci_gateway/c/libscistring_la-sci_strsplit.lo \ + sci_gateway/c/libscistring_la-sci_strsubst.lo \ + sci_gateway/c/libscistring_la-sci_tokens.lo \ + sci_gateway/c/libscistring_la-sci_strcmp.lo \ + sci_gateway/c/libscistring_la-sci_isletter.lo \ + sci_gateway/c/libscistring_la-sci_isdigit.lo \ + sci_gateway/c/libscistring_la-sci_isalphanum.lo \ + sci_gateway/c/libscistring_la-sci_isascii.lo \ + sci_gateway/c/libscistring_la-sci_strchr.lo \ + sci_gateway/c/libscistring_la-sci_strcspn.lo \ + sci_gateway/c/libscistring_la-sci_strncpy.lo \ + sci_gateway/c/libscistring_la-sci_strrev.lo \ + sci_gateway/c/libscistring_la-sci_strspn.lo \ + sci_gateway/c/libscistring_la-sci_strstr.lo \ + sci_gateway/c/libscistring_la-sci_strtod.lo \ + sci_gateway/c/libscistring_la-sci_strtok.lo \ + sci_gateway/c/libscistring_la-sci_regexp.lo \ + sci_gateway/c/libscistring_la-sci_isnum.lo +am__objects_5 = sci_gateway/fortran/sci_f_string.lo \ + sci_gateway/fortran/strops.lo +am_libscistring_la_OBJECTS = $(am__objects_4) $(am__objects_5) +libscistring_la_OBJECTS = $(am_libscistring_la_OBJECTS) +libscistring_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=F77 \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(F77LD) \ + $(AM_FFLAGS) $(FFLAGS) $(libscistring_la_LDFLAGS) $(LDFLAGS) \ + -o $@ +@MAINTAINER_MODE_FALSE@am_libscistring_la_rpath = +@MAINTAINER_MODE_TRUE@am_libscistring_la_rpath = -rpath $(pkglibdir) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/modules/core/includes +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_@AM_V@) +am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) +am__v_CXX_0 = @echo " CXX " $@; +am__v_CXX_1 = +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) +am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) +am__v_CXXLD_0 = @echo " CXXLD " $@; +am__v_CXXLD_1 = +F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) +LTF77COMPILE = $(LIBTOOL) $(AM_V_lt) --tag=F77 $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) +AM_V_F77 = $(am__v_F77_@AM_V@) +am__v_F77_ = $(am__v_F77_@AM_DEFAULT_V@) +am__v_F77_0 = @echo " F77 " $@; +am__v_F77_1 = +F77LD = $(F77) +F77LINK = $(LIBTOOL) $(AM_V_lt) --tag=F77 $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(F77LD) $(AM_FFLAGS) $(FFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_F77LD = $(am__v_F77LD_@AM_V@) +am__v_F77LD_ = $(am__v_F77LD_@AM_DEFAULT_V@) +am__v_F77LD_0 = @echo " F77LD " $@; +am__v_F77LD_1 = +SOURCES = $(libscistring_algo_la_SOURCES) $(libscistring_la_SOURCES) +DIST_SOURCES = $(libscistring_algo_la_SOURCES) \ + $(libscistring_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(libscistring_la_etc_DATA) $(libscistring_la_root_DATA) \ + $(libscistring_la_sci_gateway_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +ALL_LINGUAS_DOC = @ALL_LINGUAS_DOC@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +ANT = @ANT@ +ANTLR = @ANTLR@ +AR = @AR@ +ARPACK_LIBS = @ARPACK_LIBS@ +ASM3 = @ASM3@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AVALON_FRAMEWORK = @AVALON_FRAMEWORK@ +AWK = @AWK@ +BATIK = @BATIK@ +BLAS_LIBS = @BLAS_LIBS@ +CC = @CC@ +CCACHE = @CCACHE@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECKSTYLE = @CHECKSTYLE@ +COBERTURA = @COBERTURA@ +COMMONS_BEANUTILS = @COMMONS_BEANUTILS@ +COMMONS_IO = @COMMONS_IO@ +COMMONS_LOGGING = @COMMONS_LOGGING@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CURL_CFLAGS = @CURL_CFLAGS@ +CURL_CONFIG = @CURL_CONFIG@ +CURL_LIBS = @CURL_LIBS@ +CURL_VERSION = @CURL_VERSION@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEMOTOOLS_ENABLE = @DEMOTOOLS_ENABLE@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOCBOOK_ROOT = @DOCBOOK_ROOT@ +DOXYGEN_BIN = @DOXYGEN_BIN@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +ECJ = @ECJ@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +FFTW3_LIB = @FFTW3_LIB@ +FFTW_ENABLE = @FFTW_ENABLE@ +FGREP = @FGREP@ +FLEXDOCK = @FLEXDOCK@ +FLIBS = @FLIBS@ +FOP = @FOP@ +FREEHEP_GRAPHICS2D = @FREEHEP_GRAPHICS2D@ +FREEHEP_GRAPHICSIO = @FREEHEP_GRAPHICSIO@ +FREEHEP_GRAPHICSIO_EMF = @FREEHEP_GRAPHICSIO_EMF@ +FREEHEP_IO = @FREEHEP_IO@ +FREEHEP_UTIL = @FREEHEP_UTIL@ +GENHTML = @GENHTML@ +GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ +GIWS_BIN = @GIWS_BIN@ +GLUEGEN2_RT = @GLUEGEN2_RT@ +GMSGFMT = @GMSGFMT@ +GMSGFMT_015 = @GMSGFMT_015@ +GRAPHICS_ENABLE = @GRAPHICS_ENABLE@ +GREP = @GREP@ +GUI_ENABLE = @GUI_ENABLE@ +HDF5_CFLAGS = @HDF5_CFLAGS@ +HDF5_LIBS = @HDF5_LIBS@ +HELP_ENABLE = @HELP_ENABLE@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JAR = @JAR@ +JAVA = @JAVA@ +JAVAC = @JAVAC@ +JAVAC_DEBUG = @JAVAC_DEBUG@ +JAVADOC = @JAVADOC@ +JAVAH = @JAVAH@ +JAVASCI_ENABLE = @JAVASCI_ENABLE@ +JAVA_ENABLE = @JAVA_ENABLE@ +JAVA_G = @JAVA_G@ +JAVA_HOME = @JAVA_HOME@ +JAVA_JNI_INCLUDE = @JAVA_JNI_INCLUDE@ +JAVA_JNI_LIBS = @JAVA_JNI_LIBS@ +JDB = @JDB@ +JEUCLID_CORE = @JEUCLID_CORE@ +JGRAPHX = @JGRAPHX@ +JHALL = @JHALL@ +JLATEXMATH = @JLATEXMATH@ +JLATEXMATH_FOP = @JLATEXMATH_FOP@ +JOGL2 = @JOGL2@ +JROSETTA_API = @JROSETTA_API@ +JROSETTA_ENGINE = @JROSETTA_ENGINE@ +JUNIT4 = @JUNIT4@ +LAPACK_LIBS = @LAPACK_LIBS@ +LCOV = @LCOV@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBM = @LIBM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LOGGING_LEVEL = @LOGGING_LEVEL@ +LOOKS = @LOOKS@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MATIO_CFLAGS = @MATIO_CFLAGS@ +MATIO_ENABLE = @MATIO_ENABLE@ +MATIO_LIBS = @MATIO_LIBS@ +MKDIR_P = @MKDIR_P@ +MPI_ENABLE = @MPI_ENABLE@ +MSGCAT = @MSGCAT@ +MSGFMT = @MSGFMT@ +MSGFMT_015 = @MSGFMT_015@ +MSGMERGE = @MSGMERGE@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OCAMLC = @OCAMLC@ +OCAMLDEP = @OCAMLDEP@ +OCAMLLEX = @OCAMLLEX@ +OCAMLOPT = @OCAMLOPT@ +OCAMLYACC = @OCAMLYACC@ +OPENMPI_CC = @OPENMPI_CC@ +OPENMPI_CFLAGS = @OPENMPI_CFLAGS@ +OPENMPI_CXX = @OPENMPI_CXX@ +OPENMPI_CXXFLAGS = @OPENMPI_CXXFLAGS@ +OPENMPI_LIBS = @OPENMPI_LIBS@ +OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@ +OPENMP_ENABLE = @OPENMP_ENABLE@ +OPENMP_LIBS = @OPENMP_LIBS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCRE_CFLAGS = @PCRE_CFLAGS@ +PCRE_CONFIG = @PCRE_CONFIG@ +PCRE_LIBS = @PCRE_LIBS@ +PCRE_VERSION = @PCRE_VERSION@ +PKG_CONFIG = @PKG_CONFIG@ +POSUB = @POSUB@ +POW_LIB = @POW_LIB@ +PYTHON = @PYTHON@ +RANLIB = @RANLIB@ +RELOCATABLE = @RELOCATABLE@ +RT_LIB = @RT_LIB@ +SAXON = @SAXON@ +SCILAB_BINARY_VERSION = @SCILAB_BINARY_VERSION@ +SCILAB_LIBRARY_VERSION = @SCILAB_LIBRARY_VERSION@ +SCILAB_VERSION_MAINTENANCE = @SCILAB_VERSION_MAINTENANCE@ +SCILAB_VERSION_MAJOR = @SCILAB_VERSION_MAJOR@ +SCILAB_VERSION_MINOR = @SCILAB_VERSION_MINOR@ +SCIRENDERER = @SCIRENDERER@ +SCIRENDERER_CP = @SCIRENDERER_CP@ +SCI_CFLAGS = @SCI_CFLAGS@ +SCI_CXXFLAGS = @SCI_CXXFLAGS@ +SCI_FFLAGS = @SCI_FFLAGS@ +SCI_LDFLAGS = @SCI_LDFLAGS@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SET_RELOCATABLE = @SET_RELOCATABLE@ +SHELL = @SHELL@ +SKINLF = @SKINLF@ +SPLINT = @SPLINT@ +STRIP = @STRIP@ +SWIG_BIN = @SWIG_BIN@ +SWIG_JAVA = @SWIG_JAVA@ +SWIG_RUNTIME_LIBS_DIR = @SWIG_RUNTIME_LIBS_DIR@ +SWIG_SCILAB = @SWIG_SCILAB@ +TCLTK_LIBS = @TCLTK_LIBS@ +TCL_INC_PATH = @TCL_INC_PATH@ +TK_INC_PATH = @TK_INC_PATH@ +UMFPACK_CFLAGS = @UMFPACK_CFLAGS@ +UMFPACK_ENABLE = @UMFPACK_ENABLE@ +UMFPACK_LIB = @UMFPACK_LIB@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +WITH_OCAML = @WITH_OCAML@ +WITH_TKSCI = @WITH_TKSCI@ +XCOS_ENABLE = @XCOS_ENABLE@ +XGETTEXT = @XGETTEXT@ +XGETTEXT_015 = @XGETTEXT_015@ +XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ +XMKMF = @XMKMF@ +XMLGRAPHICS_COMMONS = @XMLGRAPHICS_COMMONS@ +XML_APIS_EXT = @XML_APIS_EXT@ +XML_CONFIG = @XML_CONFIG@ +XML_FLAGS = @XML_FLAGS@ +XML_LIBS = @XML_LIBS@ +XML_VERSION = @XML_VERSION@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +cxx_present = @cxx_present@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +STRING_C_SOURCES = src/c/code2str.c \ +src/c/stripblanks.c \ +src/c/convstr.c \ +src/c/men_Sutils.c \ +src/c/tokens.c \ +src/c/strsplit.c \ +src/c/partfunction.c \ +src/c/InitializeString.c \ +src/c/setScilabCharactersCodes.c \ +src/c/cvstr.c \ +src/c/getfastcode.c \ +src/c/pcre_private.c \ +src/c/pcre_error.c \ +src/c/isletter.c \ +src/c/isdigit.c \ +src/c/strsubst.c \ +src/c/stristr.c \ +src/c/stringsstrrchr.c \ +src/c/stringsstrrev.c \ +src/c/stringsCompare.c \ +src/c/isalphanum.c \ +src/c/StringConvert.c \ +src/c/scistrtostr.c \ +src/c/stringToDouble.c \ +src/c/isnum.c \ +src/c/stringToComplex.c \ +src/c/complex_array.c + +STRING_CPP_SOURCES = \ + src/cpp/sort_inter.cpp + +STRING_FORTRAN_SOURCES = +GATEWAY_C_SOURCES = sci_gateway/c/gw_string.c \ +sci_gateway/c/sci_ascii.c \ +sci_gateway/c/sci_code2str.c \ +sci_gateway/c/sci_convstr.c \ +sci_gateway/c/sci_emptystr.c \ +sci_gateway/c/sci_grep.c \ +sci_gateway/c/sci_length.c \ +sci_gateway/c/sci_part.c \ +sci_gateway/c/sci_str2code.c \ +sci_gateway/c/sci_strcat.c \ +sci_gateway/c/sci_strindex.c \ +sci_gateway/c/sci_string.c \ +sci_gateway/c/sci_stripblanks.c \ +sci_gateway/c/sci_strsplit.c \ +sci_gateway/c/sci_strsubst.c \ +sci_gateway/c/sci_tokens.c \ +sci_gateway/c/sci_strcmp.c \ +sci_gateway/c/sci_isletter.c \ +sci_gateway/c/sci_isdigit.c \ +sci_gateway/c/sci_isalphanum.c \ +sci_gateway/c/sci_isascii.c \ +sci_gateway/c/sci_strchr.c \ +sci_gateway/c/sci_strcspn.c \ +sci_gateway/c/sci_strncpy.c \ +sci_gateway/c/sci_strrev.c \ +sci_gateway/c/sci_strspn.c \ +sci_gateway/c/sci_strstr.c \ +sci_gateway/c/sci_strtod.c \ +sci_gateway/c/sci_strtok.c \ +sci_gateway/c/sci_regexp.c \ +sci_gateway/c/sci_isnum.c + +GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/sci_f_string.f \ +sci_gateway/fortran/strops.f + +libscistring_la_CPPFLAGS = -I$(srcdir)/src/c \ + -I$(srcdir)/includes/ \ + -I$(srcdir)/src/cpp/ \ + -I$(top_srcdir)/modules/functions/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + -I$(top_srcdir)/modules/spreadsheet/src/c/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + $(PCRE_CFLAGS) \ + $(AM_CPPFLAGS) + +@MAINTAINER_MODE_TRUE@pkglib_LTLIBRARIES = libscistring.la +@MAINTAINER_MODE_FALSE@noinst_LTLIBRARIES = libscistring-algo.la libscistring.la +@MAINTAINER_MODE_TRUE@noinst_LTLIBRARIES = libscistring-algo.la +libscistring_la_LDFLAGS = $(AM_LDFLAGS) +libscistring_algo_la_SOURCES = $(STRING_C_SOURCES) $(STRING_CPP_SOURCES) $(STRING_FORTRAN_SOURCES) +libscistring_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES) +libscistring_algo_la_CPPFLAGS = $(libscistring_la_CPPFLAGS) + +# For the code check (splint) +CHECK_SRC = $(STRING_C_SOURCES) $(GATEWAY_C_SOURCES) +INCLUDE_FLAGS = $(libscistring_la_CPPFLAGS) + +# commented since it is the first module to be processed +libscistring_la_LIBADD = libscistring-algo.la $(PCRE_LIBS) + +#### Target ###### +modulename = string + +#### string : Conf files #### +libscistring_la_rootdir = $(mydatadir) +libscistring_la_root_DATA = license.txt + +####string : init scripts #### +libscistring_la_etcdir = $(mydatadir)/etc +libscistring_la_etc_DATA = etc/string.quit etc/string.start + +####string : gateway declaration #### +libscistring_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libscistring_la_sci_gateway_DATA = sci_gateway/string_gateway.xml + +# Where all the Scilab stuff is installed (macros, help, ...) +mydatadir = $(pkgdatadir)/modules/$(modulename) + +# Set AM_* SCI detected settings +AM_CPPFLAGS = $(SCI_CPPFLAGS) +AM_CFLAGS = $(SCI_CFLAGS) +AM_CXXFLAGS = $(SCI_CXXFLAGS) +# append includes to AM_FFLAGS to manage fortran includes +AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/ + +# Tag shared libraries with the Scilab version +AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION) + +# splint options +SPLINT_OPTIONS = -weak -booltype BOOL + +########################### JAVA ###################################### +#### We are delegating java compilation to ant... Thanks to that +#### the procedure will be the same with Microsoft Windows (C) +#### and Linux/Unix +####################################################################### +TARGETS_ALL = $(am__append_1) + +################ MACROS ###################### +# Rule to build a macro +# NOT USED AT THE MOMENT +SUFFIXES = .sci + +########### INSTALL DOCUMENTATION ################### + +# Install documentation files into the right target +# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because +# automake needs the html files to be present which is not the case when +# we are building Scilab + +# Where it should be installed +pkgdocdir = $(mydatadir) + +# What is the mask of the help source +DOCMASKXML = *.xml + +# What is the mask of the MathML sources +DOCMASKMML = *.mml + +########### INSTALL DATA ################### +# Install macros, help & demos +# Where it should be installed +pkgmacrosdir = $(mydatadir) +# Which directory we process +MACRODIRS = macros/ +# Mask of the Scilab sources macros +MACROMASK = *.sci +# Mask of the Scilab executable sources macros +MACROBUILDMASK = *.sce +# Mask of the Scilab compiled macros +MACROBINMASK = *.bin +# List of the standard directory for tests +TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java +# Where the demos should be installed +pkgdemosdir = $(mydatadir) +# List of the standard directory for demos +DEMOS_DIR = demos +# List of the standard directory for examples +EXAMPLES_DIR = examples +# Where to export JAVA archives (.jar) +JARDIR = jar/ +# JAR files mask +JARMASK = *.jar +# Chapter file +HELP_CHAPTERDIR = help/ +HELP_CHAPTERFILE = addchapter.sce +HELP_CHAPTERLANG = en_US fr_FR pt_BR +all: all-am + +.SUFFIXES: +.SUFFIXES: .sci .bin .c .cpp .f .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/string/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/string/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; +$(top_srcdir)/Makefile.incl.am: + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ + } + +uninstall-pkglibLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ + done + +clean-pkglibLTLIBRARIES: + -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) + @list='$(pkglib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +src/c/$(am__dirstamp): + @$(MKDIR_P) src/c + @: > src/c/$(am__dirstamp) +src/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/c/$(DEPDIR) + @: > src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-code2str.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stripblanks.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-convstr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-men_Sutils.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-tokens.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-strsplit.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-partfunction.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-InitializeString.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-setScilabCharactersCodes.lo: \ + src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-cvstr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-getfastcode.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-pcre_private.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-pcre_error.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-isletter.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-isdigit.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-strsubst.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stristr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringsstrrchr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringsstrrev.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringsCompare.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-isalphanum.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-StringConvert.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-scistrtostr.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringToDouble.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-isnum.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-stringToComplex.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscistring_algo_la-complex_array.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/cpp/$(am__dirstamp): + @$(MKDIR_P) src/cpp + @: > src/cpp/$(am__dirstamp) +src/cpp/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/cpp/$(DEPDIR) + @: > src/cpp/$(DEPDIR)/$(am__dirstamp) +src/cpp/libscistring_algo_la-sort_inter.lo: src/cpp/$(am__dirstamp) \ + src/cpp/$(DEPDIR)/$(am__dirstamp) + +libscistring-algo.la: $(libscistring_algo_la_OBJECTS) $(libscistring_algo_la_DEPENDENCIES) $(EXTRA_libscistring_algo_la_DEPENDENCIES) + $(AM_V_CXXLD)$(CXXLINK) $(am_libscistring_algo_la_rpath) $(libscistring_algo_la_OBJECTS) $(libscistring_algo_la_LIBADD) $(LIBS) +sci_gateway/c/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c + @: > sci_gateway/c/$(am__dirstamp) +sci_gateway/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c/$(DEPDIR) + @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-gw_string.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_ascii.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_code2str.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_convstr.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_emptystr.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_grep.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_length.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_part.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_str2code.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strcat.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strindex.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_string.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_stripblanks.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strsplit.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strsubst.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_tokens.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strcmp.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isletter.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isdigit.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isalphanum.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isascii.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strchr.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strcspn.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strncpy.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strrev.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strspn.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strstr.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strtod.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_strtok.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_regexp.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscistring_la-sci_isnum.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/fortran + @: > sci_gateway/fortran/$(am__dirstamp) +sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/fortran/$(DEPDIR) + @: > sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/sci_f_string.lo: \ + sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) +sci_gateway/fortran/strops.lo: sci_gateway/fortran/$(am__dirstamp) \ + sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) + +libscistring.la: $(libscistring_la_OBJECTS) $(libscistring_la_DEPENDENCIES) $(EXTRA_libscistring_la_DEPENDENCIES) + $(AM_V_F77LD)$(libscistring_la_LINK) $(am_libscistring_la_rpath) $(libscistring_la_OBJECTS) $(libscistring_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f sci_gateway/c/*.$(OBJEXT) + -rm -f sci_gateway/c/*.lo + -rm -f sci_gateway/fortran/*.$(OBJEXT) + -rm -f sci_gateway/fortran/*.lo + -rm -f src/c/*.$(OBJEXT) + -rm -f src/c/*.lo + -rm -f src/cpp/*.$(OBJEXT) + -rm -f src/cpp/*.lo + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-gw_string.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_ascii.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_code2str.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_convstr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_emptystr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_grep.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isalphanum.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isascii.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isdigit.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isletter.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isnum.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_length.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_part.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_regexp.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_str2code.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcat.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strchr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcmp.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcspn.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strindex.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_string.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_stripblanks.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strncpy.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strrev.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsplit.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strspn.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strstr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsubst.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtod.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtok.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscistring_la-sci_tokens.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-InitializeString.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-StringConvert.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-code2str.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-complex_array.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-convstr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-cvstr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-getfastcode.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-isalphanum.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-isdigit.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-isletter.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-isnum.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-men_Sutils.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-partfunction.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-pcre_error.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-pcre_private.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-scistrtostr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-setScilabCharactersCodes.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-stringToComplex.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-stringToDouble.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-stringsCompare.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrchr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrev.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-stripblanks.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-stristr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-strsplit.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-strsubst.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscistring_algo_la-tokens.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/cpp/$(DEPDIR)/libscistring_algo_la-sort_inter.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +src/c/libscistring_algo_la-code2str.lo: src/c/code2str.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-code2str.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-code2str.Tpo -c -o src/c/libscistring_algo_la-code2str.lo `test -f 'src/c/code2str.c' || echo '$(srcdir)/'`src/c/code2str.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-code2str.Tpo src/c/$(DEPDIR)/libscistring_algo_la-code2str.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/code2str.c' object='src/c/libscistring_algo_la-code2str.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-code2str.lo `test -f 'src/c/code2str.c' || echo '$(srcdir)/'`src/c/code2str.c + +src/c/libscistring_algo_la-stripblanks.lo: src/c/stripblanks.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stripblanks.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stripblanks.Tpo -c -o src/c/libscistring_algo_la-stripblanks.lo `test -f 'src/c/stripblanks.c' || echo '$(srcdir)/'`src/c/stripblanks.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stripblanks.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stripblanks.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/stripblanks.c' object='src/c/libscistring_algo_la-stripblanks.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stripblanks.lo `test -f 'src/c/stripblanks.c' || echo '$(srcdir)/'`src/c/stripblanks.c + +src/c/libscistring_algo_la-convstr.lo: src/c/convstr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-convstr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-convstr.Tpo -c -o src/c/libscistring_algo_la-convstr.lo `test -f 'src/c/convstr.c' || echo '$(srcdir)/'`src/c/convstr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-convstr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-convstr.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/convstr.c' object='src/c/libscistring_algo_la-convstr.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-convstr.lo `test -f 'src/c/convstr.c' || echo '$(srcdir)/'`src/c/convstr.c + +src/c/libscistring_algo_la-men_Sutils.lo: src/c/men_Sutils.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-men_Sutils.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-men_Sutils.Tpo -c -o src/c/libscistring_algo_la-men_Sutils.lo `test -f 'src/c/men_Sutils.c' || echo '$(srcdir)/'`src/c/men_Sutils.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-men_Sutils.Tpo src/c/$(DEPDIR)/libscistring_algo_la-men_Sutils.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/men_Sutils.c' object='src/c/libscistring_algo_la-men_Sutils.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-men_Sutils.lo `test -f 'src/c/men_Sutils.c' || echo '$(srcdir)/'`src/c/men_Sutils.c + +src/c/libscistring_algo_la-tokens.lo: src/c/tokens.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-tokens.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-tokens.Tpo -c -o src/c/libscistring_algo_la-tokens.lo `test -f 'src/c/tokens.c' || echo '$(srcdir)/'`src/c/tokens.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-tokens.Tpo src/c/$(DEPDIR)/libscistring_algo_la-tokens.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/tokens.c' object='src/c/libscistring_algo_la-tokens.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-tokens.lo `test -f 'src/c/tokens.c' || echo '$(srcdir)/'`src/c/tokens.c + +src/c/libscistring_algo_la-strsplit.lo: src/c/strsplit.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-strsplit.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-strsplit.Tpo -c -o src/c/libscistring_algo_la-strsplit.lo `test -f 'src/c/strsplit.c' || echo '$(srcdir)/'`src/c/strsplit.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-strsplit.Tpo src/c/$(DEPDIR)/libscistring_algo_la-strsplit.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/strsplit.c' object='src/c/libscistring_algo_la-strsplit.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-strsplit.lo `test -f 'src/c/strsplit.c' || echo '$(srcdir)/'`src/c/strsplit.c + +src/c/libscistring_algo_la-partfunction.lo: src/c/partfunction.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-partfunction.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-partfunction.Tpo -c -o src/c/libscistring_algo_la-partfunction.lo `test -f 'src/c/partfunction.c' || echo '$(srcdir)/'`src/c/partfunction.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-partfunction.Tpo src/c/$(DEPDIR)/libscistring_algo_la-partfunction.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/partfunction.c' object='src/c/libscistring_algo_la-partfunction.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-partfunction.lo `test -f 'src/c/partfunction.c' || echo '$(srcdir)/'`src/c/partfunction.c + +src/c/libscistring_algo_la-InitializeString.lo: src/c/InitializeString.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-InitializeString.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-InitializeString.Tpo -c -o src/c/libscistring_algo_la-InitializeString.lo `test -f 'src/c/InitializeString.c' || echo '$(srcdir)/'`src/c/InitializeString.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-InitializeString.Tpo src/c/$(DEPDIR)/libscistring_algo_la-InitializeString.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/InitializeString.c' object='src/c/libscistring_algo_la-InitializeString.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-InitializeString.lo `test -f 'src/c/InitializeString.c' || echo '$(srcdir)/'`src/c/InitializeString.c + +src/c/libscistring_algo_la-setScilabCharactersCodes.lo: src/c/setScilabCharactersCodes.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-setScilabCharactersCodes.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-setScilabCharactersCodes.Tpo -c -o src/c/libscistring_algo_la-setScilabCharactersCodes.lo `test -f 'src/c/setScilabCharactersCodes.c' || echo '$(srcdir)/'`src/c/setScilabCharactersCodes.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-setScilabCharactersCodes.Tpo src/c/$(DEPDIR)/libscistring_algo_la-setScilabCharactersCodes.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/setScilabCharactersCodes.c' object='src/c/libscistring_algo_la-setScilabCharactersCodes.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-setScilabCharactersCodes.lo `test -f 'src/c/setScilabCharactersCodes.c' || echo '$(srcdir)/'`src/c/setScilabCharactersCodes.c + +src/c/libscistring_algo_la-cvstr.lo: src/c/cvstr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-cvstr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-cvstr.Tpo -c -o src/c/libscistring_algo_la-cvstr.lo `test -f 'src/c/cvstr.c' || echo '$(srcdir)/'`src/c/cvstr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-cvstr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-cvstr.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/cvstr.c' object='src/c/libscistring_algo_la-cvstr.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-cvstr.lo `test -f 'src/c/cvstr.c' || echo '$(srcdir)/'`src/c/cvstr.c + +src/c/libscistring_algo_la-getfastcode.lo: src/c/getfastcode.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-getfastcode.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-getfastcode.Tpo -c -o src/c/libscistring_algo_la-getfastcode.lo `test -f 'src/c/getfastcode.c' || echo '$(srcdir)/'`src/c/getfastcode.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-getfastcode.Tpo src/c/$(DEPDIR)/libscistring_algo_la-getfastcode.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/getfastcode.c' object='src/c/libscistring_algo_la-getfastcode.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-getfastcode.lo `test -f 'src/c/getfastcode.c' || echo '$(srcdir)/'`src/c/getfastcode.c + +src/c/libscistring_algo_la-pcre_private.lo: src/c/pcre_private.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-pcre_private.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-pcre_private.Tpo -c -o src/c/libscistring_algo_la-pcre_private.lo `test -f 'src/c/pcre_private.c' || echo '$(srcdir)/'`src/c/pcre_private.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-pcre_private.Tpo src/c/$(DEPDIR)/libscistring_algo_la-pcre_private.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/pcre_private.c' object='src/c/libscistring_algo_la-pcre_private.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-pcre_private.lo `test -f 'src/c/pcre_private.c' || echo '$(srcdir)/'`src/c/pcre_private.c + +src/c/libscistring_algo_la-pcre_error.lo: src/c/pcre_error.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-pcre_error.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-pcre_error.Tpo -c -o src/c/libscistring_algo_la-pcre_error.lo `test -f 'src/c/pcre_error.c' || echo '$(srcdir)/'`src/c/pcre_error.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-pcre_error.Tpo src/c/$(DEPDIR)/libscistring_algo_la-pcre_error.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/pcre_error.c' object='src/c/libscistring_algo_la-pcre_error.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-pcre_error.lo `test -f 'src/c/pcre_error.c' || echo '$(srcdir)/'`src/c/pcre_error.c + +src/c/libscistring_algo_la-isletter.lo: src/c/isletter.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-isletter.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-isletter.Tpo -c -o src/c/libscistring_algo_la-isletter.lo `test -f 'src/c/isletter.c' || echo '$(srcdir)/'`src/c/isletter.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-isletter.Tpo src/c/$(DEPDIR)/libscistring_algo_la-isletter.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/isletter.c' object='src/c/libscistring_algo_la-isletter.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-isletter.lo `test -f 'src/c/isletter.c' || echo '$(srcdir)/'`src/c/isletter.c + +src/c/libscistring_algo_la-isdigit.lo: src/c/isdigit.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-isdigit.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-isdigit.Tpo -c -o src/c/libscistring_algo_la-isdigit.lo `test -f 'src/c/isdigit.c' || echo '$(srcdir)/'`src/c/isdigit.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-isdigit.Tpo src/c/$(DEPDIR)/libscistring_algo_la-isdigit.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/isdigit.c' object='src/c/libscistring_algo_la-isdigit.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-isdigit.lo `test -f 'src/c/isdigit.c' || echo '$(srcdir)/'`src/c/isdigit.c + +src/c/libscistring_algo_la-strsubst.lo: src/c/strsubst.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-strsubst.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-strsubst.Tpo -c -o src/c/libscistring_algo_la-strsubst.lo `test -f 'src/c/strsubst.c' || echo '$(srcdir)/'`src/c/strsubst.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-strsubst.Tpo src/c/$(DEPDIR)/libscistring_algo_la-strsubst.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/strsubst.c' object='src/c/libscistring_algo_la-strsubst.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-strsubst.lo `test -f 'src/c/strsubst.c' || echo '$(srcdir)/'`src/c/strsubst.c + +src/c/libscistring_algo_la-stristr.lo: src/c/stristr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stristr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stristr.Tpo -c -o src/c/libscistring_algo_la-stristr.lo `test -f 'src/c/stristr.c' || echo '$(srcdir)/'`src/c/stristr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stristr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stristr.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/stristr.c' object='src/c/libscistring_algo_la-stristr.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stristr.lo `test -f 'src/c/stristr.c' || echo '$(srcdir)/'`src/c/stristr.c + +src/c/libscistring_algo_la-stringsstrrchr.lo: src/c/stringsstrrchr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringsstrrchr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrchr.Tpo -c -o src/c/libscistring_algo_la-stringsstrrchr.lo `test -f 'src/c/stringsstrrchr.c' || echo '$(srcdir)/'`src/c/stringsstrrchr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrchr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrchr.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/stringsstrrchr.c' object='src/c/libscistring_algo_la-stringsstrrchr.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringsstrrchr.lo `test -f 'src/c/stringsstrrchr.c' || echo '$(srcdir)/'`src/c/stringsstrrchr.c + +src/c/libscistring_algo_la-stringsstrrev.lo: src/c/stringsstrrev.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringsstrrev.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrev.Tpo -c -o src/c/libscistring_algo_la-stringsstrrev.lo `test -f 'src/c/stringsstrrev.c' || echo '$(srcdir)/'`src/c/stringsstrrev.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrev.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringsstrrev.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/stringsstrrev.c' object='src/c/libscistring_algo_la-stringsstrrev.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringsstrrev.lo `test -f 'src/c/stringsstrrev.c' || echo '$(srcdir)/'`src/c/stringsstrrev.c + +src/c/libscistring_algo_la-stringsCompare.lo: src/c/stringsCompare.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringsCompare.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringsCompare.Tpo -c -o src/c/libscistring_algo_la-stringsCompare.lo `test -f 'src/c/stringsCompare.c' || echo '$(srcdir)/'`src/c/stringsCompare.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringsCompare.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringsCompare.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/stringsCompare.c' object='src/c/libscistring_algo_la-stringsCompare.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringsCompare.lo `test -f 'src/c/stringsCompare.c' || echo '$(srcdir)/'`src/c/stringsCompare.c + +src/c/libscistring_algo_la-isalphanum.lo: src/c/isalphanum.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-isalphanum.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-isalphanum.Tpo -c -o src/c/libscistring_algo_la-isalphanum.lo `test -f 'src/c/isalphanum.c' || echo '$(srcdir)/'`src/c/isalphanum.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-isalphanum.Tpo src/c/$(DEPDIR)/libscistring_algo_la-isalphanum.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/isalphanum.c' object='src/c/libscistring_algo_la-isalphanum.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-isalphanum.lo `test -f 'src/c/isalphanum.c' || echo '$(srcdir)/'`src/c/isalphanum.c + +src/c/libscistring_algo_la-StringConvert.lo: src/c/StringConvert.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-StringConvert.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-StringConvert.Tpo -c -o src/c/libscistring_algo_la-StringConvert.lo `test -f 'src/c/StringConvert.c' || echo '$(srcdir)/'`src/c/StringConvert.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-StringConvert.Tpo src/c/$(DEPDIR)/libscistring_algo_la-StringConvert.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/StringConvert.c' object='src/c/libscistring_algo_la-StringConvert.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-StringConvert.lo `test -f 'src/c/StringConvert.c' || echo '$(srcdir)/'`src/c/StringConvert.c + +src/c/libscistring_algo_la-scistrtostr.lo: src/c/scistrtostr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-scistrtostr.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-scistrtostr.Tpo -c -o src/c/libscistring_algo_la-scistrtostr.lo `test -f 'src/c/scistrtostr.c' || echo '$(srcdir)/'`src/c/scistrtostr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-scistrtostr.Tpo src/c/$(DEPDIR)/libscistring_algo_la-scistrtostr.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/scistrtostr.c' object='src/c/libscistring_algo_la-scistrtostr.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-scistrtostr.lo `test -f 'src/c/scistrtostr.c' || echo '$(srcdir)/'`src/c/scistrtostr.c + +src/c/libscistring_algo_la-stringToDouble.lo: src/c/stringToDouble.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringToDouble.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringToDouble.Tpo -c -o src/c/libscistring_algo_la-stringToDouble.lo `test -f 'src/c/stringToDouble.c' || echo '$(srcdir)/'`src/c/stringToDouble.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringToDouble.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringToDouble.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/stringToDouble.c' object='src/c/libscistring_algo_la-stringToDouble.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringToDouble.lo `test -f 'src/c/stringToDouble.c' || echo '$(srcdir)/'`src/c/stringToDouble.c + +src/c/libscistring_algo_la-isnum.lo: src/c/isnum.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-isnum.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-isnum.Tpo -c -o src/c/libscistring_algo_la-isnum.lo `test -f 'src/c/isnum.c' || echo '$(srcdir)/'`src/c/isnum.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-isnum.Tpo src/c/$(DEPDIR)/libscistring_algo_la-isnum.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/isnum.c' object='src/c/libscistring_algo_la-isnum.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-isnum.lo `test -f 'src/c/isnum.c' || echo '$(srcdir)/'`src/c/isnum.c + +src/c/libscistring_algo_la-stringToComplex.lo: src/c/stringToComplex.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-stringToComplex.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-stringToComplex.Tpo -c -o src/c/libscistring_algo_la-stringToComplex.lo `test -f 'src/c/stringToComplex.c' || echo '$(srcdir)/'`src/c/stringToComplex.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-stringToComplex.Tpo src/c/$(DEPDIR)/libscistring_algo_la-stringToComplex.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/stringToComplex.c' object='src/c/libscistring_algo_la-stringToComplex.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-stringToComplex.lo `test -f 'src/c/stringToComplex.c' || echo '$(srcdir)/'`src/c/stringToComplex.c + +src/c/libscistring_algo_la-complex_array.lo: src/c/complex_array.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscistring_algo_la-complex_array.lo -MD -MP -MF src/c/$(DEPDIR)/libscistring_algo_la-complex_array.Tpo -c -o src/c/libscistring_algo_la-complex_array.lo `test -f 'src/c/complex_array.c' || echo '$(srcdir)/'`src/c/complex_array.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscistring_algo_la-complex_array.Tpo src/c/$(DEPDIR)/libscistring_algo_la-complex_array.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/complex_array.c' object='src/c/libscistring_algo_la-complex_array.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscistring_algo_la-complex_array.lo `test -f 'src/c/complex_array.c' || echo '$(srcdir)/'`src/c/complex_array.c + +sci_gateway/c/libscistring_la-gw_string.lo: sci_gateway/c/gw_string.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-gw_string.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-gw_string.Tpo -c -o sci_gateway/c/libscistring_la-gw_string.lo `test -f 'sci_gateway/c/gw_string.c' || echo '$(srcdir)/'`sci_gateway/c/gw_string.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-gw_string.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-gw_string.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/gw_string.c' object='sci_gateway/c/libscistring_la-gw_string.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-gw_string.lo `test -f 'sci_gateway/c/gw_string.c' || echo '$(srcdir)/'`sci_gateway/c/gw_string.c + +sci_gateway/c/libscistring_la-sci_ascii.lo: sci_gateway/c/sci_ascii.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_ascii.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_ascii.Tpo -c -o sci_gateway/c/libscistring_la-sci_ascii.lo `test -f 'sci_gateway/c/sci_ascii.c' || echo '$(srcdir)/'`sci_gateway/c/sci_ascii.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_ascii.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_ascii.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_ascii.c' object='sci_gateway/c/libscistring_la-sci_ascii.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_ascii.lo `test -f 'sci_gateway/c/sci_ascii.c' || echo '$(srcdir)/'`sci_gateway/c/sci_ascii.c + +sci_gateway/c/libscistring_la-sci_code2str.lo: sci_gateway/c/sci_code2str.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_code2str.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_code2str.Tpo -c -o sci_gateway/c/libscistring_la-sci_code2str.lo `test -f 'sci_gateway/c/sci_code2str.c' || echo '$(srcdir)/'`sci_gateway/c/sci_code2str.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_code2str.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_code2str.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_code2str.c' object='sci_gateway/c/libscistring_la-sci_code2str.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_code2str.lo `test -f 'sci_gateway/c/sci_code2str.c' || echo '$(srcdir)/'`sci_gateway/c/sci_code2str.c + +sci_gateway/c/libscistring_la-sci_convstr.lo: sci_gateway/c/sci_convstr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_convstr.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_convstr.Tpo -c -o sci_gateway/c/libscistring_la-sci_convstr.lo `test -f 'sci_gateway/c/sci_convstr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_convstr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_convstr.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_convstr.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_convstr.c' object='sci_gateway/c/libscistring_la-sci_convstr.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_convstr.lo `test -f 'sci_gateway/c/sci_convstr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_convstr.c + +sci_gateway/c/libscistring_la-sci_emptystr.lo: sci_gateway/c/sci_emptystr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_emptystr.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_emptystr.Tpo -c -o sci_gateway/c/libscistring_la-sci_emptystr.lo `test -f 'sci_gateway/c/sci_emptystr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_emptystr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_emptystr.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_emptystr.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_emptystr.c' object='sci_gateway/c/libscistring_la-sci_emptystr.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_emptystr.lo `test -f 'sci_gateway/c/sci_emptystr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_emptystr.c + +sci_gateway/c/libscistring_la-sci_grep.lo: sci_gateway/c/sci_grep.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_grep.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_grep.Tpo -c -o sci_gateway/c/libscistring_la-sci_grep.lo `test -f 'sci_gateway/c/sci_grep.c' || echo '$(srcdir)/'`sci_gateway/c/sci_grep.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_grep.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_grep.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_grep.c' object='sci_gateway/c/libscistring_la-sci_grep.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_grep.lo `test -f 'sci_gateway/c/sci_grep.c' || echo '$(srcdir)/'`sci_gateway/c/sci_grep.c + +sci_gateway/c/libscistring_la-sci_length.lo: sci_gateway/c/sci_length.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_length.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_length.Tpo -c -o sci_gateway/c/libscistring_la-sci_length.lo `test -f 'sci_gateway/c/sci_length.c' || echo '$(srcdir)/'`sci_gateway/c/sci_length.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_length.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_length.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_length.c' object='sci_gateway/c/libscistring_la-sci_length.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_length.lo `test -f 'sci_gateway/c/sci_length.c' || echo '$(srcdir)/'`sci_gateway/c/sci_length.c + +sci_gateway/c/libscistring_la-sci_part.lo: sci_gateway/c/sci_part.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_part.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_part.Tpo -c -o sci_gateway/c/libscistring_la-sci_part.lo `test -f 'sci_gateway/c/sci_part.c' || echo '$(srcdir)/'`sci_gateway/c/sci_part.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_part.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_part.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_part.c' object='sci_gateway/c/libscistring_la-sci_part.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_part.lo `test -f 'sci_gateway/c/sci_part.c' || echo '$(srcdir)/'`sci_gateway/c/sci_part.c + +sci_gateway/c/libscistring_la-sci_str2code.lo: sci_gateway/c/sci_str2code.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_str2code.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_str2code.Tpo -c -o sci_gateway/c/libscistring_la-sci_str2code.lo `test -f 'sci_gateway/c/sci_str2code.c' || echo '$(srcdir)/'`sci_gateway/c/sci_str2code.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_str2code.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_str2code.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_str2code.c' object='sci_gateway/c/libscistring_la-sci_str2code.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_str2code.lo `test -f 'sci_gateway/c/sci_str2code.c' || echo '$(srcdir)/'`sci_gateway/c/sci_str2code.c + +sci_gateway/c/libscistring_la-sci_strcat.lo: sci_gateway/c/sci_strcat.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strcat.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcat.Tpo -c -o sci_gateway/c/libscistring_la-sci_strcat.lo `test -f 'sci_gateway/c/sci_strcat.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcat.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcat.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcat.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strcat.c' object='sci_gateway/c/libscistring_la-sci_strcat.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strcat.lo `test -f 'sci_gateway/c/sci_strcat.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcat.c + +sci_gateway/c/libscistring_la-sci_strindex.lo: sci_gateway/c/sci_strindex.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strindex.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strindex.Tpo -c -o sci_gateway/c/libscistring_la-sci_strindex.lo `test -f 'sci_gateway/c/sci_strindex.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strindex.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strindex.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strindex.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strindex.c' object='sci_gateway/c/libscistring_la-sci_strindex.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strindex.lo `test -f 'sci_gateway/c/sci_strindex.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strindex.c + +sci_gateway/c/libscistring_la-sci_string.lo: sci_gateway/c/sci_string.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_string.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_string.Tpo -c -o sci_gateway/c/libscistring_la-sci_string.lo `test -f 'sci_gateway/c/sci_string.c' || echo '$(srcdir)/'`sci_gateway/c/sci_string.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_string.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_string.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_string.c' object='sci_gateway/c/libscistring_la-sci_string.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_string.lo `test -f 'sci_gateway/c/sci_string.c' || echo '$(srcdir)/'`sci_gateway/c/sci_string.c + +sci_gateway/c/libscistring_la-sci_stripblanks.lo: sci_gateway/c/sci_stripblanks.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_stripblanks.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_stripblanks.Tpo -c -o sci_gateway/c/libscistring_la-sci_stripblanks.lo `test -f 'sci_gateway/c/sci_stripblanks.c' || echo '$(srcdir)/'`sci_gateway/c/sci_stripblanks.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_stripblanks.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_stripblanks.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_stripblanks.c' object='sci_gateway/c/libscistring_la-sci_stripblanks.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_stripblanks.lo `test -f 'sci_gateway/c/sci_stripblanks.c' || echo '$(srcdir)/'`sci_gateway/c/sci_stripblanks.c + +sci_gateway/c/libscistring_la-sci_strsplit.lo: sci_gateway/c/sci_strsplit.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strsplit.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsplit.Tpo -c -o sci_gateway/c/libscistring_la-sci_strsplit.lo `test -f 'sci_gateway/c/sci_strsplit.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strsplit.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsplit.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsplit.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strsplit.c' object='sci_gateway/c/libscistring_la-sci_strsplit.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strsplit.lo `test -f 'sci_gateway/c/sci_strsplit.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strsplit.c + +sci_gateway/c/libscistring_la-sci_strsubst.lo: sci_gateway/c/sci_strsubst.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strsubst.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsubst.Tpo -c -o sci_gateway/c/libscistring_la-sci_strsubst.lo `test -f 'sci_gateway/c/sci_strsubst.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strsubst.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsubst.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strsubst.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strsubst.c' object='sci_gateway/c/libscistring_la-sci_strsubst.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strsubst.lo `test -f 'sci_gateway/c/sci_strsubst.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strsubst.c + +sci_gateway/c/libscistring_la-sci_tokens.lo: sci_gateway/c/sci_tokens.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_tokens.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_tokens.Tpo -c -o sci_gateway/c/libscistring_la-sci_tokens.lo `test -f 'sci_gateway/c/sci_tokens.c' || echo '$(srcdir)/'`sci_gateway/c/sci_tokens.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_tokens.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_tokens.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_tokens.c' object='sci_gateway/c/libscistring_la-sci_tokens.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_tokens.lo `test -f 'sci_gateway/c/sci_tokens.c' || echo '$(srcdir)/'`sci_gateway/c/sci_tokens.c + +sci_gateway/c/libscistring_la-sci_strcmp.lo: sci_gateway/c/sci_strcmp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strcmp.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcmp.Tpo -c -o sci_gateway/c/libscistring_la-sci_strcmp.lo `test -f 'sci_gateway/c/sci_strcmp.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcmp.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcmp.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcmp.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strcmp.c' object='sci_gateway/c/libscistring_la-sci_strcmp.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strcmp.lo `test -f 'sci_gateway/c/sci_strcmp.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcmp.c + +sci_gateway/c/libscistring_la-sci_isletter.lo: sci_gateway/c/sci_isletter.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isletter.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isletter.Tpo -c -o sci_gateway/c/libscistring_la-sci_isletter.lo `test -f 'sci_gateway/c/sci_isletter.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isletter.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isletter.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isletter.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_isletter.c' object='sci_gateway/c/libscistring_la-sci_isletter.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isletter.lo `test -f 'sci_gateway/c/sci_isletter.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isletter.c + +sci_gateway/c/libscistring_la-sci_isdigit.lo: sci_gateway/c/sci_isdigit.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isdigit.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isdigit.Tpo -c -o sci_gateway/c/libscistring_la-sci_isdigit.lo `test -f 'sci_gateway/c/sci_isdigit.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isdigit.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isdigit.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isdigit.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_isdigit.c' object='sci_gateway/c/libscistring_la-sci_isdigit.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isdigit.lo `test -f 'sci_gateway/c/sci_isdigit.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isdigit.c + +sci_gateway/c/libscistring_la-sci_isalphanum.lo: sci_gateway/c/sci_isalphanum.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isalphanum.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isalphanum.Tpo -c -o sci_gateway/c/libscistring_la-sci_isalphanum.lo `test -f 'sci_gateway/c/sci_isalphanum.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isalphanum.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isalphanum.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isalphanum.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_isalphanum.c' object='sci_gateway/c/libscistring_la-sci_isalphanum.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isalphanum.lo `test -f 'sci_gateway/c/sci_isalphanum.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isalphanum.c + +sci_gateway/c/libscistring_la-sci_isascii.lo: sci_gateway/c/sci_isascii.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isascii.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isascii.Tpo -c -o sci_gateway/c/libscistring_la-sci_isascii.lo `test -f 'sci_gateway/c/sci_isascii.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isascii.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isascii.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isascii.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_isascii.c' object='sci_gateway/c/libscistring_la-sci_isascii.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isascii.lo `test -f 'sci_gateway/c/sci_isascii.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isascii.c + +sci_gateway/c/libscistring_la-sci_strchr.lo: sci_gateway/c/sci_strchr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strchr.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strchr.Tpo -c -o sci_gateway/c/libscistring_la-sci_strchr.lo `test -f 'sci_gateway/c/sci_strchr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strchr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strchr.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strchr.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strchr.c' object='sci_gateway/c/libscistring_la-sci_strchr.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strchr.lo `test -f 'sci_gateway/c/sci_strchr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strchr.c + +sci_gateway/c/libscistring_la-sci_strcspn.lo: sci_gateway/c/sci_strcspn.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strcspn.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcspn.Tpo -c -o sci_gateway/c/libscistring_la-sci_strcspn.lo `test -f 'sci_gateway/c/sci_strcspn.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcspn.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcspn.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strcspn.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strcspn.c' object='sci_gateway/c/libscistring_la-sci_strcspn.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strcspn.lo `test -f 'sci_gateway/c/sci_strcspn.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strcspn.c + +sci_gateway/c/libscistring_la-sci_strncpy.lo: sci_gateway/c/sci_strncpy.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strncpy.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strncpy.Tpo -c -o sci_gateway/c/libscistring_la-sci_strncpy.lo `test -f 'sci_gateway/c/sci_strncpy.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strncpy.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strncpy.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strncpy.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strncpy.c' object='sci_gateway/c/libscistring_la-sci_strncpy.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strncpy.lo `test -f 'sci_gateway/c/sci_strncpy.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strncpy.c + +sci_gateway/c/libscistring_la-sci_strrev.lo: sci_gateway/c/sci_strrev.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strrev.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strrev.Tpo -c -o sci_gateway/c/libscistring_la-sci_strrev.lo `test -f 'sci_gateway/c/sci_strrev.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strrev.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strrev.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strrev.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strrev.c' object='sci_gateway/c/libscistring_la-sci_strrev.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strrev.lo `test -f 'sci_gateway/c/sci_strrev.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strrev.c + +sci_gateway/c/libscistring_la-sci_strspn.lo: sci_gateway/c/sci_strspn.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strspn.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strspn.Tpo -c -o sci_gateway/c/libscistring_la-sci_strspn.lo `test -f 'sci_gateway/c/sci_strspn.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strspn.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strspn.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strspn.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strspn.c' object='sci_gateway/c/libscistring_la-sci_strspn.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strspn.lo `test -f 'sci_gateway/c/sci_strspn.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strspn.c + +sci_gateway/c/libscistring_la-sci_strstr.lo: sci_gateway/c/sci_strstr.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strstr.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strstr.Tpo -c -o sci_gateway/c/libscistring_la-sci_strstr.lo `test -f 'sci_gateway/c/sci_strstr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strstr.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strstr.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strstr.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strstr.c' object='sci_gateway/c/libscistring_la-sci_strstr.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strstr.lo `test -f 'sci_gateway/c/sci_strstr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strstr.c + +sci_gateway/c/libscistring_la-sci_strtod.lo: sci_gateway/c/sci_strtod.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strtod.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtod.Tpo -c -o sci_gateway/c/libscistring_la-sci_strtod.lo `test -f 'sci_gateway/c/sci_strtod.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strtod.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtod.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtod.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strtod.c' object='sci_gateway/c/libscistring_la-sci_strtod.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strtod.lo `test -f 'sci_gateway/c/sci_strtod.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strtod.c + +sci_gateway/c/libscistring_la-sci_strtok.lo: sci_gateway/c/sci_strtok.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_strtok.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtok.Tpo -c -o sci_gateway/c/libscistring_la-sci_strtok.lo `test -f 'sci_gateway/c/sci_strtok.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strtok.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtok.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_strtok.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_strtok.c' object='sci_gateway/c/libscistring_la-sci_strtok.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_strtok.lo `test -f 'sci_gateway/c/sci_strtok.c' || echo '$(srcdir)/'`sci_gateway/c/sci_strtok.c + +sci_gateway/c/libscistring_la-sci_regexp.lo: sci_gateway/c/sci_regexp.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_regexp.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_regexp.Tpo -c -o sci_gateway/c/libscistring_la-sci_regexp.lo `test -f 'sci_gateway/c/sci_regexp.c' || echo '$(srcdir)/'`sci_gateway/c/sci_regexp.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_regexp.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_regexp.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_regexp.c' object='sci_gateway/c/libscistring_la-sci_regexp.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_regexp.lo `test -f 'sci_gateway/c/sci_regexp.c' || echo '$(srcdir)/'`sci_gateway/c/sci_regexp.c + +sci_gateway/c/libscistring_la-sci_isnum.lo: sci_gateway/c/sci_isnum.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscistring_la-sci_isnum.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isnum.Tpo -c -o sci_gateway/c/libscistring_la-sci_isnum.lo `test -f 'sci_gateway/c/sci_isnum.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isnum.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isnum.Tpo sci_gateway/c/$(DEPDIR)/libscistring_la-sci_isnum.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_isnum.c' object='sci_gateway/c/libscistring_la-sci_isnum.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscistring_la-sci_isnum.lo `test -f 'sci_gateway/c/sci_isnum.c' || echo '$(srcdir)/'`sci_gateway/c/sci_isnum.c + +.cpp.o: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< + +src/cpp/libscistring_algo_la-sort_inter.lo: src/cpp/sort_inter.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT src/cpp/libscistring_algo_la-sort_inter.lo -MD -MP -MF src/cpp/$(DEPDIR)/libscistring_algo_la-sort_inter.Tpo -c -o src/cpp/libscistring_algo_la-sort_inter.lo `test -f 'src/cpp/sort_inter.cpp' || echo '$(srcdir)/'`src/cpp/sort_inter.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) src/cpp/$(DEPDIR)/libscistring_algo_la-sort_inter.Tpo src/cpp/$(DEPDIR)/libscistring_algo_la-sort_inter.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='src/cpp/sort_inter.cpp' object='src/cpp/libscistring_algo_la-sort_inter.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscistring_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o src/cpp/libscistring_algo_la-sort_inter.lo `test -f 'src/cpp/sort_inter.cpp' || echo '$(srcdir)/'`src/cpp/sort_inter.cpp + +.f.o: + $(AM_V_F77)$(F77COMPILE) -c -o $@ $< + +.f.obj: + $(AM_V_F77)$(F77COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.f.lo: + $(AM_V_F77)$(LTF77COMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs + -rm -rf sci_gateway/fortran/.libs sci_gateway/fortran/_libs + -rm -rf src/c/.libs src/c/_libs + -rm -rf src/cpp/.libs src/cpp/_libs +install-libscistring_la_etcDATA: $(libscistring_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libscistring_la_etc_DATA)'; test -n "$(libscistring_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscistring_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscistring_la_etcdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscistring_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscistring_la_etcdir)" || exit $$?; \ + done + +uninstall-libscistring_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscistring_la_etc_DATA)'; test -n "$(libscistring_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscistring_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libscistring_la_rootDATA: $(libscistring_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libscistring_la_root_DATA)'; test -n "$(libscistring_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscistring_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscistring_la_rootdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscistring_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscistring_la_rootdir)" || exit $$?; \ + done + +uninstall-libscistring_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscistring_la_root_DATA)'; test -n "$(libscistring_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscistring_la_rootdir)'; $(am__uninstall_files_from_dir) +install-libscistring_la_sci_gatewayDATA: $(libscistring_la_sci_gateway_DATA) + @$(NORMAL_INSTALL) + @list='$(libscistring_la_sci_gateway_DATA)'; test -n "$(libscistring_la_sci_gatewaydir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscistring_la_sci_gatewaydir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscistring_la_sci_gatewaydir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscistring_la_sci_gatewaydir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscistring_la_sci_gatewaydir)" || exit $$?; \ + done + +uninstall-libscistring_la_sci_gatewayDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscistring_la_sci_gateway_DATA)'; test -n "$(libscistring_la_sci_gatewaydir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscistring_la_sci_gatewaydir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) all-local +installdirs: + for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscistring_la_etcdir)" "$(DESTDIR)$(libscistring_la_rootdir)" "$(DESTDIR)$(libscistring_la_sci_gatewaydir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/c/$(am__dirstamp) + -rm -f sci_gateway/fortran/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/fortran/$(am__dirstamp) + -rm -f src/c/$(DEPDIR)/$(am__dirstamp) + -rm -f src/c/$(am__dirstamp) + -rm -f src/cpp/$(DEPDIR)/$(am__dirstamp) + -rm -f src/cpp/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) src/cpp/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-local distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local install-libscistring_la_etcDATA \ + install-libscistring_la_rootDATA \ + install-libscistring_la_sci_gatewayDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-pkglibLTLIBRARIES + +install-html: install-html-am + +install-html-am: install-html-local + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) src/cpp/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libscistring_la_etcDATA \ + uninstall-libscistring_la_rootDATA \ + uninstall-libscistring_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + +.MAKE: check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \ + check-local clean clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES cscopelist-am \ + ctags ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-local distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-data-local install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-html-local install-info \ + install-info-am install-libscistring_la_etcDATA \ + install-libscistring_la_rootDATA \ + install-libscistring_la_sci_gatewayDATA install-man \ + install-pdf install-pdf-am install-pkglibLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am \ + uninstall-libscistring_la_etcDATA \ + uninstall-libscistring_la_rootDATA \ + uninstall-libscistring_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + + +# This target enables tests for Scilab +check-local: $(top_builddir)/scilab-bin test + if test -d $(mydatadir)/tests; then \ + @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \ + fi +check-code: + if test -f build.xml; then \ + $(ANT) checkstyle; \ + fi + if test -x "$(SPLINT)"; then \ + $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \ + fi +@NEED_JAVA_TRUE@java: +# Some configurations needs to export JAVA_HOME in the current env +@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ +@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ +@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \ +@NEED_JAVA_TRUE@ $(ANT); \ +@NEED_JAVA_TRUE@ fi + +@NEED_JAVA_TRUE@clean-java: +# Some configurations needs to export JAVA_HOME in the current env +@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ +@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ +@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \ +@NEED_JAVA_TRUE@ $(ANT) clean; \ +@NEED_JAVA_TRUE@ fi; + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +@SWIG_TRUE@swig: $(SWIG_WRAPPERS) +@SWIG_TRUE@ @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \ +@SWIG_TRUE@ SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \ +@SWIG_TRUE@ if test -n "$(SWIG_WRAPPERS)"; then \ +@SWIG_TRUE@ for file in $(SWIG_WRAPPERS) ; do \ +@SWIG_TRUE@ echo "Swig process of $$file (Java) ..."; \ +@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \ +@SWIG_TRUE@ done; \ +@SWIG_TRUE@ fi + +@SWIG_TRUE@swig-scilab: $(SWIG_SCILAB_WRAPPERS) +@SWIG_TRUE@ @SWIG_OUTDIR=src/swig/; \ +@SWIG_TRUE@ if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \ +@SWIG_TRUE@ for file in $(SWIG_SCILAB_WRAPPERS) ; do \ +@SWIG_TRUE@ echo "Swig process of $$file (Scilab) ..."; \ +@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \ +@SWIG_TRUE@ done; \ +@SWIG_TRUE@ fi + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +@GIWS_TRUE@giws: $(GIWS_WRAPPERS) +@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/; \ +@GIWS_TRUE@ MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \ +@GIWS_TRUE@ if test -n "$(GIWS_WRAPPERS)"; then \ +@GIWS_TRUE@ for file in $(GIWS_WRAPPERS) ; do \ +@GIWS_TRUE@ echo "GIWS process of $$file ..."; \ +@GIWS_TRUE@ if test -z "$(GIWS_OPTIONS)"; then \ +@GIWS_TRUE@ $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +@GIWS_TRUE@ else \ +@GIWS_TRUE@ echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \ +@GIWS_TRUE@ $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +@GIWS_TRUE@ fi \ +@GIWS_TRUE@ done; \ +@GIWS_TRUE@ fi + +@GIWS_TRUE@giws-exception: +@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/;\ +@GIWS_TRUE@ echo "GIWS: Generation of exception class ..."; \ +@GIWS_TRUE@ $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR + +macros: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been built"; \ + else \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\ + fi) + +# Removes the macros +clean-macros: +# Removes macros (*.bin generated from .sci) + @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \ + rm -f $(builddir)/$$dir/$(MACROBINMASK); \ + done + +test: +# More tests could be added here + @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) test; \ + fi + +all-local: $(TARGETS_ALL) + +.sci.bin: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been build"; \ + else \ + echo "Creating $@"; \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \ + fi ) + +install-html-local: + +install-data-local-local: +# Mainly for javasci + @if test -d $(srcdir)/javadoc; then \ + cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \ + fi +# If the user wants the help sources to be installed +@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of XML sources of help files --------"; \ +@INSTALL_HELP_XML_TRUE@ for lang in $(ALL_LINGUAS); do \ +@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/$$lang; then \ +@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \ +@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \ +@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \ +@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \ +@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \ +@INSTALL_HELP_XML_TRUE@ done ; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ done; \ +@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of MathML sources --------"; \ +@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/mml/; then \ +@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \ +@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \ +@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \ +@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \ +@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \ +@INSTALL_HELP_XML_TRUE@ done ; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ fi +install-data-local: +# Install the tests + @echo "-------- Install tests (if any) --------"; \ + for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the help chapter + @echo "-------- Install the help chapter (if any) --------"; \ + for lang in $(HELP_CHAPTERLANG); do \ + HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \ + if test -f $$HELPFILE; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + fi; \ + done +# Install the demos & examples + @echo "-------- Install demos & examples (if any) --------"; \ + for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the macros + @echo "-------- Install macros (if any) --------"; \ + for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + if test -d $(srcdir)/$$dir/; then \ + FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\ + if test -n "$(MACROSSPECIALEXT)"; then \ + specialExtDir=""; \ + for specialExt in $(MACROSSPECIALEXT); do \ + specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \ + done; \ + FILELIST="$$FILELIST $$specialExtDir"; \ + fi; \ + for file in `ls -1 $$FILELIST 2>/dev/null`; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \ + done; \ + fi; \ + done +# Install java files (.jar) + @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \ + echo "-------- Install jar files --------"; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \ + for file in $(srcdir)/$(JARDIR)$(JARMASK); do\ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \ + done ; \ + fi + +########### CLEAN ################### +# Clean help (generated automatically by Scilab) +# It used to clean the macro (clean-macros) but this was causing +# make clean && make to fail Scilab startup +@NEED_JAVA_TRUE@clean-local: clean-java +@NEED_JAVA_FALSE@clean-local: + +distclean-local: + rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_* + +.PHONY: macros java swig giws + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/modules/string/etc/string.quit b/modules/string/etc/string.quit new file mode 100755 index 000000000..b64bbfc8d --- /dev/null +++ b/modules/string/etc/string.quit @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// 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 + +// ============================================================================= diff --git a/modules/string/etc/string.start b/modules/string/etc/string.start new file mode 100755 index 000000000..18cb55936 --- /dev/null +++ b/modules/string/etc/string.start @@ -0,0 +1,13 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - +// +// 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 + +// Load functions libraries +// ============================================================================= +load('SCI/modules/string/macros/lib'); + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="ascii" xml:lang="en"> + <refnamediv> + <refname>ascii</refname> + <refpurpose>string ASCII conversions</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>a = ascii(txt) + txt = ascii(a) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para>a character string or a matrix of character strings.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para>a vector of integer ASCII codes</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + 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. + </para> + <para> + If <varname>txt</varname> is a matrix of string, <code>ascii(txt)</code> is + equivalent to <code>ascii(strcat(txt))</code>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +ascii(["hello";"world"]) +ascii("scilab") +ascii([115 99 105 108 97 98]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="code2str">code2str</link> + </member> + <member> + <link linkend="str2code">str2code</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="asciimat"> + <refnamediv> + <refname>asciimat</refname> + <refpurpose>string matrix ASCII conversions</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis> + a = asciimat(txt) + txt = asciimat(a) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para> + a character string or matrix of strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para> + a vector or matrix of integer ASCII codes. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + 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 <function>ascii</function>. + </para> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="ascii">ascii</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="blanks"> + <refnamediv> + <refname>blanks</refname> + <refpurpose>create string of blank characters</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>txt = blanks(n)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para>a single character string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>n</term> + <listitem> + <para>an integer, number of blanks.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>blanks(n)</code> is a string of <varname>n</varname> blanks. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +disp(['xxx' blanks(20) 'yyy']) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Farid BELAHCENE + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="char" xml:lang="en"> + <refnamediv> + <refname>char</refname> + <refpurpose>converts in a character array</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis> + y = char(x) + y = char(st1, st2, st3,...) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>x</term> + <listitem> + <para>a cell array of strings, or an array of ASCII codes.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>st1, st2, st3</term> + <listitem> + <para>arrays of strings.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>y</term> + <listitem> + <para>a vector of strings (column).</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <emphasis role="bold">One input argument :</emphasis> + </para> + <para> + Given a cell of array of strings <varname>x</varname>, this function + returns a vector of strings <varname>y</varname> in which the rows are the + concatenated components of corresponding rows of the cell array of strings. + </para> + <para> + Given an array of ASCII codes <varname>x</varname>, this function + returns a array of strings <varname>y</varname> corresponding into ASCII + codes. If dimensions of <varname>x</varname> are <literal>[n1, n2, n3, n4,...]</literal>, + then returned value has same size as input value except second dimension, i.e. + the dimensions of <varname>y</varname> are <literal>[n1, n3, n4,...]</literal>. + </para> + <para> + <emphasis role="bold">More than one input argument :</emphasis> + </para> + <para> + Given arrays of strings <literal>st1, st2, st3,...</literal>, this function + returns a vector of strings in which the rows are the concatenated + components of corresponding rows of <literal>st1, st2, st3,...</literal>. + In the vector <varname>y</varname> all strings <literal>sti</literal> + are completed by blanks to have the same length as the max length of + <literal>sti</literal>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +//Example with a hypermatrix of ASCII codes : +x=hypermat([4,2,3],61:84); +y=char(x) +size(x) +size(y) + +//Example with more than one argument : +st1="zeros"; +st2=["one","two"]; +st3=["three"]; +y=char(st1,st2,st3) +size(y) + +//all strings rows are completed by 'blanks' to have the same length : 6 +length(y) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="ascii">ascii</link> + </member> + <member> + <link linkend="asciimat">asciimat</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="convstr"> + <refnamediv> + <refname>convstr</refname> + <refpurpose>case conversion</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[y] = convstr(str, [flag])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str, y</term> + <listitem> + <para>a matrix of character strings.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para>a character option with possible values:</para> + <variablelist> + <varlistentry> + <term>'u'</term> + <listitem> + <para>for upper;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'l'</term> + <listitem> + <para>for lower.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The <function>convstr</function> function converts the matrix of strings + <varname>str</varname> into lower case (for <varname>flag</varname> = + <literal>"l"</literal>; default value) or upper case (for + <varname>flag</varname> = <literal>"u"</literal>). + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +A=['this','is';'my','matrix']; +convstr(A,'u') + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="emptystr"> + <refnamediv> + <refname>emptystr</refname> + <refpurpose>zero length string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>s = emptystr() + s = emptystr(a) + s = emptystr(m, n) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para> + a matrix of size <literal>mx n</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>s</term> + <listitem> + <para>a matrix of character strings.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>integers</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The <function>emptystr</function> function returns a matrix of zero + length character strings. + </para> + <para> + With no input argument <function>emptystr</function> returns a zero + length character string. + </para> + <para> + With a matrix <varname>a</varname> for input argument + <function>emptystr</function> returns a zero length character + strings matrix of the same size. + </para> + <para> + With two integer arguments <function>emptystr</function> returns a + <varname>m</varname> <literal>x</literal> <varname>n</varname> zero + length character strings matrix. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +x=emptystr(); +for k=1:10 + x = x + ',' + string(k) + emptystr(1,k) + string(k) +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="string">string</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="eval" xml:lang="en"> + <refnamediv> + <refname>eval</refname> + <refpurpose>evaluation of a matrix of strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[H] = eval(Z)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>Z</term> + <listitem> + <para>a matrix of character string.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The <function>eval</function> function returns the evaluation of the matrix of character strings + <varname>Z</varname>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +a=1; +b=2; +Z=['a','sin(b)']; +eval(Z) //returns the matrix [1, 0.909]; + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="execstr">execstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="evstr" xml:lang="en"> + <refnamediv> + <refname>evstr</refname> + <refpurpose>evaluation of expressions</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis> + H = evstr(Z) + [H, ierr] = evstr(Z) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>Z</term> + <listitem> + <para> + a matrix of character strings <varname>M</varname> or + <code>list(M,Subexp)</code> + </para> + <variablelist> + <varlistentry> + <term>M</term> + <listitem> + <para>a matrix of character strings.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Subexp</term> + <listitem> + <para>a vector of character strings.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>H</term> + <listitem> + <para>a matrix.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>ierr</term> + <listitem> + <para>an integer, error indicator.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Returns the result of the evaluation of the matrix of character + strings <varname>M</varname>. Each element of the matrix must define a + valid Scilab expression. + </para> + <para> + If the evaluation of <varname>M</varname> expression leads to an + error, the single return value version, <code>H = evstr(M)</code>, + raises the error as usual. The two return values version, + <code>[H,ierr] = evstr(M)</code>, on the other hand, produces no + error, but returns the error number in <varname>ierr</varname>. + </para> + <para> + If <varname>Z</varname> is a list, <varname>Subexp</varname> is a + vector of character strings, that defines subexpressions which are + evaluated before evaluating <varname>M</varname>. These subexpressions + must be referred to as <literal>%(k)</literal> in <varname>M</varname>, + where <literal>k</literal> is the subexpression's index in + <varname>Subexp</varname>. + </para> + <para> + <code>evstr('a = 1')</code> is not valid (use <function>execstr</function> + instead). + </para> + <para> + <literal>Nan</literal>, <literal>NaN</literal> will be interpreted as <constant>%nan</constant>. + </para> + <para> + <literal>Inf</literal> will be interpreted as <constant>%inf</constant>. + </para> + <note> + Note that <varname>Z</varname> should not be composed of continuation marks (..). + </note> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"> + 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 + </programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="execstr">execstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="grep" xml:lang="en"> + <refnamediv> + <refname>grep</refname> + <refpurpose>find matches of a string in a vector of strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>row = grep(haystack, needle ) + [row, which] = grep(haystack, needle ) + row = grep(haystack, needle, [flag]) + [row, which] = grep(haystack, needle, [flag]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para>a row vector of character strings.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>needle</term> + <listitem> + <para> + a character string or a row vector of character strings. The + string(s) to search in <varname>haystack</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>row</term> + <listitem> + <para> + a vector of indices: row where a match has been found or an + empty matrix if no match found. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>which</term> + <listitem> + <para> + a vector of indices: index of <varname>needle</varname> string found + or an empty matrix if no match found. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para> + a character (<literal>"r"</literal> for regular expression). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + For each entry of <varname>haystack</varname>, <function>grep</function> + searches if at least a string in <varname>needle</varname> which matches a + substring. The <varname>haystack</varname> entries index where at least a + match has been found are returned in the <varname>row</varname> output + argument. The optional <varname>which</varname> output argument gives the + index of first string of <varname>needle</varname> found. + </para> + <para> + When using the third parameter <varname>flag</varname><literal>="r"</literal>, the + <varname>needle</varname> is expected to be a regular expression string. + In this case, <function>grep</function> uses the + <varname>needle</varname> as a regular expression and compares it + against <varname>haystack</varname> according to the regular expressions + rules. See the <link linkend="regexp">regexp</link> function for details about + regular expressions. + </para> + </refsection> + <refsection> + <title>Example #1</title> + <para> + In the following example, we search one or two strings in a text, + which is stored in the <varname>txt</varname> variable. + </para> + <programlisting role="example"><![CDATA[ +txt=['find matches of a string in a vector of strings' + 'search position of a character string in an other string' + 'Compare Strings']; + +grep(txt,'strings') +grep(txt,['strings' 'Strings']) + +[r,w]=grep(txt,['strings' 'Strings']) + ]]></programlisting> + </refsection> + <refsection> + <title>Example #2</title> + <para>In the following example, we perform regexp searches.</para> + <programlisting role="example"><![CDATA[ +str = ["hat";"cat";"hhat";"chat";"hcat";"ccchat";"at";"dog"] + +grep(str,'/[hc]+at/','r') +grep(str,'/[hc]?at/','r') +grep(str,'/cat|dog/','r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="regexp">regexp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="isalphanum"> + <refnamediv> + <refname>isalphanum</refname> + <refpurpose>check that characters of a string are alphanumerics</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = isalphanum(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>a character string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a boolean matrix.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = isalphanum(str)</code> returns an array the same size as + <varname>str</varname> containing logical <constant>%t</constant> + (true) where the elements of <varname>str</varname> are + alphanumerics and logical <constant>%f</constant> (false) where they + are not. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isalphanum(s) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="isletter">isletter</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="isascii"> + <refnamediv> + <refname>isascii</refname> + <refpurpose>tests if character is a 7-bit US-ASCII character</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = isascii(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>a character string or an array of integers.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a boolean matrix.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = isascii(str)</code> returns <constant>%t</constant> + (TRUE) if entries of <varname>str</varname> are a 7-bit + US-ASCII character code between 0 and octal 0177 inclusive (or + entries of <varname>str</varname> are 7-bit US-ASCII characters). + Otherwise returns <constant>%f</constant> (FALSE). + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +letters = [115. 99. 105. 108. 97. 98.] +isascii(letters) +ascii(letters) +isascii('scilab') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="isdigit"> + <refnamediv> + <refname>isdigit</refname> + <refpurpose> + check that characters of a string are digits between 0 and 9 + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = isdigit(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>a character string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a boolean matrix.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = isdigit(str)</code> returns an array the same size as + <varname>str</varname> containing logical <constant>%t</constant> + (TRUE) where the elements of <varname>str</varname> are digits and + logical <constant>%f</constant> (FALSE) where they are not. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isdigit(s) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + <member> + <link linkend="isletter">isletter</link> + </member> + <member> + <link linkend="isnum">isnum</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" +xmlns:xlink="http://www.w3.org/1999/xlink" +xmlns:svg="http://www.w3.org/2000/svg" +xmlns:mml="http://www.w3.org/1998/Math/MathML" +xmlns:db="http://docbook.org/ns/docbook" +xml:lang="en" xml:id="isletter"> + <refnamediv> + <refname>isletter</refname> + <refpurpose> + check that characters of a string are alphabetic letters + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = isletter(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>a character string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a boolean matrix.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = isletter(str)</code> returns an array the same size as + <varname>str</varname> containing logical <constant>%t</constant> + (true) where the elements of <varname>str</varname> are letters of + the alphabet and logical <constant>%f</constant> (false) where they + are not. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isletter(s) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" +xmlns:xlink="http://www.w3.org/1999/xlink" +xmlns:svg="http://www.w3.org/2000/svg" +xmlns:mml="http://www.w3.org/1998/Math/MathML" +xmlns:db="http://docbook.org/ns/docbook" +xml:lang="en" xml:id="isnum"> + <refnamediv> + <refname>isnum</refname> + <refpurpose>tests if a string represents a number</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = isnum(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para> + a character string or a matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a boolean matrix.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = isnum(str)</code> returns <constant>%t</constant> if + <varname>str</varname> represents a number. + </para> + <para> + <code>isnum</code> does not handle "operations", but only pure scalar numbers. + For instance, <code>isnum("1+2*3")</code> will return <code>%f</code>. + Complex numbers are not concerned, because one complex number is defined by the addition of two parts. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +isnum(['1' , .. + '-1.23' , .. + '+1e+23' , .. + '1d+23' , .. + 'A' , .. + '%e' , .. + '%pi' , .. + '%nan' , .. + 'Nan' , .. + '%inf' , .. + 'Inf' , .. + '1+%i*2' , .. + '%eps-%eps*%i', .. + '%inf+Nan*%i' ]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="isletter">isletter</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + <member> + <link linkend="evstr">evstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:mml="http://www.w3.org/1998/Math/MathML" + xmlns:db="http://docbook.org/ns/docbook" + xml:lang="en" xml:id="justify"> + <refnamediv> + <refname>justify</refname> + <refpurpose>justify character array</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>Tj = justify(T, opt)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>T</term> + <listitem> + <para>a matrix of character strings.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Tj</term> + <listitem> + <para> + a matrix of character strings. The justified result. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>opt</term> + <listitem> + <para> + a character option with possible values: + </para> + <variablelist> + <varlistentry> + <term>'r' or 'right'</term> + <listitem> + <para>for right justification;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'l' or 'left'</term> + <listitem> + <para>for left justification;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'c' or 'center'</term> + <listitem> + <para>for centering justification.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The <function>justify</function> function justifies the column of a + matrix of string according to the given option <varname>opt</varname>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +t=['1234','x','adfdfgdfghfgj' + '1','354556','dgf' + 'sdfgd','','sdfsf']; + +justify(t,'l') +justify(t,'c') +justify(t,'r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="part">part</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:id="length" xml:lang="en"> + <refnamediv> + <refname>length</refname> + <refpurpose>length of object</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>n = length(M)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>M</term> + <listitem> + <para> + a matrix (usual or polynomial or character string) or a + list. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>n</term> + <listitem> + <para>an integer or a matrix of integers.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + For usual or polynomial matrix <varname>n</varname> is the integer + equal to number of rows times number of columns + of <varname>M</varname>. (Also valid for <varname>M</varname> + a boolean matrix). + </para> + <para> + For matrices made of character strings (and in particular for a + character string) <function>length</function> returns in + <varname>n</varname> the length of entries of the matrix of + character strings <varname>M</varname>. + </para> + <para> + The length of a list is the number of elements in the list (also + given by <function>size</function>). + </para> + <para> + 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, <function>length</function> + returns the product of the dimensions of the hypermatrix. + </para> + <para> + <code>length('123')</code> is <literal>3</literal>. + <code>length([1,2;3,4])</code> is <literal>4</literal>. + </para> + <para> + <warning> + WARNING : <function>length</function> of a sparse matrix + returns the max of dimensions and not the product + of the dimensions. (For example: + <code>length(sparse(eye(12,2)))</code> + returns <code>max(12,2)</code> and not <literal>24</literal>). + Please use <literal>size(...,'*')</literal> with sparse matrix. + </warning> + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +length([123 ; 456 ]) +length(['hello world',SCI]) +length(rand(2,2,2)) + + ]]></programlisting> + <programlisting role="example"><![CDATA[ + +a = mlist(["myMlistT" "field1" "field2"],"aexample","bexampleb"); +length(a) +// returns 3 default behaviour if length not overloaded for mlist + +// we create an overload function for mlist of type myMlistT +function r = %myMlistT_length(M) + r = length(M.field1) +endfunction + +length(a) +// returns 8 result of length(a.field1) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="size">size</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>History</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revremark> + This function allows overloading for mlist type. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * Copyright (C) Samuel GOUGEON - 2013 : $ is now supported. More examples. + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:id="part" xml:lang="en"> + <refnamediv> + <refname>part</refname> + <refpurpose>Extraction of characters from strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>[strings_out] = part(strings_in, v)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>strings_in</term> + <listitem> + <para>a character string or matrix of character string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>v</term> + <listitem> + <para> + a vector of integer values containing the indices of characters to be extracted. + <literal>$</literal> is accepted and means length(strings_in). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>strings_out</term> + <listitem> + <para>a character string or matrix of character string.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + This function extracts characters from strings. The characters to be + extracted are referred to by their indices contained in <literal>v</literal>. + </para> + + <para> + <literal>strings_out</literal> is filled with whitespace characters when indices + are beyond the input string's length. + </para> + <para> + <literal>v</literal> may contain <literal>$</literal> symbol which stands for the + length of <literal>string_in</literal>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// Returns characters position 8 to 11 +part("How to use ""part"" ?", 8:11) + +// Returns characters position 2 to 4 for each element +// No characters replaced by '' +c = part(['a', 'abc', 'abcd'], 2:4) + +// Returns character position 1 for each element and add characters position +// 4 to 7 of each element +c = part(['abcdefg', 'hijklmn', 'opqrstu'], [1, 4:7]); + +// Returns character 4 for each element, add characters position 1 to 7 and +// add character position 4 for each element +c = part(['abcdefg', 'hijklmn', 'opqrstu'], [4, 1:7, 4]); + +// Returns character position 1, add again character position 1 and +// character position 2 +c=part(['a', 'abc', 'abcd'], [1, 1, 2]) + + +part(['a', 'abc', 'abcd'], [1]) // => ['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 + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strsplit">strsplit</link> + </member> + <member> + <link linkend="length">length</link> + </member> + </simplelist> + </refsection> + + <refsection> + <title>History</title> + <revhistory> + <revision> + <revnumber>5.5.0</revnumber> + <revremark> + <literal>$</literal> standing for length(input_strings) is now accepted in indices of selected characters + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" +xmlns:xlink="http://www.w3.org/1999/xlink" +xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" +xmlns:mml="http://www.w3.org/1998/Math/MathML" +xmlns:db="http://docbook.org/ns/docbook" +xml:id="regexp" xml:lang="en"> + <refnamediv> + <refname>regexp</refname> + <refpurpose> + find a substring that matches the regular expression string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis> + [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]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>input</term> + <listitem> + <para>a string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>pattern</term> + <listitem> + <para> + a character string (under the rules of regular expression). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>start</term> + <listitem> + <para> + the starting index of each substring of + <varname>input</varname> that matches the regular + expression string <varname>pattern</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>final</term> + <listitem> + <para> + the ending index of each substring of + <varname>input</varname> that matches the regular + expression string <varname>pattern</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>match</term> + <listitem> + <para> + the text of each substring of <varname>input</varname> + that matches <varname>pattern</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>foundString</term> + <listitem> + <para> + the captured parenthesized <literal>subpatterns</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>[flag]</term> + <listitem> + <para> + <literal>'o'</literal> for matching the pattern once. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The rules of regular expression are similar to Perl language. For a + quick start, see + <ulink url="http://perldoc.perl.org/perlrequick.html">http://perldoc.perl.org/perlrequick.html</ulink>. + For a more in-depth tutorial on, see + <ulink url="http://perldoc.perl.org/perlretut.html">http://perldoc.perl.org/perlretut.html</ulink> + and for the reference page, see + <ulink url="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</ulink> + </para> + <para> + A difference with Perl is that matching a position but no character + (for example, with <literal>/^/</literal> or + <literal>/(?=o)/</literal>) is a successful match in Perl but not + in Scilab. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +regexp('xabyabbbz','/ab*/','o') +regexp('a!','/((((((((((a))))))))))\041/') +regexp('ABCC','/^abc$/i') +regexp('ABC','/ab|cd/i') +[a b c]=regexp('XABYABBBZ','/ab*/i') + +piString="3.14" +[a,b,c,piStringSplit]=regexp(piString,"/(\d+)\.(\d+)/") +disp(piStringSplit(1)) +disp(piStringSplit(2)) + +[a,b,c,d]=regexp('xabyabbbz','/ab(.*)b(.*)/') +size(d) + +// get host name from URL +myURL="http://www.scilab.org/download/"; +[a,b,c,d]=regexp(myURL,'@^(?:http://)?([^/]+)@i') + +str='foobar: 2012'; +// Using named subpatterns +[a,b,c,d]=regexp(str,'/(?P<name>\w+): (?P<digit>\d+)/') +d(1)=="foobar" +d(2)=="2012" + + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>History</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revremark> + A new output argument, foundString, has been added to retrieve subpatterns matches. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:lang="en" xml:id="sci2exp"> + <refnamediv> + <refname>sci2exp</refname> + <refpurpose> converts an expression to a string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>t = sci2exp(a [,nam] [,lmax])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para>a scilab expression, may be:</para> + <variablelist> + <varlistentry> + <term>- </term> + <listitem> + <para>a constant;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>- </term> + <listitem> + <para>a polynomial;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>- </term> + <listitem> + <para>a string matrix;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>- </term> + <listitem> + <para>a list;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>- </term> + <listitem> + <para>a boolean matrix;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>- </term> + <listitem> + <para>a handle (only figure and uicontrol).</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>nam</term> + <listitem> + <para>a character string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>t</term> + <listitem> + <para> + a vector of strings, contains the expression or the affectation instruction. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>lmax</term> + <listitem> + <para> + an integer, contains the maximum line length. Default + value is <literal>0</literal>, + which indicates no line length + control; a single string is returned. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <function>sci2exp</function> converts expression to an instruction string if <varname>nam</varname> is + given or to an expression string. + </para> + </refsection> + <refsection> + <title>Remarks</title> + <itemizedlist> + <listitem> + <para> + If <varname>a</varname> is a handle, <function>sci2exp</function> gives a result which has no hierarchical links, + that is, with empty fields for parent and children. + </para> + </listitem> + <listitem> + <para> + <varname>t</varname> can be impacted by <link linkend="format">format</link>. + </para> + </listitem> + </itemizedlist> + </refsection> + + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +a=[1 2;3 4] +sci2exp(a,'aa') +sci2exp(a,'aa',10) +sci2exp(ssrand(2,2,2)) +sci2exp(poly([1 0 3 4],'s'),'fi') +sci2exp(figure("figure_name","figure1")) +b=0.123456789; +format(5); +c=sci2exp(b) +format(10); +d=sci2exp(b) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="prettyprint">prettyprint</link> + </member> + <member> + <link linkend="format">format</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:id="strcat" xml:lang="en"> + <refnamediv> + <refname>strcat</refname> + <refpurpose>concatenates character strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis> + txt = strcat(strings [,string_added]) + txt = strcat(strings [,string_added, ["flag"]]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>strings</term> + <listitem> + <para>a vector or matrix of strings.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_added</term> + <listitem> + <para> + a string added, default value is the zero length character + string <literal>""</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>txt</term> + <listitem> + <para>a string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"flag"</term> + <listitem> + <para> + a character (<literal>"r"</literal> for concatenation of + rows in the matrix <varname>strings</varname>, + <literal>"c"</literal> for concatenations of columns in the + matrix <varname>strings</varname>). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>txt = strcat(strings)</code> concatenates character strings: + <literal>txt = strings(1) + ... + strings(n)</literal>. + </para> + <para> + <code>txt = strcat(strings, string_added)</code> returns + <literal>txt = strings(1) + string_added + ... + string_added + strings(n)</literal>. + </para> + <para> + The plus symbol does the same: <code>"a"+"b"</code> is the + same as <code>strcat(["a","b"]).</code>. + </para> + <para> + If the size of <varname>strings</varname> is one, it returns + <code>txt = strings(1)</code>; + </para> + <para> + <code>strcat('A','B')</code> returns <literal>'A'</literal> and not + <literal>'AB'</literal> as <code>strcat(['A','B'])</code>. + </para> + <para> + If <varname>strings</varname> is a matrix of strings, + <code>txt = strcat(strings, "", "r")</code> returns a row vector of strings. + Each entry of <varname>txt</varname> results from the concatenation of rows along + the related column. + <code>txt = strcat(strings, "", "c")</code> returns a column vector of strings. + Each entry of <varname>txt</varname> results from the concatenation of columns along + the related row. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +strcat(string(1:10),',') +strcat(["a","b"]) +strcat(["a","b"],'|') +strcat('A') +strcat('A','B') +strcat(['A','B']) +strcat(['A','B'],'') + +m =["a" "b" ; "c" "d"]; +strcat(m, "r") +strcat(m, "", "r") +strcat(m, "", "c") + +strcat(m, "_and_", "r") +strcat(m, "_and_", "c") + + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strings">strings</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:lang="en" xml:id="strchr"> + <refnamediv> + <refname>strchr</refname> + <refpurpose> + find the first occurrence of a character in a string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strchr(haystack, char)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>char</term> + <listitem> + <para>a character.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strchr(haystack, char)</code> returns the first + occurrence of character in the string <varname>haystack</varname>. + </para> + <para> + <varname>char</varname> must contain only one string or as many + strings as in <varname>haystack</varname> (each one being one- + character-long). + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +strchr('This is a sample string','s') +strchr(['This is a sample string','in scilab'],'s') +strchr(['This is a sample string','in scilab'],['s','a']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strrchr">strrchr</link> + </member> + <member> + <link linkend="strstr">strstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcmp" xml:lang="en"> + <refnamediv> + <refname>strcmp</refname> + <refpurpose>compare character strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strcmp(string_one, string_two, ['i'])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>string_one</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_two</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>'i'</term> + <listitem> + <para> + an optional parameter to do <function>strcmpi</function> + (case independent), default value is <literal>'s'</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a matrix of integers.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strcmp(string_one, string_two)</code> (or + <code>res = strcmp(string_one, string_two, 's')</code>) returns an + integral value indicating the relationship between the strings. + </para> + <para> + The value greater than zero indicates that the first character that + does not match has a greater value in <varname>string_one</varname> + than in <varname>string_two</varname> and the value less than zero + indicates the opposite (lexicographical order). + </para> + <para> + The value equal zero indicates that <varname>string_one</varname> + and <varname>string_two</varname> are equal. + </para> + <para> + <code>res = strcmp(string_one, string_two, 'i')</code> returns + <literal>0</literal> if <varname>string_one</varname> is equal to + <varname>string_two</varname> (case independently) and + <literal>1</literal> indicates the opposite. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +strcmp(TXT1,TXT2) +strcmp(TXT1,'scilab') +strcmp(TXT1,'SciLab') +strcmp(TXT1,TXT2,'i') +strcmp(TXT1,TXT2,'s') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strcmpi">strcmpi</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="strcmpi"> + <refnamediv> + <refname>strcmpi</refname> + <refpurpose> + compare character strings (case independent) + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strcmpi(string_one, string_two)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>string_one</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_two</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a matrix of integers.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strcmpi(string_one, string_two)</code> returns an + integral value indicating the relationship between the strings. The two strings are compared in using the <emphasis role="bold">lexicographical order</emphasis>. + </para> + <para> + The value is <literal>0</literal> if <varname>string_one</varname> + is equal to <varname>string_two</varname> (case independently), + <literal>1</literal> if <varname>string_one</varname> is greater than <varname>string_two</varname> and <literal>-1</literal> else. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +strcmpi(TXT1,TXT2) +strcmpi(TXT1,'scilab') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strcmp">strcmp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcspn" xml:lang="en"> + <refnamediv> + <refname>strcspn</refname> + <refpurpose>get span until character in string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strcspn(string_one, string_two)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>string_one</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_two</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a matrix.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strcspn(string_one,string_two)</code> scans + <varname>string_one</varname> for the first occurrence of any of the + characters that are part of <varname>string_two</varname>, returning + the number of characters of <varname>string_one</varname> read + before this first occurrence. + </para> + <para> + <varname>string_two</varname> must have same dimensions than <varname>string_one</varname> or <varname>string_two</varname> + must be a string. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +strcspn("fcba73","1234567890") +strcspn(["fcba73","f7cba73"],"1234567890") +strcspn(["fcba73","f7cba73"],["312","34567890"]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strspn">strspn</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strindex" xml:lang="en"> + <refnamediv> + <refname>strindex</refname> + <refpurpose> + search position of a character string in an other string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis> + ind = strindex(haystack, needle, [flag]) + [ind, which] = strindex(haystack, needle, [flag]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para> + a character string. The string where to search + occurrences of <varname>needle</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>needle</term> + <listitem> + <para> + a character string or character string vector. The + string(s) to search in <varname>haystack</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>ind</term> + <listitem> + <para>a vector of indexes.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>which</term> + <listitem> + <para>a vector of indexes.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para> + a string (<literal>"r"</literal> for regular expression). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <function>strindex</function> searches indexes where + <literal>needle(i)</literal> is found in <varname>haystack</varname>. + </para> + <para> + For each <literal>k</literal> it exist an <literal>i</literal> such + that <code>part(haystack,ind(k)+(0:length(needle(i))-1))</code> is + the same string than <literal>needle(i)</literal>. If + <varname>which</varname> argument is required it contains these + <literal>i</literal>. When using the third parameter <literal>"r"</literal>, the <varname>needle</varname> + should be a string of regular expression. And then <function>strindex</function> is going to + match it with <varname>haystack</varname> according to the regular express rules. + </para> + <para> + <function>strindex</function> without regular expression argument is + based on Knuth-Morris-Pratt algorithm. + </para> + <para> + This algorithm is more powerful than that used in Scilab 4.x. In + some special case, result can be different. + </para> + <para>Example:</para> + <para>// Scilab 5.x</para> + <para>-->[k,w]=strindex('aab',['a','ab'])</para> + <para>w = 1. 1. 2. k = 1. 2. 2.</para> + <para>// Scilab 4.x</para> + <para>-->[k,w]=strindex('aab',['a','ab'])</para> + <para>w = 1. 1. k = 1. 2.</para> + <para> + The rules of regular expression are similar to Perl language. For a + quick start, see <ulink url="http://perldoc.perl.org/perlrequick.html">http://perldoc.perl.org/perlrequick.html</ulink>. + For a more in-depth tutorial on, see <ulink url="http://perldoc.perl.org/perlretut.html">http://perldoc.perl.org/perlretut.html</ulink> + and for the reference page, see <ulink url="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</ulink> + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +k=strindex('SCI/demos/scicos','/') +k=strindex('SCI/demos/scicos','SCI/') +k=strindex('SCI/demos/scicos','!') +k=strindex('aaaaa','aa') +k=strindex('SCI/demos/scicos',['SCI','sci']) +[k,w]=strindex('1+3*abc/2.33',['+','-','*','/']) +k=strindex('2' ,'/2(]*)?$\1/' ,'r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strings">strings</link> + </member> + <member> + <link linkend="regexp">regexp</link> + </member> + <member> + <link linkend="strsubst">strsubst</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * Copyright (C) DIGITEO - 2012 - Allan CORNET + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="string" xml:lang="en"> + <refnamediv> + <refname>string</refname> + <refpurpose>conversion to string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>string(x) + [out, in, text] = string(x) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>x</term> + <listitem> + <para> + a boolean, complex, real, integer, polynomial matrix, + an implicit size, a library or a function. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The <function>string</function> function converts a matrix <varname>x</varname> into a matrix of strings. + </para> + <para> + If <varname>x</varname> is a function <code>[out, in, text] = string(x)</code> + returns three vectors of strings: <varname>out</varname> + is the vector of output variables, <varname>in</varname> is the vector of + input variables, and <varname>text</varname> is the (column) vector of the + source code of the function. + </para> + <para> + If <varname>x</varname> is a <literal>lib</literal> variable + (library), <varname>text</varname> is a character string column vector. The first element + contains the path of library file and the other the name of functions it + defines. + </para> + <para> + Character strings are defined as <literal>'string'</literal> + (between quotes) or <literal>"string"</literal> (between doublequotes); + matrices of strings are defined as usual constant matrices. + </para> + <para> + Concatenation of strings is made by the <literal>+</literal> + operation. + </para> + <para> + For complex, real, integer, polynomial matrix + <function>string</function> output is managed by <link linkend="format">format</link> function (see examples). + </para> + <para> + Note that string([]) returns []. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"> + 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:$) + </programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="quote">quote</link> + </member> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="execstr">execstr</link> + </member> + <member> + <link linkend="strsubst">strsubst</link> + </member> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="sci2exp">sci2exp</link> + </member> + <member> + <link linkend="format">format</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>History</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revremark> + implicit size type managed as input argument. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="strings"> + <refnamediv> + <refname>strings</refname> + <refpurpose>Scilab Object, character strings</refpurpose> + </refnamediv> + <refsection> + <title>Description</title> + <para> + Strings are defined as <code>'string'</code> (between quotes) or + <code>"string"</code> (between doublequotes); + matrices of strings are defined as usual constant matrices. + </para> + <para> + Concatenation of two strings is made by a <literal>+</literal>: <code>string1 + string2</code>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +['this','is'; 'a 2x2','matrix'] +"matrix"=="mat"+"rix" + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="strcat">strcat</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="stripblanks"> + <refnamediv> + <refname>stripblanks</refname> + <refpurpose> + strips / trims leading and trailing + blanks (and tabs) of strings + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>txt = stripblanks(txt[,tabs])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>tabs</term> + <listitem> + <para> + a boolean, if <constant>%t</constant> then tabs are also stripped (default value is <constant>%f</constant>). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The <function>stripblanks</function> function strips / trims leading and trailing blanks (and tabs) of strings. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +a=' 123 '; +'!'+a+'!' +'!'+stripblanks(a)+'!' +a=[' 123 ',' xyz'] +strcat(stripblanks(a)) + +a = msprintf("\t \tHello world!\t\t") +strcat(stripblanks(a,%f)+'?') +strcat(stripblanks(a,%t)+'?') + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="strncpy"> + <refnamediv> + <refname>strncpy</refname> + <refpurpose>copy characters from strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strncpy(str1, num)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>num</term> + <listitem> + <para> + an integer or a matrix of integers, maximum number of characters to be copied from source. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strncpy(str1, num)</code> copies the first <varname>num</varname> characters of source <varname>str1</varname> to destination <varname>res</varname>. + </para> + <para> + <varname>num</varname> must have same dimensions than + <varname>str1</varname> or <varname>num</varname> must be an integer number. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +strncpy('scilab',3) +strncpy(['scilab','SciLab';'strncpy','strstr'],3) +strncpy(['scilab','SciLab';'strncpy','strstr'],[1,2;3,4]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strcmp">strcmp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="strrchr"> + <refnamediv> + <refname>strrchr</refname> + <refpurpose> + find the last occurrence of a character in a string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strrchr(str1, char)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>char</term> + <listitem> + <para>a character or matrix of characters.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strrchr(str1, char)</code> returns the last occurrence of character <varname>char</varname> in the string <varname>str1</varname>. + </para> + <para> + <varname>char</varname> must have same dimensions than + <varname>str1</varname> or only one character. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +strrchr('This is a sample string','s') +strrchr(['This is a sample string','in scilab'],'s') +strrchr(['This is a sample string','in scilab'],['s','a']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strchr">strchr</link> + </member> + <member> + <link linkend="strstr">strstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="strrev"> + <refnamediv> + <refname>strrev</refname> + <refpurpose>returns string reversed</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strrev(str1)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strrev(str1)</code> returns string reversed. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +rev = strrev('This is a simple string') +strrev(rev) +strrev(['This is a simple string','scilab']) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsplit" xml:lang="en"> + <refnamediv> + <refname>strsplit</refname> + <refpurpose>split a string into a vector of strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis> + 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) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>a character string to split.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>ind</term> + <listitem> + <para> + a vector of strictly increasing indices in the interval + <literal>[1 length(str)-1]</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>v</term> + <listitem> + <para> + the resulting column vector of string (dimension ><literal>size(ind,'*')+1</literal>). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>matched_separators</term> + <listitem> + <para> + a column vector of the matched separators. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>matrix_of_strings</term> + <listitem> + <para> + a matrix of strings to search in <varname>str</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>regexp_pattern</term> + <listitem> + <para>a regular expression pattern.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>limit</term> + <listitem> + <para>maximum of limit elements.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>v= strsplit(str, ind)</code> splits the string + <varname>str</varname> into a vector of strings at the points given by the + indices in <varname>ind</varname> (after each characters pointed to by the + index in <varname>ind</varname>). + </para> + <para> + <code>strsplit(str)</code> returns same thing as + <code>strsplit(str,1:length(str)-1).</code> + </para> + <para> + <code>strsplit(str, regexp_pattern, limit)</code> returns an + column vector of strings, each of which is a substring of + <varname>str</varname> formed by splitting it on boundaries formed + by the case-sensitive regular expression pattern. + </para> + <para> + If there are <literal>n</literal> occurrences of pattern, the + returned array will contain <literal>n+1</literal> items. + </para> + <para> + 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 <varname>str</varname> is empty. + </para> + <para> + If <varname>limit</varname> is set, the returned array will contain + a maximum of limit elements with the last element containing the + whole rest of string. + </para> + <para> + <code>strsplit(str, matrix_of_strings, limit)</code> splits + <varname>str</varname> on any of elements. It allows to + split on different separators for users without regexp knowledge. + </para> + <para> + If <code>strsplit()</code> is called with a second output + argument, the column vector of the matched separators is returned. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +S='strsplit splits a string into a vector of strings'; +strsplit(S,[15 25 30]) +ind=strindex(S,' ') + +[r_1, r_2] = strsplit("abcd") + +[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",5) + +[r_1, r_2] = strsplit("abc,def:ijk,:lmo","/:|,/") + +[r_1, r_2] = strsplit("abc,def:ijk,:lmo",[":";","]) + +strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/") + +[r_1, r_2] = strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/",2) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="part"> part</link> + </member> + <member> + <link linkend="strcat"> strcat</link> + </member> + <member> + <link linkend="tokens"> tokens</link> + </member> + <member> + <link linkend="regexp"> regexp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strspn" xml:lang="en"> + <refnamediv> + <refname>strspn</refname> + <refpurpose>get span of character set in string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strspn(str1, str2)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>str2</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a matrix of character strings.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strspn(str1, str2)</code> returns the length of the initial portion of <varname>str1</varname> which consists only of characters that are part of <varname>str2</varname>. + </para> + <para> + <varname>str1</varname> must have same dimensions as <varname>str2</varname> or <varname>str2</varname> must be 1x1 string. The output will be the same dimensions as <varname>str1</varname> in both cases. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +i = strspn("129th","1234567890"); +mprintf ("The length of initial number is %d.\n",i); +i = strspn(["129th","130th"],["1234567890","130t"]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strcspn">strcspn</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strstr" xml:lang="en"> + <refnamediv> + <refname>strstr</refname> + <refpurpose>locate substring</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strstr(haystack, needle)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>needle</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strstr(haystack, needle)</code> returns a string matrix + starting from where the first occurrence of + <varname>needle</varname> in <varname>haystack</varname> to the end + of <varname>haystack</varname>, or <literal>''</literal> if there + <varname>needle</varname> is not part of <varname>haystack</varname>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +strstr('This is a simple string','simple') +strstr('This is a simple string','sample') +strstr(['This is a simple string','in scilab'],'is') +strstr(['This is a sample string','in scilab'],['a','scilab']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strrchr">strrchr</link> + </member> + <member> + <link linkend="strchr">strchr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsubst" xml:lang="en"> + <refnamediv> + <refname>strsubst</refname> + <refpurpose> + substitute a character string by another in a character string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis> + string_out = strsubst(string_in, searchStr, replaceStr) + string_out = strsubst(string_in, searchStr, replaceStr, [flag]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>string_in</term> + <listitem> + <para> + a matrix of character strings. The strings where to + search occurrences of <varname>searchStr</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>searchStr</term> + <listitem> + <para> + a character string. The string to search in + <varname>string_in</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>replaceStr</term> + <listitem> + <para> + a character string. The replacement string. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_out</term> + <listitem> + <para> + a matrix of character strings. The result of the + substitution on <varname>searchStr</varname> by + <varname>replaceStr</varname> in <varname>string_in</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para> + a character (<literal>"r"</literal> for regular expression). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + The <function>strsubst</function> function replaces all occurrences of + <varname>searchStr</varname> in <varname>string_in</varname> by + <varname>replaceStr</varname>. + </para> + <para> + When using the forth parameter <literal>"r"</literal>, the <varname>searchStr</varname> should be a + string of regular expression. And then <function>strsubst</function> is going to match it with + <varname>string_in</varname> and replace according to the regular expression rules. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +strsubst('SCI/demos/scicos','SCI','.') +strsubst('SCI/demos/scicos','/',' ') +strsubst('2' ,'/2(]*)?$\1/' ,'0','r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strings">strings</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strtod" xml:lang="en"> + <refnamediv> + <refname>strtod</refname> + <refpurpose>convert string to double</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis> + d = strtod(str [,decimalseparator]) + [d, endstr] = strtod(str [,decimalseparator]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para> + a character string or matrix of character strings. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>decimalseparator</term> + <listitem> + <para> + the decimal separator chosen: "." (by default) or ",". + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>d</term> + <listitem> + <para> + a real or matrix of reals. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>endstr</term> + <listitem> + <para> + a character string or matrix of character strings (next + character in <varname>str</varname> after the numerical + value). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>[d, endstr] = strtod(str)</code> parses strings + <varname>str</varname> interpreting its content as a floating point + number and returns its value as a real. If <varname>str</varname> does not contain any numerical value then <varname>d</varname> equals <literal>Nan</literal>. + </para> + </refsection> + <refsection> + <title>Remarks</title> + <itemizedlist> + <listitem> + <para> + 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. + </para> + </listitem> + <listitem> + <para> + Note that <literal>strtod("%inf")</literal> returns <literal>Nan</literal>. + </para> + </listitem> + </itemizedlist> + </refsection> + + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +strtod('123.556This is a sample real') +strtod('123,556This is a sample real', ",") +[d,endstr] = strtod('123.556This is a sample real') +strtod(['123.556This is a sample real','888.666 here']) +[d,endstr] =strtod(['123.556This is a sample real','888.666 here']) +[d,endstr] =strtod(['123.556This is a sample real','888,666 here'], ",") + ]]></programlisting> + </refsection> + <refsection> + <title>History</title> + <revhistory> + <revision> + <revnumber>5.5.0</revnumber> + <revremark> + New optional input: decimalseparator (SEP 97). + </revremark> + </revision> + <revision> + <revnumber>5.4.1</revnumber> + <revremark> + If <varname>str</varname> does not contain any numerical value then <varname>d</varname> equals <literal>Nan</literal> instead of <literal>0</literal> in previous versions. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="strtok"> + <refnamediv> + <refname>strtok</refname> + <refpurpose>split string into tokens</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>res = strtok(str, delimiters)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>a character string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>delimiters</term> + <listitem> + <para>a character string.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>a character string.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = strtok(str, delimiters)</code> sequence of calls to + this function split <varname>str</varname> into tokens, which are + sequences of contiguous characters separated by any of the + characters that are part of <varname>delimiters</varname>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +TOKENS = []; +token = strtok("A string of ,,tokens and some more tokens"," r,"); +TOKENS = [TOKENS,token]; +while( token <> '' ) + token = strtok(" r,"); + TOKENS = [TOKENS,token]; +end +disp(TOKENS); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strrchr">strrchr</link> + </member> + <member> + <link linkend="strchr">strchr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="tokenpos"> + <refnamediv> + <refname>tokenpos</refname> + <refpurpose> + returns the tokens positions in a character string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>kdf = tokenpos(str [,delimiter])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para> + a character string. The string where to search the tokens. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>delimiter</term> + <listitem> + <para> + (optional) a character or a vector of characters. The tokens delimiters. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>kdf</term> + <listitem> + <para> + 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. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>kdf = tokenpos(str [,delimiter])</code> searches the tokens + included in the string <varname>str</varname>. The + <varname>delimiter</varname> default value is <literal>[" ",<Tab>]</literal> + where <literal><Tab></literal> stands for + <code>ascii(9)</code>. It returns the indices of the first and last + characters of each found tokens. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +str = 'This is a character string'; +kdf = tokenpos(str) +first = part(str, kdf(1,1):kdf(1,2)) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="tokens">tokens</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="tokens"> + <refnamediv> + <refname>tokens</refname> + <refpurpose>returns the tokens of a character string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>T = tokens(str [,delimiter])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para> + a character string. The string where to search the tokens. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>delimiter</term> + <listitem> + <para> + (optional) a character or a vector of characters. The tokens delimiters. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>T</term> + <listitem> + <para> + a column vector of found tokens. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>T = tokens(str [,delimiter]) </code> searches the tokens + included in the string <varname>str</varname>. The + <varname>delimiter</varname> default value is <literal>[" ",<Tab>]</literal> + where <literal><Tab></literal> stands for <code>ascii(9)</code>. + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +tokens('This is a character string') + +tokens('SCI/demos/scicos','/') + +tokens('y=a+b*2',['=','+','*']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="tokenpos">tokenpos</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="asciimat"> + <refnamediv> + <refname>asciimat</refname> + <refpurpose>conversion d'une matrice de chaînes ASCII</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis> + a = asciimat(txt) + txt = asciimat(a) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para>chaîne de caractères ou matrice de chaînes</para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para>vecteur ou matrice de codes ASCII</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + 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 <function>ascii</function>. + </para> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="ascii">ascii</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="eval" xml:lang="fr"> + <refnamediv> + <refname>eval</refname> + <refpurpose>évaluation d'une matrice de chaînes de caractères</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>[H]= eval(Z)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para>renvoie le résultat de l'évaluation d'une matrice de chaînes de + caractères <literal>Z</literal>. + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +a=1; +b=2; +Z=['a','sin(b)']; +eval(Z) // renvoie la matrice [1,0.909]; + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="execstr">execstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="evstr" xml:lang="fr"> + <refnamediv> + <refname>evstr</refname> + <refpurpose>évaluation d'une expression</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>H=evstr(Z) + [H,ierr]=evstr(Z) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>Z</term> + <listitem> + <para> + matrice de chaînes de caractères <literal>M</literal> ou + <literal>list(M,Subexp)</literal> + </para> + <variablelist> + <varlistentry> + <term>M</term> + <listitem> + <para>matrice de chaînes de caractères</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Subexp</term> + <listitem> + <para>vecteur de chaînes de caractères</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>H</term> + <listitem> + <para>matrice</para> + </listitem> + </varlistentry> + <varlistentry> + <term>ierr</term> + <listitem> + <para>entier, 0 ou numéro de l'erreur</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>Renvoie le résultat de l'évaluation de la matrice de chaînes de + caractères <literal>M</literal>. Chaque élément de la matrice doit être + une expression Scilab valide. + </para> + <para> + Si l'évaluation d'un terme de <literal>M</literal> conduit à une + erreur, la syntaxe habituelle <literal>H=evstr(M)</literal>, déclenche le + message d'erreur. Dans la syntaxe <literal>[H,ierr]=evstr(M)</literal> + aucun message d'erreur n'est produit, mais le numéro de l'erreur est + renvoyé dans <literal>ierr</literal>. + </para> + <para> + Si <literal>Z</literal> est une liste, <literal>Subexp</literal> est + un vecteur de chaînes de caractères qui définit des sous-expressions qui + sont évaluées avant <literal>M</literal>. Ces sous-expressions doivent + être référencées par l'expression <literal>%(k)</literal> dans + <literal>M</literal>, où <literal>k</literal> est la position de la + sous-expression dans la liste <literal>Subexp</literal>. + </para> + <para>evstr('a=1') n'est pas valide (utiliser pour cela + <literal>execstr</literal>). + </para> + <para>Nan et Nan seront interpretés comme %nan.</para> + <para>Inf sera interpreté comme %inf</para> + <note> + Note : <varname>Z</varname> ne doit pas comporter de marques de suite (..). + </note> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +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') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="execstr">execstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" +xmlns:xlink="http://www.w3.org/1999/xlink" +xmlns:svg="http://www.w3.org/2000/svg" +xmlns:mml="http://www.w3.org/1998/Math/MathML" +xmlns:db="http://docbook.org/ns/docbook" +xml:lang="fr" xml:id="isnum"> + <refnamediv> + <refname>isnum</refname> + <refpurpose>teste si une chaîne de caractères représente un nombre</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>res = isnum(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para> + une matrice de chaînes de caractères. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>une matrice de booléens.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + <code>res = isnum(str)</code> retourne <constant>%t</constant> si + <varname>str</varname> représente un nombre. + </para> + <para> + <code>isnum</code> ne supporte pas les "opérations", mais seulement des scalaires purs. + Par exemple, <code>isnum("1+2*3")</code> retourne <code>%f</code>. + Les nombres complexes ne sont pas conernés par cela, + puisqu'un nombre complexe est défini par l'addition de deux parties. + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +isnum(['1' , .. + '-1.23' , .. + '+1e+23' , .. + '1d+23' , .. + 'A' , .. + '%e' , .. + '%pi' , .. + '%nan' , .. + 'Nan' , .. + '%inf' , .. + 'Inf' , .. + '1+%i*2' , .. + '%eps-%eps*%i', .. + '%inf+Nan*%i' ]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="isletter">isletter</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + <member> + <link linkend="evstr">evstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="string" xml:lang="fr"> + <refnamediv> + <refname>string</refname> + <refpurpose>conversion en chaîne de caractères</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Séquence d'appel</title> + <synopsis>string(x) + [out, in, text] = string(x) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Paramètres</title> + <variablelist> + <varlistentry> + <term>x</term> + <listitem> + <para>Booléen, complexe, réel, entier, polynôme matrice, + bibliotheque ou fonction + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para>Convertit une matrice en matrice de chaînes de caractères.</para> + <para> + Si <literal>x</literal> est une fonction <literal>[out, in, text] = + string(x) + </literal> + retourne 3 vecteurs de chaînes de caractères : + <literal>out</literal> est le vecteur des variables de sortie, + <literal>in</literal> est le vecteur des variables d'entrée, et + <literal>text</literal> est le vecteur colonne du code source de la + fonction. + </para> + <para> + Si <literal>x</literal> est une variable bibliotheque + <literal>lib</literal>, 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. + </para> + <para>Les chaînes de caractères sont définies de la façon suivant, + <literal>'string'</literal> (entre quotes) ou <literal>"string"</literal> + (entre double quotes); les matrices de chaînes de caractères sont définies + comme des matrices constantes normales. + </para> + <para>La concaténation des chaînes de caractères est effectuée par + l'opérateur <literal>+</literal>. + </para> + <para> + pour les types Booléen, complexe, réel, entier, polynôme matrice le texte issu de <literal>string</literal> est dependant de la fonction <link linkend="format">format</link> (voir exemples). + </para> + <para> + Notez que string([]) renvoie []. + </para> + </refsection> + <refsection> + <title>Exemples</title> + <programlisting role="example"><![CDATA[ +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)) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Voir aussi</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="quote">quote</link> + </member> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="execstr">execstr</link> + </member> + <member> + <link linkend="strsubst">strsubst</link> + </member> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="sci2exp">sci2exp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="ascii" xml:lang="ja"> + + <refnamediv> + + <refname>ascii</refname> + + <refpurpose>文字列をアスキー変換する</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>a=ascii(txt) + + txt=ascii(a) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>txt</term> + + <listitem> + + <para>文字列または文字列の行列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>a</term> + + <listitem> + + <para>整数アスキーコードのベクトル</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + この関数はScilab文字列をアスキーコード + + (最初の127個のコードはASCIIです)またはアスキーコードののベクトルに変換します. + + もしくは,アスキーコードのベクトルをScilab文字列に変換します. + + </para> + + <para> + + <literal>txt</literal> が文字列の行列の場合, + + <literal>ascii(txt)</literal> は + + <literal>ascii(strcat(txt))</literal>と等価です + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +ascii(["hello";"world"]) +ascii("scilab") +ascii([115 99 105 108 97 98]) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="code2str">code2str</link> + + </member> + + <member> + + <link linkend="str2code">str2code</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="asciimat"> + <refnamediv> + <refname>asciimat</refname> + <refpurpose>文字列行列アスキー変換</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis> + a = asciimat(txt) + txt = asciimat(a) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para> + 文字列または文字列の行列. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para> + 整数アスキーコードのベクトルまたは行列. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + この関数は,Scilab文字列をアスキーコードに変換または + アスキーコードの行列をScilab文字列に変換します. + 出力は,<function>ascii</function>の場合と異なり, + 入力と同じ行数を有する行列です. + </para> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="ascii">ascii</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="blanks"> + + <refnamediv> + + <refname>blanks</refname> + + <refpurpose>空白文字からなる文字列を作成する</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>txt=blanks(n)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>txt</term> + + <listitem> + + <para>文字列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>n</term> + + <listitem> + + <para>空白の数</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>D説明</title> + + <para>blanks(n) はn個の空白からなる文字列です.</para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +disp(['xxx' blanks(20) 'yyy']) + ]]></programlisting> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Farid BELAHCENE + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="char" xml:lang="ja"> + + <refnamediv> + + <refname>char</refname> + + <refpurpose>char 関数</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis> + + y = char(x) + + y = char(st1, st2, st3,....) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>x</term> + + <listitem> + + <para>文字列配列のセル, またはアスキーコードの配列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>st1,st2,st3</term> + + <listitem> + + <para>文字列配列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>y:</term> + + <listitem> + + <para>文字列(列)ベクトル</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <emphasis role="bold">入力引数が一つの場合 :</emphasis> + + </para> + + <para> + + 文字列配列<varname>x</varname>のセルを指定すると, この関数は + + 文字列セルの要素を行とする文字列ベクトル <varname>y</varname> + + を返します. + + </para> + + <para> + + アスキーコード<varname>x</varname>の配列を指定すると, + + この関数はそのアスキーコードに対応する文字列の配列 <varname>y</varname> + + を返します. + + <varname>x</varname>の次元が <literal>[n1, n2, n3, n4,...]</literal>の場合, + + 返り値は2番目の次元以外は入力値と同じ大きさを有します. + + すなわち,<varname>y</varname>の次元は, + + <literal>[n1, n3, n4,...]</literal>となります. + + </para> + + <para> + + <emphasis role="bold">入力引数が1より多い場合 :</emphasis> + + </para> + + <para> + + 文字列配列 + + <literal>st1,st2,st3,...</literal>を指定すると, この関数は, + + <literal>st1,st2,st3,...</literal>を結合した要素が行となる + + 文字列のベクトルを返します. + + ベクトル <varname>y</varname> においては, + + 文字列<literal>sti</literal>の末尾を空白で埋めることにより, + + <literal>sti</literal>の最長のものと同じ長さにしています. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +//Example with a hypermatrix of ASCII codes : +x=hypermat([4,2,3],61:84); +y=char(x) +size(x) +size(y) +//Example with more than one argument : +st1="zeros"; +st2=["one","two"]; +st3=["three"]; +y=char(st1,st2,st3) +size(y) +//all strings rows are completed by 'blanks' to have the same length : 6 +length(y) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="ascii">ascii</link> + + </member> + + <member> + + <link linkend="asciimat">asciimat</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="convstr"> + + <refnamediv> + + <refname>convstr</refname> + + <refpurpose>大文字小文字変換</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>[y] = convstr(str, [flag])</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str, y</term> + + <listitem> + + <para>文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>flag</term> + + <listitem> + + <para>文字オプションで指定可能な値は以下のとおり</para> + + <variablelist> + + <varlistentry> + + <term>'u'</term> + + <listitem> + + <para>大文字に変換</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>'l'</term> + + <listitem> + + <para>小文字に変換</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <function>convstr</function>関数は,文字列の行列 + + <varname>str</varname>を + + 小文字に変換(<varname>flag</varname> = <literal>"l"</literal>の場合; + + デフォルト値)または + + 大文字(<varname>flag</varname> = <literal>"u"</literal>の場合)に変換します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +A=['this','is';'my','matrix']; +convstr(A,'u') + ]]></programlisting> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="emptystr"> + + <refnamediv> + + <refname>emptystr</refname> + + <refpurpose>長さ0の文字列</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>s = emptystr() + + s = emptystr(a) + + s = emptystr(m, n) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>a</term> + + <listitem> + + <para> 大きさ m x nの行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>s</term> + + <listitem> + + <para>文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>m,n</term> + + <listitem> + + <para>整数</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + 長さ0の文字列の行列を返します. + + </para> + + <para> + + 入力引数を指定しない場合,長さ0の文字列を返します. + + </para> + + <para> + + 入力引数に行列を指定した場合,同じ大きさの長さ0の文字列行列を返します. + + </para> + + <para> + + 2個の整数を引数に指定した場合, + + <varname>m</varname> <literal>x</literal> <varname>n</varname> + + の長さ0の文字列行列を返します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +x=emptystr(); +for k=1:10 + x = x + ',' + string(k) + emptystr(1,k) + string(k) +end + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="part">part</link> + + </member> + + <member> + + <link linkend="length">length</link> + + </member> + + <member> + + <link linkend="string">string</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="eval" xml:lang="ja"> + + <refnamediv> + + <refname>eval</refname> + + <refpurpose>文字列の行列を評価する</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>[H] = eval(Z)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>Z</term> + + <listitem> + + <para>文字列の行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <function>eval</function>関数は, + + 文字列の行列<varname>Z</varname>を評価したものを返します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +a=1; +b=2; +Z=['a','sin(b)']; +eval(Z) //行列 [1, 0.909]を返します; + ]]></programlisting> + + </refsection> + + <refsection> + + <title>S参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="evstr">evstr</link> + + </member> + + <member> + + <link linkend="execstr">execstr</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="evstr" xml:lang="ja"> + + <refnamediv> + + <refname>evstr</refname> + + <refpurpose>式を評価する</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis> + + H = evstr(Z) + + [H, ierr] = evstr(Z) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>Z</term> + + <listitem> + + <para> + + 文字列の行列 <varname>M</varname> または + + <code>list(M,Subexp)</code> + + </para> + + <variablelist> + + <varlistentry> + + <term>M</term> + + <listitem> + + <para>文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>Subexp</term> + + <listitem> + + <para>文字列のベクトル</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>H</term> + + <listitem> + + <para>行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>ierr</term> + + <listitem> + + <para>整数, エラーインジケータ</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + 文字列の行列<varname>M</varname>を評価した結果を返します. + + 行列の各要素は有効なScilab式を定義している必要があります. + + </para> + + <para> + + <varname>M</varname>式の評価でエラーが発生した場合, + + 戻り値が1つの版,<code>H = evstr(M)</code>,では通常と同様に + + エラーを発生します. + + 一方,戻り値が2つの版,<code>[H,ierr] = evstr(M)</code>, + + はエラーを発生しませんが,<varname>ierr</varname>にエラー番号が + + 返されます. + + </para> + + <para> + + <varname>Z</varname> がリストの場合, <varname>Subexp</varname> は + + 文字列のベクトルとなり,<varname>M</varname>を評価する前に + + 評価されるsub_expressionsを定義します. + + これらのsub_expressionsは,<varname>M</varname>の中では + + <literal>%(k)</literal>として参照する必要があります. + + ただし,<literal>k</literal>は<varname>Subexp</varname>における + + sub-expressionのインデックスです. + + </para> + + <para> + + <code>evstr('a = 1')</code> は有効ではありません + + (代わりに<function>execstr</function>を使用してください). + + </para> + + <para> + <literal>Nan</literal>, <literal>NaN</literal> + + は <constant>%nan</constant> と評価されます. + </para> + + <para> + + <literal>Inf</literal> は <constant>%inf</constant> と評価されます. + + </para> + + <note> + + <varname>Z</varname> は,継続記号 (..)で分解できない + + ことに注意してください. + + </note> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"> + + 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 + + </programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="execstr">execstr</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="grep" xml:lang="ja"> + + <refnamediv> + + <refname>grep</refname> + + <refpurpose>文字列のベクトルの中で指定した文字列に一致するかどうかを調べる</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>row=grep(haystack,needle ) + + [row,which]=grep(haystack,needle ) + + row=grep(haystack,needle ,[flag]) + + [row,which]=grep(haystack,needle ,[flag]) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>haystack</term> + + <listitem> + + <para>文字列の行ベクトル.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>needle</term> + + <listitem> + + <para>文字列または文字列の行ベクトル. + + <varname>haystack</varname>の中で文字列を探します. + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>row</term> + + <listitem> + + <para>インデックスのベクトル: + + 一致するものが見つかった行, + + または一致するものが見つからなかった場合は空の行列. + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>which</term> + + <listitem> + + <para>インデックスのベクトル: + + 見つかったneedle文字列のインデックスまたは + + 一致するものがなかった場合は空の行列. + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>flag</term> + + <listitem> + + <para> + 文字 (正規表現の場合は<literal>"r"</literal>) + </para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + + + <varname>haystack</varname>の各エントリについて, + + <function>grep</function>は少なくとも + + <varname>needle</varname>の中の一つの文字列が + + 部分文字列に一致するかどうかを探します. + + 最低でも一致するものが一つある + + <varname>haystack</varname>のエントリのインデックスが + + 出力引数<varname>row</varname>に返されます. + + オプションの出力引数<varname>which</varname>は, + + <varname>needle</varname>の最初に見つかった文字列のインデックスを + + 指定します. + + </para> + + <para> + + 3番目のパラメータに<varname>flag</varname><literal>="r"</literal> + + を指定した場合, + + <varname>needle</varname>に正規表現文字列を指定できます. + + この場合, <function>grep</function>は<varname>needle</varname> + + を正規表現として使用し,正規表現の規則に基づいて + + <varname>haystack</varname>とこの文字列を比較します. + + 正規表現に関する詳細については関数<link linkend="regexp">regexp</link> + + を参照ください. + + </para> + + </refsection> + + <refsection> + + <title>例 #1</title> + + <para> + + 以下の例では,<varname>txt</varname>変数に保存されている + + テキスト中で,1つまたは2つの文字列を探します. + + </para> + + <programlisting role="example"><![CDATA[ +txt=['find matches of a string in a vector of strings' + 'search position of a character string in an other string' + 'Compare Strings']; +grep(txt,'strings') +grep(txt,['strings' 'Strings']) +[r,w]=grep(txt,['strings' 'Strings']) + ]]></programlisting> + + </refsection> + + <refsection> + + <title>例 #2</title> + + <para>以下の例では, 正規表現検索を行ないます.</para> + + <programlisting role="example"><![CDATA[ +str = ["hat";"cat";"hhat";"chat";"hcat";"ccchat";"at";"dog"] +grep(str,'/[hc]+at/','r') +grep(str,'/[hc]?at/','r') +grep(str,'/cat|dog/','r') + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strindex">strindex</link> + + </member> + + <member> + + <link linkend="regexp">regexp</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isalphanum"> + + <refnamediv> + + <refname>isalphanum</refname> + + <refpurpose>文字列の文字がアルファベットまたは数字であるかどうかを調べる</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = isalphanum(str)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para>文字列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>論理値行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = isalphanum(str)</code>は <varname>str</varname> + + と同じ大きさの配列を返します. + + この配列の要素は,対応する<varname>str</varname> + + の要素がアルファベットまたは数字である + + 場合に論理値 <constant>%t</constant> (true), + + そうでない場合は <constant>%f</constant> (false) を返します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isalphanum(s) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="isletter">isletter</link> + + </member> + + <member> + + <link linkend="isdigit">isdigit</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isascii"> + + <refnamediv> + + <refname>isascii</refname> + + <refpurpose>文字が7ビットUS-ASCII文字であるかどうかを確認する</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = isascii(str)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para>文字列または整数の配列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>論理値行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = isascii(str)</code>は, + + <varname>str</varname>のエントリが + + 0および8進数表現で0177の間の7ビットUS-ASCII文字コード + + (または<varname>str</varname>のエントリが7ビットUS-ASCII文字列) + + の場合に<constant>%t</constant> (TRUE), + + それ以外の場合に <constant>%f</constant> (FALSE). + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +letters = [115. 99. 105. 108. 97. 98.] +isascii(letters) +ascii(letters) +isascii('scilab') + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="isalphanum">isalphanum</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isdigit"> + + <refnamediv> + + <refname>isdigit</refname> + + <refpurpose>文字列の文字が0と9の間の数値であるかどうかを調べる</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = isdigit(str)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para>文字列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>論理値の行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = isdigit(str)</code> は, + + <varname>str</varname>と同じ大きさの配列を返します. + + 配列の要素は,対応する<varname>str</varname>の要素が数値の場合に + + 論理値<constant>%t</constant> (TRUE), + + それ以外の場合に論理値<constant>%f</constant> (FALSE)となります. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isdigit(s) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="isalphanum">isalphanum</link> + + </member> + + <member> + + <link linkend="isletter">isletter</link> + + </member> + + <member> + + <link linkend="isnum">isnum</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isletter"> + + <refnamediv> + + <refname>isletter</refname> + + <refpurpose>文字列の文字がアルファベット文字であるかどうかを調べる</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = isletter(str)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para>文字列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>論理値の行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = isletter(str)</code>は, + + <varname>str</varname>と同じ大きさの配列を返します. + + 配列の要素は,対応する <varname>str</varname>の要素が + + アルファベット文字の場合に論理値<constant>%t</constant> (TRUE), + + それ以外の場合に論理値<constant>%f</constant> (FALSE)となります. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isletter(s) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="isalphanum">isalphanum</link> + + </member> + + <member> + + <link linkend="isdigit">isdigit</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isnum"> + + <refnamediv> + + <refname>isnum</refname> + + <refpurpose>文字列が数字であるかどうかを調べる</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = isnum(str)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para>文字列または文字列の行列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>論理値の行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = isnum(str)</code>は, + + <varname>str</varname>が数値を表す場合に<constant>%t</constant> + + を返します. + + </para> + + <para> + + <code>isnum</code> は "演算"を処理せずに, + + スカラー数値のみを扱います. + + 例えば, <code>isnum("1+2*3")</code> は <code>%f</code>を返します. + + 複素数は2つの部分の加算として定義されるため, + + 対応していません. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +isnum(['1' , .. + '-1.23' , .. + '+1e+23' , .. + '1d+23' , .. + 'A' , .. + '%e' , .. + '%pi' , .. + '%nan' , .. + 'Nan' , .. + '%inf' , .. + 'Inf' , .. + '1+%i*2' , .. + '%eps-%eps*%i', .. + '%inf+Nan*%i' ]) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="isletter">isletter</link> + + </member> + + <member> + + <link linkend="isdigit">isdigit</link> + + </member> + + <member> + + <link linkend="isalphanum">isalphanum</link> + + </member> + + <member> + + <link linkend="evstr">evstr</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="justify"> + + <refnamediv> + + <refname>justify</refname> + + <refpurpose>文字配列を整列</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>Tj = justify(T, opt)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>T</term> + + <listitem> + + <para>文字列の行列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>Tj</term> + + <listitem> + + <para>文字列の行列. 揃えられた結果</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>opt</term> + + <listitem> + + <para>文字オプション,以下の値を指定できます:</para> + + <variablelist> + + <varlistentry> + + <term>'r'または'right'</term> + + <listitem> + + <para>右揃え</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>'l'または'left' </term> + + <listitem> + + <para>左揃え</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>'c'または'center' </term> + + <listitem> + + <para>中央揃え</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <function>justify</function>関数は, + + 指定したオプション<varname>opt</varname>に基づき + + 文字列の行列の列を整列します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +t=['1234','x','adfdfgdfghfgj' + '1','354556','dgf' + 'sdfgd','','sdfsf']; +justify(t,'l') +justify(t,'c') +justify(t,'r') + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="length">length</link> + + </member> + + <member> + + <link linkend="part">part</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="length" xml:lang="ja"> + <refnamediv> + <refname>length</refname> + <refpurpose>オブジェクトの長さ</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>n=length(M)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>M</term> + <listitem> + <para>行列 (通常または多項式または文字列) または + リスト + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>n</term> + <listitem> + <para>整数または整数行列</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + 通常または多項式の行列の場合, <literal>n</literal>は + <literal>M</literal>の行の数に列の数を乗じた整数になります. + (<literal>M</literal>が論理値行列の場合にも有効) + </para> + <para>文字列からなる行列の場合 (および部分的に文字列の場合) + <literal>length</literal>は, + 文字列の行列<literal>M</literal>のエントリの長さを + <literal>n</literal>に返します. + </para> + <para>リストの長さはリストの中の要素の長さです + (<literal>size</literal>でも出力されます). + </para> + <para> + mlistのlengthはデフォルトでmlistの要素数ですが, + オーバーロードすることができます(例参照). + 文字列でないハイパー行列は, + 関数をオーバーロードする必要がないことに注意してください. + さもなくば,<function>length</function>は + ハイパー行列の次元の積を返します. + </para> + <para> + <literal>length('123')</literal>は <literal>3</literal>となります. + <literal>length([1,2;3,4])</literal>は <literal>4</literal>となります. + </para> + <para> + <warning> + 警告 : + 疎行列の<function>length</function>は, + 行列の最大次元を返し,次元の積ではありません. + (例えば: + <code>length(sparse(eye(12,2)))</code>は, + <literal>24</literal>)ではなく<code>max(12,2)</code> を返します. + 疎行列の場合は <literal>size(...,'*')</literal>を使用してください. + </warning> + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +length([123 ; 456 ]) +length(['hello world',SCI]) +length(rand(2,2,2)) + ]]></programlisting> + <programlisting role="example"><![CDATA[ +a = mlist(["myMlistT" "field1" "field2"],"aexample","bexampleb"); +length(a) +// lengthがmlistにオーバーロードされたいない場合のデフォルトの動作は3を返す +// mlist型myMlistTのオーバーロード関数を作成 +function r = %myMlistT_length(M) + r = length(M.field1) +endfunction +length(a) +// length(a.field1)の結果8を返す + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="size">size</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>履歴</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revremark> + この関数によりmlist型のオーバーロードが可能となりました. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="part" xml:lang="ja"> + <refnamediv> + <refname>part</refname> + <refpurpose>文字列の展開</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>[strings_out] = part(strings_in, v)</synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>strings_in</term> + <listitem> + <para>文字列または文字列の行列.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>v</term> + <listitem> + <para> + 展開する文字の添字を有する整数値のベクトル. + <literal>$</literal> を使用可能で, + length(strings_in)を意味します. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>strings_out</term> + <listitem> + <para>文字列または文字列の行列.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + この関数は,文字列から文字を展開します. + 展開する文字は<literal>v</literal>に含まれる + 添字により参照されます. + </para> + <para> + 添字が入力文字の長さを超える場合, + <literal>strings_out</literal> は,空白文字で埋められます. + </para> + <para> + <literal>v</literal> は,<literal>string_in</literal>の長さを意味する + <literal>$</literal>記号を含むことができます. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +// 位置 8 から 11 の文字を返します +part("How to use ""part"" ?", 8:11) +// 各要素の位置2から4の文字を返します +// 文字はn ''で置換されません +c = part(['a', 'abc', 'abcd'], 2:4) +// 各要素の位置1の文字に各要素の位置4から7に文字を追加して返します +c = part(['abcdefg', 'hijklmn', 'opqrstu'], [1, 4:7]); +// 各要素の4番目の文字に位置1から7の文字を追加し,各要素の位置4の文字を追加して返します +c = part(['abcdefg', 'hijklmn', 'opqrstu'], [4, 1:7, 4]); +// 位置1の文字に位置1の文字を再度追加,位置2の文字を追加して返す +c=part(['a', 'abc', 'abcd'], [1, 1, 2]) +part(['a', 'abc', 'abcd'], [1]) // => ['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:$ $ ]) // => エラー + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strsplit">strsplit</link> + </member> + <member> + <link linkend="length">length</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>履歴</title> + <revhistory> + <revision> + <revnumber>5.5.0</revnumber> + <revremark> + length(input_strings)を意味する <literal>$</literal> は, + 選択した文字の添字として使用可能になりました. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="regexp" xml:lang="ja"> + <refnamediv> + <refname>regexp</refname> + <refpurpose>正規表現文字列に一致する部分文字列を探す</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis> + [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]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>input</term> + <listitem> + <para>文字列.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>pattern</term> + <listitem> + <para> (正規表現の規則に基づく)文字列</para> + </listitem> + </varlistentry> + <varlistentry> + <term>start</term> + <listitem> + <para> + 正規表現文字列<varname>pattern</varname>に + 一致する<varname>input</varname>の各部分文字列の + 開始添字 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>final</term> + <listitem> + <para> + 正規表現文字列<varname>pattern</varname>に + 一致する<varname>input</varname>の各部分文字列の + 終端添字 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>match</term> + <listitem> + <para> + <literal>pattern</literal>に一致する + <varname>input</varname>の各部分文字列のテキスト. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>match</term> + <listitem> + <para> + <varname>pattern</varname>にマッチする<varname>input</varname> + の部分文字列のテキスト. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>foundString</term> + <listitem> + <para> + 取得された括弧で括られた<literal>サブパターン</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>[flag]</term> + <listitem> + <para> + パターンに一回マッチする場合は,<literal>'o'</literal>. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + Perl言語に似た正規表現の規則. + すぐに始めるには, + <ulink url="http://perldoc.perl.org/perlrequick.html">http://perldoc.perl.org/perlrequick.html</ulink>を参照ください. + より詳細なチュートリアルについては, + <ulink url="http://perldoc.perl.org/perlretut.html">http://perldoc.perl.org/perlretut.html</ulink>を参照ください. + また,リファレンスについては<ulink url="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</ulink>を参照ください. + </para> + <para> + Perlとの違いは,Perlでは文字ではない位置 + (例えば,<literal>/^/</literal>または<literal>/(?=o)/</literal>) + にPerlではマッチできますが,Scilabではできません. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ +regexp('xabyabbbz','/ab*/','o') +regexp('a!','/((((((((((a))))))))))\041/') +regexp('ABCC','/^abc$/i') +regexp('ABC','/ab|cd/i') +[a b c]=regexp('XABYABBBZ','/ab*/i') +piString="3.14" +[a,b,c,piStringSplit]=regexp(piString,"/(\d+)\.(\d+)/") +disp(piStringSplit(1)) +disp(piStringSplit(2)) +[a,b,c,d]=regexp('xabyabbbz','/ab(.*)b(.*)/') +size(d) +// URLからホスト名を取得 +myURL="http://www.scilab.org/download/"; +[a,b,c,d]=regexp(myURL,'@^(?:http://)?([^/]+)@i') +str='foobar: 2012'; +// 名前のあるサブパターンを使用 +[a,b,c,d]=regexp(str,'/(?P<name>\w+): (?P<digit>\d+)/') +d(1)=="foobar" +d(2)=="2012" + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>履歴</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revremark> + サブパターンマッチの結果を取得するために + 新しい出力引数, foundString, が追加されました. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="sci2exp"> + + <refnamediv> + + <refname>sci2exp</refname> + + <refpurpose>式を文字列に変換</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>t = sci2exp(a [,nam] [,lmax])</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>a</term> + + <listitem> + + <para>以下に示すscilab式</para> + + <variablelist> + + <varlistentry> + + <term>- </term> + + <listitem> + + <para>定数,</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>- </term> + + <listitem> + + <para>多項式</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>- </term> + + <listitem> + + <para>文字列行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>- </term> + + <listitem> + + <para>リスト</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>- </term> + + <listitem> + + <para>論理値行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>- </term> + + <listitem> + + <para>ハンドル(図およびuicontrolのみ).</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>nam</term> + + <listitem> + + <para>文字列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>t</term> + + <listitem> + + <para>文字列ベクトルで, 式またはダミー命令を含みます</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>lmax</term> + + <listitem> + + <para> + + 整数で, 行の最大長を有します. + + デフォルト値は<literal>0</literal>で, + + 行の長さを制御を行わず, + + 単一の文字列が返されることを示します. + + </para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <function>sci2exp</function>は, + + <varname>nam</varname>が指定されるた場合には + + 式を命令文字列に,さもなくば式文字列に変換します. + + </para> + + </refsection> + + <refsection> + + <title>注意</title> + + <itemizedlist> + + <listitem> + + <para> + + <varname>a</varname> がハンドルの場合, + + <function>sci2exp</function> は階層的リンクがない結果 + + つまり,親および子の空のフィールドの結果を出力します. + + </para> + + </listitem> + + <listitem> + + <para> + + <varname>t</varname> は,<link linkend="format">format</link>の + + 影響を受けます. + + </para> + + </listitem> + + </itemizedlist> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +a=[1 2;3 4] +sci2exp(a,'aa') +sci2exp(a,'aa',10) +sci2exp(ssrand(2,2,2)) +sci2exp(poly([1 0 3 4],'s'),'fi') +sci2exp(figure("figure_name","figure1")) +b=0.123456789; +format(5); +c=sci2exp(b) +format(10); +d=sci2exp(b) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="prettyprint">prettyprint</link> + + </member> + + <member> + + <link linkend="format">format</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcat" xml:lang="ja"> + + <refnamediv> + + <refname>strcat</refname> + + <refpurpose>文字列を結合する</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis> + + txt = strcat(strings [,string_added]) + + txt = strcat(strings [,string_added, ["flag"]]) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>strings</term> + + <listitem> + + <para>文字列のベクトルまたは行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>string_added</term> + + <listitem> + + <para> + + 追加される文字列, デフォルト値は長さ0の文字列 + + <literal>""</literal> + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>txt</term> + + <listitem> + + <para>文字列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>"flag"</term> + + <listitem> + + <para> + + 文字列 (<literal>"r"</literal>は + + 行列<varname>strings</varname>の行の結合, + + <literal>"c"</literal>は + + 行列<varname>strings</varname>の列の結合) + + </para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>txt = strcat(strings)</code>は文字列を結合します: + + <literal>txt = strings(1) + ... + strings(n)</literal>. + + </para> + + <para> + + <code>txt = strcat(strings, string_added)</code>は, + + <literal>txt = strings(1) + string_added + ... + string_added + strings(n)</literal> + + を返します. + + </para> + + <para> + + プラス記号の動作は同じです: <code>"a"+"b"</code> は + + <code>strcat(["a","b"])</code>と同じです. + + </para> + + <para> + + <varname>strings</varname> の大きさが1の場合, + + <code>txt = strings(1)</code>を返します. + + </para> + + <para> + + <code>strcat('A','B')</code> は <literal>'A'</literal>を返し, + + <code>strcat(['A','B'])</code>のように<literal>'AB'</literal> + + とはなりません. + + </para> + + <para> + + <varname>strings</varname>が文字列の行列の場合, + + <code>strcat(strings,"",'r')</code> は文字列の行ベクトルを返します. + + この行ベクトルのエントリは行結合の毛化です.文字列の列ベクトルを返します. + + この列ベクトルのエントリは列結合の結果です. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +strcat(string(1:10),',') +strcat(["a","b"]) +strcat(["a","b"],'|') +strcat('A') +strcat('A','B') +strcat(['A','B']) +strcat(['A','B'],'') + +m =["a" "b" ; "c" "d"]; +strcat(m, "r") +strcat(m, "", "r") +strcat(m, "", "c") + +strcat(m, "_and_", "r") +strcat(m, "_and_", "c") + + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="string">string</link> + + </member> + + <member> + + <link linkend="strings">strings</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strchr"> + + <refnamediv> + + <refname>strchr</refname> + + <refpurpose>文字列の中で指定した文字が最初に現れる位置を探す</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = strchr(haystack, char)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>haystack</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>char</term> + + <listitem> + + <para>文字.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strchr(haystack, char)</code> は, + + 文字列<varname>haystack</varname>の中で指定した + + 文字が最初に現れる位置を返します. + + </para> + + <para> + + <varname>char</varname>は文字列を1つのみ,または, + + <varname>haystack</varname>と同じ数だけ有する + + 必要があります + + (各文字列の長さは1文字分のみ). + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +strchr('This is a sample string','s') +strchr(['This is a sample string','in scilab'],'s') +strchr(['This is a sample string','in scilab'],['s','a']) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strrchr">strrchr</link> + + </member> + + <member> + + <link linkend="strstr">strstr</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcmp" xml:lang="ja"> + + <refnamediv> + + <refname>strcmp</refname> + + <refpurpose>文字列を比較</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = strcmp(string_one, string_two, [,'i'])</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>string_one</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>string_two</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>'i'</term> + + <listitem> + + <para> + + <function>strcmpi</function> + + (大文字小文字に依存)を使用するためのパラメータ, デフォルト値は + + <literal>'s'</literal>. + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>整数の行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strcmp(string_one, string_two)</code> + + (または<code>res = strcmp(string_one, string_two, 's')</code>)は, + + 文字列の間の関係(辞書順)を示す整数値を返します. + + </para> + + <para> + + ゼロより大きい値は,一致しない最初の文字について, + + <varname>string_one</varname>の方が + + <varname>string_two</varname>よりも大きな値を有している + + ことを示します. + + </para> + + <para> + + <code>res = strcmp(string_one, string_two, 'i')</code>は, + + <varname>string_one</varname> が + + <varname>string_two</varname> (大文字小文字を区別しません) + + に等しい場合に<literal>0</literal>を返し, + + <literal>1</literal>はその逆を示します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +strcmp(TXT1,TXT2) +strcmp(TXT1,'scilab') +strcmp(TXT1,'SciLab') +strcmp(TXT1,TXT2,'i') + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strcat">strcat</link> + + </member> + + <member> + + <link linkend="strcmpi">strcmpi</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strcmpi"> + + <refnamediv> + + <refname>strcmpi</refname> + + <refpurpose>文字列を比較 (大文字小文字を区別)</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = strcmpi(string_one,string_two)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>string_one</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>string_two</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>整数の行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strcmpi(string_one, string_two)</code>は, + + 文字列の間の関係を示す内部的な値を返します. + + 2つの文字列は<emphasis role="bold">辞書式順序</emphasis>により + + 比較されます. + + </para> + + <para> + + <varname>string_one</varname>が <varname>string_two</varname> + + に等しい場合(大文字小文字を区別しません), 値は + + <literal>0</literal> となり, + + <varname>string_one</varname>が + + <varname>string_two</varname>より大きい場合に<literal>1</literal>, + + それ以外は<literal>-1</literal>となります. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +strcmpi(TXT1,TXT2) +strcmpi(TXT1,'scilab') + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strcat">strcat</link> + + </member> + + <member> + + <link linkend="strcmp">strcmp</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcspn" xml:lang="ja"> + + <refnamediv> + + <refname>strcspn</refname> + + <refpurpose>文字列の中の文字までの間隔を得る</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>Calling Sequence</title> + + <synopsis>res = strcspn(string_one, string_two)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>string_one</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>string_two</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strcspn(string_one,string_two)</code>は, + + <varname>string_one</varname>の中で + + <varname>string_two</varname>の一部の文字のどれかが最初に現れる位置を + + 探し,それが最初に現れるまでの<varname>string_one</varname>の文字数を返します. + + </para> + + <para> + + <varname>string_two</varname>の次元が<varname>string_one</varname>と + + 同じ,または<varname>string_two</varname>が文字列である必要があります. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +strcspn("fcba73","1234567890") +strcspn(["fcba73","f7cba73"],"1234567890") +strcspn(["fcba73","f7cba73"],["312","34567890"]) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strspn">strspn</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strindex" xml:lang="ja"> + + <refnamediv> + + <refname>strindex</refname> + + <refpurpose>他の文字列の中で指定した文字列の位置を探す.</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis> + + ind = strindex(haystack, needle, [flag]) + + [ind, which] = strindex(haystack, needle, [flag]) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>haystack</term> + + <listitem> + + <para> + + 文字列. + + <varname>needle</varname>が現れる場所を探す文字列 + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>needle</term> + + <listitem> + + <para> + + 文字列または文字列ベクトル. + + <varname>haystack</varname>で探す文字列 + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>ind</term> + + <listitem> + + <para>添字のベクトル</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>which</term> + + <listitem> + + <para>添字のベクトル</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>flag</term> + + <listitem> + + <para> + 文字列(<literal>"r"</literal>の場合は正規表現) + </para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <function>strindex</function>は, + + <varname>haystack</varname>の中で<literal>needle(i)</literal>が + + 見つかる場所のインデックスを探します. + + </para> + + <para> + + 各<literal>k</literal>に関して, + + <literal>part(haystack,ind(k)+(0:length(needle(i))-1))</literal> + + が<literal>needle(i)</literal>と同じ文字列となるよな + + <literal>i</literal>が存在します. + + <varname>which</varname>引数が必要な場合, + + これにはこれらの<literal>i</literal>が含まれる必要があります. + + 3番目のパラメータ<literal>"r"</literal>を指定する場合, + + <varname>needle</varname>は正規表現の文字列とする必要があります. + + この場合, <function>strindex</function>は正規表現式の規則に基づき + + <varname>haystack</varname>を検索します. + + </para> + + <para> + + 正規表現式引数を指定しない<function>strindex</function>は + + Knuth-Morris-Prattアルゴリズムに基づきます. + + </para> + + <para> + + このアルゴリズムは Scilab 4.x で使用されるものよりも + + より強力です. いくつかの特殊なケースでは,結果が異なることがあります. + + </para> + + <para>例:</para> + + <para>// Scilab 5.x</para> + + <para>-->[k,w]=strindex('aab',['a','ab'])</para> + + <para>w = 1. 1. 2. k = 1. 2. 2.</para> + + <para>// Scilab 4.x</para> + + <para>-->[k,w]=strindex('aab',['a','ab'])</para> + + <para>w = 1. 1. k = 1. 2.</para> + + <para> + + 正規表現の規則はPerl言語に似ていますT. 使い始めるには, + + <ulink url="http://perldoc.perl.org/perlrequick.html">http://perldoc.perl.org/perlrequick.html</ulink>を参照してください. + + より詳細なチュートリアルについては <ulink url="http://perldoc.perl.org/perlretut.html">http://perldoc.perl.org/perlretut.html</ulink> + + を参照ください. + + リファレンスについては, <ulink url="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</ulink> + + を参照してください + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +k=strindex('SCI/demos/scicos','/') +k=strindex('SCI/demos/scicos','SCI/') +k=strindex('SCI/demos/scicos','!') +k=strindex('aaaaa','aa') +k=strindex('SCI/demos/scicos',['SCI','sci']) +[k,w]=strindex('1+3*abc/2.33',['+','-','*','/']) +k=strindex('2' ,'/2(]*)?$\1/' ,'r') + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="string">string</link> + + </member> + + <member> + + <link linkend="strings">strings</link> + + </member> + + <member> + + <link linkend="regexp">regexp</link> + + </member> + + <member> + + <link linkend="strsubst">strsubst</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="string"> + <refnamediv> + <refname>string</refname> + <refpurpose>文字列に変換</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>呼び出し手順</title> + <synopsis>string(x) + [out, in, text] = string(x) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>引数</title> + <variablelist> + <varlistentry> + <term>x</term> + <listitem> + <para> + 論理値, 複素数, 実数, 整数, 多項式行列, + 暗黙の大きさ, ライブラリまたは関数. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>説明</title> + <para> + <function>string</function>関数は + 行列<varname>x</varname> を文字列の行列に変換します. + </para> + <para> + <literal>x</literal>が関数の場合, + <code>[out, in, text] = string(x)</code> は + 3つの文字列ベクトルを返します: + <literal>out</literal> は出力変数のベクトル, + <literal>in</literal> は入力変数のベクトル, そして <literal>text</literal> は + 関数のソースコードの(列)ベクトルです. + </para> + <para> + <literal>x</literal>が <literal>lib</literal>変数の場合, + <varname>text</varname>は文字列の列ベクトルとなります. + 最初の要素は,ライブラリファイルのパス, + その他の要素は定義する関数の名前を有します. + </para> + <para> + 文字列は<literal>'string'</literal> (引用符で括る)または + <literal>"string"</literal> (二重引用符で括る)で定義されます; + 文字列の行列は通常の定数行列として定義されます. + </para> + <para> + 文字列の結合は<literal>+</literal>操作により行われます. + </para> + <para> + 複素数, 実数, 整数, 多項式行列の場合, + <function>string</function> の出力は + <link linkend="format">format</link> function (例参照)で管理されます. + </para> + <para> + string([]) は []を返すことに注意してください. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="example"><![CDATA[ + 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:$) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="quote">quote</link> + </member> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="execstr">execstr</link> + </member> + <member> + <link linkend="strsubst">strsubst</link> + </member> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="sci2exp">sci2exp</link> + </member> + <member> + <link linkend="format">format</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>履歴</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revremark> + 暗黙の大きさの型が入力引数として管理されます. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strings"> + + <refnamediv> + + <refname>strings</refname> + + <refpurpose>Scilabオブジェクト, 文字列</refpurpose> + + </refnamediv> + + <refsection> + + <title>説明</title> + + <para> + + 文字列は <code>'string'</code> (引用符で括る) または + + <code>"string"</code> (二重引用符で括る)と定義されます; + + 文字列の行列は通常の定数行列と同様に定義されます. + + </para> + + <para> + + 2つの文字列の結合は <literal>+</literal> により作成されます: + + <code>string1 + string2</code>. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +['this','is'; 'a 2x2','matrix'] +"matrix"=="mat"+"rix" + ]]></programlisting> + + </refsection> + + <refsection> + + <title>S参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="part">part</link> + + </member> + + <member> + + <link linkend="length">length</link> + + </member> + + <member> + + <link linkend="strcat">strcat</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="stripblanks"> + + <refnamediv> + + <refname>stripblanks</refname> + + <refpurpose> + + 文字列の先頭または末尾の空白(およびタブ)を取り除く + + </refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>txt = stripblanks(txt[,tabs])</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>txt</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>tabs</term> + + <listitem> + + <para> + + 論理値, <constant>%t</constant>の場合タブも削除されます + + (デフォルト値は <constant>%f</constant>です). + + </para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <function>stripblanks</function>関数は, + + 文字列の先頭または末尾の空白(およびタブ)を取り除きます. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +a=' 123 '; +'!'+a+'!' +'!'+stripblanks(a)+'!' +a=[' 123 ',' xyz'] +strcat(stripblanks(a)) + +a = msprintf("\t \tHello world!\t\t") +strcat(stripblanks(a,%f)+'?') +strcat(stripblanks(a,%t)+'?') + ]]></programlisting> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strncpy"> + + <refnamediv> + + <refname>strncpy</refname> + + <refpurpose>文字列から文字をコピーする</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = strncpy(str1, num)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str1</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>num</term> + + <listitem> + + <para>行列で,ソースからコピーされる文字の最大長</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strncpy(str1, num)</code> は, + + ソース<varname>str1</varname>から + + デスティネーション<varname>res</varname>に + + 最初の<varname>num</varname>文字をコピーします. + + </para> + + <para> + + <varname>num</varname>は<varname>str1</varname>と同じ次元であるか, + + <varname>num</varname>が整数値である必要があります. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +strncpy('scilab',3) +strncpy(['scilab','SciLab';'strncpy','strstr'],3) +strncpy(['scilab','SciLab';'strncpy','strstr'],[1,2;3,4]) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strcat">strcat</link> + + </member> + + <member> + + <link linkend="strcmp">strcmp</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strrchr"> + + <refnamediv> + + <refname>strrchr</refname> + + <refpurpose>文字列の中で指定した文字が最後に現れる場所を探す</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = strrchr(str1, char)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str1</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>char</term> + + <listitem> + + <para>文字.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strrchr(str1, char)</code>は, + + 文字列<varname>str1</varname>の中で指定した文字 + + <varname>char</varname>が最後に現れる場所を返します. + + </para> + + <para> + + <varname>char</varname>は<varname>str1</varname>と同じ次元 + + または1文字である必要があります. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +strrchr('This is a sample string','s') +strrchr(['This is a sample string','in scilab'],'s') +strrchr(['This is a sample string','in scilab'],['s','a']) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strchr">strchr</link> + + </member> + + <member> + + <link linkend="strstr">strstr</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strrev"> + + <refnamediv> + + <refname>strrev</refname> + + <refpurpose>文字列を逆順にして返す</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = strrev(str1)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str1</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strrev(str1)</code> 文字列を逆順にして返します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +rev = strrev('This is a simple string') +strrev(rev) +strrev(['This is a simple string','scilab']) + ]]></programlisting> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsplit" xml:lang="ja"> + + <refnamediv> + + <refname>strsplit</refname> + + <refpurpose>文字列を文字列のベクトルに分割する</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis> + + 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) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para>分割する文字列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>ind</term> + + <listitem> + + <para> + + <literal>[1 length(str)-1] </literal>の範囲の + + 単調増加のインデックスのベクトル. + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>v</term> + + <listitem> + + <para> + + 得られた文字列の列ベクトル (次元 + + ><literal>size(ind,'*')+1</literal>). + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>matched_separators</term> + + <listitem> + + <para>一致したセパレータの列ベクトル</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>matrix_of_strings</term> + + <listitem> + + <para>strの中で検索する文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>regexp_pattern</term> + + <listitem> + + <para>正規表現パターン</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>limit</term> + + <listitem> + + <para>要素数の最大値</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>v= strsplit(str, ind)</code>は,文字列<varname>str</varname>を + + <varname>ind</varname>で添字が指定された点 + + (<varname>ind</varname>の添字が指す各文字の後)で, + + 文字列のベクトルに分割します. + + </para> + + <para> + + <code>strsplit(str)</code> は, + + <code>strsplit(str,1:length(str)-1)</code>と同じ文字列を返します. + + </para> + + <para> + + <code>strsplit(str, regexp_pattern, limit)</code>は + + 文字列の列ベクトルを返します. + + その各々は,大文字小文字を区別する正規表現により構築された境界で + + 分割された<varname>str</varname> の部分文字列です. + + </para> + + <para> + + パターンが<literal>n</literal>回現れる場合, + + 返される配列は<literal>n+1</literal>個の要素を有します. + + </para> + + <para> + + 例えば, パターンが1回も存在しなかった場合, + + 1要素のみの配列が返されます. + + もちろん,これは<varname>str</varname>が空の場合も同じです. + + </para> + + <para> + + <varname>limit</varname>が設定された場合,返される配列には + + 最大<varname>limit</varname>個の要素が含まれ, + + その最後の要素には文字列の残り全体が含まれます. + + </para> + + <para> + + <code>strsplit(str, matrix_of_strings, limit)</code>は, + + <varname>str</varname>を任意の要素で分割します. + + これにより, + + 正規表現を知らないユーザが異なるセパレータで分割することが + + できるようになります. + + </para> + + <para> + + <code>strsplit()</code>が第2の出力引数を指定してコールされた場合, + + 一致したセパレータの列ベクトルが返されます. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +S='strsplit splits a string into a vector of strings'; +strsplit(S,[15 25 30]) +ind=strindex(S,' ') +[r_1, r_2] = strsplit("abcd") +[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",5) +[r_1, r_2] = strsplit("abc,def:ijk,:lmo","/:|,/") +[r_1, r_2] = strsplit("abc,def:ijk,:lmo",[":";","]) +strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/") +[r_1, r_2] = strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/",2) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="part"> part</link> + + </member> + + <member> + + <link linkend="strcat"> strcat</link> + + </member> + + <member> + + <link linkend="tokens"> tokens</link> + + </member> + + <member> + + <link linkend="regexp"> regexp</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strspn" xml:lang="ja"> + + <refnamediv> + + <refname>strspn</refname> + + <refpurpose>文字列において指定した文字集合の幅を取得</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = strspn(str1, str2)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str1</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>str2</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>文字列の行列.</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strspn(str1, str2)</code>は, + + <varname>str2</varname>に含まれる文字のみからなる + + <varname>str1</varname>の先頭部分の長さを返します. + + </para> + + <para> + + <varname>str1</varname>は<varname>str2</varname>と次元が同じ, + + もしくは, + + <varname>str2</varname>が1x1の文字列である必要があります. + + どちらの場合でも, + + 出力は<varname>str1</varname>と同じ次元となります. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +i = strspn("129th","1234567890"); +mprintf ("The length of initial number is %d.\n",i); +i = strspn(["129th","130th"],["1234567890","130t"]) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strcspn">strcspn</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strstr" xml:lang="ja"> + + <refnamediv> + + <refname>strstr</refname> + + <refpurpose>部分文字列を取得</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = strstr(haystack, needle)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>haystack</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>needle</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>文字列または文字列の行列</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strstr(haystack, needle)</code>は, + + <varname>haystack</varname>の中で<varname>needle</varname>が最初に現れる位置から + + <varname>haystack</varname>の末尾までの文字列行列を返します. + + <varname>haystack</varname>の部分が見つからない場合は + + <literal>''</literal>を返します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +strstr('This is a simple string','simple') +strstr('This is a simple string','sample') +strstr(['This is a simple string','in scilab'],'is') +strstr(['This is a sample string','in scilab'],['a','scilab']) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strrchr">strrchr</link> + + </member> + + <member> + + <link linkend="strchr">strchr</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsubst" xml:lang="ja"> + + <refnamediv> + + <refname>strsubst</refname> + + <refpurpose>文字列を他の文字列で置換する.</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis> + + string_out = strsubst(string_in, searchStr, replaceStr) + + string_out = strsubst(string_in, searchStr, replaceStr, [flag]) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>string_in</term> + + <listitem> + + <para> + + 文字列の行列. <varname>searchStr</varname>の存在を + + 探す文字列 + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>searchStr</term> + + <listitem> + + <para> + + 文字列. + + <varname>string_in</varname>の中で探す文字列. + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>replaceStr</term> + + <listitem> + + <para>文字列. 置換する文字列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>str_out</term> + + <listitem> + + <para> + + 文字列の行列. <varname>string_in</varname>の中の + + <varname>searchStr</varname>を + + <varname>replaceStr</varname>で置換した結果. + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>flag</term> + + <listitem> + + <para> + 文字列 (正規表現の場合は<literal>"r"</literal>) + </para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <function>strsubst</function>関数は,<varname>string_in</varname>の中に + + 存在する全ての<varname>searchStr</varname>を<varname>replaceStr</varname>で + + 置換します. + + </para> + + <para> + + 4番目のパラメータ <literal>"r"</literal>を使用する時, + + <varname>searchStr</varname> は正規表現の文字列となります. + + <function>strsubst</function>はこれを<varname>string_in</varname>とマッチさせ, + + 正規表現式の規則に基づき置換を行ないます. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +strsubst('SCI/demos/scicos','SCI','.') +strsubst('SCI/demos/scicos','/',' ') +strsubst('2' ,'/2(]*)?$\1/' ,'0','r') + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="string">string</link> + + </member> + + <member> + + <link linkend="strings">strings</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strtod" xml:lang="ja"> + + <refnamediv> + + <refname>strtod</refname> + + <refpurpose>文字列を倍精度実数に変換.</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis> + + d = strtod(str [,decimalseparator]) + + [d, endstr] = strtod(str [,decimalseparator]) + + </synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para> + + 文字列または文字列の行列 + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>decimalseparator</term> + + <listitem> + + <para> + + 選択した10進数セパレータ: "." (デフォルト) または ",". + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>d</term> + + <listitem> + + <para> + + 実数または実数の行列 + + </para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>endstr</term> + + <listitem> + + <para> + + 文字列または文字列の行列 + + (<varname>str</varname>の中で数値の後に続く文字). + + </para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>[d, endstr] = strtod(str)</code> は, + + 文字列<varname>str</varname> を + + パースし,その内容を浮動小数点数として解釈して, + + その値を実数として返します. + + <varname>str</varname>に数値が含まれていない場合, + + <varname>d</varname> は <literal>Nan</literal>となります. + + </para> + + </refsection> + + <refsection> + + <title>注意</title> + + <itemizedlist> + + <listitem> + + <para> + + この関数はWindowsとLinuxで動作が異なるstrtod C関数に基づきます. + + 実際, Windows では指数部にd または D を使用できますが, + + 16進数を使用することはできません. + + </para> + + </listitem> + + <listitem> + + <para> + + <literal>strtod("%inf")</literal> は <literal>Nan</literal>を + + 返すことに注意してください. + + </para> + + </listitem> + + </itemizedlist> + + </refsection> + + + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +strtod('123.556This is a sample real') +strtod('123,556This is a sample real', ",") +[d,endstr] = strtod('123.556This is a sample real') +strtod(['123.556This is a sample real','888.666 here']) +[d,endstr] =strtod(['123.556This is a sample real','888.666 here']) +[d,endstr] =strtod(['123.556This is a sample real','888,666 here'], ",") + ]]></programlisting> + + </refsection> + + <refsection> + + <title>履歴</title> + + <revhistory> + + <revision> + + <revnumber>5.5.0</revnumber> + + <revremark> + + 新しいオプション入力: decimalseparator (SEP 97). + + </revremark> + + </revision> + + <revision> + + <revnumber>5.4.1</revnumber> + + <revremark> + + <varname>str</varname> に数値が含まれていない場合, + + <varname>d</varname> は以前のバージョンのように + + <literal>0</literal>ではなく, + + <literal>Nan</literal>となります. + + </revremark> + + </revision> + + </revhistory> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strtok"> + + <refnamediv> + + <refname>strtok</refname> + + <refpurpose>文字列をトークンに分割</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>res = strtok(str, delimiters)</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para>文字列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>delimiters</term> + + <listitem> + + <para>文字列</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>res</term> + + <listitem> + + <para>文字列</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>res = strtok(str, delimiters)</code> + + この関数を連続してコールすることにより, + + <varname>str</varname>をトークンに分割します. + + トークンは<varname>delimiters</varname>の文字のどれかで + + 区切られた連続する一連の文字です. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +TOKENS = []; +token = strtok("A string of ,,tokens and some more tokens"," r,"); +TOKENS = [TOKENS,token]; +while( token <> '' ) + token = strtok(" r,"); + TOKENS = [TOKENS,token]; +end +disp(TOKENS); + ]]></programlisting> + + </refsection> + + <refsection> + + <title>参照o</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strrchr">strrchr</link> + + </member> + + <member> + + <link linkend="strchr">strchr</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="tokenpos"> + + <refnamediv> + + <refname>tokenpos</refname> + + <refpurpose>文字列の中のトークンの位置を返す </refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>kdf = tokenpos(str [,delimiter])</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para>文字列. トークンを探す文字列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>delimiter</term> + + <listitem> + + <para>(オプション) 文字列または文字列のベクトル. トークンデリミタ.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>kdf</term> + + <listitem> + + <para> + + 2列の行列で, 最初の列はトークン開始位置の添字, + + 2列目はトークンの最後の文字の添字を出力します. + + </para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>kdf = tokenpos(str [,delimiter])</code>は文字列 + + <varname>str</varname>に含まれるトークンを探します. + + <varname>delimiter</varname> のデフォルト値は + + <literal>[" ",<Tab>]</literal>です. + + ただし, <literal><Tab></literal> は<code>ascii(9)</code>を意味します. + + この関数は各トークンが見つかった最初および最後の文字のインデックスを返します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +str = 'This is a character string'; +kdf = tokenpos(str) +first = part(str, kdf(1,1):kdf(1,2)) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strindex">strindex</link> + + </member> + + <member> + + <link linkend="tokens">tokens</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> + +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="tokens"> + + <refnamediv> + + <refname>tokens</refname> + + <refpurpose>文字列のトークンを返す.</refpurpose> + + </refnamediv> + + <refsynopsisdiv> + + <title>呼び出し手順</title> + + <synopsis>T = tokens(str [,delimiter])</synopsis> + + </refsynopsisdiv> + + <refsection> + + <title>引数</title> + + <variablelist> + + <varlistentry> + + <term>str</term> + + <listitem> + + <para>文字列. トークンを探す文字列.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>delimiter</term> + + <listitem> + + <para>(オプション) 文字または文字のベクトル. トークンデリミタ.</para> + + </listitem> + + </varlistentry> + + <varlistentry> + + <term>T</term> + + <listitem> + + <para>みつかったトークンの列ベクトル</para> + + </listitem> + + </varlistentry> + + </variablelist> + + </refsection> + + <refsection> + + <title>説明</title> + + <para> + + <code>T = tokens(str [,delimiter]) </code> は, + + 文字列<varname>str</varname>の中に含まれるトークンを探します. + + <varname>delimiter</varname>のデフォルト値は + + <literal>[" ",<Tab>]</literal>です. + + ただし, <Tab> は<code>ascii(9)</code>を意味します. + + </para> + + </refsection> + + <refsection> + + <title>例</title> + + <programlisting role="example"><![CDATA[ +tokens('This is a character string') +tokens('SCI/demos/scicos','/') +tokens('y=a+b*2',['=','+','*']) + ]]></programlisting> + + </refsection> + + <refsection role="see also"> + + <title>参照</title> + + <simplelist type="inline"> + + <member> + + <link linkend="strindex">strindex</link> + + </member> + + <member> + + <link linkend="tokenpos">tokenpos</link> + + </member> + + </simplelist> + + </refsection> + +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="ascii" xml:lang="en"> + <refnamediv> + <refname>ascii</refname> + <refpurpose>conversão ASCII de strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>a=ascii(txt) + txt=ascii(a) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para>um string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para>um vetor de códigos ASCII inteiros</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para>Esta função converte um string Scilab para um vetor de códigos + ASCII, ou um vetor de códigos ASCII em strings Scilab + </para> + <para> + Se <literal>txt</literal> é uma matriz de strings, + <literal>ascii(txt)</literal> é equivalente a + <literal>ascii(strcat(txt))</literal> + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +ascii(["olá";"mundo"]) +ascii("scilab") +ascii([115 99 105 108 97 98]) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="blanks" xml:lang="en"> + <refnamediv> + <refname>blanks</refname> + <refpurpose>cria strings de caracteres em branco</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>txt=blanks(n)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para>um nico string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>n</term> + <listitem> + <para>nmero de caracteres em branco</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para>blanks(n) um string de n caracteres em branco.</para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +disp(['xxx' blanks(20) 'yyy']) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Farid BELAHCENE + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="char" xml:lang="en"> + <refnamediv> + <refname>char</refname> + <refpurpose>funo char</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>y=char( x) + y=char(st1,st2,st3,....) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>x</term> + <listitem> + <para>um cell de arrays de strings, ou um array de cdigos ASCII + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>st1,st2,st3</term> + <listitem> + <para>arrays de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>y:</term> + <listitem> + <para>vetor (coluna) de strings </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>Argumento de uma entrada :</literal> + </para> + <para> + Dado um<literal> cell de arrays de strings x</literal>, esta funo + retorna um vetor de strings <literal>y </literal>no qual as linhas so + componentes do cell de strings. + </para> + <para> + Dado um<literal> array de cdigos ASCII x,</literal> esta funo + retorna um array de strings <literal>y</literal> correspondente aos + cdigos ASCII. Se dims (<literal>x</literal>)=[n1,n2,n3,n4,....], ento o + valor retornado tem o mesmo tamanho que o valor de entrada, ao invs do + segundo dims, dims(<literal>y</literal>)=[n1,n3,n4,..] + </para> + <para> + <literal>Argumento de mais de uma entrada :</literal> + </para> + <para> + Dados <literal>arrays de strings</literal> + <literal>st1,st2,st3,...</literal>, esta funo retorna um vetor de + strings no qual as linhas so os componentes de <literal>st1,st2,st3,... + </literal> + <literal> No vetor </literal><literal>y </literal>o comprimento + de todos os strings sti completado por lacunas, para terem o mesmo + comprimento que o comprimento mximo de sti. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +//exemplo com uma hipermatriz de cdigos ASCII : +x=hypermat([4,2,3],61:84); +y=char(x) +size(x) +size(y) + +//Exemplo com mais de um argumento : +st1="zeros"; +st2=["one","two"]; +st3=["three"]; +y=char(st1,st2,st3) +size(y) +//todos os strings so completados por "lacunas" para terem o mesmo comprimento : 6 +length(y) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="asciimat">asciimat</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="convstr" xml:lang="en"> + <refnamediv> + <refname>convstr</refname> + <refpurpose>converso maisculas-minsculas, + minsculas-maisculas + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>[y]=convstr(str, [flag])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str, y</term> + <listitem> + <para>uma matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para>um caractere de opo com dois possveis valores</para> + <variablelist> + <varlistentry> + <term>'u'</term> + <listitem> + <para>para maisculas</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'l'</term> + <listitem> + <para>para minsculas</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + converts a matriz de strings <literal>str-matrix</literal> para + caracteres minsculos (<literal>"l"</literal> ; valor padro) ou para + maisculos (<literal>"u"</literal>). + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +A=['esta','';'a minha','matriz']; +convstr(A,'u') + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="emptystr" xml:lang="en"> + <refnamediv> + <refname>emptystr</refname> + <refpurpose>string de comprimento zero</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>s=emptystr() + s=emptystr(a) + s=emptystr(m,n) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para>qualquer tipo de matriz</para> + </listitem> + </varlistentry> + <varlistentry> + <term>s</term> + <listitem> + <para>matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>m,n</term> + <listitem> + <para>inteiros</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para>Retorna uma matriz de strings de comprimento zero.</para> + <para>Sem argumentos de entrada, retorna um string de comprimento + zero. + </para> + <para>Com uma matriz como argumento de entrada, retorna uma matriz de + strings de comprimento zero de mesmo tamanho. + </para> + <para>Com dois argumentos inteiros, retorna uma matriz mxn de strings de + comprimento zero. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +x=emptystr();for k=1:10, x=x+','+string(k);end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="string">string</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="eval" xml:lang="en"> + <refnamediv> + <refname>eval</refname> + <refpurpose>avaliao de uma matriz de strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>[H]= eval(Z)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Descrio</title> + <para>Retorna a avaliao da matriz de strings + <literal>Z</literal>. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +a=1; b=2; Z=['a','sin(b)'] ; eval(Z) //retorna a matriz [1,0.909]; + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="execstr">execstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="evstr" xml:lang="en"> + <refnamediv> + <refname>evstr</refname> + <refpurpose>avaliação de expressões</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>H=evstr(Z) + [H,ierr]=evstr(Z) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>Z</term> + <listitem> + <para> + matriz de strings <literal>M</literal> ou + <literal>list(M,Subexp)</literal> + </para> + <variablelist> + <varlistentry> + <term>M</term> + <listitem> + <para>matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Subexp</term> + <listitem> + <para>vetor de strings</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>H</term> + <listitem> + <para>matriz</para> + </listitem> + </varlistentry> + <varlistentry> + <term>ierr</term> + <listitem> + <para>inteiro, indicador de erro</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para>Retorna o resultado da avaliação da matriz de strings + <literal>M</literal>. Cada elemento da matriz deve definir uma expressão + Scilab válida. + </para> + <para> + Se a avaliação de <literal>M</literal> levar a um erro, a versão de + valor de único retorno, <literal>H=evstr(M)</literal>, levanta erro de + modo usual. A versão de dois valores de retorno, + <literal>[H,ierr]=evstr(M)</literal> , por outro lado, não produz erro, + mas retorna o número de erro em <literal>ierr</literal>. + </para> + <para> + Se <literal>Z</literal> é uma lista, <literal>Subexp </literal>é um + vetor de strings, que define subexpressões que são avaliadas antes da + avaliação de <literal>M</literal>. Estas subexpressões devem ser referidas + como <literal>%(k)</literal> em <literal>M</literal>, onde + <literal>k</literal> é o índice da subexpressão em + <literal>Subexp</literal>. + </para> + <para> + evstr('a=1') não é válido (use <literal>execstr</literal> ao + invés). + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example">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') + </programlisting> + </refsection> + <refsection> + <title>Ver Também</title> + <simplelist type="inline"> + <member> + <link linkend="execstr">execstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="grep" xml:lang="en"> + <refnamediv> + <refname>grep</refname> + <refpurpose>acha correspondncias de um string em um vetor de + strings + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>row=grep(haystack,needle ) + [row,which]=grep(haystack,needle ) + row=grep(haystack,needle ,[flag]) + [row,which]=grep(haystack,needle ,[flag]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para>vetor linha de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>needle</term> + <listitem> + <para>string ou vetor linha de strings . O(s) string(s) a serem + procurados em <literal>haystack.</literal> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>row</term> + <listitem> + <para>vetor de ndices: linha onde uma correspondncia foi + encontrada, ou matriz vazia se nenhuma ocorrncia tiver sido + encontrada + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>which</term> + <listitem> + <para>vetor de ndices: ndice do string needle encontrado, ou uma + matriz vazia, se nenhuma correspondncia tiver sido + encontrada + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para>caractere ("r" para expresso regular)</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para>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. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +txt=['acha correspondncia em um string ou em um vetor de strings' + 'procura posio de um string em outro string' + 'Compara Strings']; + +grep(txt,'strings') +grep(txt,['strings' 'Strings']) + +[r,w]=grep(txt,['strings' 'Strings']) + +str = ["hat";"cat";"hhat";"chat";"hcat";"ccchat";"at";"dog"] + +grep(str,'/[hc]+at/','r') +grep(str,'/[hc]?at/','r') +grep(str,'/cat|dog/','r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="isalphanum" xml:lang="en"> + <refnamediv> + <refname>isalphanum</refname> + <refpurpose>verifica se os caracteres de um string so + alfanumricos + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = isalphanum(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>matriz de valores booleanos</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = isalphanum(str)</literal> 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. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isalphanum(s) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="isletter">isletter</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="isascii" xml:lang="en"> + <refnamediv> + <refname>isascii</refname> + <refpurpose>verifica se um caractere do tipo 7-bit US-ASCII</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = isascii(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>uma matriz de booleanos</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = isascii(str)</literal> retorna verdadeiro (%T) se c + um cdigo 7-bit US-ASCII entre 0 e 0177 octal, inclusive. Caso contrrio, + retorna falso (%F). + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +letters = [115. 99. 105. 108. 97. 98.] +isascii(letters) +ascii(letters) +isascii('scilab') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="isdigit" xml:lang="en"> + <refnamediv> + <refname>isdigit</refname> + <refpurpose>checa se os caracteres de um string so nmeros entre 0 e + 9 + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = isdigit(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>matriz de valores booleanos</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = isdigit(str)</literal> 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. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isdigit(s) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + <member> + <link linkend="isletter">isletter</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="isletter" xml:lang="en"> + <refnamediv> + <refname>isletter</refname> + <refpurpose>verifica se os caracteres de um string so letras do + alfabeto + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = isletter(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>matriz de booleanos</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = isletter(str)</literal> 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. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isletter(s) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="isnum" xml:lang="en"> + <refnamediv> + <refname>isnum</refname> + <refpurpose>testa se um string representa um nmero</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = isnum(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>um string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>matriz de booleanos</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = isnum(str)</literal>retorna %T se str representa um + nmero + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +isnum(['1' , .. + '-1.23' , .. + '+1e+23', .. + '1d+23' , .. + '%pi']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="isletter">isletter</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>Autores</title> + <simplelist type="vert"> + <member>P.M</member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="justify" xml:lang="en"> + <refnamediv> + <refname>justify</refname> + <refpurpose>justifica um array de caracteres</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>Tj=justify(T,opt)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>T</term> + <listitem> + <para>matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Tj</term> + <listitem> + <para>matriz de strings. O resultado justificado</para> + </listitem> + </varlistentry> + <varlistentry> + <term>opt</term> + <listitem> + <para>opo com possveis valores</para> + <variablelist> + <varlistentry> + <term>'r'</term> + <listitem> + <para>ou 'right' para justificao direita</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'l'</term> + <listitem> + <para>ou 'left' para justificao esquerda</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'c'</term> + <listitem> + <para>ou 'center' justificao centrada</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>justify</literal> justifica a coluna de uma matriz de + strings de acordo com a opo dada. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +t=['1234','x','adfdfgdfghfgj' + '1','354556','dgf' + 'sdfgd','','sdfsf']; + +justify(t,'l') +justify(t,'c') +justify(t,'r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="part">part</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="length" xml:lang="en"> + <refnamediv> + <refname>length</refname> + <refpurpose>comprimento de um objeto</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>n=length(M)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>M</term> + <listitem> + <para>matriz (usual ou de polinômios ou de strings) ou lista</para> + </listitem> + </varlistentry> + <varlistentry> + <term>n</term> + <listitem> + <para>inteiro ou matriz de inteiros</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para> + Para uma matriz usual ou de polinômios, <literal>n</literal> é o + inteiro igual ao número de linhas vezes o número de colunas de + <literal>M</literal>. (Também válido para <literal>M</literal> uma matriz + de booleanos) + </para> + <para>Para matrizes de strings (e, em particular, para um string) + <literal>length</literal> retorna em <literal>n</literal> os comprimentos + das entradas da matriz de strings <literal>M</literal>. + </para> + <para>O comprimento de uma lista é o número de elementos da lista (também + dado por <literal>size</literal>). + </para> + <para> + <literal>length('123')</literal> é <literal>3</literal>. + <literal>length([1,2;3,4])</literal> is <literal>4</literal>. + </para> + <para>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) + </para> + <para>Utilize size(...,'*') para matrizes esparsas.</para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +length([123 ; 456 ]) +length(['olá mundo',SCI]) + ]]></programlisting> + </refsection> + <refsection> + <title>Ver Também</title> + <simplelist type="inline"> + <member> + <link linkend="size">size</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="part" xml:lang="en"> + <refnamediv> + <refname>part</refname> + <refpurpose>extração de strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>[strings_out] = part(strings_in, v)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>strings_in, strings_out</term> + <listitem> + <para>matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>v</term> + <listitem> + <para>vetor linha de inteiros</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para> + Seja <literal>s[k]</literal> o caractere <literal>k</literal> do + string <literal>s</literal> (ou o espaço em branco se <literal>k + >length(s) + </literal> + ). + </para> + <para> + <literal>part</literal> retorna <literal>strings_out</literal>, uma + matriz de strings, tal que <literal>strings_out(i,j)</literal> é o string + <literal>"s[v(1)]...s[v(n)]"</literal> ( + <literal>s=strings_in(i,j)</literal> ). + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +// retorna caracteres da posição 8 a 11 +part("Como usar ""part"" ?",8:11) + +// retorna caracteres da posição 2 a 4 para cada elemento +// caractere inexistente substituído por '' +c = part(['a','abc','abcd'],2:4) + +// retorna o caractere da posição 1 para cada elemento e adiciona caracteres da posição 4 a 7 de cada elemento +c = part(['abcdefg','hijklmn','opqrstu'],[1,4:7]); + +// retorna o caractere 4 para cada elemento, adiciona caracteres da posição 1 a 7 e adiciona o caractere da posição 4 para cada elemento +c = part(['abcdefg','hijklmn','opqrstu'],[4,1:7,4]); + +// retorna o caractere da posição 1, adiciona de novo o caractere da posição 1 e o caractere da posição 2 +c=part(['a','abc','abcd'],[1,1,2]) + +// a a a +part(['a','abc','abcd'],[1]) + +// aa aa aa +part(['a','abc','abcd'],[1,1]) + +// aa aab aab +part(['a','abc','abcd'],[1,1,2]) + ]]></programlisting> + </refsection> + <refsection> + <title>Ver Também</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="length">length</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="regexp" xml:lang="en"> + <refnamediv> + <refname>regexp</refname> + <refpurpose>acha um string que corresponde ao string de expressão + regular + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>[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]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>input</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>pattern</term> + <listitem> + <para>string (sob regras de expressão regular)</para> + </listitem> + </varlistentry> + <varlistentry> + <term>start</term> + <listitem> + <para>o índice de início de cada substring de str que corresponde ao + padrão do string de expressão regular + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>end</term> + <listitem> + <para>o índice de fim de cada substring de str que corresponde ao + padrão do string de expressão regular + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>match</term> + <listitem> + <para>o texto de cada substring de que corresponde a + <literal>pattern</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>[flag]</term> + <listitem> + <para>'o' para correspondência com padrão uma vez</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para>As regras de expressão regular são similares às da linguagem Perl. + Para uma introdução rápido , veja <ulink url="http://perldoc.perl.org/perlrequick.html">http://perldoc.perl.org/perlrequick.html</ulink>. + Para um tutorial mais profundo, veja <ulink url="http://perldoc.perl.org/perlretut.html">http://perldoc.perl.org/perlretut.html</ulink> + e para página de referência, veja <ulink url="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</ulink> + </para> + <para>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. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +regexp('xabyabbbz','/ab*/','o') +regexp('a!','/((((((((((a))))))))))\041/') +regexp('ABCC','/^abc$/i') +regexp('ABC','/ab|cd/i') +[a b c]=regexp('XABYABBBZ','/ab*/i') + ]]></programlisting> + </refsection> + <refsection> + <title>Ver Também</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="sci2exp" xml:lang="en"> + <refnamediv> + <refname>sci2exp</refname> + <refpurpose>converte uma expresso para um string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>t=sci2exp(a [,nam] [,lmax])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para>expresso Scilab. Pode ser:</para> + <variablelist> + <varlistentry> + <term>-</term> + <listitem> + <para>constante,</para> + </listitem> + </varlistentry> + <varlistentry> + <term>-</term> + <listitem> + <para>polinomial</para> + </listitem> + </varlistentry> + <varlistentry> + <term>-</term> + <listitem> + <para>matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>-</term> + <listitem> + <para>lista</para> + </listitem> + </varlistentry> + <varlistentry> + <term>-</term> + <listitem> + <para>matriz de booleanos</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>nam</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>t</term> + <listitem> + <para>vetor de strings, contm a expresso ou a instruo de + simulao. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>lmax</term> + <listitem> + <para>inteiro, contm o comprimento de linha mximo. O valor padro + 90, <literal>lmax=0</literal> indica ausncia de controle de + comprimento de linha, um nico string retornado + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>sci2exp</literal> converte expresso para um string de + instruo se <literal>nam</literal> for fornecido, ou para um string de + expresso. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +a=[1 2;3 4] +sci2exp(a,'aa') +sci2exp(a,'aa',0) +sci2exp(ssrand(2,2,2)) +sci2exp(poly([1 0 3 4],'s'),'fi') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="prettyprint">prettyprint</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcat" xml:lang="en"> + <refnamediv> + <refname>strcat</refname> + <refpurpose>concatena strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>txt=strcat(vector_of_strings [,string_added]) + txt=strcat(vector_of_strings [,string_added, ["flag"]]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>vector_of_strings</term> + <listitem> + <para>vetor de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_added</term> + <listitem> + <para>string adicionado, o valor padrão é emptystr + <literal>""</literal> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>txt</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"flag"</term> + <listitem> + <para>string ( "r" para retornar uma matriz linha, "c" para + retornar uma matriz coluna) + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para> + <literal>txt=strcat(vector_of_strings)</literal> concatena strings : + <literal>txt=vector_of_strings(1)+...+vector_of_strings(n)</literal> + </para> + <para> + <literal>txt=strcat(vector_of_strings,string_added)</literal> + retorna + <literal>txt=vector_of_strings(1)+string_added+...+string_added+vector_of_strings(n)</literal>. + </para> + <para> + O símbolo de mais faz o mesmo: <literal>"a"+"b"</literal> é o mesmo + que <literal>strcat(["a","b"]).</literal> + </para> + <para>Se o tamanho de vector_of_strings for um, retorna + <literal>txt=vector_of_strings(1); </literal> + </para> + <para> + <literal>strcat('A','B')</literal> retorna 'A' , não 'AB' como + <literal>strcat(['A','B'])</literal> + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +strcat(string(1:10),',') +strcat(["a","b"]) +strcat(["a","b"],'|') +strcat('A') +strcat('A','B') +strcat(['A','B']) +strcat(['A','B'],'') + +m =["a" "b" ; "c" "d"]; +strcat(m, "r") +strcat(m, "", "r") +strcat(m, "", "c") + + ]]></programlisting> + </refsection> + <refsection> + <title>Ver Também</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strings">strings</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strchr" xml:lang="en"> + <refnamediv> + <refname>strchr</refname> + <refpurpose>acha a primeira ocorrncia de um caractere em um + string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strchr(haystack,char)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>char</term> + <listitem> + <para>caractere</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strchr(haystack,char)</literal> retorna a primeira + ocorrncia do caractere no string str. + </para> + <para>char deve ter as mesmas dimenses que haystack, ou apenas um + caractere. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +strchr('Este um string de amostra','s') +strchr(['Este um string de amostra','no scilab'],'s') +strchr(['Este um string de amostra','no scilab'],['s','a']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strrchr">strrchr</link> + </member> + <member> + <link linkend="strstr">strstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcmp" xml:lang="en"> + <refnamediv> + <refname>strcmp</refname> + <refpurpose>compara strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strcmp(string_one,string_two,[,'i'])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>string_one</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_two</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'i'</term> + <listitem> + <para>parmetro para realizao de stricmp (caso independente), o + valor padro 's' + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>matrix</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strcmp(string_one,string_two)</literal> retorna um + valor inteiro indicando a relao entre os strings. + </para> + <para>Um valor maior que zero indica que o primeiro caractere no + correspondente possui valor maior em <literal>string_one</literal> que em + <literal>string_two</literal> + </para> + <para>Um valor abaixo de zero indica o contrrio.</para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +strcmp(TXT1,TXT2) +strcmp(TXT1,'scilab') +strcmp(TXT1,'SciLab') +strcmp(TXT1,TXT2,'i') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strcmpi">strcmpi</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcmpi" xml:lang="en"> + <refnamediv> + <refname>strcmpi</refname> + <refpurpose>compara strings (caso independente)</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strcmpi(string_one,string_two)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>string_one</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_two</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>matriz</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strcmpi(string_one,string_two)</literal> retorna um + valor inteiro indicando a relao entre os strings. + </para> + <para>Um valor inteiro maior que zero indica que o primeiro caractere que + no corresponde possui valor maior em <literal>string_one</literal> que em + <literal>string_two</literal> + </para> + <para>Um valor negativo indica o contrrio.</para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +strcmpi(TXT1,TXT2) +strcmpi(TXT1,'scilab') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strcmp">strcmp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcspn" xml:lang="en"> + <refnamediv> + <refname>strcspn</refname> + <refpurpose>retorna extenso at um caractere em um string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strcspn(string_one,string_two)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>string_one</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_two</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>matriz</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strcspn(string_one,string_two)</literal> 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. + </para> + <para>string_one deve ter as mesmas dimenses que string_two, ou + string_one deve ser um string. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +strcspn("fcba73","1234567890") +strcspn(["fcba73","f7cba73"],"1234567890") +strcspn(["fcba73","f7cba73"],["312","34567890"]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strspn">strspn</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strindex" xml:lang="en"> + <refnamediv> + <refname>strindex</refname> + <refpurpose>procura posição de um string em outro</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>ind=strindex(haystack,needle,[flag]) + [ind,which]=strindex(haystack,needle,[flag]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para>string. O string onde se procurará por ocorrências de + <literal>needle </literal> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>needle</term> + <listitem> + <para>string ou vetor de strings . O(s) string(s) a serem procurados + em <literal>haystack</literal> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>ind</term> + <listitem> + <para>vetor de índices</para> + </listitem> + </varlistentry> + <varlistentry> + <term>which</term> + <listitem> + <para>vetor de índices</para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para>string ("r" para expressão regular)</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para> + <literal>strindex</literal> procura índices onde <literal>needle + (i) + </literal> + é encontrado em <literal>haystack</literal> + </para> + <para> + Para cada <literal>k</literal> existe um <literal>i</literal> tal + que <literal>part(haystack,ind(k)+(0:length(needle(i))-1))</literal> é o + mesmo string que <literal>needle(i)</literal>. Se o argumento + <literal>which</literal> for requerido, ele contém esses + <literal>i</literal>. 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. + </para> + <para> + <literal>strindex</literal> sem expressão regular é baseado no + algoritmo de Knuth-Morris-Pratt. + </para> + <para>Este algoritmo é mais poderoso que aquele usado no Scilab 4.x. Em + alguns casos especiais, o resultado pode ser diferente. + </para> + <para>Exemplo:</para> + <para>// Scilab 5.x</para> + <para>-->[k,w]=strindex('aab',['a','ab'])</para> + <para>w = 1. 1. 2. k = 1. 2. 2.</para> + <para>// scilab 4.x</para> + <para>-->[k,w]=strindex('aab',['a','ab'])</para> + <para>w = 1. 1. k = 1. 2.</para> + <para>As regras de expressão regular são similares às da linguagem Perl. + Para uma introdução rápida , ver <ulink url="http://perldoc.perl.org/perlrequick.html">http://perldoc.perl.org/perlrequick.html</ulink>. + Para um tutorial mais profundo , ver <ulink url="http://perldoc.perl.org/perlretut.html">http://perldoc.perl.org/perlretut.html</ulink> + e para a página de referência, ver <ulink url="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</ulink> + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +k=strindex('SCI/demos/scicos','/') +k=strindex('SCI/demos/scicos','SCI/') +k=strindex('SCI/demos/scicos','!') +k=strindex('aaaaa','aa') +k=strindex('SCI/demos/scicos',['SCI','sci']) +[k,w]=strindex('1+3*abc/2.33',['+','-','*','/']) +k=strindex('2' ,'/2(]*)?$\1/' ,'r') + ]]></programlisting> + </refsection> + <refsection> + <title>Ver Também</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strings">strings</link> + </member> + <member> + <link linkend="regexp">regexp</link> + </member> + <member> + <link linkend="strsubst">strsubst</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="string" xml:lang="en"> + <refnamediv> + <refname>string</refname> + <refpurpose>converso para string (cadeia de caracteres)</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>string(x) + [out, in, text] = string(x) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>x</term> + <listitem> + <para>matriz de reais ou funo</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para>Converte uma matriz em uma matriz de strings.</para> + <para> + Se <literal>x</literal> uma funo <literal>[out, in, text] = + string(x) + </literal> + retorna trs vetores de strings : + <literal>out</literal> o vetor de variveis de sada, + <literal>in</literal> o vetor de variveis de entrada, e + <literal>text</literal> o vetor (coluna) do cdigo fonte da + funo. + </para> + <para> + Se <literal>x</literal> uma varivel <literal>lib</literal> + (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. + </para> + <para> + Strings so definidos como <literal>'string'</literal> (entre aspas + simples) ou <literal>"string"</literal> (entre aspas duplas); matrizes de + strings so definidas como matrizes de constantes. + </para> + <para>Concatenao de strings feita pela operao + <literal>+</literal>. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example">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)) + </programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="quote">quote</link> + </member> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="execstr">execstr</link> + </member> + <member> + <link linkend="strsubst">strsubst</link> + </member> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="sci2exp">sci2exp</link> + </member> + <member> + <link linkend="format">format</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strings" xml:lang="en"> + <refnamediv> + <refname>strings</refname> + <refpurpose>objeto Scilab, strings (cadeias de caracteres)</refpurpose> + </refnamediv> + <refsection> + <title>Descrio</title> + <para> + Strings so definidos como <literal>'string'</literal> (entre aspas + simples) ou <literal>"string"</literal> (entre aspas duplas); matrizes de + strings so definidascomo matrizes constantes, como de uso. + </para> + <para> + A concatenao de dois strings feita por -<literal>+</literal> : + <literal>string1+string2</literal>. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +['esta',''; 'uma matriz','2x2'] +"matrix"=="mat"+"rix" + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="strcat">strcat</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="stripblanks" xml:lang="en"> + <refnamediv> + <refname>stripblanks</refname> + <refpurpose>retira espaos em branco (e tabulaes) no incio ou no fim de + strings + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>txt=stripblanks(txt[,tabs])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para>um string ou uma matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>tabs</term> + <listitem> + <para>se TRUE, retira tambm tabulaes (o valor padro + FALSE) + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para>stripblanks retira espaos em branco (e tabulaes) no incio ou no + fim de strings. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +a=' 123 '; +'!'+a+'!' +'!'+stripblanks(a)+'!' +a=[' 123 ',' xyz'] +strcat(stripblanks(a)) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strncpy" xml:lang="en"> + <refnamediv> + <refname>strncpy</refname> + <refpurpose>copia caracteres de strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strncpy(str1,num)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>num</term> + <listitem> + <para>matriz. Nmeros mximos de caracteres a serem copiados da + fonte + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strncpy(str1,num)</literal> copia os primeiros num + caracteres da fonte para o destino. + </para> + <para>num deve ter as mesmas dimenses que str1, ou deve ser um + nmero. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +strncpy('scilab',3) +strncpy(['scilab','SciLab';'strncpy','strstr'],3) +strncpy(['scilab','SciLab';'strncpy','strstr'],[1,2;3,4]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strcmp">strcmp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strrchr" xml:lang="en"> + <refnamediv> + <refname>strrchr</refname> + <refpurpose>acha a ltima ocorrncia de um caractere em um + string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strrchr(str1,char)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>char</term> + <listitem> + <para>caractere</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strrchr(str1,char)</literal> retorna a ltima + ocorrncia de caractere no string str + </para> + <para>num deve ter as mesmas dimenses que str1, ou apenas um caracteres + char. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +strrchr('Este e um string de amostra','s') +strrchr(['Este e um string de amostra','no scilab'],'s') +strrchr(['Este e um string de amostra','no scilab'],['s','a']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strchr">strchr</link> + </member> + <member> + <link linkend="strstr">strstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strrev" xml:lang="en"> + <refnamediv> + <refname>strrev</refname> + <refpurpose>retorna um string invertido</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strrev(str1)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para>um string ou uma matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>um string ou uma matriz de strings</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strrev(str1)</literal> retorna o string em ordem + inversa + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +rev = strrev('This is a simple string') +strrev(rev) +strrev(['This is a simple string','scilab']) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsplit" xml:lang="en"> + <refnamediv> + <refname>strsplit</refname> + <refpurpose>divide um string em um vetor de strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>v = strsplit(str,ind)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>ind</term> + <listitem> + <para>um vetor de ndices estritamente crescentes no intervalo + <literal>[1 length(str)-1] </literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>v</term> + <listitem> + <para>o vetor coluna resultante de strings (dimenso + <literal>size(ind,'*')+1 </literal>). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>v= strsplit(str,ind)</literal> divide o string + <literal>str</literal> em um vetor de strings nos pontos dados pelos + ndices em <literal>ind</literal> (aps cada caractere apontado pelo + ndice em ind). + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +S='strsplit divide um string em um vetor de strings'; +strsplit(S,[15 25 30]) +ind=strindex(S,' ') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strcat"> strcat</link> + </member> + <member> + <link linkend="tokens"> tokens</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strspn" xml:lang="en"> + <refnamediv> + <refname>strspn</refname> + <refpurpose>retorna a extenso do conjunto de caracteres no + string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strspn(str1,str2)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>str2</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>matriz</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strspn(str1,str2)</literal> retorna o comprimento da + poro inicial de str1 que consiste apenas de caracteres que fazem parte + de str2. + </para> + <para>str2 deve ter as mesmas dimenses que str2, ou str1 pode ser um + string. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +i = strspn("129o","1234567890"); +mprintf ("O comprimento do numero inicial e %d.\n",i); +i = strspn(["129o","130o"],["1234567890","130o"]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strcspn">strcspn</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strstr" xml:lang="en"> + <refnamediv> + <refname>strstr</refname> + <refpurpose>localiza sub-strings</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strstr(haystack,needle)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>needle</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strstr(haystack,needle)</literal> 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. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +strstr('Este um string simples','simples') +strstr('Este um string simples','samples') +strstr(['Este um string simples','no scilab'],'') +strstr(['Este um string simples','no scilab'],['um','scilab']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strrchr">strrchr</link> + </member> + <member> + <link linkend="strchr">strchr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsubst" xml:lang="en"> + <refnamediv> + <refname>strsubst</refname> + <refpurpose>substitui um string por outro dentro de um string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>string_out=strsubst(string_in,searchStr,replaceStr) + string_out=strsubst(string_in,searchStr,replaceStr,[flag]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>string_in</term> + <listitem> + <para>matriz de strings. Os strings nos quais serão procuradas + ocorrências de <literal>searchStr</literal> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>searchStr</term> + <listitem> + <para> + string a se procurar em <literal>string</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>replaceStr</term> + <listitem> + <para>string. O string de reposição</para> + </listitem> + </varlistentry> + <varlistentry> + <term>str_out</term> + <listitem> + <para>matriz de strings. O resultado da substituição em + <literal>searchStr</literal> por <literal>replaceStr</literal> em + <literal>string</literal> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para>string ("r" para expressão regular)</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para> + <literal>strsubst</literal> substitui todas as ocorrências de + <literal>searchStr</literal> em <literal>string</literal> por + <literal>replaceStr</literal>. + </para> + <para>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. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +strsubst('SCI/demos/scicos','SCI','.') +strsubst('SCI/demos/scicos','/',' ') +strsubst('2' ,'/2(]*)?$\1/' ,'0','r') + ]]></programlisting> + </refsection> + <refsection> + <title>Ver Também</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strings">strings</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="windows-1251"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strtod" xml:lang="en"> + <refnamediv> + <refname>strtod</refname> + <refpurpose>converte um string para um double</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqüência de Chamamento</title> + <synopsis>d = strtod(str) + [d,endstr] = strtod(str) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Parâmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string ou matriz de strings</para> + </listitem> + </varlistentry> + <varlistentry> + <term>d</term> + <listitem> + <para>escalar real ou matriz de reais</para> + </listitem> + </varlistentry> + <varlistentry> + <term>endstr</term> + <listitem> + <para>string ou matriz de strings (próximo caractere em str + após o valor numérico). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrição</title> + <para> + <literal>[d,endstr] = strtod(str)</literal> analisa o string str + interpretando o seu conteúdo como um número de ponto flutuante e + retorna o seu valor como um real. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +strtod('123.556Este é um real de amostra') +[d,endstr] = strtod('123.556Este é um real de amostra) +strtod(['123.556Este é um real de amostra','888.666 aqui']) +[d,endstr] =strtod(['123.556Este é um real de amostra','888.666 aqui']) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strtok" xml:lang="en"> + <refnamediv> + <refname>strtok</refname> + <refpurpose>divide um string em fichas (tokens)</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>res = strtok(str,delimiters)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>delimiters</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>string</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>res = strtok(str,delimiters)</literal> divide str em + fichas, que so seqncias de caracteres contguos separados por qualquer + um dos caracteres que fazem parte do string delimiters (delimiters = + delimitadores). + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +TOKENS = []; +token = strtok("Um string de ,,fichas e algumas fichas mais"," ,"); +TOKENS = [TOKENS,token]; +while( token <> '' ) + token = strtok(" ,"); + TOKENS = [TOKENS,token]; +end +disp(TOKENS); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strrchr">strrchr</link> + </member> + <member> + <link linkend="strchr">strchr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="tokenpos" xml:lang="en"> + <refnamediv> + <refname>tokenpos</refname> + <refpurpose>retorna as posies das fichas (token) em um + string + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>kdf=tokenpos(str [,delimiter])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string. O string onde se deve procurar fichas</para> + </listitem> + </varlistentry> + <varlistentry> + <term>delimiter</term> + <listitem> + <para>(opcional) um caractere ou vetor de caracteres. Os + delimitadores de fichas. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>kdf</term> + <listitem> + <para>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. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>kdf=tokenpos(str [,delimiter]) </literal> busca as fichas + inclusas no string <literal>str</literal>. O valor padro de + <literal>delimiter</literal> [" ",<Tab>] onde <Tab> + <literal>ascii(9)</literal>. Retorna os ndices dos primeiros e ltimos + caracteres de cada ficha encontrada. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +str='Isto um string'; +kdf=tokenpos(str) +first=part(str,kdf(1,1):kdf(1,2)) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="tokens">tokens</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="tokens" xml:lang="en"> + <refnamediv> + <refname>tokens</refname> + <refpurpose>retorna as fichas (tokens) de um string</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Seqncia de Chamamento</title> + <synopsis>T=tokens(str [,delimiter])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Parmetros</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>string, o local de procura dos tokens</para> + </listitem> + </varlistentry> + <varlistentry> + <term>delimiter</term> + <listitem> + <para>(opcional) um caractere ou um vetor de caracteres. Os + delimitadores de fichas. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>T</term> + <listitem> + <para>vetor coluna de fichas encontradas</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Descrio</title> + <para> + <literal>T=tokens(str [,delimiter]) </literal> procura pelos tokens + inclusos no string <literal>str</literal>. O padro de + <literal>delimiter</literal> [" ",<Tab>] onde <Tab> + <literal>ascii(9)</literal>. + </para> + </refsection> + <refsection> + <title>Exemplos</title> + <programlisting role="example"><![CDATA[ +tokens('Isto um string') + +tokens('SCI/demos/scicos','/') + +tokens('y=a+b*2',['=','+','*']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Ver Tambm</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="tokenpos">tokenpos</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="ascii" xml:lang="ru"> + <refnamediv> + <refname>ascii</refname> + <refpurpose>преобразование в строку ASCII</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>a = ascii(txt) + txt = ascii(a) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para>вектор целочисленных значений: ASCII-коды.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Эта функция преобразует Scilab-строку в вектор ASCII-кодов (первые + 127 кодов являются ASCII) или вектор ASCII-кодов в Scilab-строки. + </para> + <para> + Если <varname>txt</varname> является матрицей строк, то + <code>ascii(txt)</code> эквивалентна <code>ascii(strcat(txt))</code>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +ascii(["hello";"world"]) +ascii("scilab") +ascii([115 99 105 108 97 98]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="code2str">code2str</link> + </member> + <member> + <link linkend="str2code">str2code</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="asciimat"> + <refnamediv> + <refname>asciimat</refname> + <refpurpose>преобразование матрицы строк в ASCII-коды и обратно</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis> + a = asciimat(txt) + txt = asciimat(a) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para> + символьная строка или матрица строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>a</term> + <listitem> + <para> + вектор или матрица целочисленных ASCII-кодов. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Эта функция преобразует Scilab-строку в ASCII-код или + матрицу ASCII-кодов в Scilab-строку. Аргумент на выходе + является матрицей, у которой то же количество строк, что и у + матрицы на входе, что является отличием от функции + <function>ascii</function>. + </para> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="ascii">ascii</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="blanks"> + <refnamediv> + <refname>blanks</refname> + <refpurpose>создание строки из пробелов</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>txt = blanks(n)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para>отдельная символьная строка.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>n</term> + <listitem> + <para>целое число, количество пробелов.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>blanks(n)</code> даёт строку из <varname>n</varname> пробелов. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +disp(['xxx' blanks(20) 'yyy']) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Farid BELAHCENE + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="char" xml:lang="ru"> + <refnamediv> + <refname>char</refname> + <refpurpose>преобразует в массив символов</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>y=char(x) + y = char(st1, st2, st3,...) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>x</term> + <listitem> + <para> + cell-массив строковых значений или массив ASCII-кодов. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>st1, st2, st3</term> + <listitem> + <para>массивы строковых значений.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>y</term> + <listitem> + <para>вектор-столбец строковых значений.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <emphasis role="bold">Один входной аргумент:</emphasis> + </para> + <para> + Для заданного cell-массива строковых значений <varname>x</varname> данная функция + возвращает вектор строковых значений <varname>y</varname> в котором строки являются + конкатенированными элементами соответствующих строк cell-массива строковых значений. + </para> + <para> + Для заданного массива ASCII-кодов <varname>x</varname> данная функция + возвращает массив строковых значений <varname>y</varname>, соответствующих + ASCII-кодам. Если размеры <varname>x</varname> равны <literal>[n1, n2, n3, n4,...]</literal>, + то возвращаемое значение имеет те же размеры, что и входное значение за + исключением второго размера, т. е. размеры <varname>y</varname> равны + <literal>[n1, n3, n4,...]</literal>. + </para> + <para> + <emphasis role="bold">Более одного входного аргумента:</emphasis> + </para> + <para> + Для заданных массивов строковых значений <literal>st1, st2, st3,...</literal> эта функция + возвращает вектор строковых значений в котором строки являются конкатенированными + элементами соответствующих строк <literal>st1, st2, st3,...</literal>. В векторе + <varname>y</varname> всех строковые значения <literal>sti</literal> дополняются + пробелами чтобы получить ту же длину, что и максимальная длина <literal>sti</literal>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +// Пример с гиперматрицей ASCII-кодов: +x=hypermat([4,2,3],61:84); +y=char(x) +size(x) +size(y) + +// Пример со множеством входных аргументов: +st1="zeros"; +st2=["one","two"]; +st3=["three"]; +y=char(st1,st2,st3) +size(y) + +//все строки строковых значений дополняются "пробелами" так, чтобы +//иметь одинаковую длину: 6 +length(y) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="ascii">ascii</link> + </member> + <member> + <link linkend="asciimat">asciimat</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="convstr"> + <refnamediv> + <refname>convstr</refname> + <refpurpose>преобразование регистра</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>[y] = convstr(str, [flag])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str, y</term> + <listitem> + <para>матрица символьных строк.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para>необязательный символьный флаг с возможными значениями:</para> + <variablelist> + <varlistentry> + <term>'u'</term> + <listitem> + <para>для верхнего регистра;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'l'</term> + <listitem> + <para>для нижнего регистра.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Функция <function>convstr</function> преобразует матрицу строк + <varname>str</varname> в нижний регистр (для <varname>flag</varname> <literal>= "l"</literal>; + значение по умолчанию) или в верхний регистр (для + <varname>flag</varname> <literal>= "u"</literal>). + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +A=['this','is';'my','matrix']; +convstr(A,'u') + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="emptystr"> + <refnamediv> + <refname>emptystr</refname> + <refpurpose>формирование строки нулевой длины</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>s = emptystr() + s = emptystr(a) + s = emptystr(m, n) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para> + матрица размером <literal>m</literal> на + <literal>n</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>s</term> + <listitem> + <para> + матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>m, n</term> + <listitem> + <para>целые числа.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Функция <function>emptystr</function> возвращает матрицу символьных + строк нулевой длины. + </para> + <para> + Без входного аргумента <function>emptystr</function> возвращает символьную строку нулевой длины. + </para> + <para> + С матрицей <varname>a</varname> в качестве входного аргумента + функция <function>emptystr</function> возвращает матрицу символьных + строк нулевой длины того же размера. + </para> + <para> + С двумя целочисленными аргументами функция <function>emptystr</function> + возвращает матрицу символьных строк нулевой длины размером + <varname>m</varname> на <varname>n</varname>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +x=emptystr(); +for k=1:10 + x = x + ',' + string(k) + emptystr(1,k) + string(k) +end + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="string">string</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="eval" xml:lang="ru"> + <refnamediv> + <refname>eval</refname> + <refpurpose>вычисление матрицы строк</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>[H] = eval(Z)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>Z</term> + <listitem> + <para>матрица символьных строк.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Функция <function>eval</function> возвращает вычисление матрицы символьных строк <varname>Z</varname>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +a=1; +b=2; +Z=['a','sin(b)']; +eval(Z) //возвращает матрицу [1, 0.909]; + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="execstr">execstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="evstr" xml:lang="ru"> + <refnamediv> + <refname>evstr</refname> + <refpurpose>вычисление выражений</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis> + H = evstr(Z) + [H, ierr] = evstr(Z) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>Z</term> + <listitem> + <para> + матрица символьных строк <varname>M</varname> или + <code>list(M,Subexp)</code> + </para> + <variablelist> + <varlistentry> + <term>M</term> + <listitem> + <para>матрица символьных строк.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Subexp</term> + <listitem> + <para>вектор символьных строк.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>H</term> + <listitem> + <para>матрица.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>ierr</term> + <listitem> + <para>целое число, указатель ошибки.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Возвращает результат вычисления матрицы символьных строк + <varname>M</varname>. Каждый элемент матрицы должен определять + корректное Scilab-выражение. + </para> + <para> + Если вычисление выражения <varname>M</varname> ведёт к ошибке, то в + случае с одним возвращаемым значением, <code>H = evstr(M)</code>, + возникает ошибка как обычно. В случае с двумя возвращаемыми + значениями, <code>[H,ierr] = evstr(M)</code>, ошибки не возникает, + но возвращается номер ошибки в <varname>ierr</varname>. + </para> + <para> + Если <varname>Z</varname> - список, то <varname>Subexp</varname> - + вектор символьных строк, который определяет подвыражения, которые + вычисляются до вычисления <varname>M</varname>. К этим + подвыражениям следует обращаться как <literal>%(k)</literal> в + <varname>M</varname>, где <literal>k</literal> - это индекс + подвыражения в <varname>Subexp</varname>. + </para> + <para> + <code>evstr('a = 1')</code> не корректно (вместо этого используйте + функцию <function>execstr</function>). + </para> + <para> + <literal>Nan</literal>, <literal>NaN</literal> будут + интерпретироваться как <constant>%nan</constant>. + </para> + <para> + <literal>Inf</literal> будет интерпретироваться как <constant>%inf</constant>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"> + 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 + </programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="execstr">execstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="grep" xml:lang="ru"> + <refnamediv> + <refname>grep</refname> + <refpurpose>поиск соответствий строки в векторе строк</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>row = grep(haystack, needle ) + [row, which] = grep(haystack, needle ) + row = grep(haystack, needle, [flag]) + [row, which] = grep(haystack, needle, [flag]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para>вектор-строка символьных строк.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>needle</term> + <listitem> + <para> + символьная строка или вектор-строка символьных строк. + Строка (строки), которая ищется в <varname>haystack</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>row</term> + <listitem> + <para> + вектор индексов: строка, где было найдено соответствие + или пустая матрица, если соответствие не найдено. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>which</term> + <listitem> + <para> + вектор индексов: индекс найденной строки + <varname>needle</varname> или пустая матрица, если + соответствия не найдено. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para> + символ (<literal>"r"</literal> для регулярного выражения). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Для каждого элемента <varname>haystack</varname> функция <function>grep</function> + ищет соответствие подстроки со строкой в <varname>needle</varname>. + Индекс элементов <varname>haystack</varname>, где было найдено + соответствие, возвращается в выходном аргументе + <varname>row</varname>. Необязательный выходной аргумент + <varname>which</varname> даёт индекс первого найденного строкового + значения в <varname>needle</varname>. + </para> + <para> + Когда используется третий параметр <varname>flag</varname><literal>="r"</literal>, + то ожидается, что <varname>needle</varname> будет строкой + регулярного выражения. В этом случае <function>grep</function> + использует <varname>needle</varname> в качестве регулярного + выражения и сравнивает его с <varname>haystack</varname> в + соответствии с правилами регулярного выражения. См. подробности по регулярным выражениям в функции <link linkend="regexp">regexp</link>. + </para> + </refsection> + <refsection> + <title>Пример №1</title> + <para> + В следующем примере мы ищем одну или две строки в тексте, который + хранится в переменной <varname>txt</varname>. + </para> + <programlisting role="example"><![CDATA[ +txt=['поиск соответствий строк в векторе строк' + 'поиск положения символьной строки в другой строке' + 'Сравнение Строк']; +grep(txt,'строк') +grep(txt,['строк' 'Строк']) +[r,w]=grep(txt,['строк' 'Строк']) + ]]></programlisting> + </refsection> + <refsection> + <title>Пример №2</title> + <para> + В следующем примере выполняется поиск с помощью регулярных выражений. + </para> + <programlisting role="example"><![CDATA[ +str = ["hat";"cat";"hhat";"chat";"hcat";"ccchat";"at";"dog"] +grep(str,'/[hc]+at/','r') +grep(str,'/[hc]?at/','r') +grep(str,'/cat|dog/','r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="regexp">regexp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="isalphanum"> + <refnamediv> + <refname>isalphanum</refname> + <refpurpose> + проверка того, что символы строки являются буквенно-цифровыми + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = isalphanum(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>символьная строка.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>матрица логических значений.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = isalphanum(str)</code> возвращает массив того же + размера, что и <varname>str</varname>, содержащий логические + значения <constant>%t</constant> (истина) там, где элементы + <varname>str</varname> являются буквенно-цифровыми, и логические + значения <constant>%f</constant> (ложь) там, где они не являются. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isalphanum(s) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="isletter">isletter</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="isascii"> + <refnamediv> + <refname>isascii</refname> + <refpurpose> + проверяет - является ли символ 7-битным US-ASCII-символом + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = isascii(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>символьная строка или массив целых чисел.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>матрица логических значений.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = isascii(str)</code> возвращает <constant>%t</constant> + (ИСТИНА), если элементы <varname>str</varname> соответствуют 7-битному + коду US-ASCII-символов между 0 и восьмеричным 0177 + включительно (или являются US-ASCII-символами). + В противном случае возвращает <constant>%f</constant> (ЛОЖЬ). + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +letters = [115. 99. 105. 108. 97. 98.] +isascii(letters) +ascii(letters) +isascii('scilab') +isascii('Сайлаб') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="isdigit"> + <refnamediv> + <refname>isdigit</refname> + <refpurpose> + проверка того, что символы в строке являются цифрами между 0 и 9 + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = isdigit(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>символьная строка.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>матрица логических значений.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <literal>res = isdigit(str)</literal> возвращает массив того же + размера, что и <varname>str</varname>, содержащий логическое + значение <constant>%t</constant> (ИСТИНА) там, где элементы + <varname>str</varname> являются цифрами, и логическое значение + <constant>%f</constant> (ЛОЖЬ) там, где они не являются. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isdigit(s) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + <member> + <link linkend="isletter">isletter</link> + </member> + <member> + <link linkend="isnum">isnum</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" +xmlns:xlink="http://www.w3.org/1999/xlink" +xmlns:svg="http://www.w3.org/2000/svg" +xmlns:mml="http://www.w3.org/1998/Math/MathML" +xmlns:db="http://docbook.org/ns/docbook" +xml:lang="ru" xml:id="isletter"> + <refnamediv> + <refname>isletter</refname> + <refpurpose> + проверка того, что символы в строке являются буквами алфавита + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = isletter(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>символьная строка.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>матрица логических значений.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = isletter(str)</code> возвращает массив того же + размера, что и <varname>str</varname>, содержащий логическое + значение <constant>%t</constant> (ИСТИНА) там, где элементы + <varname>str</varname> являются буквами алфавита, и логическое + значение <constant>%f</constant> (ЛОЖЬ) там, где они не являются. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +s = 'A1,B2,C3'; +isletter(s) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" +xmlns:xlink="http://www.w3.org/1999/xlink" +xmlns:svg="http://www.w3.org/2000/svg" +xmlns:mml="http://www.w3.org/1998/Math/MathML" +xmlns:db="http://docbook.org/ns/docbook" +xml:lang="ru" xml:id="isnum"> + <refnamediv> + <refname>isnum</refname> + <refpurpose> + проверка того, что строка представляет число + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = isnum(str)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>матрица логических значений.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = isnum(str)</code> возвращает <constant>%t</constant>, если <varname>str</varname> представляет число. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +isnum(['1' , .. + '-1.23' , .. + '+1e+23', .. + '1d+23' , .. + 'A' , .. + '%pi']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="isletter">isletter</link> + </member> + <member> + <link linkend="isdigit">isdigit</link> + </member> + <member> + <link linkend="isalphanum">isalphanum</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:mml="http://www.w3.org/1998/Math/MathML" + xmlns:db="http://docbook.org/ns/docbook" + xml:lang="ru" xml:id="justify"> + <refnamediv> + <refname>justify</refname> + <refpurpose>выравнивание массива символов</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>Tj = justify(T, opt)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>T</term> + <listitem> + <para>матрица символьных строк.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Tj</term> + <listitem> + <para> + матрица символьных строк. Результат выравнивания. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>opt</term> + <listitem> + <para> + символьная опция с возможными значениями: + </para> + <variablelist> + <varlistentry> + <term>'r' или 'right'</term> + <listitem> + <para>для выравнивания по правому краю;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'l' или 'left'</term> + <listitem> + <para>для выравнивания по левому краю;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>'c' или 'center'</term> + <listitem> + <para>для выравнивания по центру.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Функция <function>justify</function> выравнивает столбцы матрицы строк в соответствии с заданной опцией <varname>opt</varname>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +t=['1234','x','adfdfgdfghfgj' + '1','354556','dgf' + 'sdfgd','','sdfsf']; +justify(t,'l') +justify(t,'c') +justify(t,'r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="part">part</link> + </member> + </simplelist> + </refsection> +</refentry> + 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:id="length" xml:lang="ru"> + <refnamediv> + <refname>length</refname> + <refpurpose>длина объекта</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>n = length(M)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>M</term> + <listitem> + <para> + матрица (обычная или полиномиальная или символьных строк) или список. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>n</term> + <listitem> + <para> + целое число или матрица целочисленных значений. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Для обычной или полиномиальной матрицы <varname>n</varname> является целым числом, равным произведению количества строк и + столбцов <varname>M</varname>. (Также корректно и для матрицы + логических значений <varname>M</varname>). + </para> + <para> + Для матриц, составленных из символьных строк (и, в частности, для + символьной строки), функция <function>length</function> возвращает + в <varname>n</varname> длину элементов матрицы символьных строк + <varname>M</varname>. + </para> + <para> + Длина списка - это количество элементов в списке (также получается с помощью функции <function>size</function>). + </para> + <para> + Длина матричноориентированного списка (mlist) равна по умолчанию + количеству элементов в этом списке, но вы можете перегрузить <function>length</function> (см. пример). + </para> + <para> + <code>length('123')</code> равно <literal>3</literal>. + <code>length([1,2;3,4])</code> равно <literal>4</literal>. + </para> + <para> + <warning> + Внимание: <function>length</function> разрежённой матрицы + возвращает максимум размерностей а не произведение + размерностей. (Например: <code>length(sparse(eye(12,2)))</code> + возвращает <code>max(12,2)</code> а не <literal>24</literal>). + Пожалуйста, к разрежённой матрице применяйте + <literal>size(...,'*')</literal>. + </warning> + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +length([123 ; 456 ]) +length(['hello world',SCI]) + ]]></programlisting> + <programlisting role="example"><![CDATA[ +a = mlist(["myMlistT" "field1" "field2"],"aexample","bexampleb"); +length(a) +// возвращает 3, поведение по умолчанию, если length не перегружена для +// матричноориентированного списка (mlist) + +// создадим функцию перегрузки для матричноориентированного списка типа +// myMlistT +function r = %myMlistT_length(M) + r = length(M.field1) +endfunction +length(a) +// returns 8 result of length(a.field1) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="size">size</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>История</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revremark> + Эта функция позволяет перегрузку для типа mlist. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:id="part" xml:lang="ru"> + <refnamediv> + <refname>part</refname> + <refpurpose>выделение строк</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>[strings_out] = part(strings_in, v)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>strings_in, strings_out</term> + <listitem> + <para>матрицы символьных строк.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>v</term> + <listitem> + <para>вектор-строка целочисленных значений.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Обозначим как <literal>s[k]</literal> <literal>k</literal>-тый + символ строки <literal>s</literal> (или пробел, если + <literal>k >length(s)</literal>). + </para> + <para> + Функция <function>part</function> возвращает + <varname>strings_out</varname>, матрицу символьных строк, такую, что + <literal>strings_out(i,j)</literal> является строкой + <literal>"s[v(1)]...s[v(n)]"</literal> + (<literal>s = strings_in(i,j)</literal>). + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +// возвращает символы с 8 по 11 +part("Как использовать ""part"" ?",8:11) + +// возвращает символы с 2 по 4 для каждого элемента +// отсутствие символов заменяется '' +c = part(['a','abc','abcd'],2:4) + +// возвращает 1-й символ каждого элемента плюс символы с +// 4 по 7 каждого элемента +c = part(['abcdefg','hijklmn','opqrstu'],[1,4:7]); + +// возвращает 4-й символ каждого элемента, плюс символы с +// 1 по 7 и плюс 4-й символ каждого элемента +c = part(['abcdefg','hijklmn','opqrstu'],[4,1:7,4]); + +// возвращает 1-й символ плюс ещё 1-й символ и плюс +// 2-й символ +c=part(['a','abc','abcd'],[1,1,2]) + +// a a a +part(['a','abc','abcd'],[1]) + +// aa aa aa +part(['a','abc','abcd'],[1,1]) + +// aa aab aab +part(['a','abc','abcd'],[1,1,2]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strsplit">strsplit</link> + </member> + <member> + <link linkend="length">length</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" +xmlns:xlink="http://www.w3.org/1999/xlink" +xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" +xmlns:mml="http://www.w3.org/1998/Math/MathML" +xmlns:db="http://docbook.org/ns/docbook" +xml:id="regexp" xml:lang="ru"> + <refnamediv> + <refname>regexp</refname> + <refpurpose> + поиск подстроки, соответствующей строке регулярного выражения + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis> + [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]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>input</term> + <listitem> + <para>символьная строка.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>pattern</term> + <listitem> + <para> + символьная строка, шаблон (по правилам регулярных + выражений). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>start</term> + <listitem> + <para> + начальный индекс каждой подстроки + <varname>input</varname>, которая соответствует строке + регулярного выражения <varname>pattern</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>end</term> + <listitem> + <para> + конечный индекс каждой подстроки + <varname>input</varname>, которая соответствует строке + регулярного выражения <varname>pattern</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>match</term> + <listitem> + <para> + текст каждой подстроки <varname>input</varname>, + которая соответствует шаблону <varname>pattern</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>foundString</term> + <listitem> + <para> + текст, выделенный элементами шаблона, заключёнными в скобки. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>[flag]</term> + <listitem> + <para> + <literal>'o'</literal> для одного соответствия шаблону. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Правила регулярного выражения схожи с языком Perl. Для быстрого старта смотрите + <ulink url="http://perldoc.perl.org/perlrequick.html">http://perldoc.perl.org/perlrequick.html</ulink>. + Для более глубокого изучения смотрите + <ulink url="http://perldoc.perl.org/perlretut.html">http://perldoc.perl.org/perlretut.html</ulink>, + а для справки смотрите + <ulink url="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</ulink>. + </para> + <para> + Отличие от Perl заключается в том, что соответствие позиции, а не символа (например, с <literal>/^/</literal> или + <literal>/(?=o)/</literal>) будет успешным в Perl, но не в Scilab'е. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +regexp('xabyabbbz','/ab*/','o') +regexp('a!','/((((((((((a))))))))))\041/') +regexp('ABCC','/^abc$/i') +regexp('ABC','/ab|cd/i') +[a b c]=regexp('XABYABBBZ','/ab*/i') + +piString="3.14" +[a,b,c,piStringSplit]=regexp(piString,"/(\d+)\.(\d+)/") +disp(piStringSplit(1)) +disp(piStringSplit(2)) + +[a,b,c,d]=regexp('xabyabbbz','/ab(.*)b(.*)/') +size(d) + +// получение имени сервера из URL +myURL="http://www.scilab.org/download/"; +[a,b,c,d]=regexp(myURL,'@^(?:http://)?([^/]+)@i') + +str='foobar: 2012'; +// использование именованных элементов шаблона +[a,b,c,d]=regexp(str,'/(?P<name>\w+): (?P<digit>\d+)/') +d(1)=="foobar" +d(2)=="2012" + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>История</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revremark> + Добавлен новый выходной аргумент, foundString, для + получения соответствий элементам шаблона. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:lang="ru" xml:id="sci2exp"> + <refnamediv> + <refname>sci2exp</refname> + <refpurpose>преобразует выражение в строку</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>t = sci2exp(a [,nam] [,lmax])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>a</term> + <listitem> + <para>Scilab-выражение, может быть:</para> + <variablelist> + <varlistentry> + <term>- </term> + <listitem> + <para>константа;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>- </term> + <listitem> + <para>полином;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>- </term> + <listitem> + <para>матрица строк;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>- </term> + <listitem> + <para>список;</para> + </listitem> + </varlistentry> + <varlistentry> + <term>- </term> + <listitem> + <para>матрица логических значений.</para> + </listitem> + </varlistentry> + </variablelist> + </listitem> + </varlistentry> + <varlistentry> + <term>nam</term> + <listitem> + <para>символьная строка.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>t</term> + <listitem> + <para> + вектор строк, содержащих выражение или инструкцию. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>lmax</term> + <listitem> + <para> + целое число, содержащее максимальную длину строки. По + умолчанию оно равно <literal>90</literal>, + <literal>lmax=0</literal> указывает, что нет управления + длиной отдельной строки; возвращается одиночная строка. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Функция <function>sci2exp</function> преобразует выражение в строку + инструкции, если указано <varname>nam</varname> или в строку + выражения. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +a=[1 2;3 4] +sci2exp(a,'aa') +sci2exp(a,'aa',0) +sci2exp(ssrand(2,2,2)) +sci2exp(poly([1 0 3 4],'s'),'fi') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="prettyprint">prettyprint</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - +* +* 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 +* +--> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:id="strcat" xml:lang="ru"> + <refnamediv> + <refname>strcat</refname> + <refpurpose>связывает символьные строки</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis> + txt = strcat(strings [,string_added]) + txt = strcat(strings [,string_added, ["flag"]]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>strings</term> + <listitem> + <para>вектор или матрица строк.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_added</term> + <listitem> + <para> + добавляемая строка, значение по умолчанию равно символьной строке нулевой длины <literal>""</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>txt</term> + <listitem> + <para>строка.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>"flag"</term> + <listitem> + <para> + символьное значение (<literal>"r"</literal> для связки строк в матрице <varname>strings</varname>, + <literal>"c"</literal> для связки столбцов в матрице <varname>strings</varname>). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>txt = strcat(strings)</code> связывает символьные строки: + <literal>txt = strings(1) + ... + strings(n)</literal>. + </para> + <para> + <code>txt = strcat(strings, string_added)</code> возвращает + <literal>txt = strings(1) + string_added + ... + string_added + strings(n)</literal>. + </para> + <para> + Символ "плюс" делает то же самое, что <code>strcat(["a","b"]).</code>. + </para> + <para> + Если размер <varname>strings</varname> равен единице, то + возвращается <code>txt = strings(1)</code>; + </para> + <para> + <code>strcat('A','B')</code> возвращает <literal>'A'</literal> а не + <literal>'AB'</literal>, как <code>strcat(['A','B'])</code>. + </para> + <para> + Если <varname>strings</varname> является матрицей строк, то + <code>strcat(strings,"",'r')</code> возвращает вектор-строку строк. + Элементы вектор-строки является результатом связки строк. + <code>strcat(strings,"",'c')</code> возвращает вектор-столбец + строк. Элементы вектор-столбца являются результатом связки столбцов. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +strcat(string(1:10),',') +strcat(["a","b"]) +strcat(["a","b"],'|') +strcat('A') +strcat('A','B') +strcat(['A','B']) +strcat(['A','B'],'') + +m =["a" "b" ; "c" "d"]; +strcat(m, "r") +strcat(m, "", "r") +strcat(m, "", "c") + +strcat(m, "_and_", "r") +strcat(m, "_and_", "c") + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strings">strings</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xml:lang="ru" xml:id="strchr"> + <refnamediv> + <refname>strchr</refname> + <refpurpose> + поиск первого появления символа в строке + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strchr(haystack, char)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>char</term> + <listitem> + <para>символ.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = strchr(haystack, char)</code> возвращает первое появление символа в строке <varname>haystack</varname>. + </para> + <para> + <varname>char</varname> должна содержать только одиночную строку или + столько строк, сколько их в <varname>haystack</varname> (каждая из + которых длиной в один символ). + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +strchr('Это строка примера','р') +strchr(['Это строка примера','в системе Scilab'],'е') +strchr(['Это строка примера','в системе Scilab'],['р','с']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strrchr">strrchr</link> + </member> + <member> + <link linkend="strstr">strstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcmp" xml:lang="ru"> + <refnamediv> + <refname>strcmp</refname> + <refpurpose>сравнение символьных строк</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strcmp(string_one, string_two, ['i'])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>string_one</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_two</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>'i'</term> + <listitem> + <para> + необязательный параметр для того, чтобы сделать <function>strcmpi</function> + (независимость от регистра), значение по умолчанию - <literal>'s'</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>матрица целочисленных значений.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = strcmp(string_one, string_two)</code> (или + <code>res = strcmp(string_one, string_two, 's')</code>) возвращает + интегральное значение, указывающее отношение между строками. + </para> + <para> + Значение больше нуля указывает, что первый символ, который не соответствует, имеет большее значение в <varname>string_one</varname>, чем в <varname>string_two</varname>, а значение меньше нуля указывает обратное. + </para> + <para> + Значение равное нулю указывает на то, что + <varname>string_one</varname> и <varname>string_two</varname> + равны. + </para> + <para> + <code>res = strcmp(string_one, string_two, 'i')</code> возвращает + <literal>0</literal>, если <varname>string_one</varname> равна + <varname>string_two</varname> (независимо от регистра), а + <literal>1</literal> указывает обратное. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +strcmp(TXT1,TXT2) +strcmp(TXT1,'scilab') +strcmp(TXT1,'SciLab') +strcmp(TXT1,TXT2,'i') +strcmp(TXT1,TXT2,'s') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strcmpi">strcmpi</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="strcmpi"> + <refnamediv> + <refname>strcmpi</refname> + <refpurpose> + сравнение символьных строк (без учёта регистра) + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strcmpi(string_one, string_two)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>string_one</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_two</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>матрица целочисленных значений.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = strcmpi(string_one, string_two)</code> возвращает + интегральное значение, указывающее отношение между строками. + </para> + <para> + Значение равно <literal>0</literal>, если + <varname>string_one</varname> равна <varname>string_two</varname> + (независимо от регистра), а <literal>1</literal> указывает обратное. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +strcmpi(TXT1,TXT2) +strcmpi(TXT1,'scilab') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strcmp">strcmp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcspn" xml:lang="ru"> + <refnamediv> + <refname>strcspn</refname> + <refpurpose>получение интервала до символа в строке</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strcspn(string_one, string_two)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>string_one</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_two</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>матрица.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = strcspn(string_one,string_two)</code> сканирует + <varname>string_one</varname> на предмет первого появления любого из + символов, которые являются частью <varname>string_two</varname>, + возвращая количество символов <varname>string_one</varname>, прочитанных до этого первого появления. + </para> + <para> + <varname>string_two</varname> должна быть того же размера, что и <varname>string_one</varname>, либо <varname>string_two</varname> + должна быть строкой. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +strcspn("fcba73","1234567890") +strcspn(["fcba73","f7cba73"],"1234567890") +strcspn(["fcba73","f7cba73"],["312","34567890"]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strspn">strspn</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strindex" xml:lang="ru"> + <refnamediv> + <refname>strindex</refname> + <refpurpose> + поиск положения символьной строки в другой строке + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis> + ind = strindex(haystack, needle, [flag]) + [ind, which] = strindex(haystack, needle, [flag]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para> + символьная строка. Строка, в которой ищутся совпадения + с <varname>needle</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>needle</term> + <listitem> + <para> + символьная строка или вектор символьных строк. Строка + (строки) которая ищется в <varname>haystack</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>ind</term> + <listitem> + <para>вектор индексов.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>which</term> + <listitem> + <para>вектор индексов.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para> + строка (<literal>"r"</literal> для регулярного + выражения). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Функция <function>strindex</function> ищет индексы, где найдена + <literal>needle(i)</literal> в <varname>haystack</varname>. + </para> + <para> + Для каждого <literal>k</literal> существует такая + <literal>i</literal>, что <code>part(haystack,ind(k)+(0:length(needle(i))-1))</code> + является той же самой строкой, что и <literal>needle(i)</literal>. + Если указан аргумент <varname>which</varname>, то он содержит эти + <literal>i</literal>. Когда используется третий параметр + <literal>"r"</literal>, то <varname>needle</varname> должна быть + строкой регулярного выражения, и тогда + <function>strindex</function> будет сравнивать её с + <varname>haystack</varname> по правилам регулярного выражения. + </para> + <para> + <function>strindex</function> без аргумента регулярного выражения + основывается на алгоритме Кнута-Морриса-Пратта [Knuth-Morris-Pratt]. + </para> + <para> + Этот алгоритм более мощный, чем тот, который использовался в Scilab + 4.x. В некоторых частных случаях результат может быть различным. + </para> + <para>Пример:</para> + <para>// Scilab 5.x</para> + <para>-->[k,w]=strindex('aab',['a','ab'])</para> + <para>w = 1. 1. 2. k = 1. 2. 2.</para> + <para>// Scilab 4.x</para> + <para>-->[k,w]=strindex('aab',['a','ab'])</para> + <para>w = 1. 1. k = 1. 2.</para> + <para> + Правила регулярного выражения сходны с языком Perl. Для быстрого старта см.<ulink url="http://perldoc.perl.org/perlrequick.html">http://perldoc.perl.org/perlrequick.html</ulink>. + Для более глубокого изучения см. <ulink url="http://perldoc.perl.org/perlretut.html">http://perldoc.perl.org/perlretut.html</ulink>, + а для справки см. <ulink url="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</ulink>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +k=strindex('SCI/demos/scicos','/') +k=strindex('SCI/demos/scicos','SCI/') +k=strindex('SCI/demos/scicos','!') +k=strindex('aaaaa','aa') +k=strindex('SCI/demos/scicos',['SCI','sci']) +[k,w]=strindex('1+3*abc/2.33',['+','-','*','/']) +k=strindex('2' ,'/2(]*)?$\1/' ,'r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strings">strings</link> + </member> + <member> + <link linkend="regexp">regexp</link> + </member> + <member> + <link linkend="strsubst">strsubst</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * Copyright (C) DIGITEO - 2012 - Allan CORNET + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="string" xml:lang="ru"> + <refnamediv> + <refname>string</refname> + <refpurpose>преобразование в строку</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis> + string(x) + [out, in, text] = string(x) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>x</term> + <listitem> + <para> + булева, комплексная, вещественная, целочисленная, полиномиальная матрица, неявный размер, библиотека или функция. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Функция <function>string</function> преобразует матрицу + <varname>x</varname> в матрицу строк. + </para> + <para> + Если <varname>x</varname> является функцией, то <code>[out, in, text] = string(x)</code> возвращает три вектора строк: <varname>out</varname> - вектор выходных переменных, <varname>in</varname> - вектор входных переменных, а <varname>text</varname> - вектор (вектор-столбец) исходного кода функции. + </para> + <para> + Если <varname>x</varname> является переменной типа + <literal>lib</literal> (библиотекой), то <varname>text</varname> + является вектор-столбцом символьных строк. Первый элемент содержит + путь до файла библиотеки, а другой - имя функций, которые она + определяет. + </para> + <para> + Символьные строки определяются как <literal>'строка'</literal> + (между одинарными кавычками) или <literal>"строка"</literal> (между + двойными кавычками); матрицы строк определяются как обычные матрицы констант. + </para> + <para> + Связка строк выполняется с помощью операции <literal>+</literal>. + </para> + <para> + Для комплексной, вещественной, целочисленной, полиномиальной + матрицы вывод функции <function>string</function> управляется с + помощью функции <link linkend="format">format</link> (см. примеры). + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"> + 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:$) + </programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="quote">кавычка</link> + </member> + <member> + <link linkend="evstr">evstr</link> + </member> + <member> + <link linkend="execstr">execstr</link> + </member> + <member> + <link linkend="strsubst">strsubst</link> + </member> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="sci2exp">sci2exp</link> + </member> + <member> + <link linkend="format">format</link> + </member> + </simplelist> + </refsection> + <refsection> + <title>История</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revremark> + implicit size type managed as input argument. + </revremark> + </revision> + </revhistory> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="strings"> + <refnamediv> + <refname>strings</refname> + <refpurpose>объект Scilab'а, символьные строки</refpurpose> + </refnamediv> + <refsection> + <title>Описание</title> + <para> + Строки определяются как <code>'строка'</code> (между одинарными + кавычками) или <code>"строка"</code> (между двойными кавычками); + матрицы строк определяются как обычные матрицы. + </para> + <para> + Связка двух строк выполняется с помощью операции <literal>+</literal>: <code>string1 + string2</code>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +['это','матрица'; 'размером','2x2'] +"матрица"=="мат"+"рица" + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="part">part</link> + </member> + <member> + <link linkend="length">length</link> + </member> + <member> + <link linkend="strcat">strcat</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="stripblanks"> + <refnamediv> + <refname>stripblanks</refname> + <refpurpose> + отсекает пробелы (и табуляцию) в начале и в конце строк + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>txt = stripblanks(txt[,tabs])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>txt</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>tabs</term> + <listitem> + <para> + логическое значение, если <constant>%t</constant>, то + символы табуляции также будут отсечены (значение по умолчанию - <constant>%f</constant>). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Функция <function>stripblanks</function> отсекает пробелы (и табуляцию) в начале и конце строк. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +a=' 123 '; +'!'+a+'!' +'!'+stripblanks(a)+'!' +a=[' 123 ',' xyz'] +strcat(stripblanks(a)) + +a = msprintf("\t \tПривет, мир!\t\t") +strcat(stripblanks(a,%f)+'?') +strcat(stripblanks(a,%t)+'?') + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="strncpy"> + <refnamediv> + <refname>strncpy</refname> + <refpurpose>копирование символов из строк</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strncpy(str1, num)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>num</term> + <listitem> + <para> + целое число или матрица целых чисел, максимальное + количество символов, которые нужно скопировать из + исходника. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = strncpy(str1, num)</code> копирует первые + <varname>num</varname> символов из исходника <varname>str1</varname> + в назначение <varname>res</varname>. + </para> + <para> + <varname>num</varname> должен быть тех же размеров, что и + <varname>str1</varname>, либо <varname>num</varname> должен быть + целым числом. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +strncpy('scilab',3) +strncpy(['scilab','SciLab';'strncpy','strstr'],3) +strncpy(['scilab','SciLab';'strncpy','strstr'],[1,2;3,4]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strcat">strcat</link> + </member> + <member> + <link linkend="strcmp">strcmp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="strrchr"> + <refnamediv> + <refname>strrchr</refname> + <refpurpose> + поиск последнего появления символа в строке + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strrchr(str1, char)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>char</term> + <listitem> + <para>символ или матрица символов.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = strrchr(str1, char)</code> возвращает последнее + появление символа <varname>char</varname> в строке + <varname>str1</varname>. + </para> + <para> + <varname>char</varname> должен иметь те же размеры, что и + <varname>str1</varname>, либо он должен быть только одним символом. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +strrchr('Это строка примера','р') +strrchr(['Это строка примера','в системе Scilab'],'е') +strrchr(['Это строка примера','в системе Scilab'],['р','с']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strchr">strchr</link> + </member> + <member> + <link linkend="strstr">strstr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="strrev"> + <refnamediv> + <refname>strrev</refname> + <refpurpose>возвращает перевёрнутую строку</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strrev(str1)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = strrev(str1)</code> возвращает перевёрнутую строку. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +rev = strrev('Это простая строка') +strrev(rev) +strrev(['Это простая строка','scilab']) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsplit" xml:lang="ru"> + <refnamediv> + <refname>strsplit</refname> + <refpurpose>деление строки на вектор строк</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis> + 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) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>символьная строка, которую следует разделить.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>ind</term> + <listitem> + <para> + вектор индексов в строго возрастающем порядке в интервале <literal>[1 length(str)-1]</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>v</term> + <listitem> + <para> + результирующий вектор-столбец строк (размер ><literal>size(ind,'*')+1</literal>). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>matched_separators</term> + <listitem> + <para> + вектор-столбец совпавших разделителей. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>matrix_of_strings</term> + <listitem> + <para> + матрица строк, которые ищутся в <varname>str</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>regexp_pattern</term> + <listitem> + <para>шаблон регулярного выражения.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>limit</term> + <listitem> + <para>максимальный предел элементов.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>v= strsplit(str, ind)</code> делит строку + <varname>str</varname> на вектор строк в местах, указанных с + помощью индексов <varname>ind</varname> (после каждого символа, + на который указывает индекс в <varname>ind</varname>). + </para> + <para> + <code>strsplit(str)</code> возвращает то же, что и + <code>strsplit(str,1:length(str)-1).</code> + </para> + <para> + <code>strsplit(str, regexp_pattern, limit)</code> возвращает вектор + строк, каждая из которых является подстрокой из + <varname>str</varname>, сформированной делением + <varname>str</varname> на интервалы, сформированные шаблоном + регулярного выражения, чувствительного к регистру. + </para> + <para> + Если есть <literal>n</literal> совпадений с шаблоном, то + возвращённый массив будет содержать <literal>n+1</literal> + элементов. + </para> + <para> + Например, если нет совпадений с шаблоном, то будет возвращён массив + только с одним элементом. Конечно это так же будет и в случае, + когда <varname>str</varname> пустая. + </para> + <para> + Если установлен предел <varname>limit</varname>, то возвращённый + массив будет содержать максимальное разрешённое количество + элементов с последним элементом, содержащим весь остаток строки. + </para> + <para> + <code>strsplit(str, matrix_of_strings, limit)</code> делит + <varname>str</varname> любое количество элементов. Это позволяет + пользователям, не знающим регулярные выражения, делить по разным + разделителям. + </para> + <para> + Если вызывается <code>strsplit()</code> со вторым выходным + аргументом, то возвращается вектор-столбец совпавших разделителей. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +S='strsplit делит строку на вектор строк'; +strsplit(S,[15 21 25]) +ind=strindex(S,' ') + +[r_1, r_2] = strsplit("abcd") + +[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",5) + +[r_1, r_2] = strsplit("abc,def:ijk,:lmo","/:|,/") + +[r_1, r_2] = strsplit("abc,def:ijk,:lmo",[":";","]) + +strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/") + +[r_1, r_2] = strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/",2) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="part"> part</link> + </member> + <member> + <link linkend="strcat"> strcat</link> + </member> + <member> + <link linkend="tokens"> tokens</link> + </member> + <member> + <link linkend="regexp"> regexp</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strspn" xml:lang="ru"> + <refnamediv> + <refname>strspn</refname> + <refpurpose>получение интервала набора символов в строке</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strspn(str1, str2)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str1</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>str2</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>матрица символьных строк.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = strspn(str1, str2)</code> возвращает длину начальной + части <varname>str1</varname>, которая состоит только из символов, + которые являются частью <varname>str2</varname>. + </para> + <para> + <varname>str2</varname> должна иметь те же размеры, что и <varname>str1</varname>, либо <varname>str2</varname> должна быть строкой. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +i = strspn("129th","1234567890"); +mprintf ("Длина исходного номера: %d.\n",i); +i = strspn(["129th","130th"],["1234567890","130t"]) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strcspn">strcspn</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strstr" xml:lang="ru"> + <refnamediv> + <refname>strstr</refname> + <refpurpose>обнаружение подстроки</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strstr(haystack, needle)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>haystack</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>needle</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>res = strstr(haystack, needle)</code> возвращает матрицу строк + начиная от того места, где в <varname>haystack</varname> впервые + встретилась <varname>needle</varname> и до конца + <varname>haystack</varname>, либо <literal>''</literal>, если + <varname>needle</varname> не является частью <varname>haystack</varname>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +strstr('Это простая строка','простая') +strstr('Это простая строка','пример') +strstr(['Это простая строка','в scilab'],'в') +strstr(['Это строка для примера','в scilab'],['а','scilab']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strrchr">strrchr</link> + </member> + <member> + <link linkend="strchr">strchr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsubst" xml:lang="ru"> + <refnamediv> + <refname>strsubst</refname> + <refpurpose> + замена одной символьной строки другой + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis> + string_out = strsubst(string_in, searchStr, replaceStr) + string_out = strsubst(string_in, searchStr, replaceStr, [flag]) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>string_in</term> + <listitem> + <para> + матрица символьных строк. Строки, в которых ищутся + совпадения с <varname>searchStr</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>searchStr</term> + <listitem> + <para> + символьная строка. Строка, которая ищется в + <varname>string_in</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>replaceStr</term> + <listitem> + <para> + Символьная строка. Строка замены. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>string_out</term> + <listitem> + <para> + матрица символьных строк. Результат замены строки <varname>searchStr</varname> строкой + <varname>replaceStr</varname> в <varname>string_in</varname>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>flag</term> + <listitem> + <para> + символ (<literal>"r"</literal> для регулярного выражения). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Функция <function>strsubst</function> заменяет все совпадения со + строкой <varname>searchStr</varname> в матрице строк + <varname>string_in</varname> строкой <varname>replaceStr</varname>. + </para> + <para> + Когда используется четвёртый параметр <literal>"r"</literal>, то + строка <varname>searchStr</varname> должна быть регулярным + выражением. Тогда <function>strsubst</function> будет будет + сопоставлять её с <varname>string_in</varname> и заменять в + соответствии с правилами регулярных выражений. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +strsubst('SCI/demos/scicos','SCI','.') +strsubst('SCI/demos/scicos','/',' ') +strsubst('2' ,'/2(]*)?$\1/' ,'0','r') + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="string">string</link> + </member> + <member> + <link linkend="strings">strings</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strtod" xml:lang="ru"> + <refnamediv> + <refname>strtod</refname> + <refpurpose> + преобразование строки в число удвоенной точности + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis> + d = strtod(str) + [d, endstr] = strtod(str) + </synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para> + символьная строка или матрица символьных строк. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>d</term> + <listitem> + <para> + вещественное число или матрица вещественных чисел. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>endstr</term> + <listitem> + <para> + символьная строка или матрица символьных строк + (следующий символ в <varname>str</varname> после + числового значения). + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>[d, endstr] = strtod(str)</code> анализирует строки + <varname>str</varname>, интерпретируя их содержимое как числа с + плавающей запятой, и возвращает их значения в виде вещественных + чисел. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +strtod('123.556Это вещественное число для примера') +[d,endstr] = strtod('123.556Это вещественное число для примера') +strtod(['123.556This is a sample real','888.666 здесь']) +[d,endstr] =strtod(['123.556Это вещественное число для примера','888.666 здесь']) + ]]></programlisting> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="strtok"> + <refnamediv> + <refname>strtok</refname> + <refpurpose>разделение строки на лексемы</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>res = strtok(str, delimiters)</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para>символьная строка.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>delimiters</term> + <listitem> + <para>символьная строка, разделители</para> + </listitem> + </varlistentry> + <varlistentry> + <term>res</term> + <listitem> + <para>символьная строка.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + Последовательность вызовов <code>res = strtok(str, delimiters)</code> + этой функции делит строку <varname>str</varname> на лексемы, которые + являются непрерывными последовательностями символов, разделённых + любым из тех символов, которые входят в разделители + <varname>delimiters</varname>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +TOKENS = []; +token = strtok("Строка лексем (токенов) - последовательностей ,,символов и ещё немного лексем"," ,"); +TOKENS = [TOKENS,token]; +while( token <> '' ) + token = strtok(" ,"); + TOKENS = [TOKENS,token]; +end +disp(TOKENS); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strrchr">strrchr</link> + </member> + <member> + <link linkend="strchr">strchr</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="tokenpos"> + <refnamediv> + <refname>tokenpos</refname> + <refpurpose> + возвращает положение лексем в символьной строке + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>kdf = tokenpos(str [,delimiter])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para> + символьная строка. Строка в которой ищутся лексемы. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>delimiter</term> + <listitem> + <para> + (необязательный) символ или вектор символов. Разделители лексем. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>kdf</term> + <listitem> + <para> + матрица из двух столбцов; первый столбец даёт индекс + начала лексемы, второй даёт индекс последнего символа + лексемы. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>kdf = tokenpos(str [,delimiter]) </code> ищет лексемы, + содержащиеся в строке <varname>str</varname>. Значение разделителя <varname>delimiter</varname> по умолчанию <literal>[" ",<Tab>]</literal>, + где <literal><Tab></literal> стоит вместо + <code>ascii(9)</code>. Эта функция возвращает индексы первого и + последнего символов каждой найденной лексемы. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +str = 'Это символьная строка.'; +kdf = tokenpos(str) +first = part(str, kdf(1,1):kdf(1,2)) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="tokens">tokens</link> + </member> + </simplelist> + </refsection> +</refentry> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="tokens"> + <refnamediv> + <refname>tokens</refname> + <refpurpose>возвращает лексемы символьной строки</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Последовательность вызова</title> + <synopsis>T = tokens(str [,delimiter])</synopsis> + </refsynopsisdiv> + <refsection> + <title>Аргументы</title> + <variablelist> + <varlistentry> + <term>str</term> + <listitem> + <para> + символьная строка. Строка в которой ищутся лексемы. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>delimiter</term> + <listitem> + <para> + (необязательный) символ или вектор символов. Разделители лексем. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>T</term> + <listitem> + <para> + вектор-столбец найденных лексем. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Описание</title> + <para> + <code>T = tokens(str [,delimiter])</code> ищет лексемы, содержащиеся + в строке <varname>str</varname>. Значение разделителя + <varname>delimiter</varname> по умолчанию <literal>[" ",<Tab>]</literal>, + где <literal><Tab></literal> стоит вместо <code>ascii(9)</code>. + </para> + </refsection> + <refsection> + <title>Примеры</title> + <programlisting role="example"><![CDATA[ +tokens('Это символьная строка.') +tokens('SCI/demos/scicos','/') +tokens('y=a+b*2',['=','+','*']) + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>Смотрите также</title> + <simplelist type="inline"> + <member> + <link linkend="strindex">strindex</link> + </member> + <member> + <link linkend="tokenpos">tokenpos</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/string/includes/InitializeString.h b/modules/string/includes/InitializeString.h new file mode 100755 index 000000000..4e78915e4 --- /dev/null +++ b/modules/string/includes/InitializeString.h @@ -0,0 +1,23 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + */ +/*--------------------------------------------------------------------------*/ +#ifndef __INITIALIZESTRING_H__ +#define __INITIALIZESTRING_H__ + +#include "BOOL.h" +#include "dynlib_string.h" + +STRING_IMPEXP BOOL InitializeString(void); + +#endif /* __INITIALIZESTRING_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/includes/StringConvert.h b/modules/string/includes/StringConvert.h new file mode 100755 index 000000000..60e9dac1f --- /dev/null +++ b/modules/string/includes/StringConvert.h @@ -0,0 +1,25 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 +* +* 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 +* +*/ + +#ifndef __STRINGCONVERT_H__ +#define __STRINGCONVERT_H__ + +#include "dynlib_string.h" + +/** +* changes `\``n` --> `\n` idem for \t and \r +* @param[in/out] string to convert +* @return number of \n found +*/ +STRING_IMPEXP int StringConvert(char *str); + +#endif /* __STRINGCONVERT_H__ */ diff --git a/modules/string/includes/code2str.h b/modules/string/includes/code2str.h new file mode 100755 index 000000000..78e1768ce --- /dev/null +++ b/modules/string/includes/code2str.h @@ -0,0 +1,37 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __CODE2STR__ +#define __CODE2STR__ + +#include "dynlib_string.h" + +/** +* code2str returns character string associated with Scilab int codes +* @param[out] Output_Matrix vector of character +* @param[in] scilab codes of a string +* @param[in] dimension of Input_Matrix +*/ +STRING_IMPEXP void code2str(char **Output_Matrix, int *Input_Matrix, int Dim_Input_Matrix); + + +/** +* str2code return scilab int codes associated with a character string +* @param[out] Output_Matrix vector of character int codes +* @param[in] Input_Matrix a character string +*/ +STRING_IMPEXP void str2code(int *Output_Matrix, const char * const * Input_Matrix); + +#endif /* __CODE2STR__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/includes/complex_array.h b/modules/string/includes/complex_array.h new file mode 100755 index 000000000..cba9a066a --- /dev/null +++ b/modules/string/includes/complex_array.h @@ -0,0 +1,40 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010-2011 - DIGITEO - Allan CORNET + * + * 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 + * + */ +#ifndef __COMPLEX_ARRAY_H__ +#define __COMPLEX_ARRAY_H__ + +#include "dynlib_string.h" + +typedef struct +{ + double *realPart; + double *imagPart; + int nbElements; + int isComplex; +} complexArray; + +#ifdef __cplusplus +extern "C" { +#endif + + STRING_IMPEXP complexArray *createComplexArray(const double *realpart, const double *imagpart, int nbSize); + STRING_IMPEXP complexArray *createComplexArrayEmpty(int nbSize); + STRING_IMPEXP int cleanImagPartComplexArray(complexArray *pComplexArray); + STRING_IMPEXP void freeComplexArray(complexArray *pComplexArray); + +#ifdef __cplusplus +} +#endif + + +#endif /* __CSV_COMPLEX_H__ */ + diff --git a/modules/string/includes/convstr.h b/modules/string/includes/convstr.h new file mode 100755 index 000000000..e3c3244db --- /dev/null +++ b/modules/string/includes/convstr.h @@ -0,0 +1,34 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __CONVSTR_H__ +#define __CONVSTR_H__ + +#define LOW 'l' +#define LOW_B 'L' +#define UPPER 'u' +#define UPPER_B 'U' + +/** +* convstr case conversion +* param[in] Input_Matrix Input string matrix +* param[out] Output_Matrix +* param[in] typ 'l' or 'u' means low or upper +* param[in] Number_Input the number of input string matrix +*/ +void convstr(char **Input_Matrix, char **Output_Matrix, char typ, int Number_Input); + +#endif /* __CONVSTR_H__ */ +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/includes/cvstr.h b/modules/string/includes/cvstr.h new file mode 100755 index 000000000..5b32dbc90 --- /dev/null +++ b/modules/string/includes/cvstr.h @@ -0,0 +1,68 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Sylvestre LEDRU + * + * 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 + * + */ +/*--------------------------------------------------------------------------*/ +#ifndef __CVSTR_H__ +#define __CVSTR_H__ + +#include "machine.h" /* C2F */ +#include "dynlib_string.h" + +/** +* converts from ascii to Scilab internal coding +* @param n integer, length of the string to be converted integer +* @param line: int array (where Scilab coded string are stored ) +* @param str: string +* @param job: int flag +* @param str_len : length of str +* @return 1: code-->ascii +* @return 0: ascii-->code +*/ +STRING_IMPEXP int C2F(cvstr)(int * n, int * line, char * str, int * job, unsigned long str_len); + +/** +* converts from ascii to Scilab internal coding +* ascii->code is performed from end to the begining +* @param n integer, length of the string to be converted integer +* @param line: int array (where Scilab coded string are stored ) +* @param str: string +* @param job: int flag +* @param str_len : length of str +* @return 0: ascii-->code +*/ +STRING_IMPEXP int C2F(cvstr1)(int *n, int * line, char * str, int * job, unsigned long str_len); + +/** +* converts from Scilab internal coding to ascii +* @param n integer, length of the string to be converted integer +* @param line: int array (where Scilab coded string are stored ) +* @param str: string +* @param str_len : length of str +* @return 0 +*/ +STRING_IMPEXP int C2F(codetoascii)(int *n, int * line, char * str, unsigned long str_len); + +/** +* converts from ascii to Scilab internal coding +* @param n integer, length of the string to be converted integer +* @param line: int array (where Scilab coded string are stored ) +* @param str: string +* @param flagx: 1 or -1 and this is used when the +* conversion is made with line and str stored at overlapping +* memory zone +* @param str_len : length of str +* @return 0 +*/ +STRING_IMPEXP int C2F(asciitocode)(int * n, int * line, char * str, int * flagx, unsigned long str_len); + +#endif /* __CVSTR_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/includes/dynlib_string.h b/modules/string/includes/dynlib_string.h new file mode 100755 index 000000000..36205522f --- /dev/null +++ b/modules/string/includes/dynlib_string.h @@ -0,0 +1,29 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 - Allan CORNET +* +* 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 +* +*/ + +/*--------------------------------------------------------------------------*/ +#ifndef __DYNLIB_STRING_H__ +#define __DYNLIB_STRING_H__ + +#ifdef _MSC_VER +#ifdef STRING_EXPORTS +#define STRING_IMPEXP __declspec(dllexport) +#else +#define STRING_IMPEXP __declspec(dllimport) +#endif +#else +#define STRING_IMPEXP +#endif + +#endif /* __DYNLIB_STRING_H__ */ +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/includes/getfastcode.h b/modules/string/includes/getfastcode.h new file mode 100755 index 000000000..9f128fad4 --- /dev/null +++ b/modules/string/includes/getfastcode.h @@ -0,0 +1,44 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET , Sylvestre LEDRU + * + * 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 + * + */ +/*--------------------------------------------------------------------------*/ +#ifndef __GETFASTCODE_H__ +#define __GETFASTCODE_H__ + +#include "machine.h" +#include "dynlib_string.h" + +/** +* converts from ascii to Scilab internal coding +* @param n integer, length of the string to be converted integer +* @param line: int array (where Scilab coded string are stored ) +* @param a char +* @return internal code +* getfastcode uses convertAsciiCodeToScilabCode +*/ +STRING_IMPEXP int C2F(getfastcode)(unsigned char *c, unsigned long c_len); + +/** +* converts from ascii to Scilab internal coding +* @param[in] ascii char +* @return scilab code +*/ +STRING_IMPEXP int convertAsciiCodeToScilabCode(unsigned char scilab_char); + +/** +* converts Scilab internal coding to ascii code +* @param[in] scilab_code +* @return ascii_code [0 255] +*/ +STRING_IMPEXP unsigned char convertScilabCodeToAsciiCode(int scilab_code); + +#endif /* __GETFASTCODE_H__ */ diff --git a/modules/string/includes/gw_string.h b/modules/string/includes/gw_string.h new file mode 100755 index 000000000..156814700 --- /dev/null +++ b/modules/string/includes/gw_string.h @@ -0,0 +1,52 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + */ +/*--------------------------------------------------------------------------*/ +#ifndef __GW_STRING__ +#define __GW_STRING__ +#include "dynlib_string.h" +/*--------------------------------------------------------------------------*/ +STRING_IMPEXP int gw_string(void); +/*--------------------------------------------------------------------------*/ +STRING_IMPEXP int sci_length(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_part(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_string(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_convstr(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_emptystr(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_str2code(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_code2str(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strcat(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strindex(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strsubst(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_ascii(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_grep(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_tokens(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strsplit(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_stripblanks(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strcmp(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_isletter(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_isdigit(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_isalphanum(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_isascii(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strcspn(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strncpy(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strchr(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strstr(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strrev(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strtok(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strspn(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_strtod(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_regexp(char *fname, unsigned long fname_len); +STRING_IMPEXP int sci_isnum(char *fname, unsigned long fname_len); +/*--------------------------------------------------------------------------*/ +#endif /* __GW_STRING__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/includes/men_Sutils.h b/modules/string/includes/men_Sutils.h new file mode 100755 index 000000000..7d6d399a4 --- /dev/null +++ b/modules/string/includes/men_Sutils.h @@ -0,0 +1,58 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + */ +/*--------------------------------------------------------------------------*/ +#ifndef __MEN_SUTILS_H__ +#define __MEN_SUTILS_H__ + +#include "dynlib_string.h" + +/** +* Converts a Scilab String coded as int array +* into a C string [ the C string is allocated with MALLOC ] +* @param[in] size of int array +* @param[in] int array +* @param[out] C string converted from int array +* @param[out] error code 0 = OK , 1 = Problem +*/ +STRING_IMPEXP void ScilabStr2C(int *n, int *Scistring, char **strh, int *ierr); + + +/** +* Converts a Scilab array of +* String coded as int array +* into a C array of strings [ NULL terminated ] +* @param[in] Scistring +* @param[in] nstring +* @param[in] ptrstrings +* @param[out] C string converted from int array +* @param[out] error code 0 = OK , 1 = Problem +*/ +STRING_IMPEXP void ScilabMStr2CM(int *Scistring, int *nstring, int *ptrstrings, char ***strh, int *ierr); + +/** +* Converts a Scilab array of +* String coded as int array +* into a C string where all the Scilab strings are +* separated by '\n' or '\r\n' (windows) +* desc,nd,ptrdesc : scilab string info +* strh : the C coded string +* @param[in] descriptor +* @param[in] size of array of integer +* @param[in] pointer on descriptor +* @param[out] C string converted from int array +* @param[out] error code 0 = OK , 1 = Problem +*/ +STRING_IMPEXP void ScilabMStr2C(int *desc, int *nd, int *ptrdesc, char **strh, int *ierr); + +#endif /* __MEN_SUTILS_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/includes/pcre_private.h b/modules/string/includes/pcre_private.h new file mode 100755 index 000000000..4c4b657eb --- /dev/null +++ b/modules/string/includes/pcre_private.h @@ -0,0 +1,42 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/*------------------------------------------------------------------------*/ +#ifndef __PCRE_PRIVATE_H__ +#define __PCRE_PRIVATE_H__ + +#include "dynlib_string.h" + +typedef enum +{ + PCRE_EXIT = 1, + PCRE_FINISHED_OK = 0, + NO_MATCH = -1, + NOT_ENOUGH_MEMORY_FOR_VECTOR = -2, + DELIMITER_NOT_ALPHANUMERIC = -3, + CAPTURING_SUBPATTERNS_ERROR = -4, + PARTIAL_MATCHING_NOT_SUPPORTED = -5, + CONTAINS_EXPLICIT_CR_OR_LF_MATCH = -6, + DUPLICATE_NAME_STATUS_CHANGES = -7, + TOO_BIG_FOR_OFFSET_SIZE = -8, + LIMIT_NOT_RELEVANT_FOR_DFA_MATCHING = -9, + CAN_NOT_COMPILE_PATTERN = -10, + MATCH_LIMIT = -11, + UTF8_NOT_SUPPORTED = -12 +} pcre_error_code; + + +STRING_IMPEXP pcre_error_code pcre_private(char *INPUT_LINE, char *INPUT_PAT, int *Output_Start, int *Output_End, char*** _pstCapturedString, int* _piCapturedStringCount); + +#endif /* __PCRE_PRIVATE_H__ */ +/*------------------------------------------------------------------------*/ diff --git a/modules/string/includes/scistrtostr.h b/modules/string/includes/scistrtostr.h new file mode 100755 index 000000000..730f9c09b --- /dev/null +++ b/modules/string/includes/scistrtostr.h @@ -0,0 +1,45 @@ + +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 - Allan CORNET +* +* 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 +* +*/ + +#ifndef __SCSTRTOSTR_H__ +#define __SCSTRTOSTR_H__ + +#include "dynlib_string.h" + +/*! +* \brief +* Converts a Scilab array of String coded as int array +* into a regular string. +* entries of the original array are catenated, separated by +* '\n' char +* +* \param Scistring +* scilab string +* +* \param nstring +* number of scilab scilab string +* +* \param ptrstrings +* returns size of array of string +* +* \param strh +* array of strings +* +* \returns +* return value 0 or MEM_LACK. +* + +*/ +STRING_IMPEXP int SciStrtoStr (int *Scistring, int *nstring, int *ptrstrings, char **strh); + +#endif /* __SCSTRTOSTR_H__ */ diff --git a/modules/string/includes/stricmp.h b/modules/string/includes/stricmp.h new file mode 100755 index 000000000..e5898a2bf --- /dev/null +++ b/modules/string/includes/stricmp.h @@ -0,0 +1,30 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - + * + * 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 + * + */ +/*-----------------------------------------------------------------------*/ +#ifndef __STRICMP_H__ +#define __STRICMP_H__ + +#include <string.h> + +/* compare two strings ignoring the case */ + +#if _MSC_VER +#define stricmp _stricmp +#define strnicmp _strnicmp +#else +#define stricmp strcasecmp +#define strnicmp strncasecmp +#endif + +#endif /* __STRICMP_H__ */ +/*-----------------------------------------------------------------------*/ diff --git a/modules/string/includes/stringToComplex.h b/modules/string/includes/stringToComplex.h new file mode 100755 index 000000000..684c28a86 --- /dev/null +++ b/modules/string/includes/stringToComplex.h @@ -0,0 +1,52 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010-2011 - DIGITEO - Allan CORNET + * + * 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 + * + * This code is also published under the GPL v3 license. + * + */ +#ifndef __STRINGTOCOMPLEX_H__ +#define __STRINGTOCOMPLEX_H__ + +#include "doublecomplex.h" +#include "complex_array.h" +#include "BOOL.h" + +#include "dynlib_string.h" + +typedef enum +{ + STRINGTOCOMPLEX_NO_ERROR = 0, + STRINGTOCOMPLEX_MEMORY_ALLOCATION = 1, + STRINGTOCOMPLEX_NOT_A_NUMBER = 2, + STRINGTOCOMPLEX_ERROR = 3 +} stringToComplexError; + + +#ifdef __cplusplus +extern "C" { +#endif + + doublecomplex stringToComplex(const char *pSTR, + const char *decimal, + BOOL bConvertByNAN, + stringToComplexError *ierr); + + STRING_IMPEXP complexArray *stringsToComplexArray(const char **pSTRs, int nbElements, + const char *decimal, + BOOL bConvertByNAN, + stringToComplexError *ierr); + +#ifdef __cplusplus +} +#endif + + +#endif /* __STRINGTOCOMPLEX_H__ */ +// ============================================================================= diff --git a/modules/string/includes/stringToDouble.h b/modules/string/includes/stringToDouble.h new file mode 100755 index 000000000..704c5e7d1 --- /dev/null +++ b/modules/string/includes/stringToDouble.h @@ -0,0 +1,70 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010-2011 - DIGITEO - Allan CORNET + * + * 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 + * + * This code is also published under the GPL v3 license. + * + */ +#ifndef __STRINGTODOUBLE_H__ +#define __STRINGTODOUBLE_H__ + +#include "dynlib_string.h" +#include "BOOL.h" + +#define NanString "Nan" +#define InfString "Inf" +#define NegInfString "-Inf" +#define PosInfString "+Inf" +#define NegNanString "-Nan" /* no sense but used by some users */ +#define PosNanString "+Nan" /* no sense but used by some users */ +#define ScilabNanString "%nan" +#define ScilabInfString "%inf" +#define ScilabNegInfString "-%inf" +#define ScilabPosInfString "+%inf" +#define ScilabNegNanString "-%nan" /* no sense but used by some users */ +#define ScilabPosNanString "+%nan" /* no sense but used by some users */ +#define ScilabPiString "%pi" +#define ScilabNegPiString "-%pi" +#define ScilabPosPiString "+%pi" +#define ScilabEString "%e" +#define ScilabPosEString "+%e" +#define ScilabNegEString "-%e" +#define ScilabEpsString "%eps" +#define ScilabPosEpsString "+%eps" +#define ScilabNegEpsString "-%eps" + +#ifdef __cplusplus +extern "C" { +#endif + + typedef enum { + STRINGTODOUBLE_NO_ERROR = 0, + STRINGTODOUBLE_MEMORY_ALLOCATION = 1, + STRINGTODOUBLE_NOT_A_NUMBER = 2, + STRINGTODOUBLE_ERROR = 3 + } + stringToDoubleError; + + /** + * @TODO add comment + * + * @param pSTR + * @param bConvertByNAN + * @param ierr + * @return <ReturnValue> + */ + STRING_IMPEXP double stringToDouble(const char *pSTR, BOOL bConvertByNAN, stringToDoubleError *ierr); + +#ifdef __cplusplus +} +#endif + + +#endif /* __STRINGTODOUBLE_H__ */ +// ============================================================================= diff --git a/modules/string/includes/stripblanks.h b/modules/string/includes/stripblanks.h new file mode 100755 index 000000000..86c1a7137 --- /dev/null +++ b/modules/string/includes/stripblanks.h @@ -0,0 +1,32 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __STRIPBLANKS_H__ +#define __STRIPBLANKS_H__ + +#include "BOOL.h" +/** +* stripblanks +* remove blank or tab characters in a string matrix +* param[in] InputStrings +* param[out] OutputStrings +* param[in] InputStringsDim size of InputStrings +* param[in] BOOLEAN remove TAB if TRUE +*/ + + +void stripblanks(char **InputStrings, char **OutputStrings, int InputStringsDim, BOOL withTAB); + +#endif /* __STRIPBLANKS_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/includes/stristr.h b/modules/string/includes/stristr.h new file mode 100755 index 000000000..df63f23ac --- /dev/null +++ b/modules/string/includes/stristr.h @@ -0,0 +1,28 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - Allan CORNET +* +* 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 +* +*/ + +/*--------------------------------------------------------------------------*/ +#ifndef __STRISTR_H__ +#define __STRISTR_H__ + +#include "dynlib_string.h" + +/** +* strstr case insensitive +* @param[in] string where we search +* @param[in] string to search +* @return result +*/ +STRING_IMPEXP char *stristr(const char *psz, const char *tofind); + +#endif /* __STRISTR_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/includes/strsubst.h b/modules/string/includes/strsubst.h new file mode 100755 index 000000000..6babfa079 --- /dev/null +++ b/modules/string/includes/strsubst.h @@ -0,0 +1,42 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __STRSUBST_H__ +#define __STRSUBST_H__ + +#include "dynlib_string.h" + +/** +* substitute a character string by another in a character string in string matrix +* @param[in] strings_input +* @param[in] dimension of strings_input +* @param[in] string_to_search +* @param[in] replacement_string +* @return substituted string matrix +*/ +STRING_IMPEXP char **strsubst(char **strings_input, int strings_dim, char *string_to_search, char *replacement_string); +STRING_IMPEXP char **strsubst_reg(char **strings_input, int strings_dim, char *string_to_search, char *replacement_string, int *ierr); + +/** +* substitute a character string by another in a character string +* @param[in] string +* @param[in] string to search in input_string +* @param[in] replacement_string +* @param[out] error returned by pcre_private +* @return substituted string +*/ +STRING_IMPEXP char *strsub(char* input_string, const char* string_to_search, const char* replacement_string); +STRING_IMPEXP char *strsub_reg(char* input_string, const char* string_to_search, const char* replacement_string, int *ierr); + +#endif /* __STRSUBST_H__ */ diff --git a/modules/string/libscistring-algo.la b/modules/string/libscistring-algo.la new file mode 100755 index 000000000..52a5d3a72 --- /dev/null +++ b/modules/string/libscistring-algo.la @@ -0,0 +1,41 @@ +# libscistring-algo.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='' + +# Names of this library. +library_names='' + +# The name of the static archive. +old_library='libscistring-algo.a' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -lpthread -ldl -lcurses' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libscistring-algo. +current= +age= +revision= + +# Is this an already installed library? +installed=no + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='' diff --git a/modules/string/libscistring.la b/modules/string/libscistring.la new file mode 100755 index 000000000..09530562f --- /dev/null +++ b/modules/string/libscistring.la @@ -0,0 +1,41 @@ +# libscistring.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='' + +# Names of this library. +library_names='' + +# The name of the static archive. +old_library='libscistring.a' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -L/home/shashank/scilab-master_5.5.2/usr/lib -lpcreposix -lpcre -lpthread -ldl -lcurses -lm' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libscistring. +current= +age= +revision= + +# Is this an already installed library? +installed=no + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='' diff --git a/modules/string/license.txt b/modules/string/license.txt new file mode 100755 index 000000000..dc6298f7e --- /dev/null +++ b/modules/string/license.txt @@ -0,0 +1,34 @@ +Copyright: +Copyright (c) 2008 - DIGITEO +Copyright (c) 1989-2008 - INRIA + +License: +This module must be used under the terms of the CeCILL. +This module 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 + +PCRE: +===== + +Files: +src/c/pcre_tables.c + +Copyright: +1997-2007 - University of Cambridge - Philip Hazel + +License: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the University of Cambridge nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. diff --git a/modules/string/locales/ca_ES.po b/modules/string/locales/ca_ES.po new file mode 100755 index 000000000..e1f464a29 --- /dev/null +++ b/modules/string/locales/ca_ES.po @@ -0,0 +1,471 @@ +# Catalan translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-04-19 18:03+0000\n" +"Last-Translator: Marc Coll Carrillo <Unknown>\n" +"Language-Team: Catalan <ca@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: ca\n" + +msgid "WARNING : \n" +msgstr "Avís: \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha d'estar entre %d i " +"%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s: L'argument #%d és d'un tipus incorrecte: Ha de ser una matriu de cadenes " +"de text o d'enters.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s: la característica %s està obsoleta.\n" + +msgid "Warning" +msgstr "Avís" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "%s: feu servir %s en el seu lloc.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: aquesta característica serà permanentment eliminada a Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una matriu " +"real.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: No hi ha més memòria.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Error de memòria.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser una cadena de " +"text.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser 'u' " +"(superior) or 'l' (inferior) expected.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una matriu " +"de cadenes de text.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una matriu " +"de nombres enters.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un text.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser una matriu de " +"cadenes de text.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: no es pot llegir el paràmetre d'entrada #%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una matriu " +"de nombres reals o de cadenes de text.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s: L'argument #%d és d'un tipus incorrecte: Ha de ser un text simple.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una cadena " +"de caràcters.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: No s'ha pogut obtenir les dimensions de la matriu.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: Els arguments d'entrada són d'un tipus incorrecte.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: L'argument d'entrada #%d té una mida incorrecta.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser >= 1.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una cadena " +"de text simple.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser '%s'.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un vector " +"de cadenes de caràcters.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte. Ha de ser '%s' o '%s'.\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s : Els arguments d'entrata tenen una mida incorrecta.\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: Error.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s : Els arguments d'entrata tenen una mida incorrecta.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una matriu " +"de cadenes de text o una matriu real buida.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser un caràcter.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser %s o %s.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s : No hi ha més memòria.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" +"%s: Els arguments d'entrada tenen una mida incorrecta: Ha de tenir la " +"mateixa mida.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un " +"caràcter.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una matriu " +"de cadenes de text o una matriu buida.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser un text vàlid " +"(hi ha un problema amb la codificació UTF-8).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un vector " +"fila o columna de cadenes de text.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser una cadena de " +"text no-buida.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: L'argument d'entrada #%d és d'un tipus incorrecte.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un booleà.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser una matriu no-" +"buida.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta. Ha de ser un escalar.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de tenir un valor > " +"0.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s: Nombre incorrecte d'arguments de sortida: Se'n necessiten %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "%s: Els elements de l'argument #%d han de tenir un ordre creixent.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser una cadena de " +"caràcters, no un patró regexp.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser una matriu no-" +"buida de cadenes de text.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un caràcter " +"o un vector de caràcters.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: El delimitador no pot ser alfanumèric.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: Error en la captura de subpatrons.\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: La comparació parcial no està suportada.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: Conté una comprovació específica de CR o LF.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: Els canvis d'estat provoquen noms duplicats.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s: El recompte retornat és massa gran per a la mida indicada.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "" +"%s: El límit no és relevant per a la comprovació DFA: Serà ignorat.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: No es pot compilar el patró.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: El text comprovat desborda el límit de la memòria intermèdia.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: La llibreria PCRE actual no suporta UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: Error desconegut.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: Nombre incorrecte d'arguments d'entrada: Se'n necessiten %d.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "" +"%s: L'argument d'entrada és d'un tipus incorrecte: Ha de ser una cadena de " +"caràcters.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser una cadena de " +"caràcters.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte. Ha de ser un nombre " +"enter.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser un nombre " +"enter.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té valors incorrecte: Ha de ser un enter no-" +"negatiu.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una matriu " +"de nombres reals o complexos o de cadenes de text o una llista.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: L'expressió donada no té valor.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: Aquesta característica no està implementada: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" +"%s: Aquesta característica no s'ha implementat: Ha de ser una variable del " +"tipus %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser un caràcter o " +"un vector de caràcters.\n" diff --git a/modules/string/locales/cs_CZ.po b/modules/string/locales/cs_CZ.po new file mode 100755 index 000000000..8aa300e8e --- /dev/null +++ b/modules/string/locales/cs_CZ.po @@ -0,0 +1,436 @@ +# Czech translation for scilab +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2013-05-23 21:43+0000\n" +"Last-Translator: Zbyněk Schwarz <Unknown>\n" +"Language-Team: Czech <cs@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" + +msgid "WARNING : \n" +msgstr "VAROVÁNÍ : \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "%s: Špatná hodnota vstupního argumentu #%d: Musí být mezi %d a %d.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekávána matice řetězců nebo celých " +"čísel.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s: Funkce %s je zastaralá.\n" + +msgid "Warning" +msgstr "Varování" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "%s: Prosím namísto toho použijte %s.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: Tato funkce bude natrvalo odstraněna v Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekávána matice reálných čísel.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Žádná další paměť.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Chyba při přidělování paměti.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: Špatná velikost vstupního argumentu #%d: Očekáván řetězec.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: Očekáváno 'u' (Horní) nebo 'l' " +"(Dolní).\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekávána matice řetězců.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekávána matice celých čísel\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "%s: Špatná hodnota vstupního argumentu #%d: Očekáváno '%s'.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekáván řetězec.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s: Špatné hodnoty vstupního argumentu #%d: Očekávány neprázdné řetězce.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: Nelze přečíst vstupní argument #%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekávána reálná matice nebo matice " +"řetězců.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s: Špatná velikost vstupního argumentu #%d: Očekáván jeden řetězec.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekávána matice řetězců.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekáván řetězec.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: nemožné získat rozměry této matice.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: Špatný typ vstupních argumentů.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Špatná velikost vstupního argumentu #%d.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "%s: Špatné hodnoty vstupního argumentu #%d: Musí být >= 1.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "%s: Špatný typ pro vstupní argument #%d: Očekáván jeden řetězec.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: očekáváno '%s'.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: očekáván řetězcový vektor.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: očekáván '%s' nebo '%s'.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: Očekáván '%s' nebo '%s'.\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s : Špatná velikost vstupních argumentů.\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: chyba.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: Špatná velikost vstupních argumentů.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekávána matice řetězců nebo " +"prázdná reálná matice.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "%s: Špatná velikost vstupního argumentu #%d: Očekáván znak.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "%s: Špatná hodnota vstupního argumentu #%d: Očekáváno %s nebo %s.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s : Žádná další paměť.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" +"%s: Špatná velikost vstupních argumentů: Očekávány stejné velikosti.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekáván znak.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekávána matice řetězců nebo " +"prázdná matice.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: Očekáván platný řetězec (Problém " +"s kódováním UTF-8).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekáván řádkový či sloupcový vektor " +"řetězců.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s: Špatná velikost vstupního argumentu #%d: Očekáván neprázdný řetězec.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekáván boolean.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s: Špatná velikost vstupního argumentu #%d: Očekávána neprázdná matice.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" +"%s: Špatná velikost vstupního argumentu #%d: Očekáván jeden řetězec.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "%s: Špatná velikost vstupního argumentu #%d: Očekáván skalár.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: Očekávána hodnota celého čísla.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "%s: Špatná hodnota vstupního argumentu #%d: Očekávána hodnota > 0.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s: Špatný počet vstupních argumentů: očekáváno %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "%s: Špatná hodnota vstupního argumentu #%d.\n" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "%s: Prvky %d. argumentu musí být ve vzestupném pořadí.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: očekáván řetězec, ne vzorec " +"regulárního cýrazu.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s: Špatná velikost vstupního argumentu #%d: Očekávána neprázdná matice " +"řetězců.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: Očekáváno '.' nebo ','.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekáván znak nebo vektor jednoho " +"znaku.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: Oddělovač nesmí být alfanumerický.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: Chyba zachycení podvzorců.\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: Částečná shoda není podporována.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: Obsahuje výslovnou schodu CR nebo LF.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: Zdvojené změny stavu jména.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s: Navrácený počet je příliš velký pro velikost odchylky.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "%s: Limit shody nesouvisí se shodou DFA: ignorováno.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: Nelze zkompilovat vzorec.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: Shodující se text přesáhl limit zásobníku.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: Současná knihovna PCRE nepodporuje UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: Neznámá chyba.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekávána funkce.\n" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: Špatný počet vstupních argumentů: očekáváno %d.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "%s: Špatný typ vstupního argumentu: Očekáván řetězec.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s: Špatná velikost vstupního argumentu #%d: Očekáván řetězec znaků.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "%s: Špatný vstupní argument #%d: Nesouladná velikost.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekáváno reálné nebo celé číslo, či " +"matice řetězce.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "%s: Špatný typ vstupního argumentu #%d: Očekáváno celé číslo.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "%s: Špatná velikost vstupního argumentu #%d: Očekáváno celé číslo.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: Očekáváno nezáporné celé číslo.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s: Špatný typ vstupního argumentu #%d: Očekávána reálná nebo komplexní " +"matice řetězců znaků nebo seznam.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: Zadaný výraz nemá žádnou hodnotu.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: Tato funkce nebyla zavedena: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Špatný počet vstupních argumentů: očekáváno %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" +"%s: Špatná hodnota vstupního argumentu #%d: čekáváno %s, %s nebo %s.\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "%s: Tato funkce nebyla zavedena: Překlad proměnné typu %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s: Špatná velikost vstupního argumentu #%d: Očekáván znak, nebo vektor " +"znaků.\n" diff --git a/modules/string/locales/de_DE.po b/modules/string/locales/de_DE.po new file mode 100755 index 000000000..e10cd0d9d --- /dev/null +++ b/modules/string/locales/de_DE.po @@ -0,0 +1,445 @@ +# German translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-11-08 15:34+0000\n" +"Last-Translator: Dennis Baudys <Unknown>\n" +"Language-Team: German <de@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: de\n" + +msgid "WARNING : \n" +msgstr "Warnung: \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" +"%s: falscher Wert für Eingangsargument #%d: muß zwischen %d und %d liegen.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: Matrix mit Zeichenketten oder " +"Integermatrix erwartet.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "%s: falscher Typ für Eingangsargument '%d: reelle Matrix erwartet.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Kein weiterer Speicher verfügbar.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Fehler in Speicherreservierung.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: falsche Größe für Eingangsargument #%d: eine Variable erwartet.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s: falscher Wert für Eingangsargument #%d: 'u' (höher) oder 'l' (niedriger) " +"erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: Matrix von Variablen erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: Matrix aus Integerwerten " +"erwartet.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: falscher Typ für Eingangsargument #%d: Variable erwartet.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s: falscher Wert für Eingangsargument #%d: nicht-leere Zeichenketten " +"erwartet.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: reelle Matrix oder Matrix mit " +"Zeichenketten erwartet.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s: falsche Größe für Eingangsargument #%d: einzelne Zeichenkette erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument '%d: eine Zeichenkette erwartet.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: unmöglich die Dimension dieser Matrix zu ermitteln.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: falscher Typ für Eingangsargument.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: falsche Größe für Eingangsargument #%d.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "%s: falscher Wert für Eingangsargument #%d: muß =>1 sein.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" +"%s: falscher Typ für Eingangargument #%d: einzelne Zeichenkette erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "%s: falscher Wert für Eingangsargument '#%d': '%s' erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: ein Zeichenkettenvektor " +"erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: falscher Wert für Eingangsargument #%d: '%s' oder '%s' erwartet.\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s: Falsche Größe für Eingangsargument(e).\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: Fehler.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: Falsche Größe des/der Eingangsargument(s/e).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: Matrix mit Zeichenketten oder " +"leere reelle Matrix erwartet.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "%s: falsche Größe für Eingangsargument #%d: ein Zeichen erwartet.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "%s: falscher Wert für Eingangsargument #%d: %s oder %s erwartet.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s: Kein weiterer Speicher verfügbar.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "%s: falsche Größe für Eingangsargument: gleiche Größe erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "%s: falscher Typ für Eingangsargument #%d: ein Zeichen erwartet.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: Matrix aus Zeichenketten oder " +"leere Matrix erwartet.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s: falscher Wert für Eingangsargument #%d: eine gültige Zeichenkette " +"erwartet (UTF-8 Enkodierungsproblem).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: Reihenvektor mit Zeichenketten " +"oder Spaltenvektor mit Zeichenketten erwartet.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s: falsche Größe für Eingangsargument #%d: nicht leere Zeichenkette " +"erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: falscher Typ für Eingangsargument #%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: ein boolscher Wert erwartet.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s: falsche Größe für Eingangsargument #%d: nicht-leere Matrix erwartet.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "%s: falsche Größe für Eingangsargument #%d: ein Skalar erwartet.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "%s: falscher Wert für Eingangsargument #%d: ein Wert >0 erwartet.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s: Falsche Anzahl von Ausgangsargumenten: %d erwartet.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "" +"%s: Elemente von %dth Argument müssen sich in aufsteigender Reihenfolge " +"befinden.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s: falscher Wert für Eingangsargument #%d: eine Zeichenkette erwartet, kein " +"regexp Muster.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s: falsche Größe für Eingangsargument #%d: nicht-leere Matrix mit " +"Zeichenketten erwartet.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: ein Zeichen oder Vektor mit einem " +"einzelnen Zeichen erwartet.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: Delimiter darf nicht alphanumerisch sein.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: Fehler beim Berechnen der Untermatrizen.\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: Partielle Übereinstimmung wird nicht unterstützt.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: Enthält explizite CR oder LF Übereinstimmung.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: Veränderung des doppelten Namensstatus.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s: Zurückgegebener Zähler ist zu groß für Versatzgröße.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "%s: übereinstimmende Grenze für DFA Übereinstimmung: ignoriert.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: kann Schema nicht kompilieren.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: Übereinstimmender Text überschreitet Puffergrenze.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: aktuelle PCRE Bibliothek unterstützt nicht UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: unbekannter Fehler.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: Falsche Anzahl von Eingangsargumenten: %d erwartet.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "%s: falscher Typ für Eingangsargument: Zeichenkette erwartet.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s: Falsche Größe für Eingangsargument #%d: Eine Zeichenkette mit Buchstaben " +"wird erwartet.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "%s: falscher Typ für Eingangsargument #%d: ein Integer erwartet.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "%s: falsche Größe für Eingangsargument #%d: ein Integer erwartet.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s: falscher Wert für Eingangsargument #%d: ein nicht-negativer Integerwert " +"erwartet.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s: falscher Typ für Eingangsargument #%d: reelle oder komplexe Matrix, " +"Matrix mit Zeichenketten aus Buchstaben oder eine Liste erwartet.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: Angegebener Ausdruck hat keinen Wert.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: diese Funktion wurde nicht implementiert: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Falsche Anzahl von Eingangsargumenten: %d erwartet.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" +"%s: Falscher Wert für Eingangsargument #%d: %s, %s oder %s erwartet.\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" +"%s: diese Funktionalität wurde noch nicht implementiert: variabler " +"Übersetzungstyp %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s: falsche Größe für Eingangsargument #%d: eine Zeichenkette oder Vektor " +"aus Buchstaben erwartet.\n" diff --git a/modules/string/locales/es_ES.po b/modules/string/locales/es_ES.po new file mode 100755 index 000000000..c2033fe7f --- /dev/null +++ b/modules/string/locales/es_ES.po @@ -0,0 +1,474 @@ +# Spanish translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-12-15 15:24+0000\n" +"Last-Translator: Adolfo Jayme <fitoschido@gmail.com>\n" +"Language-Team: Spanish <es@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: es\n" + +msgid "WARNING : \n" +msgstr "ADVERTENCIA : \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Debe ser entre %d y %d.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada#%d: Se esperaba una matriz de " +"enteros o de string.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s: Característica %s es obsoleta.\n" + +msgid "Warning" +msgstr "Advertencia" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "%s: Por favor use %s en su lugar.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: Esta característica será removida permanentemente en Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz de " +"real.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: No hay más memoria.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Error de asignación de memoria.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba 'u' " +"(Mayúscula) o 'l' (Minúscula).\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz de " +"strings.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz de " +"enteros.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba '%s'.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaban strings no-" +"vacíos.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: No se puede leer el argumento de entrada #%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz de " +"Reales o de strings.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: imposible obtener las dimensiones de esta matriz.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: Tipo(s) incorrecto(s) para los argumento(s).\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Tamaño incorrecto del argumento de entrada #%d.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "" +"%s: Valores incorrecto del argumento de entrada #%d: Debe ser >= 1.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un string.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba '%s'.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un vector de " +"strings.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba '%s' o '%s'.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba '%s' o '%s' " +".\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s : Tamaño incorrecto de los argumentos de entrada.\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: error.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: Tamaño incorrecto de los argumentos de entrada.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz de " +"strings o una matriz real vacía.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un " +"caracter.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba %s o %s.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s : No hay mas memoria.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" +"%s: Tamaño incorrecto de los argumentos de entrada: Se los esperaba con el " +"mismo tamaño.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un caracter.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz de " +"strings o una matriz vacía.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba un string " +"válido (Problema de codificación UTF-8).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un vector fila " +"o columna de strings.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz no-" +"vacía de strings.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: Tipo incorrecto del argumento de entrada #%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un booleano.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba una matriz " +"no-vacía.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba una cadena " +"simple.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un escalar.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" +"%s: Valor erróneo para el argumento de entrada #%d: Se esperaba un entero.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba un valor > " +"0.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s: Número incorrecto de argumentos de salida: Se esperaban %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "%s: Valor erróneo para el argumento de entrada #%d.\n" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "" +"%s: Los elementos del argumento (%d) deben estar en orden creciente.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba un string, no " +"un patrón regexp.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba una matriz " +"no-vacía de strings.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un caracter o " +"un vector de caracteres simples.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: El delimitador no debe ser alfanumérico.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: Capturando error de subpatrones.\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: Concordancia parcial no soportada.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: Contiene concordancia explicita CR o LF.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: Cambios de estado de nombres duplicados.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s: El contador devuelto es muy grande para el tamaño de offset.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "" +"%s: Límite de coincidencia no es importante para la concordancia DFA: " +"ignorado.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: No se puede compilar patrón.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: Texto coincidente excede el límite del buffer.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: La biblioteca PCRE actual no soporta UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: Error desconocido.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: se esperaba una función.\n" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: Número incorrecto de argumentos de entrada: Se esperaban %d.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "" +"%s: Tipo incorrecto de argumentos de entrada: Se esperaba un string.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un string de " +"caracteres.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un entero.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un entero.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba un entero no-" +"negativo.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz " +"Real, Compleja o de strings; o una lista.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: La expresión dada no tiene valor.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: Esta función aun no a sido implementada: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s Número incorrecto de argumentos de entrada: Se esperaban %d\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" +"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba %s, %s o %s " +".\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" +"%s: Esta función no a sido implementada: Variable de traducción de tipo %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un caracter " +"o un vector de caracteres.\n" diff --git a/modules/string/locales/fr_FR.po b/modules/string/locales/fr_FR.po new file mode 100755 index 000000000..e1f9ba8e8 --- /dev/null +++ b/modules/string/locales/fr_FR.po @@ -0,0 +1,477 @@ +# French translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2013-09-16 10:02+0000\n" +"Last-Translator: Julie PAUL <Unknown>\n" +"Language-Team: French <fr@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: fr\n" + +msgid "WARNING : \n" +msgstr "ATTENTION : \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : Doit être entre %d et %d.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une matrice de chaîne de " +"caractères ou une matrice d'entiers attendue.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s : La fonction %s est obsolète.\n" + +msgid "Warning" +msgstr "Avertissement" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "%s : Veuillez utiliser %s à la place.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s : Cette fonction sera définitivement supprimée dans Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une matrice réelle attendue.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s : Plus de mémoire disponible.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s : Erreur d'allocation mémoire.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une chaîne de " +"caractères attendue.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : 'u' (supérieur) ou 'l' " +"(inférieur) attendu.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une matrice de chaîne de " +"caractères attendue.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une matrice d'entiers " +"attendue.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "%s : Valeur erronée de l'argument d'entrée n°%d : '%s' attendu.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une chaîne de caractères " +"attendue.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s : Valeurs erronées de l'argument d'entrée n°%d : Des chaînes de " +"caractères non vides attendues.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s : Impossible de lire l'argument d'entrée n°%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une matrice de réels ou une " +"matrice de chaîne de caractères attendue.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une chaîne de " +"caractères attendue.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une matrice de chaînes de " +"caractères attendue.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une chaîne de caractères " +"attendue.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s : Impossible d'obtenir les dimensions de cette matrice.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s : Type erroné du ou des argument(s) d'entrée.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s : Dimension erronée de l'argument d'entrée n°%d.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "" +"%s : Valeurs erronées de l'argument d'entrée n°%d : Doit être >= 1.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une chaîne de caractères " +"attendue.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "%s : Type erroné de l'argument d'entrée n°%d : '%s' attendu.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Un vecteur de chaînes de " +"caractères attendu.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : '%s' ou '%s' attendu.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : '%s' ou '%s' attendu.\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s : Dimension erronée du ou des argument(s) d'entrée.\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s : Erreur.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s : Dimension erronée de l'argument ou des argument(s) d'entrée.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une matrice de chaîne de " +"caractères ou une matrice réelle vide attendue.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Un caractère attendu.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : %s ou %s attendu.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s : Pas assez de mémoire disponible.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" +"%s : Dimension erronée des arguments d'entrée : Mêmes dimensions attendues.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Un caractère attendu.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une matrice de chaîne de " +"caractères ou une matrice vide attendue.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : Une chaîne de caractères " +"valide attendue (problème d'encodage UTF-8).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Un vecteur ligne de chaîne de " +"caractères ou un vecteur colonne de chaîne de caractères attendu.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une chaîne de caractère " +"non vide attendue.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s : Type erroné de l'argument d'entrée n°%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "%s : Type erroné de l'argument d'entrée n°%d : Un booléen attendu.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une matrice non vide " +"attendue.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une chaîne de " +"caractères attendue.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Un scalaire attendu.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : Une valeur entière " +"attendue.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : Une valeur > 0 attendue.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s : Nombre erroné d'arguments de sortie : %d attendus.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "%s : Valeur erronée de l'argument d'entrée n°%d.\n" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "" +"%s : Les éléments du %dième argument doivent être dans l'ordre croissant.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : Une chaîne de caractères " +"attendue, pas un modèle d'expression rationnelle.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une matrice non vide de " +"chaîne de caractères attendue.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : '.' ou ',' attendu.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Un caractère ou un vecteur de " +"caractères seuls attendu.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s : Les délimiteurs ne doivent pas être alphanumériques.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s : Capture d'une erreur concernant des sous-motifs.\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s : Correspondance partielle non supportée.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s : Contient des correspondances explicites avec CR ou LF.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s : Changement de statut des noms dupliqués.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s : Le compte retourné est trop grand pour la taille de décalage.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "%s : Limite de correspondance inutile pour la correspondance DFA.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s : Impossible de compiler le motif.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "" +"%s : Le texte correspondant dépasse la taille limite de la mémoire tampon.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s : La bibliothèque courante PCRE ne supporte pas l'UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s : Erreur inconnue.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "%s : Valeur erronée de l'argument d'entrée n°%d : $ attendu.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une fonction attendue.\n" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" +"%s : $ est la seule variable implicite supportée dans les indices " +"sélectionnés." + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s : Nombre erroné d'argument d'entrée : %d attendu.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée : Une chaîne de caractère attendue.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Une chaîne de " +"caractères attendue.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "%s : Argument d'entrée n°%d erroné : Dimension incohérente.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Un réel, un entier ou une " +"matrice de chaîne de caractères attendu.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "%s : Type erroné de l'argument d'entrée n°%d : Un entier attendu.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Un entier attendu.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : Un entier non-négatif " +"attendu.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s : Type erroné de l'argument d'entrée n°%d : Une matrice réelle ou " +"complexe, matrice de chaîne de caractères ou list attendue.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s : L'expression donnée n'a pas de valeur.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s : Cette fonctionnalité n'a pas été implémentée : %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s : Nombre erroné d'arguments d'entrée : %d attendus.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" +"%s : Valeur erronée de l'argument d'entrée n°%d : %s, %s ou %s attendu.\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" +"%s : Cette fonctionnalité n'a pas été implémentée : Traduction d'une " +"variable du type %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s : Dimension erronée de l'argument d'entrée n°%d : Un caractère ou un " +"vecteur de caractères attendu.\n" diff --git a/modules/string/locales/it_IT.po b/modules/string/locales/it_IT.po new file mode 100755 index 000000000..bb55acdce --- /dev/null +++ b/modules/string/locales/it_IT.po @@ -0,0 +1,501 @@ +# Italian translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2015-02-14 21:57+0000\n" +"Last-Translator: Carml <mighty.carml@gmail.com>\n" +"Language-Team: Italian <it@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: it\n" + +msgid "WARNING : \n" +msgstr "ATTENZIONE : \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: deve essere tra %d e " +"%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"di stringhe o una matrice di interi.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s: La caratteristica %s è obsoleta.\n" + +msgid "Warning" +msgstr "Attenzione" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "%s: Usare %s invece.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: Questa caratteristica verrà rimossa permanentemente in Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"reale.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Memoria esaurita.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Errore di allocazione della memoria.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"stringa.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso 'u' " +"(maiuscolo) o 'l' (minuscolo).\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"di stringhe.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"di interi.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso '%s' .\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una " +"stringa.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha dei valori sbagliati: erano attese delle " +"stringhe non-vuote.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: Impossibile leggere l'argomento in ingresso #%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"reale o una matrice di stringhe.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"singola stringa.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"di stringhe.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una " +"stringa.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: è impossibile ottenere le dimensioni di questa matrice.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: Gli argomenti in ingresso sono di tipo sbagliato.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: L'argomento in ingresso #%d ha una dimensione sbagliata.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha dei valori sbagliati: deve essere >=1.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una singola " +"stringa.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso '%s'.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso un vettore " +"di stringhe.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso '%s' o " +"'%s'.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso '%s' o " +"'%s'.\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s: Gli argomenti in ingresso hanno delle dimensioni sbagliate.\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: errore.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: Gli argomenti in ingresso hanno delle dimensioni sbagliate.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"di stringhe o una matrice reale vuota.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era atteso un " +"carattere.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era attesa %s o %s.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s: Memoria esaurita.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" +"%s: Gli argomenti in ingresso hanno una dimensione sbagliata: erano attese " +"le stesse dimensioni.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso un " +"carattere.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"di stringhe o una matrice vuota.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era attesa una " +"stringa valida (problema con la codifica UTF-8)\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso un vettore " +"riga di stringhe o un vettore colonna di stringhe.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"matrice non vuota.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: L'argomento in ingresso #%d è di tipo sbagliato.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso un valore " +"booleano.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"matrice non vuota.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"singola stringa.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era atteso uno " +"scalare.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso un " +"intero.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso un valore " +"> 0.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "" +"%s: Il numero degli argomenti in uscita è sbagliato: ne erano attesi %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "%s: L'argomento in ingresso #%d ha un valore sbagliato.\n" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "" +"%s: Gli elementi del %d° argomento devono essere in ordine crescente.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era attesa una " +"stringa, non uno schema regexp.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"matrice di stringhe non vuota.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso '.' o " +"','.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa un carattere " +"o un vettore di caratteri singoli.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: IL delimitatore deve essere alfanumerico.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: Cattura dell'errore dei sottoschemi in corso.\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: Non è supportata la corrispondenza parziale.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: Contiene una esplicita corrispondenza CR o LF.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: Cambia lo stato del nome duplicato.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "" +"%s: Il totale restituito è troppo grande per la dimensione dello offset.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "" +"%s: Il limite di corrispondenza non è rilevante per la corrispondenza DFA: " +"ignorato.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: Non è possibile compilare lo schema.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: Il test assortito eccede il limite del buffer.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: L'attuale libreria PCRE non supporta UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: Errore sconosciuto.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso $.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una " +"funzione.\n" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" +"%s: $ è l'unica variabile implicita supportata negli indici selezionati" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "" +"%s: Il numero degli argomenti in ingresso è sbagliato: ne erano attesi %d.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "" +"%s: L'argomento in ingresso è di tipo sbagliato: era attesa una stringa.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una " +"stringa di caratteri.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è sbagliato: dimensione non consistente.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"di reali, interi o stringhe.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso un intero.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era atteso un " +"intero.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha dei valori sbagliati: era atteso un " +"intero non-negativo.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice " +"reale o complessa, una matrice di stringhe di caratteri o una lista.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: L'espressione fornita non ha valore.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: La seguente caratteristica non è stata sviluppata: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" +"%s: Il numero degli argomenti in ingresso è sbagliato: ne erano attesi %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso %s, %s o " +"%s.\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" +"%s: Questa caratteristica non è stata sviluppata: traduzione di una " +"variabile di tipo %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso un carattere " +"o un vettore di caratteri.\n" diff --git a/modules/string/locales/ja_JP.po b/modules/string/locales/ja_JP.po new file mode 100755 index 000000000..d155a7c98 --- /dev/null +++ b/modules/string/locales/ja_JP.po @@ -0,0 +1,613 @@ +# Japanese translation for scilab +# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2013-09-21 06:05+0000\n" +"Last-Translator: Rui Hirokawa <Unknown>\n" +"Language-Team: Japanese <z-saito@guitar.ocn.ne.jp>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"X-Poedit-Country: Japan\n" +"Language: ja\n" +"X-Poedit-Language: Japanese\n" + +# +# File: sci_gateway/c/sci_ascii.c, line: 251 +msgid "WARNING : \n" +msgstr "警告: \n" + +# +# File: sci_gateway/c/sci_ascii.c, line: 252 +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "%s: 入力引数 #%d で不正な値: %d と %d の間でなければなりません。\n" + +# +# File: sci_gateway/c/sci_ascii.c, line: 323 +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 文字列の行列、または、整数行列を想定します。\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s: %s 機能は廃止されています.\n" + +msgid "Warning" +msgstr "警告" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "%s: 代わりに %s を使用してください.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: この機能は Scilab %s 以降廃止されます\n" +"\n" + +# +# File: sci_gateway/c/sci_code2str.c, line: 48 +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 実行列を想定します。\n" + +# +# File: sci_gateway/c/sci_code2str.c, line: 59 +# File: sci_gateway/c/sci_code2str.c, line: 73 +# File: sci_gateway/c/sci_convstr.c, line: 117 +# File: sci_gateway/c/sci_grep.c, line: 263 +# File: sci_gateway/c/sci_isascii.c, line: 102 +# File: sci_gateway/c/sci_part.c, line: 117 +# File: sci_gateway/c/sci_regexp.c, line: 168 +# File: sci_gateway/c/sci_str2code.c, line: 84 +# File: sci_gateway/c/sci_strcat.c, line: 128 +# File: sci_gateway/c/sci_strcat.c, line: 142 +# File: sci_gateway/c/sci_strcat.c, line: 150 +# File: sci_gateway/c/sci_strcat.c, line: 172 +# File: sci_gateway/c/sci_strcat.c, line: 190 +# File: sci_gateway/c/sci_strchr.c, line: 77 +# File: sci_gateway/c/sci_strncpy.c, line: 61 +# File: sci_gateway/c/sci_strncpy.c, line: 94 +# File: sci_gateway/c/sci_strncpy.c, line: 121 +# File: sci_gateway/c/sci_strrchr.c, line: 78 +# File: sci_gateway/c/sci_strrev.c, line: 55 +# File: sci_gateway/c/sci_strstr.c, line: 68 +# File: sci_gateway/c/sci_strstr.c, line: 104 +# File: sci_gateway/c/sci_strstr.c, line: 116 +# File: sci_gateway/c/sci_strtod.c, line: 51 +# File: sci_gateway/c/sci_strtod.c, line: 60 +# File: sci_gateway/c/sci_strtod.c, line: 77 +# File: src/c/pcre_error.c, line: 28 +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: これ以上メモリがありません。\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: メモリ確保エラー.\n" + +# +# File: sci_gateway/c/sci_convstr.c, line: 71 +# File: sci_gateway/c/sci_strindex.c, line: 141 +# File: sci_gateway/c/sci_strsubst.c, line: 97 +# File: sci_gateway/c/sci_strsubst.c, line: 107 +# File: sci_gateway/c/sci_strtok.c, line: 53 +# File: sci_gateway/c/sci_strtok.c, line: 73 +# File: sci_gateway/c/sci_tokens.c, line: 146 +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: 文字列を想定します。\n" + +# +# File: sci_gateway/c/sci_convstr.c, line: 65 +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 'u' (Upper) または 'l' (Lower) を想定します。\n" + +# +# File: sci_gateway/c/sci_convstr.c, line: 103 +# File: sci_gateway/c/sci_convstr.c, line: 109 +# File: sci_gateway/c/sci_str2code.c, line: 90 +# File: sci_gateway/c/sci_strchr.c, line: 92 +# File: sci_gateway/c/sci_strcmp.c, line: 126 +# File: sci_gateway/c/sci_strcmp.c, line: 130 +# File: sci_gateway/c/sci_strcspn.c, line: 83 +# File: sci_gateway/c/sci_strcspn.c, line: 87 +# File: sci_gateway/c/sci_strncpy.c, line: 152 +# File: sci_gateway/c/sci_strrchr.c, line: 93 +# File: sci_gateway/c/sci_strrev.c, line: 61 +# File: sci_gateway/c/sci_strsplit.c, line: 202 +# File: sci_gateway/c/sci_strspn.c, line: 82 +# File: sci_gateway/c/sci_strspn.c, line: 86 +# File: sci_gateway/c/sci_strstr.c, line: 144 +# File: sci_gateway/c/sci_strstr.c, line: 148 +# File: sci_gateway/c/sci_strsubst.c, line: 175 +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 文字列の行列を想定します。\n" + +# +# File: sci_gateway/c/sci_emptystr.c, line: 133 +# File: sci_gateway/c/sci_emptystr.c, line: 145 +# File: sci_gateway/c/sci_strncpy.c, line: 156 +# File: sci_gateway/c/sci_strsplit.c, line: 206 +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 整数の行列を想定します。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "%s: 入力引数 #%d の値が間違っています: ’%s’ を指定してください.\n" + +# +# File: sci_gateway/c/sci_grep.c, line: 93 +# File: sci_gateway/c/sci_isalphanum.c, line: 78 +# File: sci_gateway/c/sci_isdigit.c, line: 78 +# File: sci_gateway/c/sci_isletter.c, line: 78 +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 文字列を想定します。\n" + +# +# File: sci_gateway/c/sci_grep.c, line: 203 +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "%s: 入力引数 #%d で不正な値: 空でない文字列を想定します。\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: 入力引数 #%d を読み込めません.\n" + +# +# File: sci_gateway/c/sci_isascii.c, line: 43 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 実行列、または、文字列の行列を想定します。\n" + +# +# File: sci_gateway/c/sci_isalphanum.c, line: 47 +# File: sci_gateway/c/sci_isdigit.c, line: 47 +# File: sci_gateway/c/sci_isletter.c, line: 47 +# File: sci_gateway/c/sci_regexp.c, line: 91 +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: 単一の文字列を想定します。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "%s: 入力引数 #%d の型が間違っています: 文字列の行列を指定してください.\n" + +# +# File: sci_gateway/c/sci_convstr.c, line: 77 +# File: sci_gateway/c/sci_strcmp.c, line: 64 +# File: sci_gateway/c/sci_strindex.c, line: 269 +# File: sci_gateway/c/sci_strsubst.c, line: 77 +# File: sci_gateway/c/sci_strsubst.c, line: 81 +# File: sci_gateway/c/sci_strtok.c, line: 59 +# File: sci_gateway/c/sci_strtok.c, line: 80 +# File: sci_gateway/c/sci_tokens.c, line: 151 +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: 入力引数 #%d で、不正な型: 文字列を想定します。\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: この行列の次元を得ることは不可能です。\n" + +# +# File: sci_gateway/c/sci_length.c, line: 195 +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: 入力引数(s)で不正な型です。.\n" + +# +# File: sci_gateway/c/sci_part.c, line: 93 +# File: sci_gateway/c/sci_strcspn.c, line: 72 +# File: sci_gateway/c/sci_strncpy.c, line: 142 +# File: sci_gateway/c/sci_strspn.c, line: 71 +# File: sci_gateway/c/sci_strstr.c, line: 90 +# File: sci_gateway/c/sci_strstr.c, line: 135 +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: 入力引数 #%d で不正なサイズです。\n" + +# +# File: sci_gateway/c/sci_part.c, line: 106 +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "%s: 入力引数 #%d で不正な値: >= 1であるべきです。\n" + +# +# File: sci_gateway/c/sci_strcat.c, line: 226 +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 単一文字列を想定します。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: '%s' を想定します。\n" + +# +# File: sci_gateway/c/sci_convstr.c, line: 77 +# File: sci_gateway/c/sci_strcmp.c, line: 64 +# File: sci_gateway/c/sci_strindex.c, line: 269 +# File: sci_gateway/c/sci_strsubst.c, line: 77 +# File: sci_gateway/c/sci_strsubst.c, line: 81 +# File: sci_gateway/c/sci_strtok.c, line: 59 +# File: sci_gateway/c/sci_strtok.c, line: 80 +# File: sci_gateway/c/sci_tokens.c, line: 151 +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 文字列ベクトルを想定します。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: 入力引数 #%d の型が間違っています: '%s'または'%s'を指定してください.\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 94 +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: 入力引数 #%d で不正な値: '%s' または '%s' を想定します。\n" + +# +# File: sci_gateway/c/sci_strcat.c, line: 345 +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s: 入力引数(s)で不正なサイズです。\n" + +# +# File: src/c/pcre_error.c, line: 58 +#, c-format +msgid "%s: error.\n" +msgstr "%s: エラー\n" + +# +# File: sci_gateway/c/sci_strcat.c, line: 401 +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: 入力引数(s)で不正なサイズです。\n" + +# +# File: sci_gateway/c/sci_strcat.c, line: 434 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 文字列の行列、または、空の実行列を想定します。\n" + +# +# File: sci_gateway/c/sci_strchr.c, line: 57 +# File: sci_gateway/c/sci_strsubst.c, line: 129 +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: 文字列を想定します。\n" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 56 +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: %s または %s を想定します。\n" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 94 +# File: sci_gateway/c/sci_stripblanks.c, line: 98 +# File: sci_gateway/c/sci_stripblanks.c, line: 109 +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s: これ以上メモリがありません。\n" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 119 +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "%s: 入力引数で不正なサイズ: 小さいサイズを想定します。\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 66 +# File: sci_gateway/c/sci_strindex.c, line: 75 +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 文字列を想定します。\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 115 +# File: sci_gateway/c/sci_stripblanks.c, line: 76 +# File: sci_gateway/c/sci_stripblanks.c, line: 88 +# File: sci_gateway/c/sci_strsplit.c, line: 50 +# File: sci_gateway/c/sci_strsubst.c, line: 51 +# File: sci_gateway/c/sci_strtod.c, line: 111 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 文字列の行列、または、空行列を想定します。\n" + +# +# File: sci_gateway/c/sci_convstr.c, line: 71 +# File: sci_gateway/c/sci_strindex.c, line: 141 +# File: sci_gateway/c/sci_strsubst.c, line: 97 +# File: sci_gateway/c/sci_strsubst.c, line: 107 +# File: sci_gateway/c/sci_strtok.c, line: 53 +# File: sci_gateway/c/sci_strtok.c, line: 73 +# File: sci_gateway/c/sci_tokens.c, line: 146 +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "%s: 入力引数 #%d で不正な値: 適当な文字列を想定します(UTF-8 エンコーディング問題)\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 152 +# File: sci_gateway/c/sci_strindex.c, line: 273 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 文字列の行ベクトル、または、文字列の列ベクトルを想定します。\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 211 +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: 空でない文字列を想定します。\n" + +# +# File: sci_gateway/c/sci_string.c, line: 103 +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: 入力引数 #%d で不正な型です。\n" + +# +# File: sci_gateway/c/sci_stripblanks.c, line: 55 +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: ブーリアンを想定します。\n" + +# +# File: sci_gateway/c/sci_strncpy.c, line: 51 +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: 空でない行列を想定します。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "%s: 入力引数 #%d の大きさに誤りがあります: 文字列を指定してください.\n" + +# +# File: sci_gateway/c/sci_strchr.c, line: 57 +# File: sci_gateway/c/sci_strsubst.c, line: 129 +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: スカラーを想定します。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "%s: 入力引数 #%dの値が間違っています: 整数値を指定してください.\n" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 56 +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "%s: 入力引数 #%d で不正な値: 値 > 0 を想定します。\n" + +# File: macros/arobasestring2strings.sci, line: 23 +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s: 出力引数で不正な数: %d を想定します。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "%s: 入力引数 #%d の値が間違っています.\n" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "%s: %d 番目の引数要素は、増加順序でなくてはなりません。\n" + +# +# File: sci_gateway/c/sci_convstr.c, line: 71 +# File: sci_gateway/c/sci_strindex.c, line: 141 +# File: sci_gateway/c/sci_strsubst.c, line: 97 +# File: sci_gateway/c/sci_strsubst.c, line: 107 +# File: sci_gateway/c/sci_strtok.c, line: 53 +# File: sci_gateway/c/sci_strtok.c, line: 73 +# File: sci_gateway/c/sci_tokens.c, line: 146 +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: 文字列を想定します、regexp パターンではありません。\n" + +# +# File: sci_gateway/c/sci_strstr.c, line: 53 +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: 空でない行列、または、文字列を想定します。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "%s: 入力引数 #%d の値が間違っています: '.' または ',' を指定してください.\n" + +# +# File: sci_gateway/c/sci_tokens.c, line: 72 +# File: sci_gateway/c/sci_tokens.c, line: 82 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 文字列、または、単一文字列のベクトルを想定します。\n" + +# +# File: src/c/pcre_error.c, line: 31 +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: デリミターは英数字ではいけません。\n" + +# +# File: src/c/pcre_error.c, line: 34 +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: subpatterns エラーを捕捉します。\n" + +# +# File: src/c/pcre_error.c, line: 37 +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: 部分一致はサポートされません。\n" + +# +# File: src/c/pcre_error.c, line: 40 +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: 明確に CR または LF を含みます。\n" + +# +# File: src/c/pcre_error.c, line: 43 +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: 状態変更で名前が重複します。\n" + +# +# File: src/c/pcre_error.c, line: 46 +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s: オフセットサイズの戻りカウントが大きすぎます。\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "%s: DFA等価の等価限界が適切でありません、無視します。\n" + +# +# File: src/c/pcre_error.c, line: 52 +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: コンパイルできないパターンです。\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: 大量のテキストはバッファ限界を超えます。\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: 現在の PCRE ライブラリは、UTF-8をサポートしません。\n" + +# +# File: src/c/pcre_error.c, line: 58 +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: 未知のエラーです。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "%s: 入力引数 #%d の値が間違っています: $ を指定してください.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "%s: 入力引数 #%dの型が間違っています: 関数を指定してください.\n" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "%s: $ は選択された添字において唯一の暗黙的な変数です" + +# File: macros/arobasestring2strings.sci, line: 23 +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: 入力引数で不正な数: %d を想定します。\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "%s: 入力引数で不正な型: 文字列を想定します。\n" + +# +# File: macros/arobasestring2strings.sci, line: 37 +# File: macros/tokenpos.sci, line: 16 +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: 文字列を想定します。\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "%s: 入力引数 #%d が間違っています: 大きさが一致しません.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "%s: 入力引数 #%d の方が間違っています: 実数, 整数または文字列行列を指定してください.\n" + +# +# File: macros/blanks.sci, line: 17 +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 整数を想定します。\n" + +# +# File: macros/blanks.sci, line: 21 +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "%s: 出力引数 #%d で不正なサイズ: 整数を想定します。\n" + +# +# File: macros/blanks.sci, line: 29 +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "%s: 入力引数 #%d で不正な値: 負数でない整数を想定します。\n" + +# +# File: macros/evstr.sci, line: 45 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "%s: 入力引数 #%d で不正な型: 実、または、複素行列、文字列の行列、または、リストを想定します。\n" + +# +# File: macros/evstr.sci, line: 48 +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: 与えられた表現はいかなる値も持っていません。\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: この特徴は装備されていません。: %s\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: 入力引数の数が間違っています: %d 個の引数を指定してください.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "%s: 入力引数 #%d の値が間違っています: %s, %s または %s を指定してください.\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "%s: この特徴は装備されていません: 型 %s の翻訳変数\n" + +# +# File: macros/tokenpos.sci, line: 19 +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "%s: 入力引数 #%d で不正なサイズ: 文字列、または、文字ベクトルを想定します。\n" diff --git a/modules/string/locales/pl_PL.po b/modules/string/locales/pl_PL.po new file mode 100755 index 000000000..4dd8a9da8 --- /dev/null +++ b/modules/string/locales/pl_PL.po @@ -0,0 +1,475 @@ +# Polish translation for scilab +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-12-03 13:51+0000\n" +"Last-Translator: I.Rokach <Unknown>\n" +"Language-Team: Polish <pl@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: pl\n" + +msgid "WARNING : \n" +msgstr "Uwaga : \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" +"%s: Nieprawidłowa wartość argumentu wejściowego nr %d: musi być pomiędzy %d " +"i %d.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu nr %d: oczekiwana macierz ciągów lub macierz " +"liczb całkowitych.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" +"%s: Niewłaściwy typ argumentu wejściowego nr %d: oczekiwana macierz wartości " +"typu real.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Brak pamięci.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Błąd przedzielania pamięci\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: Niewłaściwy rozmiar parametru wejściowego nr %d: Oczekiwano ciągu " +"znaków.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s: Nieprawidłowa wartość argumentu wejściowego nr %d: Oczekiwano wartości " +"'u' (górnej) lub 'l' (dolnej)\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwana macierz ciągów " +"znaków.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwana macierz liczb " +"całkowitych.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: Nieprawidłowa wartość dla argumentu wejściowego #%d: oczekiwano '%s'\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwano łańcuch.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s: Nieprawidłowe wartości argumentu wejściowego nr %d: oczekiwany niepusty " +"ciąg znaków.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s: Niewłaściwy typ argumentu wejściowego nr %d: oczekiwana macierz wartości " +"real lub macierz ciągów znaków.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar dla argumentu wejściowego nr %d: oczekiwano " +"pojedynczego łańcuchu znaków.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwano łańcuch.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: nie można uzyskać wymiaru tej macierzy.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: Nieprawidłowy typ argumentu(ów) wejściowego(ych).\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Niewłaściwy rozmiar argumentu wejściowego nr %d.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "" +"%s: Nieprawidłowe wartości argumentu wejściowego nr %d: musi być >= 1.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwany jest " +"pojedynczy łańcuch.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "%s: Niewłaściwy typ argumentu wejściowego nr %d: '%s' oczekiwany.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: Oczekiwany wektor ciągów " +"znaków.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: Niewłaściwy typ argumentu wejściowego nr %d: oczekiwano '%s' lub '%s'.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: Nieprawidłowa wartość parametru wejściowego nr %d: oczekiwano '%s' lub " +"'%s'.\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s : Zły rozmiar argumentu(-ów) wejściowego(-ych).\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: Błąd.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: Nieprawidłowy rozmiar argumentu(ów) wejściowego(ych).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwana macierz ciągów " +"znaków lub macierz pusta typu real.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar dla argumentu wejściowego nr %d: Oczekiwano " +"znaku.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "" +"%s: Nieprawidłowa wartość argumentu wejściowego nr %d: oczekiwana %s lub " +"%s.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s : Brak pamięci.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar dla argumentów wejściowych: Oczekiwano tego samego " +"rozmiaru.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: Oczekiwany znak.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwana macierz ciągów " +"znaków lub macierz pusta.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s: Nieprawidłowa wartość argumentu wejściowego nr %d: Oczekiwana ważna " +"zmienna typu string (UTF-8 Problem z kodowaniem).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s: Niewłaściwy typ argumentu wejściowego nr %d: oczekiwany jest wektor " +"wierszowy ciągów znaków lub wektora kolumnowy ciągów znaków.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar dla argumentu wejściowego nr %d: oczekiwano " +"niepustego łańcuchu znaków.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: Nieprawidłowy typ dla argumentu wejściowego nr %d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "" +"%s: Nieprawidłowy typ parametru wejściowego nr %d: Oczekiwano wartości " +"logicznej.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar dla argumentu wejściowego nr %d: Oczekiwano nie " +"pustej macierzy.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar dla argumentu wejściowego #%d: Oczekiwano " +"skalaru.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "" +"%s: Nieprawidłowa wartość argumentu wejściowego nr %d: oczekiwana wartość > " +"0.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s: Nieprawidłowa liczba argumentów wyjściowych: oczekiwano %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "%s: Elementy argumentu numer %d muszą być uporządkowane rosnąco.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s: Nieprawidłowa wartość argumentu wejściowego nr %d: oczekiwano zmienną " +"typu string, nie wzór regexp.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar dla argumentu wejściowego nr %d: Oczekiwano nie " +"pustej macierzy łańcuchów znaków.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: oczekiwany znak lub " +"wektor pojedynczych znaków.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: Ograniczniki nie powinny być alfanumeryczne.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: Błąd przechwytywania subwzorców.\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: Częściowa zgodność nie jest wspierana.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: Zawiera wyrażenie matematyczne CR lub LF.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: Zduplikowana nazwa status zmieniony.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s: Zwrócona liczba jest zbyt duża dla wyrównania wielkości.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "" +"%s: Odpowiadający limit nie jest istotny dla dopasowanego DFA: ignorowany.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: Nie można skompilować wzoru.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: Odpowiadający tekst przekracza limit bufora.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: Biblioteka PCRE nie obsługuje UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: Nieznany błąd.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego %d: oczekiwano funkcji.\n" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: Nieprawidłowa liczba argumentów wejściowych: oczekiwano %d.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego: oczekiwany jest ciąg znaków.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar argumentu wejściowego nr %d: oczekiwany ciąg " +"znaków.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: Oczekiwana liczba " +"całkowita.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar dla argumentu wejściowego nr %d: oczekiwano liczby " +"całkowitej.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s: Nieprawidłowe wartości argumentu wejściowego nr %d: oczekiwana liczba " +"całkowita nieujemna.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s: Nieprawidłowy typ argumentu wejściowego nr %d: Oczekiwano rzeczywistych " +"lub zespolonych macierzy, Macierzy ciągu znaków lub listy.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: Podane wyrażenie nie posiada wartości.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: Funkcja ta nie została zrealizowana: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Nieprawidłowa liczba argumentów wejściowych: oczekiwano %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" +"%s: Niewłaściwa wartość parametru wejściowego nr %d: oczekiwano %s, %s lub " +"%s.\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" +"%s: Funkcja ta nie została zrealizowana: Zmienna typu tłumaczenia %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s: Nieprawidłowy rozmiar argumentu wejściowego nr %d: oczekiwany znak lub " +"wektor znaków.\n" diff --git a/modules/string/locales/pt_BR.po b/modules/string/locales/pt_BR.po new file mode 100755 index 000000000..5f5c091d9 --- /dev/null +++ b/modules/string/locales/pt_BR.po @@ -0,0 +1,484 @@ +# Brazilian Portuguese translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-10-02 12:52+0000\n" +"Last-Translator: Rafael Leandro <crf-rafa@live.com>\n" +"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: pt_BR\n" + +msgid "WARNING : \n" +msgstr "AVISO: \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: deve estar entre %d e " +"%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento #%d: esperava-se uma matriz de textos ou " +"de inteiros.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s: O recurso %s está obsoleto.\n" + +msgid "Warning" +msgstr "Aviso" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: Este recurso será removido permanentemente do Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma matriz " +"de números reais.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Memória esgotada.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Erro de alocação de memória.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um " +"texto.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se 'u' " +"(superior) ou 'l' (L - inferior).\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma matriz " +"de textos.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma matriz " +"de números inteiros.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se \"%s\".\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um texto.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s: Valores incorretos para o argumento de entrada #%d: esperava-se textos " +"não-vazios.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: Não foi possível ler o argumento de entrada #%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma matriz " +"de números reais ou uma de strings.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um único " +"texto.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um texto.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: impossível obter as dimensões desta matriz.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: Tipo errado para os argumentos de entrada.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Tamanho incorreto para o argumento de entrada #%d.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "" +"%s: Valores incorretos para o argumento de entrada #%d: devem ser >= 1.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um único " +"texto.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se '%s'.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um vetor de " +"textos.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se \"%s\" ou " +"\"%s\".\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se '%s' ou " +"'%s'.\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s : Tamanho incorreto para os argumentos de entrada.\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: erro.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: Tamanho incorreto para os argumentos de entrada.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma matriz " +"de textos ou matriz vazia de reais.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um " +"caractere.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se %s ou %s.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s : Memória esgotada.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" +"%s: Tamanho incorreto para os argumentos de entrada: esperava-se tamanhos " +"iguais.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um " +"caractere.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma matriz " +"de textos ou uma matriz vazia.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se um texto " +"válido (problema de codificação UTF-8).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um vetor " +"linha ou coluna de textos.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um texto " +"não-vazio.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: Tipo incorreto para o argumento de entrada #%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um " +"booleano.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se uma " +"matriz não vazia.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um único " +"texto.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um " +"escalar.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se um valor " +"inteiro.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se um valor > " +"0.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s: Quantidade incorreta de argumentos de saída: esperava-se %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "%s: Valor incorreto para o argumento de entrada #%d.\n" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "%s: Os elementos do argumento #%d devem estar em ordem crescente.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se um texto e " +"não um padrão de expressão regular.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se uma " +"matriz não-vazia de textos.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um caractere " +"ou um vetor de apenas caracteres.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: O delimitador não deve ser alfabético.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: Capturando erro de subpadrões.\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: Não há suporte para correspondência parcial.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: Contém correspondência CR ou LF explícita.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: O nome de status duplicado muda.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s: A contagem retornada é muito grande para o tamanho do offset.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "" +"%s: O limite de correspondência não é relevante para a correspondência DFA: " +"ignorado.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: Não é possível compilar o padrão.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: O texto coincidente excede o limite de buffer.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: A biblioteca PCRE atual não oferece suporte a UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: Erro desconhecido.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma função.\n" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: Quantidade incorreta de argumentos de entrada: esperava-se %d.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada: esperava-se um texto.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um " +"texto.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um número " +"inteiro.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um número " +"inteiro.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s: Valores incorretos para o argumento de entrada #%d: esperava-se números " +"inteiros não negativos.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma matriz " +"de números reais ou complexos, de textos, ou uma lista.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: A expressão fornecida não possui valor.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: Este recurso não foi implementado: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Quantidade incorreta de argumentos de entrada: esperava-se %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" +"%s: Valor incorreto para o argumento de entrada #%d: esperava-se %s, %s ou " +"%s.\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" +"%s: Este recurso não foi implementado: tradução de variável de tipo %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um " +"caractere ou um vetor de caracteres.\n" diff --git a/modules/string/locales/ru_RU.po b/modules/string/locales/ru_RU.po new file mode 100755 index 000000000..25609266b --- /dev/null +++ b/modules/string/locales/ru_RU.po @@ -0,0 +1,453 @@ +# Russian translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2015-03-12 14:52+0000\n" +"Last-Translator: Stanislav V. Kroter <krotersv@gmail.com>\n" +"Language-Team: Russian <ru@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: ru\n" + +msgid "WARNING : \n" +msgstr "ВНИМАНИЕ: \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: должно быть между %d и %d.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидалась матрица строк или целых " +"чисел.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s: Возможность %s является устаревшей.\n" + +msgid "Warning" +msgstr "Внимание" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "%s: Пожалуйста, используйте вместо этого %s.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: Эта возможность будет навсегда удалена в Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидалась матрица вещественных " +"чисел.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: Не осталось доступной памяти.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Ошибка выделения памяти.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: Неверный размер входного параметра №%d: ожидалась строка.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: ожидалось «u» (Upper) или «l» " +"(Lower).\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидалась матрица строк.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидалась матрица целых чисел.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "%s: Неверное значение входного параметра №%d: ожидалось «%s».\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидалась строка.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s: Неверные значения входного параметра №%d: ожидались непустые строки.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: Не могу прочитать входной аргумент №%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидалась матрица вещественных " +"чисел или строк.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s: Неверный размер входного параметра №%d: ожидалась одиночная строка.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" +"%s: Неверный тип входного аргумента №%d: Ожидалась матрица строковых " +"значений.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидалась строка.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: не удалось получить размерность этой матрицы.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: Неверный тип входных параметров.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: Неверный размер входного параметра №%d.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "%s: Неверные значения входного аргумента №%d: должны быть >= 1.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидалась одиночная строка.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидался «%s».\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидался вектор строк.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидался «%s» или «%s».\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: ожидалось «%s» или «%s».\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s: Неверный размер входных параметров.\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: ошибка.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: Неверные размеры входных аргументов.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидалась матрица строк или пустая " +"матрица вещественных чисел.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "%s: Неверный размер входного параметра №%d: ожидался символ.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "%s: Неверное значение входного параметра №%d: ожидалось %s или %s.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s: Не осталось доступной памяти.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" +"%s: Неверный размер входных параметров: ожидался одинаковый размер.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидался символ.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидалась матрица строк или пустая " +"матрица.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: ожидалась допустимая строка " +"(проблема кодировки UTF-8).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидался вектор-строка строк или " +"вектор-столбец строк.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s: Неверный размер входного параметра №%d: ожидалась непустая строка.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: Неверный тип входного параметра №%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидалось логическое значение.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s: Неверный размер входного параметра №%d: ожидалась непустая матрица.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" +"%s: Неверный размер входного аргумента №%d: ожидалась одиночная строка.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "%s: Неверный размер входного параметра №%d: ожидался скаляр.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" +"%s: Неверное значение входного аргумента №%d: ожидалось целочисленное " +"значение.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: ожидалось значение > 0.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s: Неверное количество выходных параметров: ожидалось %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "%s: Неверное значение входного аргумента №%d.\n" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "" +"%s: Элементы %d-го параметра должны располагаться в порядке возрастания.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: ожидалась строка, а не шаблон " +"регулярного выражения.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s: Неверный размер входного параметра №%d: ожидалась непустая матрица " +"строк.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" +"%s: Неверное значение входного аргумента №%d: ожидалось '.' или ','.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s: Неверный тип входного параметра №%d: ожидался символ или вектор " +"символов.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: Разделитель не может быть буквой или цифрой.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: Поймана ошибка под-шаблонов (subpatterns error).\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: Частичное сопоставление не поддерживается.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: Содержит совпадение оконечных CR или LF.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: Состояние повторяющегося имени изменяется.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "" +"%s: Возвращённый счётчик слишком велик чтобы быть величиной смещения.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "" +"%s: Предел совпадений не учитывается при DFA-сравнении (на конечных " +"автоматах): проигнорирован.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: Не удалось откомпилировать шаблон.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: Совпавший текст превосходит ограничение буфера.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: Текущая библиотека PCRE не поддерживает UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: Неизвестная ошибка.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "%s: Неверное значение входного аргумента №%d: ожидался $.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "%s: Неверный тип входного аргумента №%d: ожидалась функция.\n" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" +"%s: $ - единственная неявная переменная, поддерживаемая в выбранных индексах" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: Неверное количество входных параметров: ожидалось %d.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "%s: Неверный тип входного параметра: ожидалась строка.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s: Неверный размер входного параметра №%d: ожидалась символьная строка.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "%s: Неверный входной аргумент №%d: Несовместимый размер.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" +"%s: Неверный тип входного аргумента №%d: Ожидалась матрица вещественных, " +"целочисленных или строковых значений.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "%s: Неверный тип входного параметра №%d: ожидалось целое число.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "%s: Неверный размер входного параметра №%d: ожидалось целое число.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: ожидалось неотрицательное " +"целое число.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s: Неверный тип входного параметра 3%d: ожидалась матрица вещественных или " +"комплексных чисел, матрица символьных строк или список.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: Данное выражение не имеет значения.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: Следующая функциональность не реализована: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s: Неверное количество входных параметров: ожидалось %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" +"%s: Неверное значение входного параметра №%d: ожидалось %s, %s или %s.\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" +"%s: Следующая функциональность ещё не реализована: преобразование переменной " +"типа %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s: Неверный размер входного параметра №%d: ожидался символ или вектор " +"символов.\n" diff --git a/modules/string/locales/string.pot b/modules/string/locales/string.pot new file mode 100755 index 000000000..a2c63446a --- /dev/null +++ b/modules/string/locales/string.pot @@ -0,0 +1,730 @@ +# Localization of the module string +# Please see in SCI/tools/localization for localization management +# Copyright (C) 2007-2008 - INRIA +# Copyright (C) 2008-2011 - DIGITEO +# Copyright (C) 2012-2014 - Scilab-Enterprises +# This file is distributed under the same license as the Scilab package. +# +msgid "" +msgstr "" +"Project-Id-Version: Scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"Last-Translator: Vincent COUVERT <vincent.couvert@scilab-enterprises.com>\n" +"Language-Team: Scilab Localization <localization@lists.scilab.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Revision-Date: 2015-03-27 13:54+0100\n" + +# File: sci_gateway/c/sci_ascii.c, line: 171 +msgid "WARNING : \n" +msgstr "" + +# +# File: sci_gateway/c/sci_ascii.c, line: 172 +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_ascii.c, line: 250 +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_code2str.c, line: 46 +# File: sci_gateway/c/sci_isnum.c, line: 40 +# File: sci_gateway/c/sci_str2code.c, line: 37 +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_code2str.c, line: 46 +# File: sci_gateway/c/sci_code2str.c, line: 47 +# File: sci_gateway/c/sci_code2str.c, line: 48 +# File: sci_gateway/c/sci_isnum.c, line: 40 +# File: sci_gateway/c/sci_isnum.c, line: 41 +# File: sci_gateway/c/sci_isnum.c, line: 42 +# File: sci_gateway/c/sci_str2code.c, line: 37 +# File: sci_gateway/c/sci_str2code.c, line: 38 +# File: sci_gateway/c/sci_str2code.c, line: 39 +msgid "Warning" +msgstr "" + +# +# File: sci_gateway/c/sci_code2str.c, line: 47 +# File: sci_gateway/c/sci_isnum.c, line: 41 +# File: sci_gateway/c/sci_str2code.c, line: 38 +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_code2str.c, line: 48 +# File: sci_gateway/c/sci_isnum.c, line: 42 +# File: sci_gateway/c/sci_str2code.c, line: 39 +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +# +# File: sci_gateway/c/sci_code2str.c, line: 60 +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_code2str.c, line: 71 +# File: sci_gateway/c/sci_code2str.c, line: 88 +# File: sci_gateway/c/sci_convstr.c, line: 124 +# File: sci_gateway/c/sci_grep.c, line: 322 +# File: sci_gateway/c/sci_isnum.c, line: 66 +# File: sci_gateway/c/sci_isnum.c, line: 76 +# File: sci_gateway/c/sci_length.c, line: 147 +# File: sci_gateway/c/sci_length.c, line: 165 +# File: sci_gateway/c/sci_length.c, line: 177 +# File: sci_gateway/c/sci_length.c, line: 202 +# File: sci_gateway/c/sci_length.c, line: 321 +# File: sci_gateway/c/sci_length.c, line: 444 +# File: sci_gateway/c/sci_length.c, line: 486 +# File: sci_gateway/c/sci_part.c, line: 114 +# File: sci_gateway/c/sci_regexp.c, line: 268 +# File: sci_gateway/c/sci_regexp.c, line: 306 +# File: sci_gateway/c/sci_str2code.c, line: 100 +# File: sci_gateway/c/sci_strcat.c, line: 182 +# File: sci_gateway/c/sci_strcat.c, line: 203 +# File: sci_gateway/c/sci_strcat.c, line: 233 +# File: sci_gateway/c/sci_strcat.c, line: 245 +# File: sci_gateway/c/sci_strcat.c, line: 266 +# File: sci_gateway/c/sci_strcat.c, line: 283 +# File: sci_gateway/c/sci_strchr.c, line: 88 +# File: sci_gateway/c/sci_strindex.c, line: 291 +# File: sci_gateway/c/sci_string.c, line: 61 +# File: sci_gateway/c/sci_strncpy.c, line: 64 +# File: sci_gateway/c/sci_strncpy.c, line: 113 +# File: sci_gateway/c/sci_strncpy.c, line: 155 +# File: sci_gateway/c/sci_strrev.c, line: 55 +# File: sci_gateway/c/sci_strsplit.c, line: 88 +# File: sci_gateway/c/sci_strsplit.c, line: 164 +# File: sci_gateway/c/sci_strsplit.c, line: 235 +# File: sci_gateway/c/sci_strstr.c, line: 70 +# File: sci_gateway/c/sci_strstr.c, line: 95 +# File: sci_gateway/c/sci_strstr.c, line: 110 +# File: sci_gateway/c/sci_strstr.c, line: 122 +# File: sci_gateway/c/sci_strtod.c, line: 146 +# File: sci_gateway/c/sci_strtod.c, line: 274 +# File: src/c/pcre_error.c, line: 29 +#, c-format +msgid "%s: No more memory.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_convstr.c, line: 62 +# File: sci_gateway/c/sci_convstr.c, line: 92 +# File: sci_gateway/c/sci_convstr.c, line: 151 +# File: sci_gateway/c/sci_isalphanum.c, line: 59 +# File: sci_gateway/c/sci_isalphanum.c, line: 78 +# File: sci_gateway/c/sci_isascii.c, line: 102 +# File: sci_gateway/c/sci_isascii.c, line: 133 +# File: sci_gateway/c/sci_isascii.c, line: 169 +# File: sci_gateway/c/sci_isascii.c, line: 204 +# File: sci_gateway/c/sci_isascii.c, line: 229 +# File: sci_gateway/c/sci_isascii.c, line: 264 +# File: sci_gateway/c/sci_isdigit.c, line: 58 +# File: sci_gateway/c/sci_isdigit.c, line: 77 +# File: sci_gateway/c/sci_length.c, line: 280 +# File: sci_gateway/c/sci_length.c, line: 332 +# File: sci_gateway/c/sci_length.c, line: 455 +# File: sci_gateway/c/sci_length.c, line: 497 +# File: sci_gateway/c/sci_strchr.c, line: 98 +# File: sci_gateway/c/sci_strchr.c, line: 152 +# File: sci_gateway/c/sci_strsplit.c, line: 186 +# File: sci_gateway/c/sci_strsplit.c, line: 208 +# File: sci_gateway/c/sci_strsubst.c, line: 71 +# File: sci_gateway/c/sci_strsubst.c, line: 221 +# File: sci_gateway/c/sci_strtod.c, line: 155 +# File: sci_gateway/c/sci_strtod.c, line: 304 +# File: sci_gateway/c/sci_tokens.c, line: 98 +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_convstr.c, line: 84 +# File: sci_gateway/c/sci_isalphanum.c, line: 48 +# File: sci_gateway/c/sci_isdigit.c, line: 47 +# File: sci_gateway/c/sci_strindex.c, line: 144 +# File: sci_gateway/c/sci_strtok.c, line: 52 +# File: sci_gateway/c/sci_strtok.c, line: 72 +# File: sci_gateway/c/sci_tokens.c, line: 149 +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_convstr.c, line: 99 +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_convstr.c, line: 109 +# File: sci_gateway/c/sci_convstr.c, line: 116 +# File: sci_gateway/c/sci_str2code.c, line: 106 +# File: sci_gateway/c/sci_strcmp.c, line: 129 +# File: sci_gateway/c/sci_strcmp.c, line: 133 +# File: sci_gateway/c/sci_strcspn.c, line: 116 +# File: sci_gateway/c/sci_strcspn.c, line: 120 +# File: sci_gateway/c/sci_strncpy.c, line: 184 +# File: sci_gateway/c/sci_strrev.c, line: 61 +# File: sci_gateway/c/sci_strspn.c, line: 114 +# File: sci_gateway/c/sci_strspn.c, line: 118 +# File: sci_gateway/c/sci_strstr.c, line: 151 +# File: sci_gateway/c/sci_strstr.c, line: 155 +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_emptystr.c, line: 169 +# File: sci_gateway/c/sci_emptystr.c, line: 173 +# File: sci_gateway/c/sci_strncpy.c, line: 188 +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_grep.c, line: 93 +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_grep.c, line: 99 +# File: sci_gateway/c/sci_isletter.c, line: 96 +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_grep.c, line: 247 +#, c-format +msgid "%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_isalphanum.c, line: 42 +# File: sci_gateway/c/sci_isascii.c, line: 45 +# File: sci_gateway/c/sci_isascii.c, line: 53 +# File: sci_gateway/c/sci_isascii.c, line: 81 +# File: sci_gateway/c/sci_isascii.c, line: 94 +# File: sci_gateway/c/sci_isascii.c, line: 162 +# File: sci_gateway/c/sci_isascii.c, line: 184 +# File: sci_gateway/c/sci_isascii.c, line: 220 +# File: sci_gateway/c/sci_isdigit.c, line: 41 +# File: sci_gateway/c/sci_strchr.c, line: 122 +# File: sci_gateway/c/sci_strchr.c, line: 131 +# File: sci_gateway/c/sci_string.c, line: 42 +# File: sci_gateway/c/sci_string.c, line: 50 +# File: sci_gateway/c/sci_strsplit.c, line: 40 +# File: sci_gateway/c/sci_strsplit.c, line: 76 +# File: sci_gateway/c/sci_strsplit.c, line: 115 +# File: sci_gateway/c/sci_strsplit.c, line: 153 +# File: sci_gateway/c/sci_strsubst.c, line: 54 +# File: sci_gateway/c/sci_strsubst.c, line: 90 +# File: sci_gateway/c/sci_strsubst.c, line: 108 +# File: sci_gateway/c/sci_strsubst.c, line: 137 +# File: sci_gateway/c/sci_strsubst.c, line: 151 +# File: sci_gateway/c/sci_strsubst.c, line: 165 +# File: sci_gateway/c/sci_strsubst.c, line: 174 +# File: sci_gateway/c/sci_strsubst.c, line: 184 +# File: sci_gateway/c/sci_strtod.c, line: 60 +# File: sci_gateway/c/sci_strtod.c, line: 90 +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_isascii.c, line: 67 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_isletter.c, line: 49 +# File: sci_gateway/c/sci_regexp.c, line: 85 +# File: sci_gateway/c/sci_regexp.c, line: 105 +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_isnum.c, line: 55 +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_length.c, line: 132 +# File: sci_gateway/c/sci_strchr.c, line: 138 +# File: sci_gateway/c/sci_strcmp.c, line: 66 +# File: sci_gateway/c/sci_strindex.c, line: 381 +# File: sci_gateway/c/sci_strsubst.c, line: 96 +# File: sci_gateway/c/sci_strsubst.c, line: 143 +# File: sci_gateway/c/sci_strsubst.c, line: 157 +# File: sci_gateway/c/sci_strtok.c, line: 58 +# File: sci_gateway/c/sci_strtok.c, line: 79 +# File: sci_gateway/c/sci_tokens.c, line: 154 +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_length.c, line: 140 +# File: sci_gateway/c/sci_length.c, line: 157 +# File: sci_gateway/c/sci_length.c, line: 189 +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_length.c, line: 295 +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "" + +# +# File: sci_gateway/c/sci_part.c, line: 90 +# File: sci_gateway/c/sci_strcspn.c, line: 105 +# File: sci_gateway/c/sci_strncpy.c, line: 174 +# File: sci_gateway/c/sci_strsplit.c, line: 145 +# File: sci_gateway/c/sci_strspn.c, line: 103 +# File: sci_gateway/c/sci_strstr.c, line: 142 +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_part.c, line: 103 +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_regexp.c, line: 78 +# File: sci_gateway/c/sci_regexp.c, line: 98 +# File: sci_gateway/c/sci_strcat.c, line: 330 +# File: sci_gateway/c/sci_strtod.c, line: 65 +# File: sci_gateway/c/sci_strtod.c, line: 70 +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_regexp.c, line: 145 +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcat.c, line: 86 +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcat.c, line: 128 +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcat.c, line: 309 +# File: sci_gateway/c/sci_strindex.c, line: 93 +# File: sci_gateway/c/sci_strsubst.c, line: 128 +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcat.c, line: 453 +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcat.c, line: 495 +# File: sci_gateway/c/sci_strsplit.c, line: 214 +#, c-format +msgid "%s: error.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcat.c, line: 534 +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcat.c, line: 568 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strchr.c, line: 77 +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 55 +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 96 +# File: sci_gateway/c/sci_stripblanks.c, line: 103 +# File: sci_gateway/c/sci_stripblanks.c, line: 114 +#, c-format +msgid "%s : No more memory.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 122 +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strindex.c, line: 65 +# File: sci_gateway/c/sci_strindex.c, line: 74 +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strindex.c, line: 114 +# File: sci_gateway/c/sci_stripblanks.c, line: 75 +# File: sci_gateway/c/sci_stripblanks.c, line: 87 +# File: sci_gateway/c/sci_strsubst.c, line: 60 +# File: sci_gateway/c/sci_strtod.c, line: 121 +# File: sci_gateway/c/sci_strtod.c, line: 133 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strindex.c, line: 154 +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strindex.c, line: 165 +# File: sci_gateway/c/sci_strindex.c, line: 385 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strindex.c, line: 320 +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_string.c, line: 155 +# File: sci_gateway/c/sci_strsplit.c, line: 264 +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_stripblanks.c, line: 54 +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strncpy.c, line: 54 +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strsplit.c, line: 62 +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strsplit.c, line: 82 +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strsplit.c, line: 95 +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strsplit.c, line: 101 +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strsplit.c, line: 131 +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strsplit.c, line: 137 +# File: sci_gateway/c/sci_strsplit.c, line: 196 +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strsplit.c, line: 202 +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strsplit.c, line: 252 +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strstr.c, line: 55 +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strtod.c, line: 76 +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_tokens.c, line: 74 +# File: sci_gateway/c/sci_tokens.c, line: 86 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 32 +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 35 +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 38 +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 41 +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 44 +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 47 +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 50 +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 53 +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 56 +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 59 +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "" + +# +# File: src/c/pcre_error.c, line: 62 +#, c-format +msgid "%s: Unknown error.\n" +msgstr "" + +# File: macros/%ip_part.sci, line: 28 +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" + +# +# File: macros/%mc_string.sci, line: 18 +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" + +# +# File: macros/%p_part.sci, line: 18 +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" + +# +# File: macros/arobasestring2strings.sci, line: 23 +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "" + +# +# File: macros/arobasestring2strings.sci, line: 31 +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "" + +# +# File: macros/arobasestring2strings.sci, line: 37 +# File: macros/tokenpos.sci, line: 16 +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" + +# +# File: macros/asciimat.sci, line: 27 +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "" + +# +# File: macros/asciimat.sci, line: 40 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" + +# +# File: macros/blanks.sci, line: 17 +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "" + +# +# File: macros/blanks.sci, line: 21 +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "" + +# +# File: macros/blanks.sci, line: 29 +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" + +# +# File: macros/evstr.sci, line: 76 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" + +# +# File: macros/evstr.sci, line: 79 +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "" + +# +# File: macros/expression2code.sci, line: 349 +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "" + +# +# File: macros/justify.sci, line: 20 +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +# +# File: macros/justify.sci, line: 40 +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" + +# +# File: macros/sci2exp.sci, line: 95 +# File: macros/sci2exp.sci, line: 815 +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" + +# +# File: macros/tokenpos.sci, line: 19 +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" diff --git a/modules/string/locales/uk_UA.po b/modules/string/locales/uk_UA.po new file mode 100755 index 000000000..d83c2067a --- /dev/null +++ b/modules/string/locales/uk_UA.po @@ -0,0 +1,496 @@ +# Ukrainian translation for scilab +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the scilab package. +# +# FIRST AUTHOR <EMAIL@ADDRESS>, 2010. +# Yuri Chornoivan <yurchor@gmail.com>, 2010. +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2013-09-15 07:00+0000\n" +"Last-Translator: Yuri Chornoivan <yurchor@gmail.com>\n" +"Language-Team: Ukrainian <translation@linux.org.ua>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: uk\n" + +msgid "WARNING : \n" +msgstr "Попередження: \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати значення " +"між %d та %d.\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "" +"%s: помилковий тип параметра №%d: слід використовувати матрицю з рядків або " +"цілих чисел.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s: можливість %s є застарілою.\n" + +msgid "Warning" +msgstr "Попередження" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "%s: будь ласка, скористайтеся %s.\n" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s: цю можливість буде остаточно вилучено з Scilab %s\n" +"\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "" +"#%s: помилковий тип вхідного параметра №%d: слід використовувати матрицю " +"дійсних значень.\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: доступну пам’ять вичерпано.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: помилка виділення пам’яті.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "" +"%s: помилковий розмір вхідного параметра №%d: слід використовувати рядок.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "" +"%s: Помилкове значення вхідного параметра №%d: слід використовувати «u» " +"(верхня) або «l» (нижня).\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати матрицю з " +"рядків.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати матрицю " +"цілих чисел.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати «%s».\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати тип " +"«string».\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "" +"%s: помилкові значення вхідного параметра №%d: слід використовувати " +"непорожні рядки.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s: не вдалося прочитати вхідний параметр №%d.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати матрицю з " +"дійсних чисел або рядків.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "" +"%s: помилковий розмір вхідного параметра №%d: слід використовувати одинарний " +"рядок.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати матрицю з " +"рядків.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати тип " +"«string».\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s: неможливо отримати розмірність цієї матриці.\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: помилковий тип вхідних параметрів.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: помилкова розмірність вхідного параметра №%d.\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "" +"%s: помилкові значення вхідного параметра №%d: мало бути значення >=1.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати одинарне " +"значення типу «string».\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати «%s».\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати тип вектора " +"з рядків.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати «%s» або " +"«%s».\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати «%s» або " +"«%s».\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s: помилкова розмірність вхідних параметрів.\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: помилка.\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: помилкова розмірність вхідних параметрів.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати матрицю з " +"рядків або порожню матрицю дійсних чисел.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "" +"%s: помилкова розмірність вхідного параметра №%d: слід використовувати " +"символ.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати %s або " +"%s.\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s: доступну пам’ять вичерпано.\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "" +"%s: помилкові розмірності вхідних параметрів: розмірності мали бути " +"однаковими.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати символ.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати матрицю з " +"рядків або порожню матрицю.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати коректні " +"рядки (проблема з кодуванням UTF-8).\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати вектор-рядок " +"або вектор-стовпчик з рядків.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "" +"%s: помилковий розмір вхідного параметра №%d: слід використовувати " +"непорожній рядок.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: помилковий тип вхідного параметра №%d.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати тип " +"«boolean».\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "" +"%s: помилковий розмір вхідного параметра №%d: слід використовувати непорожню " +"матрицю.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" +"%s: помилковий розмір вхідного параметра №%d: слід використовувати одинарний " +"рядок.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "" +"%s: помилкова розмірність вхідного параметра №%d: слід використовувати " +"дійсне число.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати ціле " +"значення.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати значення " +"> 0.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "" +"%s: помилкова кількість вихідних параметрів: слід використовувати %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "%s: помилкове значення вхідного параметра №%d.\n" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "%s: елементи параметра %d слід вказувати за зростанням.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати рядок, а " +"не шаблон формального виразу.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "" +"%s: помилковий розмір вхідного параметра №%d: слід використовувати непорожню " +"матрицю з рядків.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: мало бути вказано «.» або " +"«,».\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати символ або " +"вектор окремих символів.\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: роздільник має бути літерою або цифрою.\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: помилка під час визначення підшаблонів.\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: встановлення часткової відповідності не передбачено.\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: містить явний відповідник CR або LF.\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: зміна стану повтору назв.\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s: повернуте значення є занадто великим для відступу.\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "" +"%s: під час порівняння DFA (на скінченних автоматах) обмеження відповідності " +"не враховується: проігноровано.\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: не вдалося обробити шаблон.\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "" +"%s: розміри відповідного фрагмента тексту перевищують розміри буфера.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: поточна версія бібліотеки PCRE не підтримує символів UTF-8.\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: невідома помилка.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" +"%s:помилкове значення вхідного параметра №%d: мало бути використано $.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: мало бути вказано функцію.\n" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" +"%s: $ є єдиною неявною змінною, підтримку якої передбачено для позначених " +"індексів" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: помилкова кількість вхідних параметрів: мало бути %d.\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра: слід використовувати тип «string».\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "" +"%s: помилкова розмірність вхідного параметра №%d: слід використовувати рядок " +"з символів.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "%s: помилковий вхідний параметр №%d: несумісність розмірів.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: мало бути вказано матрицю з " +"дійсних чи цілих чисел або рядків.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "%s: помилковий тип вхідного параметра №%d: мало бути ціле число.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "" +"%s: помилкова розмірність вхідного параметра №%d: мало бути ціле число.\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "" +"%s: помилкові значення вхідного параметра №%d: слід було вказувати " +"невід’ємне ціле число.\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "" +"%s: помилковий тип вхідного параметра №%d: слід використовувати матрицю з " +"дійсних або комплексних значень, матрицю з рядків символів або список.\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: вказаний вираз не має значення.\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: цю можливість не реалізовано: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" +"%s: помилкова кількість вхідних параметрів: слід використовувати %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" +"%s: помилкове значення вхідного параметра №%d: слід використовувати %s, %s " +"або %s.\n" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "" +"%s: цю можливість ще не реалізовано: перетворення змінної, що належить до " +"типу %s.\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "" +"%s: помилкова розмірність вхідного параметра №%d: слід використовувати " +"символ або вектор символів.\n" diff --git a/modules/string/locales/zh_CN.po b/modules/string/locales/zh_CN.po new file mode 100755 index 000000000..167f444b5 --- /dev/null +++ b/modules/string/locales/zh_CN.po @@ -0,0 +1,397 @@ +# Simplified Chinese translation for scilab +# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008 +# This file is distributed under the same license as the scilab package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2012-07-31 13:51+0000\n" +"Last-Translator: Scilab.team <Unknown>\n" +"Language-Team: Simplified Chinese <zh_CN@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: \n" + +msgid "WARNING : \n" +msgstr "警告: \n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "%s:输入参数#%d的值错误:必须介于%d与%d之间。\n" + +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为字符串矩阵或者整数矩阵。\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "%s:特性%s已废弃。\n" + +msgid "Warning" +msgstr "警告" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" +"%s:此特性将在Scilab %s中被永久移除。\n" +"\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为实数矩阵。\n" + +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: 内存不足。\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s:内存分配错误。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为字符串。\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "%s:输入参数#%d的值错误:应该为'u'(大写)或'l'(小写)。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为字符串矩阵。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为整数矩阵。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "%s:第%d个输入参数的值错误:应该为‘%s’。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为字符串。\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "%s:输入参数#%d的值错误:应该为非空字符串。\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "%s:不能读取第%d个输入参数。\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为实数矩阵或字符串矩阵。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为一个字符串。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为一个字符串。\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s:无法得到这个矩阵的维数。\n" + +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s:输入参数的类型错误。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s:输入参数#%d的大小错误。\n" + +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "%s:输入参数#%d的值错误:必须 >=1。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为一个字符串。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为'%s'。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为一个字符串向量。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s:第%d个输入参数的类型错误:应该为‘%s’或‘%s’。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s:输入参数#%d的值错误:应该为'%s'或'%s'。\n" + +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s:输入参数的大小错误。\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s:错误。\n" + +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s:输入参数的大小错误。\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为字符串矩阵或者空实数矩阵。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为一个字符。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "%s:输入参数#%d的值错误:应该为 %s 或 %s 。\n" + +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s:无更多内存。\n" + +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "%s:输入参数的大小错误:应该为同样大小。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为字符。\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为字符串矩阵或空矩阵。\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为字符串行向量或字符串列向量。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为非空字符串。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s:输入参数#%d的类型错误。\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为一个布尔值。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为非空矩阵。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "%s:第%d个输入参数的大小出错:应该为单字符串(即不是字符串矩阵)。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为一个标量。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "%s:第%d个输入参数的值错误:应该为整数。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "%s:输入参数#%d的值错误:应该为一个大于0的值。\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s:输出参数的数目错误:应该为%d个。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "%s:第%d个输入参数的值错误。\n" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "%s:第%d个参数的元素必须是升序的。\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "%s:输入参数#%d的值错误:应该为一个字符串,而不是一个regexp模式。\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为非空字符串矩阵。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为一个字符或单字符的向量。\n" + +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s:定界符必须为字母。\n" + +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s:捕获子模式(subpatterns)出错。\n" + +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s:不支持部分匹配。\n" + +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s:包含显示的CR或LF匹配。\n" + +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s:重复的名字状态改变。\n" + +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s:返回的数目值太大而不适合作为偏移量。\n" + +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "%s:匹配限制跟DFA匹配无关:忽略。\n" + +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s:不能编译模式。\n" + +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s:已匹配的文本超出了缓存限制。\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s:目前的PCRE库不支持UTF-8。\n" + +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s:未知错误。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" + +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s:第一个输入参数值错误:应该为%d。\n" + +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "%s:输入参数的类型错误:应该为字符串。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为一个字符的字符串。\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为一个整数。\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为一个整数。\n" + +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "%s:输入参数#%d的值错误:应该为一个非负整数。\n" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "%s:输入参数#%d的类型错误:应该为实数或附属矩阵、字符串矩阵或者列表。\n" + +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s:指定的表达式没有值。\n" + +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s:该功能尚未实现:%s\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "%s:输入参数的数目错误,应该为%d个。\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "%s:该功能尚未实现:类型为%s的变量转换。\n" + +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "%s:输入参数#%d的大小错误:应该为一个字符或一个字符向量。\n" diff --git a/modules/string/locales/zh_TW.po b/modules/string/locales/zh_TW.po new file mode 100755 index 000000000..1c83a19e5 --- /dev/null +++ b/modules/string/locales/zh_TW.po @@ -0,0 +1,580 @@ +msgid "" +msgstr "" +"Project-Id-Version: Scilab\n" +"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n" +"POT-Creation-Date: 2013-04-16 17:44+0100\n" +"PO-Revision-Date: 2011-09-01 09:43+0000\n" +"Last-Translator: tim loo <timloo0710@gmail.com>\n" +"Language-Team: Traditional Chinese <zh_TW@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Launchpad (build 17413)\n" +"Language: \n" +"Revision-Date: 2011-04-04 22:09+0100\n" + +# +# File: sci_gateway/c/sci_ascii.c, line: 256 +msgid "WARNING : \n" +msgstr "警告 : \n" + +# +# File: sci_gateway/c/sci_ascii.c, line: 257 +#, c-format +msgid "%s: Wrong value for input argument #%d: Must be between %d and %d.\n" +msgstr "%s: 第 %d 個輸入參數數值錯誤: 應介於 %d 及 %d 之間.\n" + +# +# File: sci_gateway/c/sci_ascii.c, line: 328 +#, c-format +msgid "" +"%s: Wrong type for argument #%d: Matrix of strings or Integer matrix " +"expected.\n" +msgstr "%s: Wrong type for argument #%d: 應為字串矩陣或整數矩陣.\n" + +#, c-format +msgid "%s: Feature %s is obsolete.\n" +msgstr "" + +msgid "Warning" +msgstr "" + +#, c-format +msgid "%s: Please use %s instead.\n" +msgstr "" + +#, c-format +msgid "" +"%s: This feature will be permanently removed in Scilab %s\n" +"\n" +msgstr "" + +# +# File: sci_gateway/c/sci_code2str.c, line: 49 +#, c-format +msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為實數矩陣.\n" + +# +# File: src/c/pcre_error.c, line: 28 +# File: sci_gateway/c/sci_strcat.c, line: 128 +# File: sci_gateway/c/sci_strcat.c, line: 142 +# File: sci_gateway/c/sci_strcat.c, line: 166 +# File: sci_gateway/c/sci_strcat.c, line: 184 +# File: sci_gateway/c/sci_strstr.c, line: 69 +# File: sci_gateway/c/sci_strstr.c, line: 105 +# File: sci_gateway/c/sci_strstr.c, line: 117 +# File: sci_gateway/c/sci_strncpy.c, line: 62 +# File: sci_gateway/c/sci_strncpy.c, line: 95 +# File: sci_gateway/c/sci_strncpy.c, line: 122 +# File: sci_gateway/c/sci_strchr.c, line: 78 +# File: sci_gateway/c/sci_part.c, line: 124 +# File: sci_gateway/c/sci_part.c, line: 135 +# File: sci_gateway/c/sci_strtod.c, line: 52 +# File: sci_gateway/c/sci_strtod.c, line: 61 +# File: sci_gateway/c/sci_strtod.c, line: 78 +# File: sci_gateway/c/sci_isascii.c, line: 103 +# File: sci_gateway/c/sci_str2code.c, line: 85 +# File: sci_gateway/c/sci_code2str.c, line: 60 +# File: sci_gateway/c/sci_code2str.c, line: 74 +# File: sci_gateway/c/sci_strrev.c, line: 56 +# File: sci_gateway/c/sci_strrchr.c, line: 79 +# File: sci_gateway/c/sci_grep.c, line: 264 +# File: sci_gateway/c/sci_convstr.c, line: 118 +#, c-format +msgid "%s: No more memory.\n" +msgstr "%s: 記憶體耗盡.\n" + +#, c-format +msgid "%s: Memory allocation error.\n" +msgstr "%s: Memory 分配有誤.\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 144 +# File: sci_gateway/c/sci_tokens.c, line: 147 +# File: sci_gateway/c/sci_strtok.c, line: 54 +# File: sci_gateway/c/sci_strtok.c, line: 74 +# File: sci_gateway/c/sci_strsubst.c, line: 98 +# File: sci_gateway/c/sci_strsubst.c, line: 108 +# File: sci_gateway/c/sci_convstr.c, line: 72 +#, c-format +msgid "%s: Wrong size for input argument #%d: A string expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為一字串.\n" + +# +# File: sci_gateway/c/sci_convstr.c, line: 66 +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) " +"expected.\n" +msgstr "%s: 第 %d 個輸入參數數值錯誤: 應為 'u' (Upper) 或 'l' (Lower) .\n" + +# +# File: sci_gateway/c/sci_strstr.c, line: 145 +# File: sci_gateway/c/sci_strstr.c, line: 149 +# File: sci_gateway/c/sci_strncpy.c, line: 153 +# File: sci_gateway/c/sci_strchr.c, line: 93 +# File: sci_gateway/c/sci_strcmp.c, line: 127 +# File: sci_gateway/c/sci_strcmp.c, line: 131 +# File: sci_gateway/c/sci_strsplit.c, line: 205 +# File: sci_gateway/c/sci_str2code.c, line: 91 +# File: sci_gateway/c/sci_strrev.c, line: 62 +# File: sci_gateway/c/sci_strrchr.c, line: 94 +# File: sci_gateway/c/sci_strspn.c, line: 83 +# File: sci_gateway/c/sci_strspn.c, line: 87 +# File: sci_gateway/c/sci_strsubst.c, line: 176 +# File: sci_gateway/c/sci_strcspn.c, line: 84 +# File: sci_gateway/c/sci_strcspn.c, line: 88 +# File: sci_gateway/c/sci_convstr.c, line: 104 +# File: sci_gateway/c/sci_convstr.c, line: 110 +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為字串矩陣.\n" + +# +# File: sci_gateway/c/sci_strncpy.c, line: 157 +# File: sci_gateway/c/sci_strsplit.c, line: 209 +# File: sci_gateway/c/sci_emptystr.c, line: 135 +# File: sci_gateway/c/sci_emptystr.c, line: 147 +#, c-format +msgid "%s: Wrong type for input argument #%d: Matrix of integers expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為整數矩陣.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_isalphanum.c, line: 79 +# File: sci_gateway/c/sci_isletter.c, line: 79 +# File: sci_gateway/c/sci_isdigit.c, line: 79 +# File: sci_gateway/c/sci_grep.c, line: 94 +#, c-format +msgid "%s: Wrong type for input argument #%d: String expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為字串.\n" + +# +# File: sci_gateway/c/sci_grep.c, line: 204 +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: Non-empty strings expected.\n" +msgstr "%s: Wrong values for input argument #%d: 應為非空字串.\n" + +#, c-format +msgid "%s: Can not read input argument #%d.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_isascii.c, line: 44 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real matrix or matrix of strings " +"expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為實數矩陣或字串矩陣.\n" + +# +# File: sci_gateway/c/sci_isalphanum.c, line: 48 +# File: sci_gateway/c/sci_regexp.c, line: 98 +# File: sci_gateway/c/sci_isletter.c, line: 48 +# File: sci_gateway/c/sci_isdigit.c, line: 48 +#, c-format +msgid "%s: Wrong size for input argument #%d: Single string expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為字串.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: A matrix of string expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_strindex.c, line: 268 +# File: sci_gateway/c/sci_tokens.c, line: 152 +# File: sci_gateway/c/sci_strcmp.c, line: 65 +# File: sci_gateway/c/sci_strtok.c, line: 60 +# File: sci_gateway/c/sci_strtok.c, line: 81 +# File: sci_gateway/c/sci_strsubst.c, line: 78 +# File: sci_gateway/c/sci_strsubst.c, line: 82 +# File: sci_gateway/c/sci_convstr.c, line: 78 +#, c-format +msgid "%s: Wrong type for input argument #%d: A string expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為一字串.\n" + +#, c-format +msgid "%s: impossible to get dimensions of this matrix.\n" +msgstr "%s:無法取得矩陣的維度.\n" + +# +# File: sci_gateway/c/sci_length.c, line: 209 +#, c-format +msgid "%s: Wrong type for input argument(s).\n" +msgstr "%s: 輸入參數型態錯誤.\n" + +# +# File: sci_gateway/c/sci_strstr.c, line: 91 +# File: sci_gateway/c/sci_strstr.c, line: 136 +# File: sci_gateway/c/sci_strncpy.c, line: 143 +# File: sci_gateway/c/sci_part.c, line: 96 +# File: sci_gateway/c/sci_strspn.c, line: 72 +# File: sci_gateway/c/sci_strcspn.c, line: 73 +#, c-format +msgid "%s: Wrong size for input argument #%d.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤.\n" + +# +# File: sci_gateway/c/sci_part.c, line: 109 +#, c-format +msgid "%s: Wrong values for input argument #%d: Must be >= 1.\n" +msgstr "%s: Wrong values for input argument #%d: 應 >= 1.\n" + +# +# File: sci_gateway/c/sci_strcat.c, line: 220 +#, c-format +msgid "%s: Wrong type for input argument #%d: Single string expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為字串.\n" + +# +# File: macros/tree2code.sci, line: 21 +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為 '%s'.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a string vector expected.\n" +msgstr "%s: 輸入參數型別錯誤#%d: 字串向量才對.\n" + +#, c-format +msgid "%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n" +msgstr "%s: 第 %d 個輸入參數數值錯誤: 應為'%s' 或 '%s'\n" + +# +# File: sci_gateway/c/sci_strcat.c, line: 346 +#, c-format +msgid "%s : Wrong size for input argument(s).\n" +msgstr "%s : 輸入參數長度錯誤.\n" + +#, c-format +msgid "%s: error.\n" +msgstr "%s: 錯誤.\n" + +# +# File: sci_gateway/c/sci_strcat.c, line: 413 +#, c-format +msgid "%s: Wrong size for input argument(s).\n" +msgstr "%s: 輸入參數長度錯誤.\n" + +# +# File: sci_gateway/c/sci_strcat.c, line: 446 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty real " +"matrix expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為字串矩陣或空矩陣.\n" + +# +# File: sci_gateway/c/sci_strchr.c, line: 58 +# File: sci_gateway/c/sci_strsubst.c, line: 130 +#, c-format +msgid "%s: Wrong size for input argument #%d: A character expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為字元.\n" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 57 +#, c-format +msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n" +msgstr "%s: 第 %d 個輸入參數數值錯誤: 應為 %s 或 %s.\n" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 95 +# File: sci_gateway/c/sci_stripblanks.c, line: 94 +# File: sci_gateway/c/sci_stripblanks.c, line: 105 +#, c-format +msgid "%s : No more memory.\n" +msgstr "%s : 記憶體耗盡.\n" + +# +# File: sci_gateway/c/sci_strcmp.c, line: 120 +#, c-format +msgid "%s: Wrong size for input arguments: Same sizes expected.\n" +msgstr "%s: 輸入參數長度錯誤: 應為相同大小.\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 69 +# File: sci_gateway/c/sci_strindex.c, line: 78 +#, c-format +msgid "%s: Wrong type for input argument #%d: Character expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為字元.\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 118 +# File: sci_gateway/c/sci_strtod.c, line: 112 +# File: sci_gateway/c/sci_strsplit.c, line: 53 +# File: sci_gateway/c/sci_strsubst.c, line: 52 +# File: sci_gateway/c/sci_stripblanks.c, line: 84 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Matrix of strings or empty matrix " +"expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為字串矩陣或空矩陣.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: A valid string expected (UTF-8 " +"Encoding problem).\n" +msgstr "%s: 輸入參數數值錯誤#%d : 有效的字串才對(UTF-8 Encoding 問題).\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 155 +# File: sci_gateway/c/sci_strindex.c, line: 272 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Row vector of strings or column " +"vector of strings expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為字串之行向量或字串之列向量.\n" + +# +# File: sci_gateway/c/sci_strindex.c, line: 210 +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty string expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為非空字串.\n" + +# +# File: sci_gateway/c/sci_string.c, line: 88 +#, c-format +msgid "%s: Wrong type for input argument #%d.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤.\n" + +# +# File: sci_gateway/c/sci_stripblanks.c, line: 56 +#, c-format +msgid "%s: Wrong type for input argument #%d: A boolean expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為布林數(boolean).\n" + +# +# File: sci_gateway/c/sci_strncpy.c, line: 52 +#, c-format +msgid "%s: Wrong size for input argument #%d: Non-empty matrix expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為非空矩陣.\n" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A single string expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong size for input argument #%d: A scalar expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為純量.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: An integer value expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: A value > 0 expected.\n" +msgstr "%s: 輸入參數數值錯誤#%d : 值> 0 才對.\n" + +#, c-format +msgid "%s: Wrong number of output arguments: %d expected.\n" +msgstr "%s: 輸出參數之數目錯誤: 應為 %d.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d.\n" +msgstr "" + +#, c-format +msgid "%s: Elements of %dth argument must be in increasing order.\n" +msgstr "%s: 第%dth個參數的元素必須是遞增.\n" + +#, c-format +msgid "" +"%s: Wrong value for input argument #%d: a string expected, not a regexp " +"pattern.\n" +msgstr "%s: 輸入參數值有誤#%d:字串才對.不是正規表達示的樣式.\n" + +# +# File: sci_gateway/c/sci_strstr.c, line: 54 +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: Non-empty matrix of strings " +"expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為非空矩陣或字串.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: '.' or ',' expected.\n" +msgstr "" + +# +# File: sci_gateway/c/sci_tokens.c, line: 73 +# File: sci_gateway/c/sci_tokens.c, line: 83 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A character or a vector of single " +"characters expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為一字元或單一字元之向量.\n" + +# +# File: src/c/pcre_error.c, line: 31 +#, c-format +msgid "%s: Delimiter must not be alphameric.\n" +msgstr "%s: 字母或數字不可作為定界符號.\n" + +# +# File: src/c/pcre_error.c, line: 34 +#, c-format +msgid "%s: Capturing subpatterns error.\n" +msgstr "%s: 捕捉到次樣式 (subpatterns)之錯誤.\n" + +# +# File: src/c/pcre_error.c, line: 37 +#, c-format +msgid "%s: Partial matching not supported.\n" +msgstr "%s: 未支持部分比對.\n" + +# +# File: src/c/pcre_error.c, line: 40 +#, c-format +msgid "%s: Contains explicit CR or LF match.\n" +msgstr "%s: 包含 CR 或 LR 之明示 (explicit) 比對.\n" + +# +# File: src/c/pcre_error.c, line: 43 +#, c-format +msgid "%s: Duplicate name status changes.\n" +msgstr "%s: 名稱重複之狀況已改變.\n" + +# +# File: src/c/pcre_error.c, line: 46 +#, c-format +msgid "%s: Returned count is too big for offset size.\n" +msgstr "%s: 傳回之 count 數值過大無法用於 offset.\n" + +# +# File: src/c/pcre_error.c, line: 49 +#, c-format +msgid "%s: Match limit not relevant for DFA matching: ignored.\n" +msgstr "%s: 匹配之限制與 DFA 無關: 忽略.\n" + +# +# File: src/c/pcre_error.c, line: 52 +#, c-format +msgid "%s: Can not compile pattern.\n" +msgstr "%s: 無法編譯樣式 (pattern).\n" + +# +# File: src/c/pcre_error.c, line: 55 +#, c-format +msgid "%s: Matched text exceeds buffer limit.\n" +msgstr "%s: 匹配之文字超過暫存區容量限制.\n" + +#, c-format +msgid "%s: Current PCRE library does not support UTF-8.\n" +msgstr "%s: 目前 PCRE 程式庫並不支援 UTF-8.\n" + +# +# File: src/c/pcre_error.c, line: 58 +#, c-format +msgid "%s: Unknown error.\n" +msgstr "%s: 未知錯誤.\n" + +#, c-format +msgid "%s: Wrong value for input argument #%d: $ expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong type for input argument #%d: a function expected.\n" +msgstr "" + +#, c-format +msgid "%s: $ is the only implicit variable supported in selected indices" +msgstr "" + +# +# File: macros/arobasestring2strings.sci, line: 23 +#, c-format +msgid "%s: Wrong number of input argument: %d expected.\n" +msgstr "%s: 輸入參數之數目錯誤: 應為 %d.\n" + +# +# File: macros/arobasestring2strings.sci, line: 31 +#, c-format +msgid "%s: Wrong type for input argument: String expected.\n" +msgstr "%s: 輸入參數型態錯誤: 應為字串.\n" + +# File: macros/tokenpos.sci, line: 16 +# File: macros/arobasestring2strings.sci, line: 37 +#, c-format +msgid "%s: Wrong size for input argument #%d: A character string expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為字串.\n" + +#, c-format +msgid "%s: Wrong input argument #%d: Inconsistent size.\n" +msgstr "" + +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: A Real, Integer or String matrix " +"expected.\n" +msgstr "" + +# +# File: macros/blanks.sci, line: 17 +#, c-format +msgid "%s: Wrong type for input argument #%d: An integer expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為一整數.\n" + +# +# File: macros/blanks.sci, line: 21 +#, c-format +msgid "%s: Wrong size for input argument #%d: An integer expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為一整數.\n" + +# +# File: macros/blanks.sci, line: 29 +#, c-format +msgid "" +"%s: Wrong values for input argument #%d: An non-negative integer expected.\n" +msgstr "%s: Wrong values for input argument #%d: 應為一非負整數.\n" + +# +# File: macros/evstr.sci, line: 45 +#, c-format +msgid "" +"%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of " +"character strings or list expected.\n" +msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為實數或複數矩陣, 應為字串矩陣 或 list.\n" + +# +# File: macros/evstr.sci, line: 48 +#, c-format +msgid "%s: Given expression has no value.\n" +msgstr "%s: 給定之算式無值.\n" + +# +# File: macros/expression2code.sci, line: 324 +#, c-format +msgid "%s: This feature has not been implemented: %s.\n" +msgstr "%s: 此特性尚未實作: %s.\n" + +#, c-format +msgid "%s: Wrong number of input arguments: %d expected.\n" +msgstr "" + +#, c-format +msgid "%s: Wrong value for input argument #%d: %s, %s or %s expected.\n" +msgstr "" + +# +# File: macros/sci2exp.sci, line: 93 +#, c-format +msgid "" +"%s: This feature has not been implemented: Variable translation of type %s.\n" +msgstr "%s: 此特性尚未實作: 型態 %s 之變數轉換.\n" + +# +# File: macros/tokenpos.sci, line: 19 +#, c-format +msgid "" +"%s: Wrong size for input argument #%d: A character or vector of characters " +"expected.\n" +msgstr "%s: 第 %d 個輸入參數長度錯誤: 應為一字元或字元向量.\n" diff --git a/modules/string/macros/%_strsplit.bin b/modules/string/macros/%_strsplit.bin Binary files differnew file mode 100755 index 000000000..cf8e08694 --- /dev/null +++ b/modules/string/macros/%_strsplit.bin diff --git a/modules/string/macros/%_strsplit.sci b/modules/string/macros/%_strsplit.sci new file mode 100755 index 000000000..b8d5f86a2 --- /dev/null +++ b/modules/string/macros/%_strsplit.sci @@ -0,0 +1,137 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) DIGITEO - 2009-2010 - Allan CORNET +// +// 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 + +function [strs, matched_separators] = %_strsplit(varargin) + + //====== private macros ================== + function out_str = replace_regexp_char(in_str) + out_str = strsubst(in_str, "\", "\\"); + out_str = strsubst(out_str, "/", "\/"); + out_str = strsubst(out_str, "|", "\|"); + out_str = strsubst(out_str, ".", "\."); + out_str = strsubst(out_str, "$", "\$"); + out_str = strsubst(out_str, "[", "\["); + out_str = strsubst(out_str, "]", "\]"); + out_str = strsubst(out_str, "(", "\("); + out_str = strsubst(out_str, ")", "\)"); + out_str = strsubst(out_str, "{", "\{"); + out_str = strsubst(out_str, "}", "\}"); + out_str = strsubst(out_str, "^", "\^"); + out_str = strsubst(out_str, "?", "\?"); + out_str = strsubst(out_str, "*", "\*"); + out_str = strsubst(out_str, "+", "\+"); + out_str = strsubst(out_str, "-", "\-"); + endfunction + //======================================== + function bOK = isPattern(str) + bOK = %f; + lenstr = length(str); + if lenstr > 1 then + bOK = ((part(str, 1) == "/") & (part(str, lenstr) == "/")); + end + endfunction + //======================================== + function regexp_pattern = createPattern(StringsInput) + dims_StringsInput = size(StringsInput,"*"); + if (dims_StringsInput == 1) then + if ~isPattern(StringsInput) then + regexp_pattern = "/" + replace_regexp_char(StringsInput) + "/"; + else + regexp_pattern = StringsInput; + end + else + regexp_pattern = ""; + for i = 1:dims_StringsInput + if (i == 1) then + regexp_pattern = replace_regexp_char(StringsInput(i)); + else + regexp_pattern = regexp_pattern + "|" + replace_regexp_char(StringsInput(i)); + end + end + regexp_pattern = "/" + regexp_pattern + "/"; + end + endfunction + //======================================== + matched_separators = []; + strs = []; + + [lhs, rhs] = argn(0); + + // input types are checked in strsplit primitive + if (rhs == 1) then + len = length(varargin(1)); + if len == 0 then + strs = ""; + else + len = length(varargin(1)); + if len > 1 then + strs = strsplit( varargin(1), 1:len - 1 ); + else + strs = varargin(1); + end + end + if (lhs == 2) then + dims_strs = size(strs); + matched_separators = emptystr(dims_strs(1), dims_strs(2)); + end + else + + strsplit_limit = -1; // no limit + if (rhs == 3) then + strsplit_limit = varargin(3); + end + + if varargin(2) == "" then + [strs, matched_separators] = strsplit(varargin(1)); + else + strsplit_pattern = createPattern(varargin(2)); + + [start_regexp, end_regexp, match_regexp] = regexp(varargin(1), strsplit_pattern); + if (start_regexp <> []) then + if (end_regexp($) == length(varargin(1))) then + end_regexp($) = end_regexp($) - 1; + end + + len = length(varargin(1)); + if len > 1 then + strs = strsplit(varargin(1), end_regexp); + strs = strsubst(strs, strsplit_pattern, "", "r"); + matched_separators = match_regexp; + else + strs = varargin(1); + matched_separators = []; + end + else + strs = varargin(1); + matched_separators = []; + end + end + + if (strsplit_limit > 0) then + dim_strs = size(strs,"*"); + if (strsplit_limit >= dim_strs) then + strsplit_limit = dim_strs; + else + strsremain = strs(strsplit_limit + 1 : $); + dim_strsremain = size(strsremain,"*"); + strslimited = strs(1:strsplit_limit); + + foundedremain = matched_separators(strsplit_limit + 1 : $); + foundedremain($ + 1: dim_strsremain) = ""; + matched_separators = matched_separators(1:strsplit_limit); + + str = strsremain + foundedremain; + strs = [strslimited ; strcat(str)]; + end + end + end + //======================================== + +endfunction + diff --git a/modules/string/macros/%ip_part.bin b/modules/string/macros/%ip_part.bin Binary files differnew file mode 100755 index 000000000..c0efa34f5 --- /dev/null +++ b/modules/string/macros/%ip_part.bin diff --git a/modules/string/macros/%ip_part.sci b/modules/string/macros/%ip_part.sci new file mode 100755 index 000000000..f8c2d97af --- /dev/null +++ b/modules/string/macros/%ip_part.sci @@ -0,0 +1,40 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) - 2013 - Samuel GOUGEON +// +// 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 + +function r = %ip_part(txt, s) + // Allows calls such as: part(txt, $:-1:1) // (== strrev() ) + // Calls with unranging $ are not supported => define %p_part() + // txt may be a matrix of texts with different lengths + // => $ might not have the same value for all of them + function b = checkip(p) + b = checkvar(p(1)) & checkvar(p(2)) & checkvar(p(3)); + endfunction + + function b = checkvar(p) + b = %t; + if typeof(p) == "polynomial" & varn(p) ~= "$" then + b = %f; + end + endfunction + + //check s + if ~checkip(s) then + msg = _("%s: Wrong value for input argument #%d: $ expected.\n"); + error(msprintf(msg,"part",2)) + end + + L = length(txt) + U = unique(L) + r = emptystr(txt) + for u = U(:)' + j = 1:u + k = find(L==u) + r(k) = part(txt(k), j(s)) + end +endfunction diff --git a/modules/string/macros/%mc_string.bin b/modules/string/macros/%mc_string.bin Binary files differnew file mode 100755 index 000000000..a7e403a51 --- /dev/null +++ b/modules/string/macros/%mc_string.bin diff --git a/modules/string/macros/%mc_string.sci b/modules/string/macros/%mc_string.sci new file mode 100755 index 000000000..a1896eaab --- /dev/null +++ b/modules/string/macros/%mc_string.sci @@ -0,0 +1,46 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) DIGITEO - 2011 - Allan CORNET +// Copyright (C) INRIA - 2011 - Serge STEER +// +// 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 + +function [vars_out, vars_in, fun_text] = %mc_string(pfunc) + + vars_out = []; + vars_in = []; + fun_text = []; + + if type(pfunc) <> 13 then + error(999, msprintf(gettext("%s: Wrong type for input argument #%d: a function expected.\n"), "string", 1)); + end + + //fun2string referenced to make its subfunctions known there + prot = funcprot(); + funcprot(0); + fun2string = fun2string; + funcprot(prot); + //get the function pseudo code + lst = mmodlst(macr2lst(pfunc)); + + //get the input and output variable names + vars_in = lst(3); + vars_out = lst(2); + + //re-generate the source code from pseudo-code (see fun2string) + lcount = 1; + level = [0, 0]; + quote = "''"; + dquote = """"; + CR = "\" + ascii(10); + opstable(); + sciexp = 0; + crp = ins2sci(lst, 4); + fun_text = crp(1:$-2); + if fun_text(1) == "" then fun_text(1) = " ", end + if fun_text($) == "" then fun_text($) = " ", end + +endfunction diff --git a/modules/string/macros/%p_part.bin b/modules/string/macros/%p_part.bin Binary files differnew file mode 100755 index 000000000..911838d7f --- /dev/null +++ b/modules/string/macros/%p_part.bin diff --git a/modules/string/macros/%p_part.sci b/modules/string/macros/%p_part.sci new file mode 100755 index 000000000..1930c3e5f --- /dev/null +++ b/modules/string/macros/%p_part.sci @@ -0,0 +1,29 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) - 2013 - Samuel GOUGEON +// +// 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 + +function r = %p_part(txt, s) + // Allows calls such as: part(txt, [ 2 $ 3:4 $-1]) + // with un-ranging implicit size $ standing for length(txt) + // Calls with ranging $ (ex: 3:$ ) are implemented with %ip_part() + // + // txt may be a matrix of texts with different lengths + // => $ might have not the same value for all elements of txt. + if varn(s)~="$" then + msg = _("%s: $ is the only implicit variable supported in selected indices") + error(msprintf(msg,"part")) + end + L = length(txt) + U = unique(L) + r = emptystr(txt) + for u = U(:)' + j = 1:u + k = find(L==u) + r(k) = part(txt(k), horner(s(:)',u)) + end +endfunction diff --git a/modules/string/macros/%plist_string.bin b/modules/string/macros/%plist_string.bin Binary files differnew file mode 100755 index 000000000..906221720 --- /dev/null +++ b/modules/string/macros/%plist_string.bin diff --git a/modules/string/macros/%plist_string.sci b/modules/string/macros/%plist_string.sci new file mode 100755 index 000000000..fa1f7d815 --- /dev/null +++ b/modules/string/macros/%plist_string.sci @@ -0,0 +1,46 @@ +// Copyright (C) 2010 - DIGITEO - Michael Baudin +// +// 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 + +// +// %plist_string -- +// Returns the string containing the parameters list. +// +function str = %plist_string ( this ) + + // In case there is a function field + prot = funcprot() + funcprot(0) + + fieldmat = getfield(1, this); + nf = size(fieldmat, "*") - 1; + str = emptystr(nf+3, 1); // Allocating the result + str(1) = sprintf("Parameters list:"); // Headers + str(2) = sprintf("================"); + str(3) = sprintf("Number of fields = %d", nf); + + k = 3; // Start printing after headers + for i = 1 : nf + key = fieldmat(i+1); + value = getfield(i+1, this); + if ( or ( typeof(value) == ["constant" "boolean" "string" ] ) ) then + k = k + 1; + if ( size(value, "*") == 1 ) then + str(k) = sprintf("%s = %s (""%s"")", key , string(value) , typeof(value) ); + else + siz = size(value); + str(k) = sprintf("%s = ""%s"" %dx%d ", key , typeof(value) , siz(1), siz(2) ); + end + else + k = k + 1; + str(k) = sprintf("%s = ""%s""", key , typeof(value) ); + end + end + + funcprot(prot) + +endfunction diff --git a/modules/string/macros/arobasestring2strings.bin b/modules/string/macros/arobasestring2strings.bin Binary files differnew file mode 100755 index 000000000..ae77b6ffa --- /dev/null +++ b/modules/string/macros/arobasestring2strings.bin diff --git a/modules/string/macros/arobasestring2strings.sci b/modules/string/macros/arobasestring2strings.sci new file mode 100755 index 000000000..62794e9b4 --- /dev/null +++ b/modules/string/macros/arobasestring2strings.sci @@ -0,0 +1,61 @@ +//========================================================================== +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - Jean-baptiste SILVY +// +// 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 + +// Desc : Convert the string format defined by jpc into matrix of strings +//========================================================================== + + +function [strings] = arobasestring2strings( varargin ) + + // call : arobasestring2strings( string ) + + [lhs,rhs] = argn(0) ; + + // check number of arguments + if ( rhs ~= 1 ) then + error(msprintf(gettext("%s: Wrong number of input argument: %d expected.\n"),"arobasestring2strings",1)); + return ; + end + + cText = varargin(1) ; + + // check type + if ( type(cText) ~= 10 ) then + error(msprintf(gettext("%s: Wrong type for input argument: String expected.\n"),"arobasestring2strings")); + return ; + end + + // check the size + if ( size( cText ) <> 1 ) then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A character string expected.\n"),"arobasestring2strings",1)); + return ; + end + + // in the text, each line is separated by a '@' character + // in the resulting matrix, each line is put on a line + // of the matrix + + // positions of @ in + arobPos = strindex( cText, "@" ) ; + + nbArob = size( arobPos ) ; + nbArob = nbArob(2); + + // add the last character + arobPos( nbArob + 1 ) = length( cText ) + 1 ; + + // get the first string + strings(1) = part( cText, [1:arobPos(1)-1] ) ; + + for i = 1 : nbArob + strings( i + 1 ) = part( cText, [ arobPos(i) + 1 : arobPos(i+1) - 1 ] ) ; + end + +endfunction diff --git a/modules/string/macros/ascii2string.bin b/modules/string/macros/ascii2string.bin Binary files differnew file mode 100755 index 000000000..435fe9ef5 --- /dev/null +++ b/modules/string/macros/ascii2string.bin diff --git a/modules/string/macros/ascii2string.sci b/modules/string/macros/ascii2string.sci new file mode 100755 index 000000000..328276199 --- /dev/null +++ b/modules/string/macros/ascii2string.sci @@ -0,0 +1,18 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA +// +// 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 + + +function ww=ascii2string(w1) + //converts a numeric (real or integer) matrix made of ascii codes + //into a one column scilab string matrix and conversely. + ww=[]; + for k=1:size(w1,1) + ww=[ww;ascii(w1(k,:))]; + end +endfunction diff --git a/modules/string/macros/asciimat.bin b/modules/string/macros/asciimat.bin Binary files differnew file mode 100755 index 000000000..e8fbb3393 --- /dev/null +++ b/modules/string/macros/asciimat.bin diff --git a/modules/string/macros/asciimat.sci b/modules/string/macros/asciimat.sci new file mode 100755 index 000000000..ebfc0a771 --- /dev/null +++ b/modules/string/macros/asciimat.sci @@ -0,0 +1,60 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ???? - INRIA - Scilab +// +// 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 + +function y=asciimat(x) + // This function converts a matrix of string into a matrix of ascii codes using ascii() Scilab function + // and converts an array of ascii codes into a array of string + // Returned value have same size as input value instead of second dims ! + // Fonction created because ascii() Scilab function returns a row vector + if size(size(x),"*")<=2 then + if type(x)==10 then + if x==[] then + y=[] + return + else + ytemp=[]; + for i=1:size(x,1) + ytemp=[ytemp ascii(x(i,:))] + end + nbcol= size(ytemp,"*")*size(x,2)/size(x,"*") + if nbcol-floor(nbcol)<>0 then + error(msprintf(gettext("%s: Wrong input argument #%d: Inconsistent size.\n"),"asciimat", 1)); + end + y=[] + for i=1:size(x,1) + y=[y ;ytemp(1+(i-1)*nbcol:i*nbcol)] + end + end + elseif type(x)==1 | type(x)==8 then + y=[] + for k=1:size(x,1) + y(k)=ascii(x(k,:)) + end + else + error(msprintf(gettext("%s: Wrong type for input argument #%d: A Real, Integer or String matrix expected.\n"),"asciimat", 1)); + end + elseif size(size(x),"*")>2 then + if typeof(x)=="hypermat" then + if type(x.entries)==1 | type(x.entries)==8 + n=size(size(x),"*") + dims=size(x) + dims=[dims(1),dims(3:n)] + V=" " + D=prod(dims) + DD=D/size(x,1) + V=part(V,ones(1,size(x,2))) + V=V+emptystr(D,1) + for l=1:DD + V((l-1)*size(x,1)+1:l*size(x,1))=asciimat(x(:,:,l)) + end + y=hypermat(dims,V) + end + end + end +endfunction diff --git a/modules/string/macros/blanks.bin b/modules/string/macros/blanks.bin Binary files differnew file mode 100755 index 000000000..0abbd2487 --- /dev/null +++ b/modules/string/macros/blanks.bin diff --git a/modules/string/macros/blanks.sci b/modules/string/macros/blanks.sci new file mode 100755 index 000000000..80c93ddce --- /dev/null +++ b/modules/string/macros/blanks.sci @@ -0,0 +1,32 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - Allan CORNET +// +// 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 + +// blanks macro +// blanks(n) +// Create string of blank characters + +function str = blanks(n) + + if ~or(type(n)==[1,8]) then + error(msprintf(gettext("%s: Wrong type for input argument #%d: An integer expected.\n"),"blanks",1)); + end + + if and(size(n)<>[1 1]) then + error(msprintf(gettext("%s: Wrong size for input argument #%d: An integer expected.\n"),"blanks",1)); + end + + if n>0 then + str = part(" ",ones(1,n)); + elseif n==0 + str = ""; + else + error(msprintf(gettext("%s: Wrong values for input argument #%d: An non-negative integer expected.\n"),"blanks",1)); + end + +endfunction diff --git a/modules/string/macros/buildmacros.bat b/modules/string/macros/buildmacros.bat new file mode 100755 index 000000000..c4e35ec40 --- /dev/null +++ b/modules/string/macros/buildmacros.bat @@ -0,0 +1 @@ +@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit;
\ No newline at end of file diff --git a/modules/string/macros/buildmacros.sce b/modules/string/macros/buildmacros.sce new file mode 100755 index 000000000..1383b10df --- /dev/null +++ b/modules/string/macros/buildmacros.sce @@ -0,0 +1,9 @@ +//------------------------------------ +// Allan CORNET INRIA 2005 +//------------------------------------ +if (isdef("genlib") == %f) then + exec(SCI+"/modules/functions/scripts/buildmacros/loadgenlib.sce"); +end +//------------------------------------ +genlib("stringlib","SCI/modules/string/macros",%f,%t); +//------------------------------------ diff --git a/modules/string/macros/cat_code.bin b/modules/string/macros/cat_code.bin Binary files differnew file mode 100755 index 000000000..4ebb176ce --- /dev/null +++ b/modules/string/macros/cat_code.bin diff --git a/modules/string/macros/cat_code.sci b/modules/string/macros/cat_code.sci new file mode 100755 index 000000000..9152f2df7 --- /dev/null +++ b/modules/string/macros/cat_code.sci @@ -0,0 +1,28 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - Vincent COUVERT +// +// 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 + +function t=cat_code(a,b) + + // Catenate two parts of code (called by tree2code) + // Input: + // - a: original code + // - b: code to add to a + // Output: + // - t: catenation of a and b + + if a==[] then + t=b + elseif b==[] then + t=a + elseif stripblanks(b)=="" then // b=="" then add a new line + t=[a;""]; + else + t=[a(1:$-1);a($)+b(1);b(2:$)] + end +endfunction diff --git a/modules/string/macros/cleanmacros.bat b/modules/string/macros/cleanmacros.bat new file mode 100755 index 000000000..5079dfd71 --- /dev/null +++ b/modules/string/macros/cleanmacros.bat @@ -0,0 +1,3 @@ +@del *.bin 2>NUL +@del lib 2>NUL +@del names 2>NUL
\ No newline at end of file diff --git a/modules/string/macros/eval.bin b/modules/string/macros/eval.bin Binary files differnew file mode 100755 index 000000000..fa6411e93 --- /dev/null +++ b/modules/string/macros/eval.bin diff --git a/modules/string/macros/eval.sci b/modules/string/macros/eval.sci new file mode 100755 index 000000000..65f81483f --- /dev/null +++ b/modules/string/macros/eval.sci @@ -0,0 +1,32 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - +// Copyright (C) DIGITEO - 2010 - Allan CORENT +// +// 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 + + +function _h = eval(z) + // Syntax : H = eval(Z) + // returns the evaluation of the matrix of character strings Z. + // Example: a=1; b=2; Z=['a','b'] ; eval(Z) returns the matrix [1,2]; + //! + + _h = []; + [mz, nz] = size(z); + if mz * nz > 1 then + str = []; + for l = 1:mz, for k = 1:nz, + str = [str; "%_h(" + string(l) + ", " + string(k) + ")=" + z(l,k)]; + end + end + else + str = "%_h = " + z; + end + %_h = []; + deff("[%_h] = %eval();", str); + _h = %eval(); +endfunction diff --git a/modules/string/macros/evstr.bin b/modules/string/macros/evstr.bin Binary files differnew file mode 100755 index 000000000..f3b1ff9a3 --- /dev/null +++ b/modules/string/macros/evstr.bin diff --git a/modules/string/macros/evstr.sci b/modules/string/macros/evstr.sci new file mode 100755 index 000000000..fd407046a --- /dev/null +++ b/modules/string/macros/evstr.sci @@ -0,0 +1,81 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA +// Copyright (C) DIGITEO - 2010 - Allan CORNET +// +// 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 + + +function [%val, %ierr] = evstr(%str) + + [lhs, rhs] = argn(0); + %val = []; + select type(%str) + + case 10 then + // matrix of character strings + + // bug 7003 + if ~isdef("Nan") then + Nan = %nan; + end + if ~isdef("NaN") then + NaN = %nan; + end + + if ~isdef("Inf") then + Inf = %inf; + end + + if ~isdef("INF") then + INF = %inf; + end + + for %l = 1:size(%str, "r") + %t1(%l) = strcat(%str(%l, :), ",") + ";" + end + %t1(1) = "%val=[" + %t1(1); + %t1($) = part(%t1($), 1:length(%t1($)) - 1)+";"; + %t1($+1)="]"; + if lhs == 2 then + %ierr = execstr(%t1, "errcatch"); + else + execstr(%t1) + end + + case 15 then + // list + %sexp = %str(2), + %nstr = prod(size(%sexp)); + % = list(); + if lhs == 2 then + for %k_ = 1:%nstr, + [%w, %ierr] = evstr(%sexp(%k_)); + %(%k_) = %w; + if %ierr <>0 then + %val = []; + return; + end + end + [%val, %ierr] = evstr(%str(1)); + else + for %k_ = 1:%nstr, + %(%k_) = evstr(%sexp(%k_)); + end + %val = evstr(%str(1)) + end + + case 1 then + // real or complex constant matrix + %val = %str; + %ierr = 0; + else + error(msprintf(gettext("%s: Wrong type for input argument #%d: Real or Complex matrix, Matrix of character strings or list expected.\n"), "evstr", 1)); + end + if exists("%val", "local") == 0 then + error(msprintf(gettext("%s: Given expression has no value.\n"), "evstr")); + end +endfunction diff --git a/modules/string/macros/expression2code.bin b/modules/string/macros/expression2code.bin Binary files differnew file mode 100755 index 000000000..5dad05aa1 --- /dev/null +++ b/modules/string/macros/expression2code.bin diff --git a/modules/string/macros/expression2code.sci b/modules/string/macros/expression2code.sci new file mode 100755 index 000000000..977a02f40 --- /dev/null +++ b/modules/string/macros/expression2code.sci @@ -0,0 +1,360 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - Vincent COUVERT +// +// 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 + + +function C=expression2code(e) + // Translate an expression tree to macro code (called by tree2code) + // Input: + // - e: expression 'tree' + // Output: + // - C: Scilab code corresponding to e + // V.C. + + // Change format for constants + fmtsav=format(); + format(16); + + // Tables of symbols arranged by priority in computations + sumops=["+","-","&","|"] //1 + prodops=["*","/",".*","./","\",".\","^",".^"] //2 + othops=["==",">=","<=","~=",">","<","~",".''",".''",":"] //3 + + C=[] + select typeof(e) + // --------- + // OPERATION + // --------- + case "operation" then + operator=e.operator + operands=[] + nb_op=size(e.operands) + if and(operator<>["cc","cceol"]) then + for i=1:nb_op + if e.operands(i)==list("EOL") then + continue + end + expression = expression2code(e.operands(i)); + if expression == "eye()" then + expression = ":"; + end + operands=[operands;expression] + end + end + + // Row concatenation + if operator=="rc" then + for i=1:nb_op + if typeof(e.operands(i))=="operation" then + if e.operands(i).operator=="rc" then + operands(i)=part(operands(i),2:length(operands(i))-1) + elseif or(e.operands(i).operator==["cceol"]) then + operands(1)=part(operands(1),2:length(operands(1))) + operands($)=part(operands($),1:length(operands($))-1) + end + end + end + C="["+strcat(operands,",")+"]" + // Multi-line column concatenation + elseif operator=="cceol" then + for i=1:nb_op + opi=expression2code(e.operands(i)) + if typeof(e.operands(i))=="operation" then + if e.operands(i).operator=="rc" then + opi=part(opi,2:length(opi)-1) + elseif or(e.operands(i).operator==["cc","cceol"]) then + opi(1)=part(opi(1),2:length(opi(1))) + opi($)=part(opi($),1:length(opi($))-1) + end + end + + if i==1 then + C="[" + if size(opi,"*")>1 then + C = [C+opi(1);opi(2:$)] + else + C = C+opi + end + C($)=C($)+";" + C=[C;""] + else + if size(opi,"*")>1 then + C = [C(1:$-1);C($)+opi(1);opi(2:$)] + else + C = [C(1:$-1);C($)+opi] + end + C($)=C($)+"]" + end + end + // Column concatenation + elseif operator=="cc" then + C="[" + for i=1:nb_op + opi=expression2code(e.operands(i)) + // Delete [ and ] if there are... + if typeof(e.operands(i))=="operation" then + if e.operands(i).operator=="rc" then + opi=part(opi,2:length(opi)-1) + elseif or(e.operands(i).operator==["cc","cceol"]) then + opi(1)=part(opi(1),2:length(opi(1))) + opi($)=part(opi($),1:length(opi($))-1) + end + end + if i==1 then + if size(opi,"*")>1 then + C = [C+opi(1);opi(2:$)] + elseif opi=="(EOL)" then + C = [C;""]; + else + C = C+opi + end + C($)=C($)+";" + else + if size(opi,"*")>1 then + C = [C(1:$-1);C($)+opi(1);opi(2:$)] + elseif opi=="(EOL)" then + C = [C;""] + else + C = [C(1:$-1);C($)+opi] + end + end + end + C($)=C($)+"]" + // Extraction + elseif operator=="ext" then + if size(e.operands)==1 then + C=e.operands(1).name + return + end + if type(e.operands(2))==15 then // Recursive extraction + C=operands(1)+operands(2) + else + // Deal with : + for k=2:size(operands,"*") + if operands(k)==""":""" then + operands(k)=":" + elseif operands(k)=="""$""" then + operands(k)="$" + elseif operands(k)=="""*""" then // Only used for M2SCI + operands(k)="*" + end + end + val = part(operands(2),1)=="""" & part(operands(2),length(operands(2)))=="""" + if val then // struct field + C=operands(1)+"."+evstr(operands(2)) + if size(operands,"*")>=3 then + C=C+"(" + end + for k=3:size(operands,"*") + C=C+","+operands(k) + end + if size(operands,"*")>=3 then + C=C+")" + end + else + C=operands(1)+"("+operands(2) + for k=3:size(operands,"*") + C=C+","+operands(k) + end + C=C+")" + end + end + // Insertion + elseif operator=="ins" then + if type(e.operands(2))==15 then // Recursive insertion + C=operands(1)+operands(2) + else + // Deal with : + for k=2:size(operands,"*") + if operands(k)==""":""" then + operands(k)=":" + elseif operands(k)=="""$""" then + operands(k)="$" + elseif operands(k)=="""*""" then // Only used in M2SCI + operands(k)="*" + end + end + val = part(operands(2),1)=="""" & part(operands(2),length(operands(2)))=="""" + if val then // struct field + C=operands(1)+"."+evstr(operands(2)) + if size(operands,"*")>=3 then + C=C+"(" + end + for k=3:size(operands,"*") + C=C+","+operands(k) + end + if size(operands,"*")>=3 then + C=C+")" + end + else + C=operands(1)+"("+operands(2) + for k=3:size(operands,"*") + C=C+","+operands(k) + end + C=C+")" + end + end + // Unary Operators + elseif size(operands,"*")==1 then + if or(operator==["''",".''"]) then + if typeof(e.operands(1))=="operation" then + if and(e.operands(1).operator<>["rc","cc","-","+"]) then + operands="("+operands+")" + end + end + C=operands+operator + elseif or(operator==["+","-"]) then + if typeof(e.operands(1))=="operation" then + if or(e.operands(1).operator==["-","+"]) then + operands="("+operands+")" + end + end + C=operator+operands + else + C=operator+operands + end + // Other operators + else + // Parenthesize + if or(operator==["+","-"]) then + for i=1:nb_op + if typeof(e.operands(i))=="operation" then + if or(e.operands(i).operator==othops) then + operands=[operands(1:i-1) "("+operands(i)+")" operands(i+1:$)] + end + end + end + for i=2:nb_op + if typeof(e.operands(i))=="operation" then + if or(e.operands(i).operator==sumops) then + operands=[operands(1:i-1) "("+operands(i)+")" operands(i+1:$)] + end + end + end + end + if or(operator==[prodops,othops]) & (operator<>":") then + if typeof(e.operands(1))=="operation" then + if or(e.operands(1).operator==[sumops,prodops,othops]) then + operands(1)="("+operands(1)+")" + end + end + if typeof(e.operands(2))=="operation" then + if or(e.operands(2).operator==[sumops,prodops,othops]) then + operands(2)="("+operands(2)+")" + end + end + end + if part(operator,1)=="." & part(operator,length(operator))=="." | or(operator==["&","|"]) then + C=strcat(operands," "+operator+" ") + elseif part(operator,1)=="." then + C=strcat(operands," "+operator) + elseif part(operator,length(operator))=="." then + C=strcat(operands,operator+" ") + else + C=strcat(operands,operator) + end + end + // -------- + // CONSTANT + // -------- + case "cste" then + C=sci2exp(e.value) + if C==""":""" then + //C=":" + elseif C=="""$""" then + C="$" + elseif C=="""*""" then // Only used in M2SCI + C="""*""" + // C="*" + end + // -------- + // VARIABLE + // -------- + case "variable" then + C=e.name + // ---------------- + // CHARACTER STRING + // ---------------- + case "string" then + C=e + // ------- + // FUNCALL + // ------- + case "funcall" then + if size(e.rhs)==0 then + I=I; // I is defined in instruction2code + C=e.name + [l,mac]=where() + if size(grep(mac,"expression2code"),"*")>1 then + C=C+"()" + elseif typeof(I)=="equal" & ( (typeof(I.lhs(1))=="variable" & I.lhs(1).name<>"ans") | typeof(I.lhs(1))=="operation") then + C=C+"()" + end + else + rhscode = rhs2code(e.rhs); + if size(rhscode,"*")==1 then + C=[e.name+"("+rhscode+")"] + else + C=[e.name+"("+rhscode(1);rhscode(2:($-1));rhscode($)+")"] + end + end + // ---- + // LIST + // ---- + case "list" + // Recursive extraction + C=[] + for k=1:lstsize(e) + ind=expression2code(e(k)) + if type(e(k))==15 then // Recursive extraction in recursive extraction + ind=strsubst(ind,")(",",") + if part(ind, 1)=="(" then + ind = part(ind, 2:length(ind)) + end + if part(ind, length(ind))==")" then + ind = part(ind, 1:(length(ind)-1)) + end + end + if ind==""":""" then + ind=":" + elseif ind=="""$""" then + ind="$" + elseif ind=="""*""" then // Only used in M2SCI + ind="*" + end + val = part(ind,1)=="""" & part(ind,length(ind))=="""" + if val then + C=C+"."+evstr(ind) + else + C=C+"("+ind+")" + end + end + C=strsubst(C,")(",",") + // ----- + // EQUAL (can occur fir disp(a=1) for example) + // ----- + case "equal" + C=instruction2code(e) + // ------- + // COMMENT (inside a matrix declaration for example) + // ------- + case "comment" + C=instruction2code(e) + else + error(msprintf(gettext("%s: This feature has not been implemented: %s.\n"),"expression2code",typeof(e))); + end + + // Restore format + if fmtsav(1)==1 then + format("v",fmtsav(2)); + else + format("e",fmtsav(2)); + end +endfunction + + diff --git a/modules/string/macros/format_txt.bin b/modules/string/macros/format_txt.bin Binary files differnew file mode 100755 index 000000000..a729d2d08 --- /dev/null +++ b/modules/string/macros/format_txt.bin diff --git a/modules/string/macros/format_txt.sci b/modules/string/macros/format_txt.sci new file mode 100755 index 000000000..e81d63304 --- /dev/null +++ b/modules/string/macros/format_txt.sci @@ -0,0 +1,39 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - Vincent COUVERT +// +// 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 + +function [txt,space]=format_txt(txt,instr,bprettyprintformat,nextinstr) + // Add EOL and returns spaces to have good indentation (called by tree2code) + // Inputs: + // - txt: code to format + // - instr: instruction to evaluate as a possible EOL + // - bprettyprintformat = %T -> code generated is formated %F -> code generated has same format as original code + // - nextinstr: next instruction after instr (format EOL between instructions) + // Outputs: + // - txt: updated txt + // - space: indentation margin for control instructions + + rhs=argn(2) + + // Indentation and EOL in control clauses + if rhs==3 then + if instr<>list("EOL") & bprettyprintformat then + txt = cat_code(txt,"") + space=" " + elseif instr<>list("EOL") then + space=" " + else + space=" " + end + // EOL between instructions + else + if bprettyprintformat & instr<>list("EOL") & nextinstr<>list("EOL") then + txt = cat_code(txt,"") + end + end +endfunction diff --git a/modules/string/macros/instruction2code.bin b/modules/string/macros/instruction2code.bin Binary files differnew file mode 100755 index 000000000..06a9caece --- /dev/null +++ b/modules/string/macros/instruction2code.bin diff --git a/modules/string/macros/instruction2code.sci b/modules/string/macros/instruction2code.sci new file mode 100755 index 000000000..3523dfe33 --- /dev/null +++ b/modules/string/macros/instruction2code.sci @@ -0,0 +1,319 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - vincent COUVERT +// +// 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 + + +function C=instruction2code(I, bprettyprintformat) + // Translate an instruction tlist to Scilab code (called by tree2code) + // Input: + // - I: instruction 'tree' + // - bprettyprintformat: boolean value, if FALSE (default value), generated code is not formated else it is + // Output: + // - C: Scilab code corresponding to I + + // Default value + rhs=argn(2) + if rhs==1 then + bprettyprintformat=%F + end + + C=[] + + // ----------- + // Empty lines + // ----------- + if I==list("EOL") then + C="" + return + end + + // --------------------------------------------- + // Generate code corresponding to a TRY-CATCH + // --------------------------------------------- + if typeof(I)=="trycatch" then + + //TRYCATCH + C="try " + [C,indent_space] = format_txt(C,I.trystat(1),bprettyprintformat); // Add EOL after while if needed and returns indent_space + for k=1:size(I.trystat) + C=cat_code(C,indent_space+instruction2code(I.trystat(k))) + if k<size(I.trystat) then // Add EOL between statements if needed + C = format_txt(C,I.trystat(k),bprettyprintformat,I.trystat(k+1)); + end + end + C = format_txt(C,I.trystat($),bprettyprintformat); // Add EOL after last statement if needed + C=cat_code(C,"catch ") + for k=1:size(I.catchstat) + C=cat_code(C,indent_space+instruction2code(I.catchstat(k))) + if k<size(I.catchstat) then // Add EOL between statements if needed + C = format_txt(C,I.catchstat(k),bprettyprintformat,I.catchstat(k+1)); + end + end + C = format_txt(C,I.catchstat($),bprettyprintformat); // Add EOL after last statement if needed + C=cat_code(C,"end") + C($)=C($)+";" + return + end + + // --------------------------------------------- + // Generate code corresponding to a IF-THEN-ELSE + // --------------------------------------------- + if typeof(I)=="ifthenelse" then + + // IF + C="if "+expression2code(I.expression)+" then" + [C,indent_space] = format_txt(C,I.then(1),bprettyprintformat); // Add EOL after then if needed and returns indent_space + for k=1:size(I.then) + C=cat_code(C,indent_space+instruction2code(I.then(k))) + if k<size(I.then) then // Add EOL between then statements if needed + C = format_txt(C,I.then(k),bprettyprintformat,I.then(k+1)); + end + end + C = format_txt(C,I.then($),bprettyprintformat); // Add EOL after last then statement if needed + + // ELSEIF + if size(I.elseifs)<>0 then + for k=1:size(I.elseifs) + C=cat_code(C,"elseif "+expression2code(I.elseifs(k).expression)+" then") + [C,indent_space] = format_txt(C,I.elseifs(k).then(1),bprettyprintformat); // Add EOL after then if needed and returns indent_space + for l=1:size(I.elseifs(k).then) + C=cat_code(C,indent_space+instruction2code(I.elseifs(k).then(l))) + if l<size(I.elseifs(k).then) then // Add EOL between then statements + C = format_txt(C,I.elseifs(k).then(l),bprettyprintformat,I.elseifs(k).then(l+1)); + end + end + C = format_txt(C,I.elseifs(k).then($),bprettyprintformat); // Add EOL after last then statement if needed + end + end + + // ELSE + if size(I.else)<>0 then + C=cat_code(C,"else") + [C,indent_space] = format_txt(C,I.else(1),bprettyprintformat); // Add EOL after else if needed and returns indent_space + for k=1:size(I.else) + C=cat_code(C,indent_space+instruction2code(I.else(k))) + if k<size(I.else) then // Add EOL between else statements if needed + C = format_txt(C,I.else(k),bprettyprintformat,I.else(k+1)); + end + end + C = format_txt(C,I.else($),bprettyprintformat); // Add EOL after last else statement if needed + end + C=cat_code(C,"end") + C($)=C($)+";" + return + end + + // -------------------------------------------- + // Generate code corresponding to a SELECT-CASE + // -------------------------------------------- + if typeof(I)=="selectcase" then + + // SELECT + C="select "+expression2code(I.expression(1)) + + if size(I.expression)==1 // Not EOL and not comment after the expression + if bprettyprintformat then + C = cat_code(C,"") // Add EOL after expression + end + else + for i=2:size(I.expression) + C=cat_code(C," "+ instruction2code(I.expression(i))) + end + end + + // CASES + if size(I.cases)<>0 then + for k=1:size(I.cases) + C=cat_code(C," case "+expression2code(I.cases(k).expression)+" then") + [C,indent_space] = format_txt(C,I.cases(k).then(1),bprettyprintformat); // Add EOL after then if needed and returns indent_space + if indent_space==" " then // indent_space is modified because indentation differs from others control instructions + indent_space=" " + end + for l=1:size(I.cases(k).then) + C=cat_code(C,indent_space+instruction2code(I.cases(k).then(l))) + if l<size(I.cases(k).then) then // Add EOL between then statements if needed + C = format_txt(C,I.cases(k).then(l),bprettyprintformat,I.cases(k).then(l+1)); + end + end + C = format_txt(C,I.cases(k).then($),bprettyprintformat); // Add EOL after last then statement if needed + end + end + // ELSE + if size(I.else)<>0 then + C=cat_code(C," else") + [C,indent_space] = format_txt(C,I.else(1),bprettyprintformat); // Add EOL after else if needed and returns indent_space + if indent_space==" " then // indent_space is modified because indentation differs from others control instructions + indent_space=" " + end + for k=1:size(I.else) + C=cat_code(C,indent_space+instruction2code(I.else(k))) + if k<size(I.else) then // Add EOL between else statements if needed + C = format_txt(C,I.else(k),bprettyprintformat,I.else(k+1)); + end + end + C = format_txt(C,I.else($),bprettyprintformat); // Add EOL after last else statement if needed + end + C=cat_code(C,"end") + C($)=C($)+";" + return + end + + // -------------------------------------- + // Generate code corresponding to a WHILE + // -------------------------------------- + if typeof(I)=="while" then + + C="while "+expression2code(I.expression) + [C,indent_space] = format_txt(C,I.statements(1),bprettyprintformat); // Add EOL after while if needed and returns indent_space + for k=1:size(I.statements) + C=cat_code(C,indent_space+instruction2code(I.statements(k))) + if k<size(I.statements) then // Add EOL between statements if needed + C = format_txt(C,I.statements(k),bprettyprintformat,I.statements(k+1)); + end + end + C = format_txt(C,I.statements($),bprettyprintformat); // Add EOL after last statement if needed + C=cat_code(C,"end") + C($)=C($)+";" + return + end + + // ------------------------------------ + // Generate code corresponding to a FOR + // ------------------------------------ + if typeof(I)=="for" then + + C="for "+instruction2code(I.expression) + [C,indent_space] = format_txt(C,I.statements(1),bprettyprintformat); // Add EOL after while if needed and returns indent_space + for k=1:size(I.statements) + C=cat_code(C,indent_space+instruction2code(I.statements(k))) + if k<size(I.statements) then // Add EOL between statements if needed + C = format_txt(C,I.statements(k),bprettyprintformat,I.statements(k+1)); + end + end + C = format_txt(C,I.statements($),bprettyprintformat); // Add EOL after last statement if needed + C=cat_code(C,"end") + C($)=C($)+";" + return + end + + // -------------------------------------- + // Generate code corresponding to a EQUAL + // -------------------------------------- + if typeof(I)=="equal" then + + // Comments + if typeof(I.expression)=="funcall" then + if I.expression.name=="%comment" then + I.expression.rhs(1).value=strsubst(I.expression.rhs(1).value,"""""","""") + I.expression.rhs(1).value=strsubst(I.expression.rhs(1).value,"''''","''") + C="//"+I.expression.rhs(1).value + //C($)=C($)+";" + return + end + end + + // Other EQUAL instruction + if size(I.lhs)==1 then + if typeof(I.lhs(1))=="variable" then + if I.lhs(1).name=="ans" then // expression + C=rhs2code(I.expression) + else + RHS=rhs2code(I.expression) + if size(RHS,"*")==1 then + C=I.lhs(1).name+" = "+rhs2code(I.expression) + else // Multi-line definition + C=[I.lhs(1).name+" = "+RHS(1);" "+RHS(2:$)] + end + end + else // Insertion... + C=expression2code(I.lhs(1))+" = "+rhs2code(I.expression) + end + else + lhsnames=[] + for lhsind=1:size(I.lhs) + lhsnames=[lhsnames,expression2code(I.lhs(lhsind))] + end + if strcat(lhsnames,",")<>"" then + C="["+strcat(lhsnames,",")+"] = "+rhs2code(I.expression) + else + C=rhs2code(I.expression) + end + end + C($)=C($)+I.endsymbol + //C($)=C($)+";"; + return + end + + // -------------------------------------- + // Generate code corresponding to a comment + // -------------------------------------- + if typeof(I)=="comment" then + C="//"+I.text + //C = cat_code(C,"//"+I.text) + return + end + + // --------------------------------------- + // Generate code corresponding to sup_equal + // --------------------------------------- + if typeof(I)=="sup_equal" then + while typeof(I.sup_instr(1))=="equal" | I.sup_instr(1)==list("EOL") + if I.sup_instr(1)==list("EOL") then //Instruction is an EOL + I.sup_instr(1)=null() + elseif typeof(I.sup_instr(1))=="equal" then //Instruction is acomment + if typeof(I.sup_instr(1).expression)=="funcall" then + break + end + end + end + //Optimize the code if all sup_intr are equal tlists and expression of this equal tlists are temporaries variables (not a function) + if size(I.sup_instr)==I.nb_opr+1 then + for i=size(I.sup_instr):-1:2 + optim_instr=%f + if typeof(I.sup_instr(i))=="equal" then + if typeof(I.sup_instr(i).expression)=="variable" then + j=0 + while ~optim_instr & j<=size(I.sup_instr(1).lhs) + j=j+1 + optim_instr=I.sup_instr(i).expression.name==I.sup_instr(1).lhs(j).name + end + end + end + if optim_instr then + I.sup_instr(1).lhs(j)=I.sup_instr(i).lhs(1) + I.sup_instr(i)=null() + end + end + end + for i=1:size(I.sup_instr) + C($+1)=instruction2code(I.sup_instr(i)) + end + return + end + + // ---------------------------------------------------- + // Generate code corresponding to a function definition + // ---------------------------------------------------- + if typeof(I)=="inline" then + C = "function "+I.prototype; + C = cat_code(C,I.definition) + C($+1) = "endfunction"; + return + end + + // ------- + // Command + // ------- + if and(typeof(I)<>["funcall" "variable", "comment"]) then + disp("instruction2code: bug in macr2tree() !"); + pause + end + C=expression2code(I); + C($)=C($)+";" +endfunction + diff --git a/modules/string/macros/justify.bin b/modules/string/macros/justify.bin Binary files differnew file mode 100755 index 000000000..56f4e7c4b --- /dev/null +++ b/modules/string/macros/justify.bin diff --git a/modules/string/macros/justify.sci b/modules/string/macros/justify.sci new file mode 100755 index 000000000..3069c97df --- /dev/null +++ b/modules/string/macros/justify.sci @@ -0,0 +1,73 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - +// Copyright (C) DIGITEO - 2010 - Pierre Marechal +// +// 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 + + +function t = justify(t, job) + + // Check input parameters + // ========================================================================= + + rhs = argn(2); + + if rhs <> 2 then + error(msprintf(gettext("%s: Wrong number of input arguments: %d expected.\n"),"justify",2)) + end + + if t == [] then + t = []; + return; + end + if type(t) <> 10 then + error(msprintf(gettext("%s: Wrong type for input argument #%d: A string expected.\n"), "justify", 1)); + end + + if type(job) <> 10 then + error(msprintf(gettext("%s: Wrong type for input argument #%d: A string expected.\n"), "justify", 2)); + end + + if size(job,"*") <> 1 then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A string expected.\n"), "justify", 2)); + end + + if and(job <> ["l" "c" "r" "left" "center" "right"]) then + error(msprintf(gettext("%s: Wrong value for input argument #%d: ""%s"", ""%s"" or ""%s"" expected.\n"), "justify", 2,"r","l","c")); + // "left,center & right" are just here for backward compatibility + end + + // Redefine the wanted justification + // ========================================================================= + job = part(job, 1); + + // Remove leading and trailing whitespaces (See bug #7751) + // ========================================================================= + t = stripblanks(t); + + //Justify character array. + [m, n] = size(t); + + for k = 1:n + L = length(t(:,k)); + mx = max(L); + if job == "l" then //right + t(:,k) = part(t(:,k),1:mx) + elseif job == "r" then //left + for l = 1:m + t(l,k) = part(" ", 1:(mx-length(t(l,k)))) + t(l, k); + end + elseif job == "c" then //center + for l = 1:m + nl = int((mx - length(t(l, k)))/2) + nr = (mx - length(t(l, k))) - nl + t(l, k) = part(" ", 1:nl) + t(l, k) + part(" ", 1:nr); + end + end + end + +endfunction diff --git a/modules/string/macros/lib b/modules/string/macros/lib Binary files differnew file mode 100755 index 000000000..ac2b113e8 --- /dev/null +++ b/modules/string/macros/lib diff --git a/modules/string/macros/names b/modules/string/macros/names new file mode 100755 index 000000000..09a555cb4 --- /dev/null +++ b/modules/string/macros/names @@ -0,0 +1,21 @@ +%_strsplit +%ip_part +%mc_string +%p_part +%plist_string +arobasestring2strings +ascii2string +asciimat +blanks +cat_code +eval +evstr +expression2code +format_txt +instruction2code +justify +rhs2code +sci2exp +strcmpi +tokenpos +tree2code diff --git a/modules/string/macros/rhs2code.bin b/modules/string/macros/rhs2code.bin Binary files differnew file mode 100755 index 000000000..c4e1c8820 --- /dev/null +++ b/modules/string/macros/rhs2code.bin diff --git a/modules/string/macros/rhs2code.sci b/modules/string/macros/rhs2code.sci new file mode 100755 index 000000000..12cad62a7 --- /dev/null +++ b/modules/string/macros/rhs2code.sci @@ -0,0 +1,50 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - Vincent Couvert +// +// 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 + + +function C=rhs2code(rhs) + // Translate rhs list of an instruction to macro code (called by tree2code) + // Input: + // - rhs: list of rhs arguments + // Output: + // - C: Scilab code corresponding to rhs + // V.C. + + n=size(rhs) + + C="" + if typeof(rhs)<>"list" then + C=expression2code(rhs) + else + for k=1:n + therhs = expression2code(rhs(k)); + if k==1 then + C = therhs; + else + if therhs == "(EOL)" then + C = [C;""]; + else + if C($)=="" then + // Previous rhs was a EOL + C = [C(1:($-2)); + C($-1)+".."; + C($) + therhs(1); + therhs(2:$)]; + else + C = [C(1:($-1)); + C($) + "," + therhs(1); + therhs(2:$)]; + end + end + end + end + end + + +endfunction diff --git a/modules/string/macros/sci2exp.bin b/modules/string/macros/sci2exp.bin Binary files differnew file mode 100755 index 000000000..e39be5e1a --- /dev/null +++ b/modules/string/macros/sci2exp.bin diff --git a/modules/string/macros/sci2exp.sci b/modules/string/macros/sci2exp.sci new file mode 100755 index 000000000..37378018e --- /dev/null +++ b/modules/string/macros/sci2exp.sci @@ -0,0 +1,818 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - +// +// 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 + + +function t=sci2exp(a,nom,lmax) + // sci2exp - convert a variable to an expression + //%SYNTAX + // t=sci2exp(a [,nam] [,lmax]) + //%PARAMETERS + // a : matrix of scalar or polynomials + // nam: character string + // t : vector of string, contains the expression definition + // lmax : maximum line lengh (0 for no line length control) + //%Example + // a=[1 2;3 4] + // sci2exp(a,'aa') + //! + + deff("x=String(a)",["x=string(a)" + "x=strsubst(x,''Nan'',''%nan'')" + "x=strsubst(x,''Inf'',''%inf'')" + ]) + + + [lhs,rhs]=argn(0) + $ // import global variable $ in sci2exp context for efficiency + select rhs + case 1 then + named=%f + lmax=0 + case 2 then + if type(nom)==1 then + lmax=nom + named=%f + else + named=%t + lmax=0 + end + case 3 then + named=%t + if type(nom)==1 then + [lmax,nom]=(nom,lmax) + end + end + dots=".."; + select type(a) + case 1 then + t=mat2exp(a,lmax) + case 2 then + t=pol2exp(a,lmax) + case 4 then + t=log2exp(a,lmax) + case 5 then + t=sp2exp(a,lmax) + case 6 then + t=sp2exp(a,lmax) + case 7 then + t=sp2exp(a,lmax) + case 8 then + t=int2exp(a,lmax) + case 9 then + t=h2exp(a, lmax) + case 10 then + t=str2exp(a,lmax) + case 13 then + if named then + t=fun2string(a,nom) + else + t=fun2string(a,"%fun") + end + t(1)=part(t(1),10:length(t(1))) + t($)=[] + t=sci2exp(t,lmax) + t(1)="createfun("+t(1) + t($)=t($)+")" + case 15 then + t=list2exp(a,lmax) + case 16 then + t=tlist2exp(a,lmax) + case 17 then + t=mlist2exp(a,lmax) + case 11 then + t=func2exp(a,lmax) + named=%f + case 129 then + t=imp2exp(a,lmax) + else + // execstr('t='+typeof(a)+'2exp(a,lmax)') + error(msprintf(gettext("%s: This feature has not been implemented: Variable translation of type %s.\n"),"sci2exp",string(type(a)))); + end, + if named&and(type(a)<>[11 13]) then + t(1)=nom+" = "+t(1) + end +endfunction + +function t=str2exp(a,lmax) + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + + [m,n]=size(a), + dots="."+"." + t=[]; + quote="''" + + a=strsubst(a,quote,quote+quote) + dquote="""" + a=strsubst(a,dquote,dquote+dquote) + a = strsubst(a, ascii(10), """+ascii(10)+""") + a=quote(ones(a))+a+quote(ones(a)) + + for i=1:m + x=emptystr(); + for j=1:n, + y=a(i,j); + y=dquote+part(y,2:length(y)) + y=part(y,1:length(y)-1)+dquote + if y=="''''" then y="emptystr()",end + if lmax==0|length(x($))+length(y)<lmax then + if j==1 then + x=y + else + x($)=x($)+","+y, + end + else + if j>1 then + x($)=x($)+","+dots; + x($+1)=y + else + x=y + end + end + end + if i<m then x($)=x($)+";",end + if lmax>0 then + t=[t;x] + else + t=t+x + end + end, + if lmax>0&sum(length(t))<lmax then + t=strcat(t) + end + if m*n>1 then + t(1)="["+t(1) + t($)=t($)+"]" + end +endfunction + +function t=mat2exp(a,lmax) + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + if size(a,"*")==0 then t="[]",return,end + [m,n]=size(a); + if m<0 then + t=mat2exp(a+0); + if t=="1" then + t="eye()"; + else + t="("+t+")*eye()"; + end + return + end + a=String(a); + dots="."+"." + t=[]; + if n==1 then + x=strcat(a,";") + lx=length(x) + if lmax==0|lx<lmax then + t=x; + else + ind=strindex(x,";"); + k1=1;l=0;I=[]; + while %t + if lx-l<lmax|k1>length(ind) then,break,end + k2=k1-1+max(find(ind(k1:$)<l+lmax)) + I=[I ind(k2)]; + // t=[t;part(x,l+1:ind(k2))] + k1=k2+1 + l=ind(k2) + end + t=[t;strsplit(x,I)]; + end + elseif m==1 then + x=strcat(a,",") + lx=length(x) + if lmax==0|lx<lmax then + t=x; + + else + ind=strindex(x,","); + k1=1;l=0;I=[]; + while %t + if lx-l<lmax|k1>length(ind) then break,end + k2=k1-1+max(find(ind(k1:$)<l+lmax)) + I=[I ind(k2)]; + // t=[t;part(x,l+1:ind(k2))+dots] + k1=k2+1 + l=ind(k2) + end + x=strsplit(x,I);x(1:$-1)=x(1:$-1)+dots; + t=[t;x] + end + else + for i=1:m + x=strcat(a(i,:),",") + if i<m then x=x+";",end + lx=length(x) + if lmax==0 then + t=t+x + elseif lx<lmax then + t=[t;x] + else + ind=strindex(x,","); + k1=1;l=0;I=[]; + while %t + if lx-l<lmax|k1>length(ind) then break,end + k2=k1-1+max(find(ind(k1:$)<l+lmax)) + I=[I ind(k2)]; + // t=[t;part(x,l+1:ind(k2))+dots] + k1=k2+1 + l=ind(k2) + end + x=strsplit(x,I);x(1:$-1)=x(1:$-1)+dots;x(2:$)=" "+x(2:$); + t=[t;x] + end + end + end + if m*n>1 then + t(1)="["+t(1) + t($)=t($)+"]" + end +endfunction + +function t=pol2exp(a,lmax) + $ + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + + [m,n]=size(a),var=" ";lvar=1 + var=varn(a),lvar=length(var); + while part(var,lvar)==" " then lvar=lvar-1,end + var=part(var,1:lvar); + if m<0 then + t=pol2exp(a+0) + t="("+t+")*eye()" + return + end + t=[]; + for i=1:m + x=emptystr(1) + for j=1:n, + v=a(i,j);d=degree(v); + v=coeff(v); + k0=1;while (k0<d+1)&(v(k0))==0 then k0=k0+1,end + y=emptystr(1) + nul=%t + for k=k0:(d+1), + s=String(v(k)) + if s<>"0" then + nul=%f + if part(s,1)==" " then s=part(s,2:length(s)),end + mnm=emptystr(1) + if k>0 then + mnm=var + if k>2 then + mnm=mnm+"^"+string(k-1), + end + end + if k>1 then + if string(imag(v(k)))<>"0" then s="("+s+")",end + if s=="1" then + s=mnm + elseif s=="-1" then + s="-"+mnm + else + s=s+"*"+mnm + end + if k>k0&part(s,1)<>"-" then s="+"+s,end + end + if lmax==0|length(y($))+length(s) <lmax then + y($)=y($)+s + else + y($)=y($)+dots + y($+1)=s + end + end + end + if nul then y="0*"+var,end + [ny,my]=size(y) + + if lmax==0|length(x($))+length(y(1))<lmax then + if j==1 then + x=y(1) + else + x($)=x($)+","+y(1), + end + if ny>1 then x($+1:$+ny-1)=y(2:ny),end + else + if length(x($))==0 then + x($:$+ny-1) = y; + else + x($)=x($)+","+dots; + x($+1:$+ny)=y + end + end + end + if i<m then x($)=x($)+";",end + if lmax>0 then + t=[t;x] + else + t=t+x + end + end, + if lmax>0&sum(length(t))<lmax then + t=strcat(t) + end + if m*n>1 then + t(1)="["+t(1) + t($)=t($)+"]" + end +endfunction + +function t=list2exp(l,lmax) + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + dots="."+"."; + t="list(" + n=length(l) + for k=1:n + lk=l(k) + sep=",",if k==1 then sep=emptystr(),end + if type(lk)==9 then + t1=h2exp(lk,lmax) + elseif type(lk)==15 then + t1=list2exp(lk,lmax) + elseif type(lk)==16 then + t1=tlist2exp(lk,lmax) + elseif type(lk)==17 then + t1=mlist2exp(lk,lmax) + else + t1=sci2exp(lk,lmax) + end + if size(t1,"*")==1&(lmax==0|max(length(t1))+length(t($))<lmax) then + t($)=t($)+sep+t1 + else + t($)=t($)+sep+dots + t=[t;t1] + end + lk=null() + end + t($)=t($)+")" +endfunction + +function t=tlist2exp(l,lmax) + $; + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + dots="."+"."; + t="tlist(" + n=length(l) + for k=1:n + lk=l(k) + sep=",",if k==1 then sep=emptystr(),end + if type(lk)==15 then + t1=list2exp(lk,lmax) + elseif type(lk)==16 then + t1=tlist2exp(lk,lmax) + elseif type(lk)==17 then + t1=mlist2exp(lk,lmax) + elseif type(lk)==9 then + t1=h2exp(lk,lmax,1) + else + t1=sci2exp(lk,lmax) + end + if size(t1,"*")==1&(lmax==0|max(length(t1))+length(t($))<lmax) then + t($)=t($)+sep+t1 + else + t($)=t($)+sep+dots + t=[t;t1] + end + end + t($)=t($)+")" + +endfunction + +function t=mlist2exp(l,lmax) + $; + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + dots="."+"."; + t="mlist(" + n=size(definedfields(l),"*") + for k=1:n + lk=getfield(k,l) + sep=",",if k==1 then sep=emptystr(),end + if type(lk)==15 then + t1=list2exp(lk,lmax) + elseif type(lk)==16 then + t1=tlist2exp(lk,lmax) + elseif type(lk)==17 then + t1=mlist2exp(lk,lmax) + elseif type(lk)==9 then + t1=h2exp(lk,lmax) + else + t1=sci2exp(lk,lmax) + end + if size(t1,"*")==1&(lmax==0|max(length(t1))+length(t($))<lmax) then + t($)=t($)+sep+t1 + else + t($)=t($)+sep+dots + t=[t;t1] + end + end + t($)=t($)+")" + +endfunction + +function t=log2exp(a,lmax) + $; + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + [m,n]=size(a), + a1=matrix(a,m*n,1) + F="%f" + T="%t" + a=F(ones(m*n,1)) + k=find(a1); + if k<>[] then + a(k)=T(ones(size(k,"*"),1)); + end + a=matrix(a,m,n); + dots="."+"." + t=[]; + for i=1:m + x=emptystr() + for j=1:n, + y=a(i,j); + if lmax==0|length(x($))+length(y)<lmax then + if j==1 then + x=y + else + x($)=x($)+","+y, + end + else + x($)=x($)+","+dots; + x($+1)=y + end + end + t=[t;x] + end, + if lmax==0|lmax>0&sum(length(t))<lmax then + t=strcat(t,";") + end + if m*n>1 then + t(1)="["+t(1) + t($)=t($)+"]" + end + +endfunction + +function t=func2exp(a,lmax) + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + [out,in,text]=string(a) + if out==[] then out=emptystr(),end + text=str2exp(text,lmax) + nt=size(text,"*") + if named then mac=nom,else mac="mac",end + if nt==1 then + t="deff(''["+strcat(out,",")+"]="+mac+"("+strcat(in,",")+")'',"+text+")" + else + text($)=text($)+")" + semi=";" + text(1:$-1)=text(1:$-1)+semi(ones(nt-1,1))' + t=["deff(''["+strcat(out,",")+"]="+mac+"("+strcat(in,",")+")'',"+text(1) + text(2:$)] + end +endfunction + +function t=imp2exp(a,lmax) + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + v=[a(1),a(2),a(3)] + if a(2)==1 then + t=sci2exp(a(1))+":"+sci2exp(a(3)) + else + t=sci2exp(a(1))+":"+sci2exp(a(2))+":"+sci2exp(a(3)) + end +endfunction + +function t=sp2exp(a,lmax) + if rhs<2 then lmax=0,end + [lhs,rhs]=argn(0) + dots=".."; + [ij,v,mn]=spget(a) + t=sci2exp(ij,lmax) + v=sci2exp(v,lmax) + mn=sci2exp(mn,lmax) + + t(1)="sparse("+t(1) + if lmax==0|length(t($))+length(v(1))+1<lmax then + t($)=t($)+","+v(1) + t=[t;v(2:$)] + else + t($)=t($)+","+dots + t=[t;v] + end + if lmax==0|length(t($))+length(mn(1))+1<lmax then + t($)=t($)+","+mn(1) + t=[t;mn(2:$)] + else + t($)=t($)+","+dots + t=[t;mn] + end + t($)=t($)+")" +endfunction + + +function t=int2exp(a,lmax) + it=inttype(a) + if it>10 then f="uint",else f="int",end + f=f+string(8*modulo(it,10)) + t=mat2exp(double(a),lmax) + t(1)=f+"("+t(1) + t($)=t($)+")" +endfunction + + +function t=h2exp(a,lmax) //Only for figure and uicontrol + $; + if rhs<2 then lmax=0 + end + [lhs,rhs]=argn(0); + + + f1="''parent'', "; + f2="''children'', "; + f3="''BackgroundColor'', "; + f4="''Enable'', "; + f5="''fontAngle'', "; + f6="''fontName'', "; + f7="''fontSize'', "; + f8="''fontUnits'', "; + f9="''fontWeight'', "; + f10="''ForegroundColor'', "; + f11="''HorizontalAlignment'', "; + f12="''ListboxTop'', "; + f13="''Max'', "; + f14="''Min'', "; + f15="''Position'', "; + f16="''Relief'', "; + f17="''SliderStep'', "; + f18="''String'', "; + f19="''Style'', "; + f20="''TooltipString'', "; + f21="''Units'', "; + f22="''Value'', "; + f23="''VerticalAlignment'', "; + f24="''Visible'', "; + f25="''Callback'', "; + f26="''Callback_Type'', "; + f27="''Handle_Visible'', "; + f28="''Userdata'', "; + f29="''Tag'', "; + f30="''figure_position'', "; + f31="''figure_size'', "; + f32="''axes_size'', "; + f33="''auto_resize'', "; + f34="''viewport'', "; + f35="''figure_name'', "; + f36="''figure_id'', "; + f37="''info_message'', "; + f38="''color_map'', "; + f40="''pixel_drawing_mode'', "; + f41="''anti_aliasing'', "; + f42="''immediate_drawing'', "; + f43="''background'', "; + f44="''rotation_style'', "; + f45="''event_handler'', "; + f46="''event_handler_enable'', "; + f47="''resizefcn'', "; + f48="''closerequestfcn'', "; + x=[]; + + + if a.type=="uicontrol" + f="uicontrol"; + if a.BackgroundColor <> [0.8 0.8 0.8] then + if type(a.BackgroundColor)==1 then + f3_strg=String(a.Backgroundcolor); + f3_strg="["+f3_strg(1)+" "+f3_strg(2)+" "+f3_strg(3)+"]"; + x=x+f3+f3_strg+", "; + else + f3_strg=a.BackgroundColor; + x=x+f3+"''"+f3_strg+"''"+", "; + end + end + if a.Enable <> "on" then x=x+f4+"''"+a.Enable+"''"+", "; end + if a.fontAngle <> "normal" then x=x+f5+"''"+a.fontAngle+"''"+", "; end + if a.fontName <> "helvetica" then x=x+f6+"''"+a.fontName+"''"+", "; end + f7_strg=String(a.fontSize); + if a.fontSize <> 10 then x=x+f7+f7_strg+", "; end + if a.fontUnits <> "points" then x=x+f8+"''"+a.fontUnits+"''"+", "; end + if a.fontWeight <> "normal" then x=x+f9+"''"+a.fontWeight+"''"+", "; end + if a.foregroundColor <>[0 0 0] then + if type(a.ForegroundColor)==1 then + f10_strg=String(a.foregroundColor); + f10_strg="["+f10_strg(1)+" "+f10_strg(2)+" "+f10_strg(3)+"]"; + x=x+f10+f10_strg+" ,"; + else + f10_strg=a.ForegroundColor; + x=x+f10+"''"+f10_strg+"''"+", "; + end + end + if a.HorizontalAlignment <> "center" then x=x+f11+"''"+a.horizontalAlignment+"''"+", "; end + f12_strg=String(a.ListBoxTop); + if a.ListBoxTop <>[] then x=x+f12+f12_strg+", "; end + f13_strg=String(a.Max); + if a.max<> 1 then x=x+f13+f13_strg+", "; end + f14_strg=String(a.Min); + if a.min<> 0 then x=x+f14+f14_strg+", "; end + if a.Position <>[20 40 40 20] then + if type(a.Position)==1 then + f15_strg=String(a.Position); + f15_strg="["+f15_strg(1)+" "+f15_strg(2)+" "+f15_strg(3)+" "+f15_strg(4)+"]"; + x=x+f15+f15_strg+", "; + else + f15_strg=a.Position; + x=x+f15+"''"+f15_strg+"''"+", "; + end + end + x=x+f16+"''"+a.Relief+"''"+", "; + f17_strg=String(a.sliderStep); f17_strg="["+f17_strg(1)+" "+f17_strg(2)+"]"; + if a.sliderStep <> [0.01 0.1] then x=x+f17+f17_strg+", "; end + if a.String <>"" then x=x+f18+"''"+a.String+"''"+" ,"; end + if a.Style <> "pushbutton" then x=x+f19+"''"+a.Style+"''"+", "; end + if a.TooltipString <> "" then x=x+f20+"''"+a.TooltipString+"''"+", "; end + if a.Units <> "pixels" then x=x+f21+"''"+a.Units+"''"+", "; end + if a.Value<>[] then + f22_strg=String(a.value); + f22l=length(a.value); + for i=1:f22l + f22_strg=strcat(f22_strg, ","); + f22_strg="["+f22_strg+"]"; + end + x=x+f22+", "+f22_strg+", "; + end + if a.VerticalAlignment <> "middle" then x=x+f23+"''"+a.VerticalAlignment+"''"+", "; end + if a.Visible <> "on" then x=x+f24+"''"+a.Visible+"''"+", "; end + if a.Callback <>"" then x=x+f25+"''"+a.Callback+"''"+" ,"; end + f26_strg=String(a.Callback_Type); + if a.Callback_Type <> -1 then x=x+f26+f26_strg+", "; end + if a.Handle_Visible <> "on" then x=x+f27+"''"+a.Handle_Visible+"''"+", "; end + if a.Userdata <>[] then + if type(a.userdata) == 1 then + f28_strg=mat2exp(a.userdata,0) + elseif type(a.userdata) == 2 then + f28_strg=pol2exp(a.userdata,0) + elseif type(a.userdata) == 4 then + f28_strg=log2exp(a.userdata,0) + elseif type(a.userdata) == 5 | type(a.userdata) == 6 | type(a.userdata) == 7 then + f28_strg=sp2exp(a.userdata,0) + elseif type(a.userdata) == 8 then + f28_strg=int2exp(a.userdata,0) + elseif type(a.userdata) == 9 then + f28_strg=h2exp(a.userdata,0) + elseif type(a.userdata) == 10 then + f28_strg=str2exp(a.userdata,0) + elseif type(a.userdata) == 11 then + f28_strg=func2exp(a.userdata,0) + named=%f + elseif type(a.userdata) == 13 then + if named then + t=fun2string(a,nom) + else + t=fun2string(a,"%fun") + end + t(1)=part(t(1),10:length(t(1))) + t($)=[] + t=sci2exp(t,lmax) + t(1)="createfun("+t(1) + t($)=t($)+")" + elseif type(a.userdata) == 15 then + f28_strg=list2exp(a.userdata); + elseif type(a.userdata) == 16 then + f28_strg=tlist2exp(a.userdata,0); + elseif type(a.userdata) == 17 then + f28_strg=mlist2exp(a.userdata,0); + elseif type(a.userdata) == 129 then + f28_strg=imp2exp(a.userdata,0); + end + x=x+f28+f28_strg+", "; + end + if a.Tag<>"" then x=x+f29+"''"+a.Tag+"''"+", "; end + lx=length(x); + x=part(x,1:lx-2); + t(1)=f+"("+x; + t(1)=t(1)+")"; + dots="."+"."; + lt=length(t(1)) + if lt>lmax & lmax<>0 then + ind=strindex(x,","); + k1=1;l=0;I=[]; + while %t + if lt-l<lmax|k1>length(ind) then break,end + k2=k1-1+max(find(ind(k1:$)<l+lmax)) + I=[I ind(k2)]; + k1=k2+1 + l=ind(k2) + end + t=strsplit(t(1),I); + t(1:$-1)=t(1:$-1)+dots; + end + + + elseif a.type == "Figure" then + f="figure"; + f30_strg=String(a.figure_position); + f30_strg="["+f30_strg(1)+" "+f30_strg(2)+"]"; + if a.figure_position <> [] then x=f30+f30_strg+", "; end + f31_strg=String(a.figure_size); + f31_strg="["+f31_strg(1)+" "+f31_strg(2)+"]"; + if a.figure_size <> [] then x=x+f31+f31_strg+", "; end + f32_strg=String(a.axes_size); + f32_strg="["+f32_strg(1)+" "+f32_strg(2)+"]"; + if a.axes_size <> [] then x=x+f32+f32_strg+", "; end + if a.auto_resize<>"on" then x=x+f33+"''"+a.auto_resize+"''"+", "; end + f34_strg=String(a.viewport); + f34_strg="["+f34_strg(1)+" "+f34_strg(2)+"]"; + if a.viewport <>[0 0] then x=x+f34+f34_strg+", "; end + if a.figure_name<>"Figure n°%d" then x=x+f35+"''"+a.figure_name+"''"+", "; + end + f36_strg=String(a.figure_id); + x=x+f36+f36_strg+", "; + if a.info_message<>"" then x=x+f37+"''"+a.info_message+"''"+", "; end + if a.pixel_drawing_mode <> "copy" then x=x+f40+"''"+a.pixel_drawing_mode+"''"+", "; end + if a.anti_aliasing <> "off" then x=x+f41+"''"+a.anti_aliasing+"''"+", "; end + if a.immediate_drawing <>"on" then x=x+f42+"''"+a.immediate_drawing+"''"+", "; end + f43_strg=String(f43); + if a.background <> 33 then x=x+f43+f43_strg+", "; end + if a.visible <> "on" then x=x+f24+"''"+a.visible+"''"+", "; end + if a.rotation_style <> "unary" then x=x+f44+"''"+a.rotation_style+"''"+", "; end + if a.event_handler <> "" then x=x+f45+"''"+a.event_handler+"''"+", "; end + if a.event_handler_enable <> "off" then x=x+f46+"''"+a.event_handler_enable+"''"+", "; end + if a.userdata <> [] then + if type(a.userdata) == 1 then + f47_strg=mat2exp(a.userdata,0) + elseif type(a.userdata) == 2 then + f47_strg=pol2exp(a.userdata,0) + elseif type(a.userdata) == 4 then + f47_strg=log2exp(a.userdata,0) + elseif type(a.userdata) == 5 | type(a.userdata) == 6 | type(a.userdata) == 7 then + f47_strg=sp2exp(a.userdata,0) + elseif type(a.userdata) == 8 then + f47_strg=int2exp(a.userdata,0) + elseif type(a.userdata) == 9 then + f47_strg=h2exp(a.userdata,0) + elseif type(a.userdata) == 10 then + f47_strg=str2exp(a.userdata,0) + elseif type(a.userdata) == 11 then + f47_strg=func2exp(a.userdata,0) + named=%f + elseif type(a.userdata) == 13 then + if named then + t=fun2string(a,nom) + else + t=fun2string(a,"%fun") + end + t(1)=part(t(1),10:length(t(1))) + t($)=[] + t=sci2exp(t,lmax) + t(1)="createfun("+t(1) + t($)=t($)+")" + elseif type(a.userdata) == 15 then + f47_strg=list2exp(a.userdata); + elseif type(a.userdata) == 16 then + f47_strg=tlist2exp(a.userdata,0) + elseif type(a.userdata) == 17 then + f47_strg=mlist2exp(a.userdata,0) + elseif type(a.userdata) == 129 then + f47_strg=imp2exp(a.userdata,0) + end + x=x+f28+f47_strg+", "; + end + if a.resizefcn <> "" then x=x+f47+"''"+a.resizefcn+"''"+", "; end + if a.closerequestfcn <> "" then x=x+f48+"''"+a.closerequestfcn+"''"+", "; end + if a.tag <> "" then x=x+f27+"''"+a.tag+"''"+", "; end + lx=length(x); + x=part(x,1:lx-2); + t(1)=f+"("+x; + t(1)=t(1)+")"; + dots="."+"."; + lt=length(t(1)) + if lt>lmax & lmax<>0 then + ind=strindex(x,","); + k1=1;l=0;I=[]; + while %t + if lt-l<lmax|k1>length(ind) then break,end + k2=k1-1+max(find(ind(k1:$)<l+lmax)) + I=[I ind(k2)]; + k1=k2+1 + l=ind(k2) + end + t=strsplit(t(1),I); + t(1:$-1)=t(1:$-1)+dots; + end + else + error(msprintf(gettext("%s: This feature has not been implemented: Variable translation of type %s.\n"),"sci2exp",string(a.type))); + end + +endfunction diff --git a/modules/string/macros/strcmpi.bin b/modules/string/macros/strcmpi.bin Binary files differnew file mode 100755 index 000000000..1510cbbb5 --- /dev/null +++ b/modules/string/macros/strcmpi.bin diff --git a/modules/string/macros/strcmpi.sci b/modules/string/macros/strcmpi.sci new file mode 100755 index 000000000..a9fc09758 --- /dev/null +++ b/modules/string/macros/strcmpi.sci @@ -0,0 +1,17 @@ +//=============================== +// strcmpi function +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - Allan CORNET +// +// 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 + + +//=============================== +function res = strcmpi(str_one,str_two) + res = strcmp(str_one,str_two,"i"); +endfunction +//=============================== diff --git a/modules/string/macros/tokenpos.bin b/modules/string/macros/tokenpos.bin Binary files differnew file mode 100755 index 000000000..e4dc288a5 --- /dev/null +++ b/modules/string/macros/tokenpos.bin diff --git a/modules/string/macros/tokenpos.sci b/modules/string/macros/tokenpos.sci new file mode 100755 index 000000000..1547ca8ea --- /dev/null +++ b/modules/string/macros/tokenpos.sci @@ -0,0 +1,29 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA +// +// 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 + +function kdf=tokenpos(str,sep) + //return a vector of indices giving the beginning of the included + //tokens + if argn(2)<2 then sep=[" ",ascii(9)],end + + if size(str,"*")<> 1 then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A character string expected.\n"),"tokenpos",1)); + end + if or(length(sep)<>1) then + error(msprintf(gettext("%s: Wrong size for input argument #%d: A character or vector of characters expected.\n"),"tokenpos",2)); + end + str=sep(1)+str+sep(1) + k1=strindex(str,sep) + i=find(k1(2:$)-k1(1:$-1)>1) + if i<>[] then + kdf=[k1(i);k1(i+1)-2]' + else + kdf=[] + end +endfunction diff --git a/modules/string/macros/tree2code.bin b/modules/string/macros/tree2code.bin Binary files differnew file mode 100755 index 000000000..b1f3c6df9 --- /dev/null +++ b/modules/string/macros/tree2code.bin diff --git a/modules/string/macros/tree2code.sci b/modules/string/macros/tree2code.sci new file mode 100755 index 000000000..776924c20 --- /dev/null +++ b/modules/string/macros/tree2code.sci @@ -0,0 +1,71 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - Vincent Couvert +// +// 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 + + +function C=tree2code(P,bprettyprintformat) + // Convert a tree returned by macr2tree() to a macro code + // Input: + // - P: 'program' tlist + // - bprettyprintformat: boolean value, if FALSE (default value), generated code is not formated else it is + // Output: + // - C: character string matrix (colum vector) + + // Verify good type for input + if typeof(P)<>"program" then + error(msprintf(gettext("%s: Wrong type for input argument #%d: ''%s'' expected.\n"),"tree2code",2,"program tree")); + end + + // Default value + rhs = argn(2); + if rhs==1 then + bprettyprintformat=%F + end + + C="" + + // Function prototype + lhsstr=[] + rhsstr=[] + if P.name<>"" then // Not a batch file + for k=1:size(P.outputs) + lhsstr=[lhsstr,expression2code(P.outputs(k))] + end + lhsstr="["+strcat(lhsstr,",")+"]" + + for k=1:size(P.inputs) + rhsstr=[rhsstr,expression2code(P.inputs(k))] + end + rhsstr="("+strcat(rhsstr,",")+")" + + C="function "+lhsstr+" = "+P.name+rhsstr; + end + + I=P.statements + + // To avoid to have some instructions on the first line (function prototype) + if I(1)<>list("EOL") then + C=cat_code(C,instruction2code(list("EOL"),%T)); + end + + // For each statement, generate corresponding code + for i=1:size(I)-2 // -2 to ignore last return+EOL + if bprettyprintformat then + C=cat_code(C," "+instruction2code(I(i),bprettyprintformat)); + else + C=cat_code(C,instruction2code(I(i),bprettyprintformat)); + end + C = format_txt(C,I(i),bprettyprintformat,I(i+1)); + end + + if P.name<>"" then // Not a batch file + C=cat_code(C,"endfunction"); // Replace last return + C=cat_code(C,""); + end +endfunction + diff --git a/modules/string/sci_gateway/c/.deps/.dirstamp b/modules/string/sci_gateway/c/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/.dirstamp diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-gw_string.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-gw_string.Plo new file mode 100755 index 000000000..31eb97570 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-gw_string.Plo @@ -0,0 +1,273 @@ +sci_gateway/c/libscistring_la-gw_string.lo: sci_gateway/c/gw_string.c \ + /usr/include/stdc-predef.h includes/gw_string.h includes/dynlib_string.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h /usr/include/string.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/core/includes/callFunctionFromGateway.h + +/usr/include/stdc-predef.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/core/includes/callFunctionFromGateway.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_ascii.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_ascii.Plo new file mode 100755 index 000000000..2e0658432 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_ascii.Plo @@ -0,0 +1,264 @@ +sci_gateway/c/libscistring_la-sci_ascii.lo: sci_gateway/c/sci_ascii.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + includes/gw_string.h includes/dynlib_string.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h includes/getfastcode.h \ + ../../modules/core/includes/warningmode.h \ + ../../modules/output_stream/includes/sciprint.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +includes/getfastcode.h: + +../../modules/core/includes/warningmode.h: + +../../modules/output_stream/includes/sciprint.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_code2str.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_code2str.Plo new file mode 100755 index 000000000..f6a191ac0 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_code2str.Plo @@ -0,0 +1,261 @@ +sci_gateway/c/libscistring_la-sci_code2str.lo: \ + sci_gateway/c/sci_code2str.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.h \ + /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \ + includes/code2str.h ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/warningmode.h \ + ../../modules/output_stream/includes/sciprint.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +includes/code2str.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/warningmode.h: + +../../modules/output_stream/includes/sciprint.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_convstr.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_convstr.Plo new file mode 100755 index 000000000..e9d68339b --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_convstr.Plo @@ -0,0 +1,314 @@ +sci_gateway/c/libscistring_la-sci_convstr.lo: sci_gateway/c/sci_convstr.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h src/c/convstr.h \ + includes/dynlib_string.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.h \ + /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/freeArrayOfString.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +src/c/convstr.h: + +includes/dynlib_string.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/freeArrayOfString.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_emptystr.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_emptystr.Plo new file mode 100755 index 000000000..0ed7bef95 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_emptystr.Plo @@ -0,0 +1,318 @@ +sci_gateway/c/libscistring_la-sci_emptystr.lo: \ + sci_gateway/c/sci_emptystr.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h src/c/CreateEmptystr.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +src/c/CreateEmptystr.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/BOOL.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_grep.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_grep.Plo new file mode 100755 index 000000000..11ab8c9f0 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_grep.Plo @@ -0,0 +1,273 @@ +sci_gateway/c/libscistring_la-sci_grep.lo: sci_gateway/c/sci_grep.c \ + /usr/include/stdc-predef.h /usr/include/stdio.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \ + /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/gw_string.h \ + includes/dynlib_string.h \ + /home/shashank/scilab-master_5.5.2/usr/include/pcre.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /home/shashank/scilab-master_5.5.2/usr/include/pcreposix.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h includes/pcre_private.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h src/c/pcre_error.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/stdio.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +/home/shashank/scilab-master_5.5.2/usr/include/pcre.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/home/shashank/scilab-master_5.5.2/usr/include/pcreposix.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +includes/pcre_private.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +src/c/pcre_error.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isalphanum.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isalphanum.Plo new file mode 100755 index 000000000..cb0989ad9 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isalphanum.Plo @@ -0,0 +1,316 @@ +sci_gateway/c/libscistring_la-sci_isalphanum.lo: \ + sci_gateway/c/sci_isalphanum.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/freeArrayOfString.h src/c/isalphanum.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/freeArrayOfString.h: + +src/c/isalphanum.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isascii.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isascii.Plo new file mode 100755 index 000000000..b37212084 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isascii.Plo @@ -0,0 +1,330 @@ +sci_gateway/c/libscistring_la-sci_isascii.lo: sci_gateway/c/sci_isascii.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + includes/gw_string.h includes/dynlib_string.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/BOOL.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isdigit.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isdigit.Plo new file mode 100755 index 000000000..e0a6eb963 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isdigit.Plo @@ -0,0 +1,312 @@ +sci_gateway/c/libscistring_la-sci_isdigit.lo: sci_gateway/c/sci_isdigit.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/BOOL.h src/c/isdigit.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/BOOL.h: + +src/c/isdigit.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isletter.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isletter.Plo new file mode 100755 index 000000000..020f36aab --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isletter.Plo @@ -0,0 +1,265 @@ +sci_gateway/c/libscistring_la-sci_isletter.lo: \ + sci_gateway/c/sci_isletter.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h src/c/isletter.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +src/c/isletter.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isnum.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isnum.Plo new file mode 100755 index 000000000..b082c26b5 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_isnum.Plo @@ -0,0 +1,295 @@ +sci_gateway/c/libscistring_la-sci_isnum.lo: sci_gateway/c/sci_isnum.c \ + /usr/include/stdc-predef.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h /usr/include/string.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.h \ + /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h src/c/isnum.h \ + ../../modules/core/includes/BOOL.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/sciprint.h \ + ../../modules/core/includes/warningmode.h + +/usr/include/stdc-predef.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +src/c/isnum.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/sciprint.h: + +../../modules/core/includes/warningmode.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_length.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_length.Plo new file mode 100755 index 000000000..96c4cf1e2 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_length.Plo @@ -0,0 +1,327 @@ +sci_gateway/c/libscistring_la-sci_length.lo: sci_gateway/c/sci_length.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.h \ + /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/freeArrayOfString.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/functions/includes/isScilabFunction.h \ + ../../modules/functions/includes/dynlib_functions.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/freeArrayOfString.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: + +../../modules/functions/includes/isScilabFunction.h: + +../../modules/functions/includes/dynlib_functions.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_part.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_part.Plo new file mode 100755 index 000000000..9095804ed --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_part.Plo @@ -0,0 +1,252 @@ +sci_gateway/c/libscistring_la-sci_part.lo: sci_gateway/c/sci_part.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h src/c/partfunction.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +src/c/partfunction.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_regexp.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_regexp.Plo new file mode 100755 index 000000000..98c8bd106 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_regexp.Plo @@ -0,0 +1,269 @@ +sci_gateway/c/libscistring_la-sci_regexp.lo: sci_gateway/c/sci_regexp.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.h \ + /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + /home/shashank/scilab-master_5.5.2/usr/include/pcre.h \ + includes/pcre_private.h src/c/pcre_error.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/home/shashank/scilab-master_5.5.2/usr/include/pcre.h: + +includes/pcre_private.h: + +src/c/pcre_error.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_str2code.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_str2code.Plo new file mode 100755 index 000000000..99ac67df8 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_str2code.Plo @@ -0,0 +1,262 @@ +sci_gateway/c/libscistring_la-sci_str2code.lo: \ + sci_gateway/c/sci_str2code.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h includes/code2str.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/warningmode.h \ + ../../modules/output_stream/includes/sciprint.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +includes/code2str.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/warningmode.h: + +../../modules/output_stream/includes/sciprint.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strcat.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strcat.Plo new file mode 100755 index 000000000..edb81ad4e --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strcat.Plo @@ -0,0 +1,250 @@ +sci_gateway/c/libscistring_la-sci_strcat.lo: sci_gateway/c/sci_strcat.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strchr.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strchr.Plo new file mode 100755 index 000000000..bc675a8b1 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strchr.Plo @@ -0,0 +1,327 @@ +sci_gateway/c/libscistring_la-sci_strchr.lo: sci_gateway/c/sci_strchr.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + includes/gw_string.h includes/dynlib_string.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h src/c/stringsstrrchr.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +src/c/stringsstrrchr.h: + +../../modules/core/includes/BOOL.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strcmp.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strcmp.Plo new file mode 100755 index 000000000..f5c004e36 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strcmp.Plo @@ -0,0 +1,255 @@ +sci_gateway/c/libscistring_la-sci_strcmp.lo: sci_gateway/c/sci_strcmp.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/BOOL.h src/c/stringsCompare.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/BOOL.h: + +src/c/stringsCompare.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strcspn.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strcspn.Plo new file mode 100755 index 000000000..e3802cb1f --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strcspn.Plo @@ -0,0 +1,265 @@ +sci_gateway/c/libscistring_la-sci_strcspn.lo: sci_gateway/c/sci_strcspn.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + includes/gw_string.h includes/dynlib_string.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/freeArrayOfString.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/freeArrayOfString.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strindex.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strindex.Plo new file mode 100755 index 000000000..42d409454 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strindex.Plo @@ -0,0 +1,277 @@ +sci_gateway/c/libscistring_la-sci_strindex.lo: \ + sci_gateway/c/sci_strindex.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + includes/gw_string.h includes/dynlib_string.h \ + /home/shashank/scilab-master_5.5.2/usr/include/pcre.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.h \ + /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h includes/pcre_private.h \ + ../../modules/core/includes/BOOL.h src/c/pcre_error.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/output_stream/includes/sciprint.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h src/cpp/sort_inter.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +/home/shashank/scilab-master_5.5.2/usr/include/pcre.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +includes/pcre_private.h: + +../../modules/core/includes/BOOL.h: + +src/c/pcre_error.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/output_stream/includes/sciprint.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +src/cpp/sort_inter.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_string.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_string.Plo new file mode 100755 index 000000000..18ec30159 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_string.Plo @@ -0,0 +1,289 @@ +sci_gateway/c/libscistring_la-sci_string.lo: sci_gateway/c/sci_string.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/gw_string.h \ + includes/dynlib_string.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.h \ + /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/output_stream/includes/Scierror.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/output_stream/includes/Scierror.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_stripblanks.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_stripblanks.Plo new file mode 100755 index 000000000..b56be3277 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_stripblanks.Plo @@ -0,0 +1,256 @@ +sci_gateway/c/libscistring_la-sci_stripblanks.lo: \ + sci_gateway/c/sci_stripblanks.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h includes/stripblanks.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +includes/stripblanks.h: + +../../modules/core/includes/BOOL.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strncpy.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strncpy.Plo new file mode 100755 index 000000000..2ab1ae433 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strncpy.Plo @@ -0,0 +1,265 @@ +sci_gateway/c/libscistring_la-sci_strncpy.lo: sci_gateway/c/sci_strncpy.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + includes/gw_string.h includes/dynlib_string.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strrev.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strrev.Plo new file mode 100755 index 000000000..c1ab73bf5 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strrev.Plo @@ -0,0 +1,255 @@ +sci_gateway/c/libscistring_la-sci_strrev.lo: sci_gateway/c/sci_strrev.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + includes/gw_string.h includes/dynlib_string.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h src/c/stringsstrrev.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +src/c/stringsstrrev.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strsplit.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strsplit.Plo new file mode 100755 index 000000000..619c0a8c8 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strsplit.Plo @@ -0,0 +1,297 @@ +sci_gateway/c/libscistring_la-sci_strsplit.lo: \ + sci_gateway/c/sci_strsplit.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/output_stream/includes/Scierror.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/BOOL.h ../../modules/core/includes/BOOL.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h src/c/strsplit.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/output_stream/includes/Scierror.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/BOOL.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +src/c/strsplit.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strspn.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strspn.Plo new file mode 100755 index 000000000..575f3f201 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strspn.Plo @@ -0,0 +1,265 @@ +sci_gateway/c/libscistring_la-sci_strspn.lo: sci_gateway/c/sci_strspn.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + includes/gw_string.h includes/dynlib_string.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strstr.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strstr.Plo new file mode 100755 index 000000000..832896b94 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strstr.Plo @@ -0,0 +1,253 @@ +sci_gateway/c/libscistring_la-sci_strstr.lo: sci_gateway/c/sci_strstr.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + includes/gw_string.h includes/dynlib_string.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strsubst.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strsubst.Plo new file mode 100755 index 000000000..6e0c44240 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strsubst.Plo @@ -0,0 +1,303 @@ +sci_gateway/c/libscistring_la-sci_strsubst.lo: \ + sci_gateway/c/sci_strsubst.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/freeArrayOfString.h includes/strsubst.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.h \ + /usr/include/locale.h /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + src/c/pcre_error.h includes/pcre_private.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/freeArrayOfString.h: + +includes/strsubst.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +src/c/pcre_error.h: + +includes/pcre_private.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strtod.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strtod.Plo new file mode 100755 index 000000000..bcdadc413 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strtod.Plo @@ -0,0 +1,298 @@ +sci_gateway/c/libscistring_la-sci_strtod.lo: sci_gateway/c/sci_strtod.c \ + /usr/include/stdc-predef.h /usr/include/stdlib.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/xlocale.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h /usr/include/string.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/freeArrayOfString.h + +/usr/include/stdc-predef.h: + +/usr/include/stdlib.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/xlocale.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +/usr/include/string.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/freeArrayOfString.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strtok.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strtok.Plo new file mode 100755 index 000000000..231eeeab0 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_strtok.Plo @@ -0,0 +1,253 @@ +sci_gateway/c/libscistring_la-sci_strtok.lo: sci_gateway/c/sci_strtok.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.deps/libscistring_la-sci_tokens.Plo b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_tokens.Plo new file mode 100755 index 000000000..a2412b774 --- /dev/null +++ b/modules/string/sci_gateway/c/.deps/libscistring_la-sci_tokens.Plo @@ -0,0 +1,264 @@ +sci_gateway/c/libscistring_la-sci_tokens.lo: sci_gateway/c/sci_tokens.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/output_stream/includes/Scierror.h \ + ../../modules/output_stream/includes/do_error_number.h \ + ../../modules/core/includes/machine.h src/c/tokens.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/output_stream/includes/Scierror.h: + +../../modules/output_stream/includes/do_error_number.h: + +../../modules/core/includes/machine.h: + +src/c/tokens.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/sci_gateway/c/.dirstamp b/modules/string/sci_gateway/c/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/string/sci_gateway/c/.dirstamp diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-gw_string.o b/modules/string/sci_gateway/c/.libs/libscistring_la-gw_string.o Binary files differnew file mode 100755 index 000000000..bdc6e6ef6 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-gw_string.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_ascii.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_ascii.o Binary files differnew file mode 100755 index 000000000..00bfedad3 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_ascii.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_code2str.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_code2str.o Binary files differnew file mode 100755 index 000000000..9fdd24219 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_code2str.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_convstr.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_convstr.o Binary files differnew file mode 100755 index 000000000..48a67bd42 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_convstr.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_emptystr.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_emptystr.o Binary files differnew file mode 100755 index 000000000..92877b1b2 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_emptystr.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_grep.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_grep.o Binary files differnew file mode 100755 index 000000000..c12cc83b4 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_grep.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isalphanum.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isalphanum.o Binary files differnew file mode 100755 index 000000000..ba656ea88 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isalphanum.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isascii.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isascii.o Binary files differnew file mode 100755 index 000000000..3bb799157 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isascii.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isdigit.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isdigit.o Binary files differnew file mode 100755 index 000000000..6696f5a70 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isdigit.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isletter.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isletter.o Binary files differnew file mode 100755 index 000000000..0b332b5e5 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isletter.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isnum.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isnum.o Binary files differnew file mode 100755 index 000000000..686cdd752 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_isnum.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_length.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_length.o Binary files differnew file mode 100755 index 000000000..a4bf62dc6 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_length.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_part.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_part.o Binary files differnew file mode 100755 index 000000000..45516dda1 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_part.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_regexp.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_regexp.o Binary files differnew file mode 100755 index 000000000..7a9f290e1 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_regexp.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_str2code.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_str2code.o Binary files differnew file mode 100755 index 000000000..12ecfe923 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_str2code.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strcat.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strcat.o Binary files differnew file mode 100755 index 000000000..8744cd3b9 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strcat.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strchr.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strchr.o Binary files differnew file mode 100755 index 000000000..7dcd3ace0 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strchr.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strcmp.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strcmp.o Binary files differnew file mode 100755 index 000000000..34a90979d --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strcmp.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strcspn.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strcspn.o Binary files differnew file mode 100755 index 000000000..327c58ef4 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strcspn.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strindex.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strindex.o Binary files differnew file mode 100755 index 000000000..f146781b4 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strindex.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_string.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_string.o Binary files differnew file mode 100755 index 000000000..e81c5e617 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_string.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_stripblanks.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_stripblanks.o Binary files differnew file mode 100755 index 000000000..81e64a166 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_stripblanks.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strncpy.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strncpy.o Binary files differnew file mode 100755 index 000000000..2f5d75e61 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strncpy.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strrev.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strrev.o Binary files differnew file mode 100755 index 000000000..2dffbfbf7 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strrev.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strsplit.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strsplit.o Binary files differnew file mode 100755 index 000000000..815086e8a --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strsplit.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strspn.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strspn.o Binary files differnew file mode 100755 index 000000000..87bb4cf97 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strspn.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strstr.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strstr.o Binary files differnew file mode 100755 index 000000000..62111da63 --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strstr.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strsubst.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strsubst.o Binary files differnew file mode 100755 index 000000000..c5770b02f --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strsubst.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strtod.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strtod.o Binary files differnew file mode 100755 index 000000000..5eaab8ece --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strtod.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strtok.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strtok.o Binary files differnew file mode 100755 index 000000000..eef897c2d --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_strtok.o diff --git a/modules/string/sci_gateway/c/.libs/libscistring_la-sci_tokens.o b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_tokens.o Binary files differnew file mode 100755 index 000000000..07ff38b0c --- /dev/null +++ b/modules/string/sci_gateway/c/.libs/libscistring_la-sci_tokens.o diff --git a/modules/string/sci_gateway/c/gw_string.c b/modules/string/sci_gateway/c/gw_string.c new file mode 100755 index 000000000..49e128be4 --- /dev/null +++ b/modules/string/sci_gateway/c/gw_string.c @@ -0,0 +1,69 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - Allan CORNET , Cong WU +* +* 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 +* +*/ + +/*--------------------------------------------------------------------------*/ +#include "gw_string.h" +#include "api_scilab.h" +#include "MALLOC.h" +#include "callFunctionFromGateway.h" +/*--------------------------------------------------------------------------*/ +static gw_generic_table Tab[] = +{ + {sci_length, "length"}, + {sci_part, "part"}, + {sci_string, "string"}, + {sci_convstr, "convstr"}, + {sci_emptystr, "emptystr"}, + {sci_str2code, "str2code"}, + {sci_code2str, "code2str"}, + {sci_strcat, "strcat"}, + {sci_strindex, "strindex"}, + {sci_strsubst, "strsubst"}, + {sci_ascii, "ascii"}, + {sci_grep, "grep"}, + {sci_tokens, "tokens"}, + {sci_strsplit, "strsplit"}, + {sci_stripblanks, "stripblank"}, + {sci_strcmp, "strcmp"}, + {sci_isletter, "isletter"}, + {sci_isdigit, "isdigit"}, + {sci_isalphanum, "isalphanum"}, + {sci_isascii, "isascii"}, + {sci_strcspn, "strcspn"}, + {sci_strncpy, "strncpy"}, + {sci_strchr, "strrchr"}, + {sci_strchr, "strchr"}, + {sci_strstr, "strstr"}, + {sci_strrev, "strrev"}, + {sci_strtok, "strtok"}, + {sci_strspn, "strspn"}, + {sci_strtod, "strtod"}, + {sci_regexp, "regexp"}, + {sci_str2code, "_str2code"}, + {sci_code2str, "_code2str"}, + {sci_isnum, "isnum"}, + {sci_isnum, "csvIsnum"} +}; +/*--------------------------------------------------------------------------*/ +int gw_string(void) +{ + if (pvApiCtx == NULL) + { + pvApiCtx = (StrCtx*)MALLOC(sizeof(StrCtx)); + } + + pvApiCtx->pstName = (char*)Tab[Fin - 1].name; + callFunctionFromGateway(Tab, SIZE_CURRENT_GENERIC_TABLE(Tab)); + return 0; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/sci_gateway/c/libscistring_la-gw_string.lo b/modules/string/sci_gateway/c/libscistring_la-gw_string.lo new file mode 100755 index 000000000..395410eda --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-gw_string.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-gw_string.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-gw_string.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_ascii.lo b/modules/string/sci_gateway/c/libscistring_la-sci_ascii.lo new file mode 100755 index 000000000..5fd0faebd --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_ascii.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_ascii.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_ascii.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_code2str.lo b/modules/string/sci_gateway/c/libscistring_la-sci_code2str.lo new file mode 100755 index 000000000..4fa180c8c --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_code2str.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_code2str.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_code2str.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_convstr.lo b/modules/string/sci_gateway/c/libscistring_la-sci_convstr.lo new file mode 100755 index 000000000..218acedaf --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_convstr.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_convstr.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_convstr.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_emptystr.lo b/modules/string/sci_gateway/c/libscistring_la-sci_emptystr.lo new file mode 100755 index 000000000..c206d75c1 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_emptystr.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_emptystr.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_emptystr.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_grep.lo b/modules/string/sci_gateway/c/libscistring_la-sci_grep.lo new file mode 100755 index 000000000..1e87cedc9 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_grep.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_grep.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_grep.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_isalphanum.lo b/modules/string/sci_gateway/c/libscistring_la-sci_isalphanum.lo new file mode 100755 index 000000000..f9fdebfda --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_isalphanum.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_isalphanum.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_isalphanum.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_isascii.lo b/modules/string/sci_gateway/c/libscistring_la-sci_isascii.lo new file mode 100755 index 000000000..00991a2d3 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_isascii.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_isascii.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_isascii.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_isdigit.lo b/modules/string/sci_gateway/c/libscistring_la-sci_isdigit.lo new file mode 100755 index 000000000..8b5556080 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_isdigit.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_isdigit.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_isdigit.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_isletter.lo b/modules/string/sci_gateway/c/libscistring_la-sci_isletter.lo new file mode 100755 index 000000000..6ecfa0234 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_isletter.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_isletter.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_isletter.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_isnum.lo b/modules/string/sci_gateway/c/libscistring_la-sci_isnum.lo new file mode 100755 index 000000000..0dceea7b9 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_isnum.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_isnum.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_isnum.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_length.lo b/modules/string/sci_gateway/c/libscistring_la-sci_length.lo new file mode 100755 index 000000000..0807f171e --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_length.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_length.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_length.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_part.lo b/modules/string/sci_gateway/c/libscistring_la-sci_part.lo new file mode 100755 index 000000000..92d7453ca --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_part.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_part.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_part.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_regexp.lo b/modules/string/sci_gateway/c/libscistring_la-sci_regexp.lo new file mode 100755 index 000000000..6e055f196 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_regexp.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_regexp.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_regexp.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_str2code.lo b/modules/string/sci_gateway/c/libscistring_la-sci_str2code.lo new file mode 100755 index 000000000..d7ca8e056 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_str2code.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_str2code.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_str2code.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strcat.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strcat.lo new file mode 100755 index 000000000..e013b7b0a --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strcat.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strcat.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strcat.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strchr.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strchr.lo new file mode 100755 index 000000000..a6b4e41ec --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strchr.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strchr.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strchr.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strcmp.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strcmp.lo new file mode 100755 index 000000000..e6c9a409c --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strcmp.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strcmp.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strcmp.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strcspn.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strcspn.lo new file mode 100755 index 000000000..ede398e28 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strcspn.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strcspn.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strcspn.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strindex.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strindex.lo new file mode 100755 index 000000000..d56139247 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strindex.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strindex.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strindex.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_string.lo b/modules/string/sci_gateway/c/libscistring_la-sci_string.lo new file mode 100755 index 000000000..a3595fac3 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_string.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_string.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_string.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_stripblanks.lo b/modules/string/sci_gateway/c/libscistring_la-sci_stripblanks.lo new file mode 100755 index 000000000..e25ec5f04 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_stripblanks.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_stripblanks.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_stripblanks.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strncpy.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strncpy.lo new file mode 100755 index 000000000..7c049edb3 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strncpy.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strncpy.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strncpy.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strrev.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strrev.lo new file mode 100755 index 000000000..4973d0a8a --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strrev.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strrev.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strrev.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strsplit.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strsplit.lo new file mode 100755 index 000000000..23b35508f --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strsplit.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strsplit.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strsplit.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strspn.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strspn.lo new file mode 100755 index 000000000..b8774efa9 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strspn.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strspn.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strspn.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strstr.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strstr.lo new file mode 100755 index 000000000..19ac29ae5 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strstr.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strstr.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strstr.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strsubst.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strsubst.lo new file mode 100755 index 000000000..09c2daa94 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strsubst.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strsubst.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strsubst.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strtod.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strtod.lo new file mode 100755 index 000000000..dd2351806 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strtod.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strtod.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strtod.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_strtok.lo b/modules/string/sci_gateway/c/libscistring_la-sci_strtok.lo new file mode 100755 index 000000000..458147626 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_strtok.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_strtok.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_strtok.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/libscistring_la-sci_tokens.lo b/modules/string/sci_gateway/c/libscistring_la-sci_tokens.lo new file mode 100755 index 000000000..fa0c60c96 --- /dev/null +++ b/modules/string/sci_gateway/c/libscistring_la-sci_tokens.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscistring_la-sci_tokens.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_la-sci_tokens.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/c/sci_ascii.c b/modules/string/sci_gateway/c/sci_ascii.c new file mode 100755 index 000000000..a89d62ccc --- /dev/null +++ b/modules/string/sci_gateway/c/sci_ascii.c @@ -0,0 +1,253 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/* desc : This function convert Scilab string to a vector of ascii code */ +/* or vector of ascii code to Scilab strings. */ +/* If txt is a matrix of string, ascii(txt) is equivalent to */ +/* ascii(strcat(txt)) */ +/*-----------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <ctype.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "getfastcode.h" +#include "warningmode.h" +#include "sciprint.h" +/*----------------------------------------------------------------------------*/ +static int asciiStrings(char *fname); +static int asciiMatrix(char *fname); +static int asciiIntMatrix(char *fname); +static int asciiOthers(char *fname); +/*----------------------------------------------------------------------------*/ +#define ASCII_MIN 0 +#define ASCII_MAX 255 +/*----------------------------------------------------------------------------*/ +int sci_ascii(char *fname, unsigned long fname_len) +{ + CheckRhs(1, 1); + CheckLhs(0, 1); + + switch ( GetType(1)) + { + case sci_strings: + asciiStrings(fname); + break; + + case sci_matrix : + asciiMatrix(fname); + break; + + case sci_ints : + asciiIntMatrix(fname); + break; + + default: + asciiOthers(fname); + break; + } + return 0; +} +/*--------------------------------------------------------------------------*/ +static int asciiStrings(char *fname) +{ + + BOOL is_a_reference_on_stack = FALSE; /* variable is a reference on stack */ + int i = 0, j = 0; + int nbr_characters = 0; + int l = 0, il = 0, lr = 0; + int ilr = 0; + + il = iadr( C2F(vstk).lstk[Top - 1] ); + + ilr = il; + if (*istk(il) < 0) + { + il = iadr(*istk(il + 1)); + } + /* check if parameter is a reference */ + is_a_reference_on_stack = (il != ilr); + + /* find number of characters */ + nbr_characters = *istk(il + 4 + *istk(il + 1) **istk(il + 2)) - 1; + + l = il + 5 + *istk(il + 1) **istk(il + 2); + + if (is_a_reference_on_stack) + { + /* it is a reference on stack : txt = 'Scilab' ; ascii(txt) */ + j = ilr + 4; + Err = j / 2 + 1 + nbr_characters - C2F(vstk).lstk[Bot - 1]; + if (Err > 0) + { + /* stacksize exceeded */ + SciError(17); + return 0; + } + } + else + { + /* it is not a reference on stack ascii('Scilab') */ + int one = 1; + int lw = l + nbr_characters; + + j = lw + nbr_characters; + Err = j / 2 + 1 - C2F(vstk).lstk[Bot - 1]; + if (Err > 0) + { + /* stacksize exceeded */ + SciError(17); + return 0; + } + C2F(icopy)(&nbr_characters, istk(l), &one, istk(l + nbr_characters), &one); + l = lw; + } + + /* create output int matrix , see C2F(crematvar) stack1.c */ + *istk(ilr) = sci_matrix; + *istk(ilr + 1) = 1; + *istk(ilr + 2) = nbr_characters; + *istk(ilr + 3) = 0; + + j = ilr + 4; + lr = j / 2 + 1; + + /* put each value on stack */ + for (i = 0; i < nbr_characters; i++) + { + int scilab_code = *istk(l + i); + *stk(lr + i) = convertScilabCodeToAsciiCode(scilab_code); + } + /* update Top of stack */ + C2F(vstk).lstk[Top] = lr + nbr_characters; + + return 0; + +} +/*--------------------------------------------------------------------------*/ +static int asciiMatrix(char *fname) +{ + int Row_Num = 0, Col_Num = 0, Stack_Pos = 0; + int outIndex = 0 ; + int len = 0; + BOOL FirstWarning = TRUE; + /*When input vector of int ascii codes */ + GetRhsVar(1, MATRIX_OF_INTEGER_DATATYPE, &Row_Num, &Col_Num, &Stack_Pos); + len = Row_Num * Col_Num ; + + if (len != 0) + { + int x = 0; + int one = 1; + int *Input_IntMatrix = NULL; + char *Output_StringMatrix = NULL; + + Input_IntMatrix = istk(Stack_Pos); + + outIndex = 0 ; + CreateVar(Rhs + 1, STRING_DATATYPE, &len, &one, &outIndex); + Output_StringMatrix = cstk(outIndex); + for (x = 0; x < len; x++) + { + if ( FirstWarning ) + { + if ( (Input_IntMatrix[x] < ASCII_MIN) || (Input_IntMatrix[x] > ASCII_MAX) ) + { + if (getWarningMode()) + { + sciprint(_("WARNING : \n")); + sciprint(_("%s: Wrong value for input argument #%d: Must be between %d and %d.\n"), fname, 1, ASCII_MIN, ASCII_MAX); + } + FirstWarning = FALSE; + } + } + + if (isascii(Input_IntMatrix[x])) + { + Output_StringMatrix[x] = (char)toascii(Input_IntMatrix[x]); + } + else + { + Output_StringMatrix[x] = (char)Input_IntMatrix[x]; + } + } + Output_StringMatrix[len] = '\0'; + } + else + { +#define EMPTY_STR "" + int one = 1 ; + int lenStr = (int)strlen(EMPTY_STR); + outIndex = 0 ; + + CreateVar(Rhs + 1, STRING_DATATYPE, &lenStr, &one, &outIndex); + strcpy(cstk(outIndex), EMPTY_STR); + } + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + return 0; +} + +/*--------------------------------------------------------------------------*/ +static int asciiIntMatrix(char *fname) +{ + int Row_Num = 0, Col_Num = 0; + int outIndex = 0 ; + int len = 0; + + SciIntMat M; + + GetRhsVar(1, MATRIX_OF_VARIABLE_SIZE_INTEGER_DATATYPE, &Row_Num, &Col_Num, &M); + len = Row_Num * Col_Num ; + + if (len != 0) + { + int one = 1; + int ichar = I_UCHAR; + static int inc = 1; + + char *Output_StringMatrix = NULL; + + CreateVar(Rhs + 1, STRING_DATATYPE, &len, &one, &outIndex); + Output_StringMatrix = cstk(outIndex); + + /* from intxx to char */ + C2F(tpconv)(&M.it, &ichar, &len, M.D, &inc, Output_StringMatrix, &inc); + Output_StringMatrix[len] = '\0'; + } + else + { +#define EMPTY_STR "" + int one = 1 ; + int lenStr = (int)strlen(EMPTY_STR); + + CreateVar(Rhs + 1, STRING_DATATYPE, &lenStr, &one, &outIndex); + strcpy(cstk(outIndex), EMPTY_STR); + } + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + return 0; +} + +/*--------------------------------------------------------------------------*/ +static int asciiOthers(char *fname) +{ + Scierror(999, _("%s: Wrong type for argument #%d: Matrix of strings or Integer matrix expected.\n"), fname, 1); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_code2str.c b/modules/string/sci_gateway/c/sci_code2str.c new file mode 100755 index 000000000..06903cae3 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_code2str.c @@ -0,0 +1,110 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/* desc : str=code2str(c) + Returns character string associated with Scilab int codes. + str is such that c(i) is the Scilab int code of part(str,i))*/ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "localization.h" +#include "code2str.h" +#include "Scierror.h" +#include "freeArrayOfString.h" +#include "warningmode.h" +#include "sciprint.h" +/*--------------------------------------------------------------------------*/ +int sci_code2str(char *fname, unsigned long fname_len) +{ + char **Output_Matrix = NULL; + int Row_Num = 0, Col_Num = 0; + int *Input_Matrix = NULL; /* Input matrix */ + + int numRow = 1; + int numCol = 0; + int outIndex = 0 ; + + CheckRhs(1, 1); + CheckLhs(1, 1); + + if (strcmp(fname, "code2str") == 0) + { + if (getWarningMode()) + { + sciprint(_("%s: Feature %s is obsolete.\n"), _("Warning"), fname); + sciprint(_("%s: Please use %s instead.\n"), _("Warning"), "ascii"); + sciprint(_("%s: This feature will be permanently removed in Scilab %s\n\n"), _("Warning"), "6.0.0"); + } + } + + if (VarType(1) == sci_matrix) + { + int Stack_position = 0; + GetRhsVar(1, MATRIX_OF_INTEGER_DATATYPE, &Row_Num, &Col_Num, &Stack_position); + Input_Matrix = istk(Stack_position); /* Input*/ + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Real matrix expected.\n"), fname, 1); + return 0; + } + + numCol = Row_Num * Col_Num ; + + /* Allocation output matrix */ + Output_Matrix = (char**)MALLOC(sizeof(char*)); + + if (Output_Matrix == NULL) + { + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + if (numCol != 0) + { + Output_Matrix[0] = (char*)MALLOC(sizeof(char) * (numCol)); + } + else + { + Output_Matrix[0] = (char*)MALLOC(sizeof(char)); + } + + if (Output_Matrix[0] == NULL) + { + FREE(Output_Matrix); + Output_Matrix = NULL; + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + /* code2str algorithm */ + + code2str(Output_Matrix, Input_Matrix, Row_Num * Col_Num); + + /* put on scilab stack */ + numRow = 1 ; /*Output number row */ + outIndex = 0 ; + CreateVar(Rhs + 1, STRING_DATATYPE, &numRow, &numCol, &outIndex); + strncpy(cstk(outIndex), &Output_Matrix[0][0] , numCol ) ; + + /* free pointers */ + freeArrayOfString(Output_Matrix, 1); + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_convstr.c b/modules/string/sci_gateway/c/sci_convstr.c new file mode 100755 index 000000000..e7a85de6e --- /dev/null +++ b/modules/string/sci_gateway/c/sci_convstr.c @@ -0,0 +1,159 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/* desc : converts the matrix of strings str-matrix into lower case (for*/ +/* "l" ;default value) or upper case (for "u" ). */ +/* [y]=convstr(str-matrix, ["flag"]) */ +/* str-matrix, y : matrices of strings */ +/* "flag" : string ( "u" for upper or "l" for lower */ +/* (default value)) */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "api_scilab.h" +#include "MALLOC.h" +#include "wchar.h" +#include "convstr.h" +#include "localization.h" +#include "Scierror.h" +#include "freeArrayOfString.h" +/*----------------------------------------------------------------------------*/ +int sci_convstr(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + wchar_t **pstInput = NULL; + wchar_t **pstOutput = NULL; + char cType = LOW; + int iRows1 = 0; + int iCols1 = 0; + int i = 0; + + int* piAddr1 = NULL; + + int* piAddr2 = NULL; + + int iRhs = nbInputArgument(pvApiCtx); + CheckInputArgument(pvApiCtx, 1, 2); + CheckOutputArgument(pvApiCtx, 1, 1); + + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr1); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + + if (isEmptyMatrix(pvApiCtx, piAddr1)) + { + if (createEmptyMatrix(pvApiCtx, Rhs + 1)) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + AssignOutputVariable(pvApiCtx, 1) = iRhs + 1 ; + ReturnArguments(pvApiCtx); + return 0; + } + + if (iRhs == 2) + { + char* pstFlag = NULL; + + sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddr2); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + if (isStringType(pvApiCtx, piAddr2) && isScalar(pvApiCtx, piAddr2) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 2); + return 0; + } + + /* To put "flag" into typ; whether "u" or "l" */ + if (getAllocatedSingleString(pvApiCtx, piAddr2, &pstFlag)) + { + freeAllocatedSingleString(pstFlag); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + if (strlen(pstFlag) != 1 || (pstFlag[0] != UPPER && pstFlag[0] != LOW && pstFlag[0] != UPPER_B && pstFlag[0] != LOW_B )) + { + freeAllocatedSingleString(pstFlag); + Scierror(999, _("%s: Wrong value for input argument #%d: 'u' (Upper) or 'l' (Lower) expected.\n"), fname, 2); + return 0; + } + + cType = pstFlag[0]; + freeAllocatedSingleString(pstFlag); + } + + if (isStringType(pvApiCtx, piAddr1) == 0) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 1); + return 0; + } + + /* To input the string matrix */ + if (getAllocatedMatrixOfWideString(pvApiCtx, piAddr1, &iRows1, &iCols1, &pstInput)) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 1); + return 0; + } + + pstOutput = (wchar_t**)MALLOC(sizeof(wchar_t*) * iRows1 * iCols1); + if (pstOutput == NULL) + { + freeAllocatedMatrixOfWideString(iRows1, iCols1, pstInput); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + for (i = 0; i < iRows1 * iCols1; i++) + { + pstOutput[i] = (wchar_t*)MALLOC(sizeof(wchar_t) * (wcslen(pstInput[i]) + 1)); + if (pstOutput[i] == NULL) + { + freeAllocatedMatrixOfWideString(iRows1, iCols1, pstInput); + freeArrayOfWideString(pstOutput, i); + Scierror(999, ("%s: No more memory.\n"), fname); + return 0; + } + } + + /* convstr algorithm */ + convstr(pstInput, pstOutput, cType, iRows1 * iCols1); + freeAllocatedMatrixOfWideString(iRows1, iCols1, pstInput); + + /* put on scilab stack */ + sciErr = createMatrixOfWideString(pvApiCtx, iRhs + 1, iRows1, iCols1, (const wchar_t**)pstOutput); + freeArrayOfWideString(pstOutput, iRows1 * iCols1); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + AssignOutputVariable(pvApiCtx, 1) = iRhs + 1 ; + ReturnArguments(pvApiCtx); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_emptystr.c b/modules/string/sci_gateway/c/sci_emptystr.c new file mode 100755 index 000000000..b90d15039 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_emptystr.c @@ -0,0 +1,178 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * Copyright (C) 2010 - DIGITEO - Allan CORNET + * + * 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 + * + */ + +/* desc : zero length string */ +/* With no input argument returns a zero length character string */ +/* With a matrix for input argument returns a zero length character*/ +/* strings matrix of the same size */ +/* With two int arguments returns a mxn zero length character */ +/* strings matrix */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "CreateEmptystr.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "api_scilab.h" +/*--------------------------------------------------------------------------*/ +static int sci_emptystr_no_rhs(void); +static int sci_emptystr_one_rhs(char *fname); +static int sci_emptystr_two_rhs(char *fname); +/*--------------------------------------------------------------------------*/ +int sci_emptystr(char *fname, unsigned long fname_len) +{ + Rhs = Max(0, Rhs); + + CheckRhs(0, 2); + CheckLhs(1, 1); + + if (Rhs < 1) + { + sci_emptystr_no_rhs(); + } + else if (Rhs == 1) + { + sci_emptystr_one_rhs(fname); + } + else if (Rhs == 2) + { + sci_emptystr_two_rhs(fname); + } + return 0; +} +/*--------------------------------------------------------------------------*/ +static int sci_emptystr_no_rhs(void) +{ + /* With no input argument returns a zero length character string */ + createSingleString(pvApiCtx, Rhs + 1, ""); + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ +static int sci_emptystr_one_rhs(char *fname) +{ + int m1 = 0, n1 = 0; /* m1 is the number of row ; n1 is the number of col*/ + + /*With a matrix for input argument returns a zero length character strings matrix of the same size */ + int Type = VarType(1); + + if (Type == sci_matrix) + { + char **Input_StringMatrix_One = NULL; + + GetRhsVar(1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &Input_StringMatrix_One); + if ((m1 == 0) && (n1 == 0)) /* emptystr([]) */ + { + int l = 0; + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &l); + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + return 0; + } + } + else + { + if ((Type == sci_mlist) || (Type == sci_tlist)) + { + /* compatibility with 4.1.2 */ + int lw = 1 + Top - Rhs; + C2F(overload)(&lw, fname, (int)strlen(fname)); + return 0; + } + else + { + int RHSPOS = 1; + int l1 = 0; + int il = 0; + int lw = RHSPOS + Top - Rhs; + l1 = *Lstk(lw); + il = iadr(l1); + + if (*istk(il ) < 0) + { + il = iadr(*istk(il + 1)); + } + + /* get dimensions */ + m1 = getNumberOfLines(il); /* row */ + n1 = getNumberOfColumns(il); /* col */ + } + } + + /* m1 is the number of row ; n1 is the number of col*/ + CreateVarFromPtr(Rhs + 1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, NULL); + LhsVar(1) = Rhs + 1; + PutLhsVar(); + + return 0; +} +/*--------------------------------------------------------------------------*/ +static int sci_emptystr_two_rhs(char *fname) +{ + /*value_param_pos_1 is the number of row ; value_param_pos_2 is the number of col*/ + + int Type_One = GetType(1); + int Type_Two = GetType(2); + + if ((Type_One == sci_matrix) && (Type_Two == sci_matrix)) + { + double value_param_pos_1 = 0; + double value_param_pos_2 = 0; + int matrixdimension = 0; + + int m1 = 0, n1 = 0, l1 = 0; + int m2 = 0, n2 = 0, l2 = 0; + GetRhsVar(1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &l1); + GetRhsVar(2, MATRIX_OF_DOUBLE_DATATYPE, &m2, &n2, &l2); + + value_param_pos_1 = *stk(l1); + value_param_pos_2 = *stk(l2); + + matrixdimension = (int)(value_param_pos_1 * value_param_pos_2); + + if (matrixdimension > 0) + { + int m = (int)value_param_pos_1; + int n = (int)value_param_pos_2; + CreateVarFromPtr(Rhs + 1, MATRIX_OF_STRING_DATATYPE, &m, &n, NULL); + } + else + { + /* returns [] */ + int l = 0; + int m = 0; + int n = 0; + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m, &n, &l); + } + LhsVar(1) = Rhs + 1; + + PutLhsVar(); + } + else + { + if (Type_One != sci_matrix) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of integers expected.\n"), fname, 1); + } + else /* Type_Two */ + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of integers expected.\n"), fname, 2); + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_grep.c b/modules/string/sci_gateway/c/sci_grep.c new file mode 100755 index 000000000..33f83468f --- /dev/null +++ b/modules/string/sci_gateway/c/sci_grep.c @@ -0,0 +1,329 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - Allan CORNET , Cong WU +* +* 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 +* +*/ + +/* desc : search position of a character string in an other string +using regular express . */ +/*------------------------------------------------------------------------*/ +#include <stdio.h> +#include <string.h> +#include "gw_string.h" +#include "pcre.h" +#include "pcreposix.h" +#include "stack-c.h" +#include "MALLOC.h" /* MALLOC */ +#include "pcre_private.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "pcre_error.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#include "charEncoding.h" +/*------------------------------------------------------------------------*/ +#define GREP_OK 0 +#define MEMORY_ALLOC_ERROR -1 +/*------------------------------------------------------------------------*/ +typedef struct grep_results +{ + int sizeArraysMax; + int currentLength; + int *values; + int *positions; +} GREPRESULTS; + +/*------------------------------------------------------------------------*/ +static int sci_grep_common(char *fname, BOOL new_grep); +static int GREP_NEW(GREPRESULTS * results, char **Inputs_param_one, int mn_one, char **Inputs_param_two, int mn_two); +static int GREP_OLD(GREPRESULTS * results, char **Inputs_param_one, int mn_one, char **Inputs_param_two, int mn_two); + +/*------------------------------------------------------------------------*/ +int sci_grep(char *fname, unsigned long fname_len) +{ + CheckRhs(2, 3); + CheckLhs(1, 2); + + if (VarType(1) == sci_matrix) + { + int m1 = 0, n1 = 0; + char **Str = NULL; + + GetRhsVar(1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &Str); + + if ((m1 == 0) && (n1 == 0)) + { + int l = 0; + + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &l); + LhsVar(1) = Rhs + 1; + PutLhsVar(); + + return 0; + } + } + + if (Rhs == 3) + { + if (VarType(3) == sci_strings) + { + char typ = 'd'; /*default */ + int m3 = 0, n3 = 0, l3 = 0; + + GetRhsVar(3, STRING_DATATYPE, &m3, &n3, &l3); + if (m3 * n3 != 0) + { + typ = cstk(l3)[0]; + } + + if (typ == 'r') + { + sci_grep_common(fname, TRUE); + } + else + { + Scierror(999, _("%s: Wrong value for input argument #%d: '%s' expected.\n"), fname, 3, "s"); + return 0; + } + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: String expected.\n"), fname, 3); + return 0; + } + } + else /* Rhs == 2 */ + { + sci_grep_common(fname, FALSE); + } + return 0; +} + +/*-----------------------------------------------------------------------------------*/ +static int GREP_NEW(GREPRESULTS * results, char **Inputs_param_one, int mn_one, char **Inputs_param_two, int mn_two) +{ + int x = 0, y = 0; + char *save = NULL; + pcre_error_code answer = PCRE_FINISHED_OK; + + for (x = 0; x < mn_one; x++) + { + results->sizeArraysMax = results->sizeArraysMax + (int)strlen(Inputs_param_one[x]); + } + + results->values = (int *)MALLOC(sizeof(int) * (3 * results->sizeArraysMax + 1)); + results->positions = (int *)MALLOC(sizeof(int) * (3 * results->sizeArraysMax + 1)); + + if ((results->values == NULL) || (results->positions == NULL)) + { + if (results->values) + { + FREE(results->values); + results->values = NULL; + } + if (results->positions) + { + FREE(results->positions); + results->positions = NULL; + } + return MEMORY_ALLOC_ERROR; + } + + results->currentLength = 0; + for (y = 0; y < mn_one; ++y) + { + for (x = 0; x < mn_two; ++x) + { + int Output_Start = 0; + int Output_End = 0; + + save = strdup(Inputs_param_two[x]); + answer = pcre_private(Inputs_param_one[y], save, &Output_Start, &Output_End, NULL, NULL); + + if (answer == PCRE_FINISHED_OK) + { + if (results->currentLength < results->sizeArraysMax) + { + results->values[results->currentLength] = y + 1; + results->positions[results->currentLength] = x + 1; + results->currentLength++; + } + } + else + { + pcre_error("grep", answer); + } + if (save) + { + FREE(save); + save = NULL; + } + } + } + + if (results->currentLength > results->sizeArraysMax) + { + results->currentLength = results->sizeArraysMax; + } + + return GREP_OK; +} + +/*-----------------------------------------------------------------------------------*/ +static int GREP_OLD(GREPRESULTS * results, char **Inputs_param_one, int mn_one, char **Inputs_param_two, int mn_two) +{ + int x = 0, y = 0; + + results->values = (int *)MALLOC(sizeof(int) * (mn_one * mn_two + 1)); + results->positions = (int *)MALLOC(sizeof(int) * (mn_one * mn_two + 1)); + + for (y = 0; y < mn_one; ++y) + { + for (x = 0; x < mn_two; ++x) + { + wchar_t *wcInputOne = to_wide_string(Inputs_param_one[y]); + wchar_t *wcInputTwo = to_wide_string(Inputs_param_two[x]); + + if (wcInputOne && wcInputTwo) + { + if (wcsstr(wcInputOne, wcInputTwo) != NULL) + { + results->values[results->currentLength] = y + 1; + results->positions[results->currentLength] = x + 1; + results->currentLength++; + } + } + + if (wcInputOne) + { + FREE(wcInputOne); + wcInputOne = NULL; + } + if (wcInputTwo) + { + FREE(wcInputTwo); + wcInputTwo = NULL; + } + } + } + return GREP_OK; +} + +/*-----------------------------------------------------------------------------------*/ +static int sci_grep_common(char *fname, BOOL new_grep) +{ + int i = 0; + + int m1 = 0, n1 = 0; + char **Strings_Input_One = NULL; + int m1n1 = 0; /* m1 * n1 */ + + int m2 = 0, n2 = 0; + char **Strings_Input_Two = NULL; + int m2n2 = 0; /* m2 * n2 */ + + GREPRESULTS grepresults; + int code_error_grep = GREP_OK; + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &Strings_Input_One); + m1n1 = m1 * n1; + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &m2, &n2, &Strings_Input_Two); + m2n2 = m2 * n2; + + for (i = 0; i < m2n2; i++) + { + if (strlen(Strings_Input_Two[i]) == 0) + { + freeArrayOfString(Strings_Input_One, m1n1); + freeArrayOfString(Strings_Input_Two, m2n2); + Scierror(249, _("%s: Wrong values for input argument #%d: Non-empty strings expected.\n"), fname, 2); + return 0; + } + } + + grepresults.currentLength = 0; + grepresults.sizeArraysMax = 0; + grepresults.positions = NULL; + grepresults.values = NULL; + + if (new_grep) + { + code_error_grep = GREP_NEW(&grepresults, Strings_Input_One, m1n1, Strings_Input_Two, m2n2); + } + else + { + code_error_grep = GREP_OLD(&grepresults, Strings_Input_One, m1n1, Strings_Input_Two, m2n2); + } + + freeArrayOfString(Strings_Input_One, m1n1); + freeArrayOfString(Strings_Input_Two, m2n2); + + switch (code_error_grep) + { + case GREP_OK: + { + int x = 0; + int numRow = 1; + int outIndex = 0; + + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &numRow, &grepresults.currentLength, &outIndex); + for (x = 0; x < grepresults.currentLength; x++) + { + stk(outIndex)[x] = (double)grepresults.values[x]; + } + LhsVar(1) = Rhs + 1; + if (Lhs == 2) + { + /* Output positions[] */ + numRow = 1; + outIndex = 0; + CreateVar(Rhs + 2, MATRIX_OF_DOUBLE_DATATYPE, &numRow, &grepresults.currentLength, &outIndex); + for (x = 0; x < grepresults.currentLength; x++) + { + stk(outIndex)[x] = (double)grepresults.positions[x]; + } + LhsVar(2) = Rhs + 2; + } + + if (grepresults.values) + { + FREE(grepresults.values); + grepresults.values = NULL; + } + if (grepresults.positions) + { + FREE(grepresults.positions); + grepresults.positions = NULL; + } + PutLhsVar(); + } + break; + + case MEMORY_ALLOC_ERROR: + { + if (grepresults.values) + { + FREE(grepresults.values); + grepresults.values = NULL; + } + if (grepresults.positions) + { + FREE(grepresults.positions); + grepresults.positions = NULL; + } + Scierror(999, _("%s: No more memory.\n"), fname); + } + break; + } + return 0; +} + +/*-----------------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_isalphanum.c b/modules/string/sci_gateway/c/sci_isalphanum.c new file mode 100755 index 000000000..6ccadaffc --- /dev/null +++ b/modules/string/sci_gateway/c/sci_isalphanum.c @@ -0,0 +1,92 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - Allan CORNET - 2009-2011 + * + * 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 + * + */ + +/*-----------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "api_scilab.h" +#include "Scierror.h" +#include "localization.h" +#include "BOOL.h" +#include "freeArrayOfString.h" +#include "isalphanum.h" +#include "MALLOC.h" +/*----------------------------------------------------------------------------*/ +int sci_isalphanum(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int *piAddressVarOne = NULL; + wchar_t *pStVarOne = NULL; + + int valuesSize = 0; + BOOL *values = NULL; + + CheckRhs(1, 1); + CheckLhs(1, 1); + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isStringType(pvApiCtx, piAddressVarOne) == 0 || isScalar(pvApiCtx, piAddressVarOne) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1); + return 0; + } + + if (getAllocatedSingleWideString(pvApiCtx, piAddressVarOne, &pStVarOne) != 0) + { + if (pStVarOne) + { + freeAllocatedSingleWideString(pStVarOne); + } + + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + values = isalphanumW(pStVarOne, &valuesSize); + + freeAllocatedSingleWideString(pStVarOne); + + if (values) + { + int m1 = 1; + int n1 = valuesSize; + sciErr = createMatrixOfBoolean(pvApiCtx, Rhs + 1, m1, n1, values); + + FREE(values); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + } + else + { + createEmptyMatrix(pvApiCtx, Rhs + 1); + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/sci_gateway/c/sci_isascii.c b/modules/string/sci_gateway/c/sci_isascii.c new file mode 100755 index 000000000..e2acae189 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_isascii.c @@ -0,0 +1,273 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - Allan CORNET +* Copyright (C) INRIA - Allan CORNET +* +* 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 +* +*/ + +/*----------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <ctype.h> +#include "gw_string.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "charEncoding.h" +#include "api_scilab.h" +#ifndef _MSC_VER +#define iswascii(x) isascii(wctob(x)) +#endif +/*----------------------------------------------------------------------------*/ +static int isasciiStrings(char *fname, int *piAddressVarOne); +static int isasciiMatrix(char *fname, int *piAddressVarOne); +/*----------------------------------------------------------------------------*/ +int sci_isascii(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int *piAddressVarOne = NULL; + int iType1 = 0; + + CheckRhs(1, 1); + CheckLhs(0, 1); + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + sciErr = getVarType(pvApiCtx, piAddressVarOne, &iType1); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isDoubleType(pvApiCtx, piAddressVarOne)) + { + return isasciiMatrix(fname, piAddressVarOne); + } + + if (isStringType(pvApiCtx, piAddressVarOne)) + { + return isasciiStrings(fname, piAddressVarOne); + } + + Scierror(999, _("%s: Wrong type for input argument #%d: Real matrix or matrix of strings expected.\n"), fname, 1); + return 0; +} +/*--------------------------------------------------------------------------*/ +static int isasciiMatrix(char *fname, int *piAddressVarOne) +{ + SciErr sciErr; + int m1 = 0, n1 = 0; + double *pdVarOne = NULL; + + sciErr = getVarDimension(pvApiCtx, piAddressVarOne, &m1, &n1); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (m1 * n1 > 0) + { + int i = 0; + BOOL *bOutputMatrix = NULL; + + sciErr = getMatrixOfDouble(pvApiCtx, piAddressVarOne, &m1, &n1, &pdVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + sciErr = allocMatrixOfBoolean(pvApiCtx, Rhs + 1, m1, n1, &bOutputMatrix); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + for (i = 0; i < m1 * n1; i++) + { + int iVal = (int)pdVarOne[i]; + + if (isascii(iVal)) + { + bOutputMatrix[i] = (int)TRUE; + } + else + { + bOutputMatrix[i] = (int)FALSE; + } + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + } + else + { + /* returns [] */ + m1 = 0; + n1 = 0; + + sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, m1, n1, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + } + return 0; +} +/*--------------------------------------------------------------------------*/ +static int isasciiStrings(char *fname, int *piAddressVarOne) +{ + SciErr sciErr; + int m1 = 0, n1 = 0; + wchar_t **pwcStVarOne = NULL; + int *lenStVarOne = NULL; + int mOut = 0; + int nOut = 0; + int x = 0; + + BOOL *bOutputMatrix = NULL; + int lengthAllStrings = 0; + + int i = 0; + + sciErr = getVarDimension(pvApiCtx, piAddressVarOne, &m1, &n1); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + lenStVarOne = (int*)MALLOC(sizeof(int) * (m1 * n1)); + if (lenStVarOne == NULL) + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + + sciErr = getMatrixOfWideString(pvApiCtx, piAddressVarOne, &m1, &n1, lenStVarOne, NULL); + if (sciErr.iErr) + { + if (lenStVarOne) + { + FREE(lenStVarOne); + lenStVarOne = NULL; + } + + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + pwcStVarOne = (wchar_t**)MALLOC(sizeof(wchar_t*) * (m1 * n1)); + for (i = 0; i < (m1 * n1); i++) + { + lengthAllStrings = lengthAllStrings + lenStVarOne[i]; + + pwcStVarOne[i] = (wchar_t*)MALLOC(sizeof(wchar_t) * (lenStVarOne[i] + 1)); + + if (pwcStVarOne[i] == NULL) + { + if (lenStVarOne) + { + FREE(lenStVarOne); + lenStVarOne = NULL; + } + + freeArrayOfWideString(pwcStVarOne, m1 * n1); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + } + + sciErr = getMatrixOfWideString(pvApiCtx, piAddressVarOne, &m1, &n1, lenStVarOne, pwcStVarOne); + if (sciErr.iErr) + { + if (lenStVarOne) + { + FREE(lenStVarOne); + lenStVarOne = NULL; + } + + freeArrayOfWideString(pwcStVarOne, m1 * n1); + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + bOutputMatrix = (BOOL*)MALLOC(sizeof(BOOL) * lengthAllStrings); + if (bOutputMatrix == NULL) + { + freeArrayOfWideString(pwcStVarOne, m1 * n1); + FREE(lenStVarOne); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + for (i = 0; i < (m1 * n1); i++) + { + int j = 0; + wchar_t* wcInput = pwcStVarOne[i]; + int len = (int)wcslen(wcInput); + + for (j = 0; j < len; j++) + { + if (iswascii(wcInput[j])) + { + bOutputMatrix[x] = (int)TRUE; + } + else + { + bOutputMatrix[x] = (int)FALSE; + } + x++; + } + } + + freeArrayOfWideString(pwcStVarOne, m1 * n1); + FREE(lenStVarOne); + + mOut = 1; + nOut = lengthAllStrings; + + sciErr = createMatrixOfBoolean(pvApiCtx, Rhs + 1, mOut, nOut, bOutputMatrix); + FREE(bOutputMatrix); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/sci_gateway/c/sci_isdigit.c b/modules/string/sci_gateway/c/sci_isdigit.c new file mode 100755 index 000000000..bbfd19edb --- /dev/null +++ b/modules/string/sci_gateway/c/sci_isdigit.c @@ -0,0 +1,91 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - Allan CORNET - 2009-2011 + * + * 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 + * + */ + +/*-----------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "api_scilab.h" +#include "Scierror.h" +#include "localization.h" +#include "BOOL.h" +#include "isdigit.h" +#include "MALLOC.h" +/*----------------------------------------------------------------------------*/ +int sci_isdigit(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int *piAddressVarOne = NULL; + wchar_t *pStVarOne = NULL; + + int valuesSize = 0; + BOOL *values = NULL; + + CheckRhs(1, 1); + CheckLhs(1, 1); + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isStringType(pvApiCtx, piAddressVarOne) == 0 || isScalar(pvApiCtx, piAddressVarOne) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1); + return 0; + } + + if (getAllocatedSingleWideString(pvApiCtx, piAddressVarOne, &pStVarOne) != 0) + { + if (pStVarOne) + { + freeAllocatedSingleWideString(pStVarOne); + } + + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + values = IsDigitW(pStVarOne, &valuesSize); + + freeAllocatedSingleWideString(pStVarOne); + + if (values) + { + int m1 = 1; + int n1 = valuesSize; + sciErr = createMatrixOfBoolean(pvApiCtx, Rhs + 1, m1, n1, values); + + FREE(values); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + } + else + { + createEmptyMatrix(pvApiCtx, Rhs + 1); + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/sci_gateway/c/sci_isletter.c b/modules/string/sci_gateway/c/sci_isletter.c new file mode 100755 index 000000000..86c03a85b --- /dev/null +++ b/modules/string/sci_gateway/c/sci_isletter.c @@ -0,0 +1,101 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*-----------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "Scierror.h" +#include "localization.h" +#include "BOOL.h" +#include "freeArrayOfString.h" +#include "isletter.h" +#include "MALLOC.h" +#include "charEncoding.h" +/*----------------------------------------------------------------------------*/ +int sci_isletter(char *fname, unsigned long fname_len) +{ + int Type_One = 0; + + CheckRhs(1, 1); + CheckLhs(1, 1); + + Type_One = VarType(1); + if (Type_One == sci_strings) + { + char **Input_StringMatrix = NULL; + BOOL *values = NULL; + int sizeValues = 0; + int Row_Num = 0, Col_Num = 0; + int mn = 0; /* Row_Num * Col_Num */ + wchar_t *wcInput = NULL; + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &Row_Num, &Col_Num, &Input_StringMatrix); + mn = Row_Num * Col_Num; + + if (mn != 1) + { + freeArrayOfString(Input_StringMatrix, mn); + Scierror(999, _("%s: Wrong size for input argument #%d: Single string expected.\n"), fname, 1); + return 0; + } + + wcInput = to_wide_string(Input_StringMatrix[0]); + if (wcInput) + { + values = isletterW(wcInput, &sizeValues); + FREE(wcInput); + wcInput = NULL; + } + else + { + values = isletter(Input_StringMatrix[0], &sizeValues); + } + + if (values) + { + int m1 = 1; + int n1 = sizeValues; + CreateVarFromPtr(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &m1, &n1, &values); + + freeArrayOfString(Input_StringMatrix, mn); + if (values) + { + FREE(values); + values = NULL; + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + } + else + { + /* returns [] */ + int m1 = 0; + int n1 = 0; + int l = 0; + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &l); + freeArrayOfString(Input_StringMatrix, mn); + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + return 0; + } + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: String expected.\n"), fname, 1); + } + return 0; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/sci_gateway/c/sci_isnum.c b/modules/string/sci_gateway/c/sci_isnum.c new file mode 100755 index 000000000..5242eef51 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_isnum.c @@ -0,0 +1,93 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010 - 2012 - INRIA - Allan CORNET + * Copyright (C) 2011 - INRIA - Michael Baudin + * + * 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 + * + * This code is also published under the GPL v3 license. + * + */ + +#include "api_scilab.h" +#include "localization.h" +#include "Scierror.h" +#include "isnum.h" +#include "MALLOC.h" +#include "sciprint.h" +#include "warningmode.h" + +// ============================================================================= +int sci_isnum(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int *piAddressVarOne = NULL; + int mOne = 0, nOne = 0; + char **pStrs = NULL; + BOOL *bRESULT = NULL; + + CheckRhs(1, 1); + CheckLhs(0, 1); + + if (strcmp(fname, "csvIsnum") == 0) + { + if (getWarningMode()) + { + sciprint(_("%s: Feature %s is obsolete.\n"), _("Warning"), fname); + sciprint(_("%s: Please use %s instead.\n"), _("Warning"), "isnum"); + sciprint(_("%s: This feature will be permanently removed in Scilab %s\n\n"), _("Warning"), "6.0.0"); + } + } + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + if (!isStringType(pvApiCtx, piAddressVarOne)) + { + Scierror(999, _("%s: Wrong type for input argument #%d: A matrix of string expected.\n"), fname, 1); + return 0; + } + + if (getAllocatedMatrixOfString(pvApiCtx, piAddressVarOne, &mOne, &nOne, &pStrs) != 0) + { + if (pStrs) + { + freeAllocatedMatrixOfString(mOne, nOne, pStrs); + } + + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + bRESULT = isNumMatrix((const char**)pStrs, mOne, nOne); + + freeAllocatedMatrixOfString(mOne, nOne, pStrs); + + if (bRESULT == NULL) + { + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + sciErr = createMatrixOfBoolean(pvApiCtx, Rhs + 1, mOne, nOne, (const int*)bRESULT); + FREE(bRESULT); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +// ============================================================================= diff --git a/modules/string/sci_gateway/c/sci_length.c b/modules/string/sci_gateway/c/sci_length.c new file mode 100755 index 000000000..d164437f1 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_length.c @@ -0,0 +1,508 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA 2007 - Cong WU + * Copyright (C) INRIA 2008 - Allan CORNET + * Copyright (C) DIGITEO 2009-2011 - Allan CORNET + * + * 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 + * + */ + +/* desc : For usual or polynomial matrix n is the int 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 ). + +length('123') is 3 . length([1,2;3,4]) is 4 . */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "api_scilab.h" +#include "core_math.h" +#include "MALLOC.h" +#include "localization.h" +#include "Scierror.h" +#include "freeArrayOfString.h" +#include "charEncoding.h" +#include "isScilabFunction.h" +/*----------------------------------------------------------------------------*/ +/* get length */ +static int lengthStrings(int *piAddressVar); +static int lengthOthers(char *fname); +static int lengthDefault(int *piAddressVar); +static int lengthList(int *piAddressVar); +static int lengthMList(const char *fname, int *piAddressVar); +/* !!! WARNING !!! : Read comments about length on sparse matrix */ +static int lengthSparse(int *piAddressVar); +/*----------------------------------------------------------------------------*/ +int sci_length(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int *piAddressVarOne = NULL; + int iScilabType = 0; + + CheckRhs(1, 1); + CheckLhs(1, 1); + + /* get Address of inputs */ + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + sciErr = getVarType(pvApiCtx, piAddressVarOne, &iScilabType); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + switch ( iScilabType ) + { + case sci_strings : + { + return lengthStrings(piAddressVarOne); + } + case sci_sparse : + { + return lengthSparse(piAddressVarOne); + } + case sci_list : + case sci_tlist : + { + return lengthList(piAddressVarOne); + } + break; + case sci_mlist : + { + return lengthMList(fname, piAddressVarOne); + } + break; + + case sci_matrix : + case sci_poly : + case sci_boolean : + case sci_boolean_sparse : + case sci_matlab_sparse : + case sci_ints : + case sci_handles : + { + return lengthDefault(piAddressVarOne); + } + default : + return lengthOthers(fname); + break; + } +} +/*--------------------------------------------------------------------------*/ +static int lengthStrings(int *piAddressVar) +{ + SciErr sciErr; + int m1 = 0, n1 = 0; + int iType = 0; + char **pStVarOne = NULL; + int *lenStVarOne = NULL; + + int m_out = 0, n_out = 0; + double *pdOut = NULL; + int i = 0; + + sciErr = getVarType(pvApiCtx, piAddressVar, &iType); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + if ( iType != sci_strings ) + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), "length", 1); + return 0; + } + + sciErr = getMatrixOfString(pvApiCtx, piAddressVar, &m1, &n1, NULL, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: impossible to get dimensions of this matrix.\n"), "length"); + return 0; + } + + lenStVarOne = (int*)MALLOC(sizeof(int) * (m1 * n1)); + if (lenStVarOne == NULL) + { + Scierror(999, _("%s: No more memory.\n"), "length"); + return 0; + } + + sciErr = getMatrixOfString(pvApiCtx, piAddressVar, &m1, &n1, lenStVarOne, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + FREE(lenStVarOne); + lenStVarOne = NULL; + Scierror(999, _("%s: impossible to get dimensions of this matrix.\n"), "length"); + return 0; + } + + pStVarOne = (char**)MALLOC(sizeof(char*) * (m1 * n1)); + if (pStVarOne == NULL) + { + FREE(lenStVarOne); + Scierror(999, _("%s: No more memory.\n"), "length"); + return 0; + } + + for (i = 0; i < m1 * n1; i++) + { + pStVarOne[i] = (char*)MALLOC(sizeof(char) * (lenStVarOne[i] + 1)); + if (pStVarOne[i] == NULL) + { + FREE(lenStVarOne); + lenStVarOne = NULL; + freeArrayOfString(pStVarOne, i); + Scierror(999, _("%s: No more memory.\n"), "length"); + return 0; + } + } + + sciErr = getMatrixOfString(pvApiCtx, piAddressVar, &m1, &n1, lenStVarOne, pStVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + FREE(lenStVarOne); + lenStVarOne = NULL; + freeArrayOfString(pStVarOne, m1 * n1); + Scierror(999, _("%s: impossible to get dimensions of this matrix.\n"), "length"); + return 0; + } + + m_out = m1; + n_out = n1; + pdOut = (double*)MALLOC(sizeof(double) * (m_out * n_out)); + + if (pdOut == NULL) + { + FREE(lenStVarOne); + lenStVarOne = NULL; + freeArrayOfString(pStVarOne, m1 * n1); + Scierror(999, _("%s: No more memory.\n"), "length"); + return 0; + } + + for (i = 0; i < m_out * n_out; i++) + { + int clen = (int)strlen(pStVarOne[i]); + int scilen = lenStVarOne[i]; + + int trueLength = scilen; + + wchar_t *wcStr = NULL; + + if (scilen > clen) + { + int j = 0; + /* bug 4727 */ + /* A scilab string is an array of characters */ + /* we can put '\0' in a scilab string */ + for (j = 0; j < lenStVarOne[i]; j++) + { + if (pStVarOne[i][j] == 0) + { + pStVarOne[i][j] = ' '; + } + } + + wcStr = to_wide_string(pStVarOne[i]); + if (wcStr) + { + trueLength = (int) wcslen(wcStr); + FREE(wcStr); + wcStr = NULL; + } + } + else + { + wcStr = to_wide_string(pStVarOne[i]); + if (wcStr) + { + char *cStr = wide_string_to_UTF8(wcStr); + if (cStr) + { + /* Bug 8525: we check if it is a malformed string */ + if (strlen(cStr) != strlen(pStVarOne[i])) + { + trueLength = clen; + } + else + { + trueLength = (int) wcslen(wcStr); + } + FREE(cStr); + cStr = NULL; + } + else + { + trueLength = (int) wcslen(wcStr); + } + FREE(wcStr); + wcStr = NULL; + + } + } + + pdOut[i] = (double)trueLength; + } + + freeArrayOfString(pStVarOne, m_out * n_out); + + FREE(lenStVarOne); + lenStVarOne = NULL; + + sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, m_out, n_out, pdOut); + if (sciErr.iErr) + { + printError(&sciErr, 0); + FREE(pdOut); + Scierror(999, _("%s: Memory allocation error.\n"), "length"); + return 0; + } + + FREE(pdOut); + pdOut = NULL; + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ +static int lengthOthers(char *fname) +{ + /* unknown type */ + Scierror(999, _("%s: Wrong type for input argument(s).\n"), fname); + return 0; +} +/*--------------------------------------------------------------------------*/ +/* !!! WARNING !!! */ +/* Compatibility with Scilab 4.x */ +/* length returned is the max of dimensions of the sparse matrix max(m,n) */ +/* and not m * n */ +static int lengthSparse(int *piAddressVar) +{ + int m_out = 0, n_out = 0; + double *pdOut = NULL; + + int m = 0, n = 0; + SciErr sciErr = getVarDimension(pvApiCtx, piAddressVar, &m, &n); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + m_out = 1; + n_out = 1; + pdOut = (double*)MALLOC(sizeof(double) * (m_out * n_out)); + if (pdOut == NULL) + { + Scierror(999, _("%s: No more memory.\n"), "length"); + return 0; + } + + pdOut[0] = Max(m, n); + + sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, m_out, n_out, pdOut); + if (sciErr.iErr) + { + printError(&sciErr, 0); + FREE(pdOut); + Scierror(999, _("%s: Memory allocation error.\n"), "length"); + return 0; + } + + FREE(pdOut); + pdOut = NULL; + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ +static int lengthMList(const char *fname, int *piAddressVar) +{ + int nbItem = 0; + int* piAddrChild = NULL; + + SciErr sciErr = getListItemNumber(pvApiCtx, piAddressVar, &nbItem); + if ((sciErr.iErr) || (nbItem < 1)) + { + return lengthList(piAddressVar); + } + + sciErr = getListItemAddress(pvApiCtx, piAddressVar, 1, &piAddrChild); + if (sciErr.iErr) + { + return lengthList(piAddressVar); + } + + if (isStringType(pvApiCtx, piAddrChild)) + { + int m = 0, n = 0; + char **pstrData = NULL; + if (getAllocatedMatrixOfString(pvApiCtx, piAddrChild, &m, &n, &pstrData) == 0) + { + char overloadFunctionName[nlgh]; + int lengthOverloadFunctionName = (int)(strlen("%") + strlen(pstrData[0]) + strlen("_") + strlen(fname) + 1); + if (lengthOverloadFunctionName > nlgh) // length of function name in S5 + { + freeAllocatedMatrixOfString(m, n, pstrData); + pstrData = NULL; + return lengthList(piAddressVar); + } + else + { + char key[] = "hm "; + // Case of an hypermat + if (strncmp(key, pstrData[0], 2) == 0 && strlen(pstrData[0]) == 2) + { + int* piAddrChild3; + int iRows = 0; + int iCols = 0; + double* pdblReal = NULL; + int iType = 0; + sciErr = getListItemAddress(pvApiCtx, piAddressVar, 3, &piAddrChild3); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return sciErr.iErr; + } + sciErr = getVarType(pvApiCtx, piAddrChild3, &iType); + if (iType == sci_strings) + { + return lengthList(piAddressVar); + } + return lengthDefault(piAddrChild3); + } + else + { + strcpy(overloadFunctionName, "%"); + strcat(overloadFunctionName, pstrData[0]); + freeAllocatedMatrixOfString(m, n, pstrData); + pstrData = NULL; + + strcat(overloadFunctionName, "_"); + strcat(overloadFunctionName, fname); + + if (isScilabFunction(overloadFunctionName)) + { + int lw = 1 + Top - Rhs; + C2F(overload)(&lw, (char*)fname, (unsigned long)strlen(fname)); + return 0; + } + else + { + return lengthList(piAddressVar); + } + } + } + } + } + return lengthList(piAddressVar); +} +/*--------------------------------------------------------------------------*/ +static int lengthList(int *piAddressVar) +{ + int m_out = 0, n_out = 0; + double *pdOut = NULL; + + int nbItem = 0; + SciErr sciErr = getListItemNumber(pvApiCtx, piAddressVar, &nbItem); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + m_out = 1; + n_out = 1; + pdOut = (double*)MALLOC(sizeof(double) * (m_out * n_out)); + if (pdOut == NULL) + { + Scierror(999, _("%s: No more memory.\n"), "length"); + return 0; + } + + pdOut[0] = (double) nbItem; + + sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, m_out, n_out, pdOut); + if (sciErr.iErr) + { + printError(&sciErr, 0); + FREE(pdOut); + Scierror(999, _("%s: Memory allocation error.\n"), "length"); + return 0; + } + + FREE(pdOut); + pdOut = NULL; + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + + return 0; +} +/*--------------------------------------------------------------------------*/ +static int lengthDefault(int *piAddressVar) +{ + int m_out = 0, n_out = 0; + double *pdOut = NULL; + + int m = 0, n = 0; + SciErr sciErr = getVarDimension(pvApiCtx, piAddressVar, &m, &n); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return 0; + } + + m_out = 1; + n_out = 1; + pdOut = (double*)MALLOC(sizeof(double) * (m_out * n_out)); + if (pdOut == NULL) + { + Scierror(999, _("%s: No more memory.\n"), "length"); + return 0; + } + + pdOut[0] = m * n; + + sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, m_out, n_out, pdOut); + if (sciErr.iErr) + { + printError(&sciErr, 0); + FREE(pdOut); + Scierror(999, _("%s: Memory allocation error.\n"), "length"); + return 0; + } + + FREE(pdOut); + pdOut = NULL; + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_part.c b/modules/string/sci_gateway/c/sci_part.c new file mode 100755 index 000000000..ae517ee93 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_part.c @@ -0,0 +1,128 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET , Cong WU + * + * 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 + * + */ + +/* desc : Let s[k] stands for the k character of Input_StringMatrixings + ( or the white space character if k >length(s) ). + part returns c , a matrix of character Input_StringMatrixings, such that + c(i,j) is the Input_StringMatrixing "s[v(1)]...s[v(n)]" ( s=mp(i,j) ). + */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "Scierror.h" +#include "MALLOC.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "partfunction.h" +/*--------------------------------------------------------------------------*/ +int sci_part(char *fname, unsigned long fname_len) +{ + int i = 0; + + int m1 = 0, n1 = 0; + char **Input_StringMatrix = NULL; + int m1n1 = 0; /* m1 * n1 */ + + int m2 = 0, n2 = 0; + int StackPosTwo = 0; + int *SecondParamaterValue = NULL; + int m2n2 = 0; /* m2 * n2 */ + + char **Output_StringMatrix = NULL; + + CheckRhs(2, 2); + CheckLhs(1, 1); + + if (VarType(1) == sci_matrix) + { + /*Check for an empty matrix */ + GetRhsVar(1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &StackPosTwo); + if (m1 * n1 == 0) + { + LhsVar(1) = 1 ; + PutLhsVar(); + return 0; + } + } + if (VarType(1) != sci_strings) + { + OverLoad(1); + /*Scierror(999,_("%s: Wrong type for first input argument: String expected.\n"),fname);*/ + return 0; + } + + if (VarType(2) != sci_matrix) + { + OverLoad(2); + /*Scierror(999,_("%s: Wrong type for second input argument: Matrix expected.\n"),fname);*/ + return 0; + } + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &Input_StringMatrix); + m1n1 = m1 * n1; + + GetRhsVar(2, MATRIX_OF_INTEGER_DATATYPE, &m2, &n2, &StackPosTwo); + + if ( (m2 == n2) && (n2 == 0) ) + { + /* part('something',[]) */ + freeArrayOfString(Input_StringMatrix, m1n1); + CreateVarFromPtr(Rhs + 1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, NULL); + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; + } + + if ( !( (m2 == 1 && n2 > 0) || (m2 > 0 && n2 == 1) ) ) + { + freeArrayOfString(Input_StringMatrix, m1n1); + Scierror(89, _("%s: Wrong size for input argument #%d.\n"), fname, 2); + return 0; + } + + m2n2 = m2 * n2; + SecondParamaterValue = istk(StackPosTwo); + + /* check values of second parameter */ + for (i = 0; i < m2n2 ; i++) + { + if (SecondParamaterValue[i] < 1) + { + freeArrayOfString(Input_StringMatrix, m1n1); + Scierror(36, _("%s: Wrong values for input argument #%d: Must be >= 1.\n"), fname, 2); + return 0; + } + } + + Output_StringMatrix = partfunction(Input_StringMatrix, m1, n1, SecondParamaterValue, m2n2); + + /* free pointer */ + freeArrayOfString(Input_StringMatrix, m1n1); + if (Output_StringMatrix == NULL) + { + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + /* put values on stack */ + CreateVarFromPtr( Rhs + 1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, Output_StringMatrix ); + + /* free pointer */ + freeArrayOfString(Output_StringMatrix, m1n1); + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_regexp.c b/modules/string/sci_gateway/c/sci_regexp.c new file mode 100755 index 000000000..7293a99f7 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_regexp.c @@ -0,0 +1,416 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2008 - INRIA - Cong WU +* Copyright (C) 2008 - 2009 - DIGITEO - Allan CORNET +* +* 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 +* +*/ + +/* desc : search position of a character string in an other string +using regular expression . */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "pcre.h" +#include "pcre_private.h" +#include "pcre_error.h" +#include "Scierror.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#include "charEncoding.h" +/*------------------------------------------------------------------------*/ +#define CHAR_S 's' +#define CHAR_R 'r' +#define STR_ONCE 'o' +/*------------------------------------------------------------------------*/ +int sci_regexp(char *fname, unsigned long fname_len) +{ + char typ = CHAR_S; + char **Str = NULL; + char **Str2 = NULL; + int i = 0; /* loop indice */ + + int mn = 0; /* dimension parameter 1 m*n */ + int len = 0; + + int mn2 = 0; /* m2*n2 */ + + int outIndex = 0; + int numRow = 1; + + int *values_start = NULL; + int *values_end = NULL; + + int *wcvalues_start = NULL; + int *wcvalues_end = NULL; + + char*** pstCapturedString = NULL; + int* piCapturedStringCount = NULL; + + int nbValues_start = 0; + int nbValues_end = 0; + int nbposition = 0; + + CheckRhs(2, 3); + CheckLhs(1, 4); + + if (VarType(1) == sci_strings) + { + int m1 = 0; + int n1 = 0; + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &Str); + mn = m1 * n1; + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Single string expected.\n"), fname, 1); + return 0; + } + + if (mn != 1) + { + freeArrayOfString(Str, mn); + Scierror(36, _("%s: Wrong size for input argument #%d: Single string expected.\n"), fname, 1); + return 0; + } + + if (VarType(2) == sci_strings) + { + int m2 = 0, n2 = 0; + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &m2, &n2, &Str2); + mn2 = m2 * n2; + } + else + { + freeArrayOfString(Str, mn); + Scierror(36, _("%s: Wrong type for input argument #%d: Single string expected.\n"), fname, 2); + return 0; + } + + if (mn2 != 1) + { + freeArrayOfString(Str2, mn2); + Scierror(36, _("%s: Wrong size for input argument #%d: Single string expected.\n"), fname, 2); + return 0; + } + + len = (int)strlen(Str[0]); + + if (len == 0) + { + len++; + } + + values_start = (int *)MALLOC( sizeof(int) * len); + values_end = (int *)MALLOC( sizeof(int) * len); + + wcvalues_start = (int *)MALLOC( sizeof(int) * len); + wcvalues_end = (int *)MALLOC( sizeof(int) * len); + + pstCapturedString = (char***)MALLOC(sizeof(char**) * len); + memset(pstCapturedString, 0x00, sizeof(char**) * len); + piCapturedStringCount = (int*)MALLOC(sizeof(int) * len); + memset(piCapturedStringCount, 0x00, sizeof(int) * len); + + if (Rhs == 2 ) + { + typ = CHAR_S; + } + else /* Rhs == 3 */ + { + int m3 = 0, n3 = 0, l3 = 0; + + GetRhsVar(3, STRING_DATATYPE, &m3, &n3, &l3); + + if ( m3 * n3 != 0) + { + typ = cstk(l3)[0]; + } + if (typ != STR_ONCE) + { + freeArrayOfString(Str, mn); + freeArrayOfString(Str2, mn2); + Scierror(999, _("%s: Wrong type for input argument #%d: '%s' expected.\n"), fname, 3, "o"); + return 0; + } + } + + { + int x = 0; + pcre_error_code answer = PCRE_FINISHED_OK; + + int start_point = 0; + int Output_Start = 0; + int Output_End = 0; + + int wcOutput_Start = 0; + int wcstart_point = 0; + int wcOutput_End = 0; + + for (x = 0; x < mn2; ++x) + { + char *save = strdup(Str2[x]); + if (save) + { + char *pointer = Str[0]; + start_point = 0; + wcstart_point = 0; + do + { + strcpy(save, Str2[x]); + Output_Start = 0; + Output_End = 0; + + answer = pcre_private(pointer, save, &Output_Start, &Output_End, &pstCapturedString[nbposition], &piCapturedStringCount[nbposition]); + if ( answer == PCRE_FINISHED_OK ) + { + /* Start = End means that we matched a position and 0 characters. + * Matching 0 characters, for us, means no match. + */ + if (Output_Start != Output_End) + { + char * strOutput_Start = strdup(pointer); + char * strOutput_End = strdup(pointer); + + wchar_t *wcstrOutput_Start = NULL; + wchar_t *wcstrOutput_End = NULL; + + /* calculates positions with wide characters */ + strOutput_Start[Output_Start] = '\0'; + strOutput_End[Output_End] = '\0'; + + wcstrOutput_Start = to_wide_string(strOutput_Start); + wcstrOutput_End = to_wide_string(strOutput_End); + + if (wcstrOutput_Start) + { + wcOutput_Start = (int)wcslen(wcstrOutput_Start); + FREE(wcstrOutput_Start); + wcstrOutput_Start = NULL; + } + else + { + wcOutput_Start = 0; + } + + if (wcstrOutput_End) + { + wcOutput_End = (int)wcslen(wcstrOutput_End); + FREE(wcstrOutput_End); + wcstrOutput_End = NULL; + } + else + { + wcOutput_End = 0; + } + + FREE(strOutput_Start); + FREE(strOutput_End); + + /*adding the answer into the outputmatrix*/ + values_start[nbValues_start] = Output_Start + start_point + 1; + values_end[nbValues_end] = Output_End + start_point; + + wcvalues_start[nbValues_start] = wcOutput_Start + wcstart_point + 1; + wcvalues_end[nbValues_end] = wcOutput_End + wcstart_point; + + nbValues_start++; + nbValues_end++; + + /*The number according to the str2 matrix*/ + nbposition++; + } + else if (Output_End == 0 && *pointer != '\0') + { + /* Avoid an infinite loop */ + pointer++; + } + + pointer = &pointer[Output_End]; + start_point = start_point + Output_End ; + wcstart_point = wcstart_point + wcOutput_End ; + } + else + { + if (answer != NO_MATCH) + { + pcre_error(fname, answer); + freeArrayOfString(Str, mn); + freeArrayOfString(Str2, mn2); + return 0; + } + } + } + while ( (answer == PCRE_FINISHED_OK) && (*pointer != '\0') && (typ != STR_ONCE) ); + + if (save) + { + FREE(save); + save = NULL; + } + } + else + { + freeArrayOfString(Str, mn); + freeArrayOfString(Str2, mn2); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + } + } + + numRow = 1; /* Output values[] */ + outIndex = 0; + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &numRow, &nbValues_start, &outIndex); + for ( i = 0 ; i < nbValues_start ; i++ ) + { + stk(outIndex)[i] = (double)wcvalues_start[i] ; + } + LhsVar(1) = Rhs + 1 ; + + if (Lhs >= 2) + { + numRow = 1; + outIndex = 0; + CreateVar(Rhs + 2, MATRIX_OF_DOUBLE_DATATYPE, &numRow, &nbValues_end, &outIndex); + for ( i = 0 ; i < nbposition ; i++ ) + { + stk(outIndex)[i] = (double)wcvalues_end[i] ; + } + LhsVar(2) = Rhs + 2; + } + + if (Lhs >= 3) + { + if (nbValues_start != 0) + { + char **match = (char**)MALLOC(sizeof(char*) * (nbValues_start)); + + if (match == NULL) + { + freeArrayOfString(Str, mn); + freeArrayOfString(Str2, mn2); + + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + for ( i = 0; i < nbValues_start; i++) + { + int len = values_end[i] - values_start[i] + 1; + match[i] = (char*)MALLOC(sizeof(char) * (len + 1)); + strncpy(match[i], Str[0] + values_start[i] - 1, len); + + /* A char* always finished by \0 */ + match[i][len] = '\0'; + } + + numRow = nbValues_start; + outIndex = 1 ; + CreateVarFromPtr(Rhs + 3, MATRIX_OF_STRING_DATATYPE, &numRow, &outIndex, match ); + LhsVar(3) = Rhs + 3 ; + freeArrayOfString(match, nbValues_start); + } + else + { + int m3 = 0, n3 = 0, l3 = 0; + CreateVar(Rhs + 3, STRING_DATATYPE, &m3, &n3, &l3); + LhsVar(3) = Rhs + 3 ; + } + } + + if (Lhs >= 4) + { + //return captured strings + int iMax = 0; + int index = 0; + char** pstOutpuStr = NULL; + for (i = 0 ; i < nbposition ; i++) + { + iMax = Max(iMax, piCapturedStringCount[i]); + } + + if (numRow * iMax == 0) + { + int m4 = 0, n4 = 0, l4 = 0; + CreateVar(Rhs + 4, STRING_DATATYPE, &m4, &n4, &l4); + LhsVar(4) = Rhs + 4; + } + else + { + pstOutpuStr = (char**)MALLOC(sizeof(char*) * numRow * iMax); + for (i = 0 ; i < iMax ; i++) + { + int j = 0; + for (j = 0 ; j < numRow ; j++) + { + if (i < piCapturedStringCount[j]) + { + pstOutpuStr[index] = strdup(pstCapturedString[j][i]); + } + else + { + pstOutpuStr[index] = strdup(""); + } + + index++; + } + } + + CreateVarFromPtr(Rhs + 4, MATRIX_OF_STRING_DATATYPE, &numRow, &iMax, pstOutpuStr); + LhsVar(4) = Rhs + 4; + + + //clean temporary strings + freeArrayOfString(pstOutpuStr, numRow * iMax); + } + + for (i = 0 ; i < nbposition ; i++) + { + freeArrayOfString(pstCapturedString[i], piCapturedStringCount[i]); + } + + } + + FREE(pstCapturedString); + FREE(piCapturedStringCount); + + freeArrayOfString(Str, mn); + freeArrayOfString(Str2, mn2); + if (values_start) + { + FREE(values_start); + values_start = NULL; + } + if (values_end) + { + FREE(values_end); + values_end = NULL; + } + if (wcvalues_start) + { + FREE(wcvalues_start); + wcvalues_start = NULL; + } + if (wcvalues_end) + { + FREE(wcvalues_end); + wcvalues_end = NULL; + } + + PutLhsVar(); + return 0; +} +/*-----------------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_str2code.c b/modules/string/sci_gateway/c/sci_str2code.c new file mode 100755 index 000000000..5228a1236 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_str2code.c @@ -0,0 +1,110 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/* desc : This function return scilab int codes associated with a + character string */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "code2str.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "warningmode.h" +#include "sciprint.h" +/*----------------------------------------------------------------------------*/ +int sci_str2code(char *fname, unsigned long fname_len) +{ + CheckRhs(1, 1); + CheckLhs(1, 1); + + if (strcmp(fname, "str2code") == 0) + { + if (getWarningMode()) + { + sciprint(_("%s: Feature %s is obsolete.\n"), _("Warning"), fname); + sciprint(_("%s: Please use %s instead.\n"), _("Warning"), "ascii"); + sciprint(_("%s: This feature will be permanently removed in Scilab %s\n\n"), _("Warning"), "6.0.0"); + } + } + + if (VarType(1) == sci_strings) + { + char **Input_String = NULL; + int m1 = 0, n1 = 0; + int *Output_Matrix = NULL; + int nbOutput_Matrix = 0; + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &Input_String); + + if ( ( strcmp(Input_String[0], "") == 0 ) || (Input_String[0] == NULL) ) + { + /* str2code('') returns [] */ + int l = 0; + + freeArrayOfString(Input_String, m1 * n1); + + m1 = 0; + n1 = 0; + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &l); + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + + return 0; + } + else + { + if (strlen(Input_String[0])) + { + nbOutput_Matrix = (int)strlen(Input_String[0]); + } + Output_Matrix = (int*)MALLOC( sizeof(int) * nbOutput_Matrix ); + if (Output_Matrix) + { + int i = 0; + int numRow = 1 ; + int outIndex = 0; + + str2code(Output_Matrix, Input_String); + freeArrayOfString(Input_String, m1 * n1); + + /* put on scilab stack */ + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &nbOutput_Matrix, &numRow, &outIndex); /*Output*/ + for ( i = 0 ; i < nbOutput_Matrix ; i++ ) + { + stk(outIndex)[i] = (double)Output_Matrix[i] ; + } + + /* free pointers */ + FREE(Output_Matrix); + Output_Matrix = NULL; + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + else + { + freeArrayOfString(Input_String, m1 * n1); + Scierror(999, _("%s: No more memory.\n"), fname); + } + } + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 1); + } + return 0; +} +/*----------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strcat.c b/modules/string/sci_gateway/c/sci_strcat.c new file mode 100755 index 000000000..4808c84d8 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strcat.c @@ -0,0 +1,643 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - Allan CORNET , Cong WU +* Copyright (C) DIGITEO - 2010 - Allan CORNET +* +* 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 +* +*/ + +/* desc : concatenate character strings */ +/* Examples: strcat(string(1:10),',') */ +/* */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "freeArrayOfString.h" +#include "localization.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +/*-------------------------------------------------------------------------------------*/ +#define STAR '*' +#define COL 'c' +#define ROW 'r' +#define ONE_CHAR 1 +#define EMPTY_CHAR "" +/*-------------------------------------------------------------------------------------*/ +static int sci_strcat_three_rhs(char *fname); +static int sci_strcat_two_rhs(char *fname); +static int sci_strcat_one_rhs(char *fname); +static int sci_strcat_rhs_one_is_a_matrix(char *fname); +static int sumlengthstring(int rhspos); +static int *lengthEachString(int rhspos, int *sizeArrayReturned); + +/*-------------------------------------------------------------------------------------*/ +int sci_strcat(char *fname, unsigned long fname_len) +{ + CheckRhs(1, 3); + CheckLhs(1, 1); + + switch (Rhs) + { + case 3: + { + sci_strcat_three_rhs(fname); + } + break; + case 2: + { + sci_strcat_two_rhs(fname); + } + break; + case 1: + { + sci_strcat_one_rhs(fname); + } + break; + default: + /* nothing */ + break; + } + return 0; +} + +/*-------------------------------------------------------------------------------------*/ +static int sci_strcat_three_rhs(char *fname) +{ + int Row_One = 0, Col_One = 0; + char **Input_String_One = NULL; + int mn = 0; + static char def_sep[] = ""; + char *Input_String_Two = def_sep; + char typ = 0; + int i = 0; + + if (VarType(1) != sci_strings) + { + Scierror(999, _("%s: Wrong type for input argument #%d: a string vector expected.\n"), fname, 1); + return 0; + } + + if (VarType(2) != sci_strings) + { + Scierror(999, "%s : Wrong size for input argument #%d: Single string expected.\n", fname, 2); + return 0; + } + + if (VarType(3) != sci_strings) + { + Scierror(999, "%s : Wrong size for input argument #%d: Single string expected.\n", fname, 3); + return 0; + } + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &Row_One, &Col_One, &Input_String_One); + mn = Row_One * Col_One; + + if (Rhs >= 2) + { + /* second argument always a string and not a matrix of string */ + int l2 = 0; + int Row_Two = 0, Col_Two = 0; + + GetRhsVar(2, STRING_DATATYPE, &Row_Two, &Col_Two, &l2); + Input_String_Two = cstk(l2); + } + + if (Rhs >= 3) + { + int Row_Three = 0, Col_Three = 0; + int l3 = 0; + + GetRhsVar(3, STRING_DATATYPE, &Row_Three, &Col_Three, &l3); + if (Row_Three * Col_Three != 0) + { + typ = cstk(l3)[0]; + } + if (typ != COL && typ != ROW) + { + freeArrayOfString(Input_String_One, mn); + Scierror(999, _("%s: Wrong type for input argument #%d: '%s' or '%s' expected.\n"), fname, 3, "c", "r"); + return 0; + } + } + + switch (typ) + { + case STAR: + { + int nchars = 0; + int one = 1; + int l3 = 0; + int k = 0; + + /* just return one string */ + for (i = 0; i < mn; i++) + { + nchars += (int)strlen(Input_String_One[i]); + } + nchars += (mn - 1) * (int)strlen(Input_String_Two); + + CreateVar(Rhs + 1, STRING_DATATYPE, &one, &nchars, &l3); + + for (i = 0; i < mn; i++) + { + int j = 0; + int len_Input_String_One = (int)strlen(Input_String_One[i]); + for (j = 0; j < len_Input_String_One; j++) + { + *cstk(l3 + k++) = Input_String_One[i][j]; + } + if (i != mn - 1) + { + int len_Input_String_Two = (int)strlen(Input_String_Two); + for (j = 0; j < len_Input_String_Two; j++) + { + *cstk(l3 + k++) = Input_String_Two[j]; + } + } + } + freeArrayOfString(Input_String_One, mn); + LhsVar(1) = Rhs + 1; + } + break; + case COL: + { + char **Output_String = NULL; + int nchars = 0; + int one = 1; + + /* return a column matrix */ + if ((Output_String = (char **)MALLOC((Row_One + 1) * sizeof(char *))) == NULL) + { + freeArrayOfString(Input_String_One, mn); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + Output_String[Row_One] = NULL; + for (i = 0; i < Row_One; i++) + { + int j = 0; + + /* length of row i */ + nchars = 0; + for (j = 0; j < Col_One; j++) + { + nchars += (int)strlen(Input_String_One[i + Row_One * j]); + } + nchars += (Col_One - 1) * (int)strlen(Input_String_Two); + + Output_String[i] = (char *)MALLOC((nchars + 1) * sizeof(char)); + if (Output_String[i] == NULL) + { + freeArrayOfString(Output_String, i); + freeArrayOfString(Input_String_One, mn); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + /* fill the string */ + strcpy(Output_String[i], Input_String_One[i]); + + for (j = 1; j < Col_One; j++) + { + strcat(Output_String[i], Input_String_Two); + strcat(Output_String[i], Input_String_One[i + Row_One * j]); + } + } + + CreateVarFromPtr(Rhs + 1, MATRIX_OF_STRING_DATATYPE, &Row_One, &one, Output_String); + freeArrayOfString(Input_String_One, mn); + freeArrayOfString(Output_String, Row_One + 1); + LhsVar(1) = Rhs + 1; + } + break; + + case ROW: + { + int j = 0; + int one = 1; + char **Output_String = (char **)CALLOC(Col_One, sizeof(char *)); + + /* return a row matrix */ + if (Output_String == NULL) + { + freeArrayOfString(Input_String_One, mn); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + for (j = 0; j < Col_One; j++) + { + Output_String[j] = strdup(Input_String_One[j * Row_One]); + + if (Output_String[j] == NULL) + { + freeArrayOfString(Output_String, j); + freeArrayOfString(Input_String_One, mn); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + for (i = 1; i < Row_One; i++) + { + int lenOutput = 0; + int lenInput = 0; + int lenNew = 0; + + if (Input_String_Two) + { + lenOutput = (int)strlen(Output_String[j]); + lenInput = (int)strlen(Input_String_Two); + lenNew = lenOutput + lenInput + 1; + + Output_String[j] = (char *)REALLOC(Output_String[j], sizeof(char) * lenNew); + if (Output_String[j] == NULL) + { + freeArrayOfString(Output_String, j); + freeArrayOfString(Input_String_One, mn); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + strcat(Output_String[j], Input_String_Two); + } + + if (Input_String_One[i + Row_One * j]) + { + lenOutput = (int)strlen(Output_String[j]); + lenInput = (int)strlen(Input_String_One[i + Row_One * j]); + lenNew = lenOutput + lenInput + 1; + + Output_String[j] = (char *)REALLOC(Output_String[j], sizeof(char) * lenNew); + if (Output_String[j] == NULL) + { + freeArrayOfString(Output_String, j); + freeArrayOfString(Input_String_One, mn); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + strcat(Output_String[j], Input_String_One[i + Row_One * j]); + } + } + } + + CreateVarFromPtr(Rhs + 1, MATRIX_OF_STRING_DATATYPE, &one, &Col_One, Output_String); + freeArrayOfString(Input_String_One, mn); + if (Col_One == 1) + { + FREE(Output_String); + Output_String = NULL; + } + else + { + freeArrayOfString(Output_String, Col_One); + } + LhsVar(1) = Rhs + 1; + } + break; + + default: + { + freeArrayOfString(Input_String_One, mn); + Scierror(999, _("%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n"), fname, 3, "c", "r"); + return 0; + } + break; + + } + PutLhsVar(); + return 0; +} + +/*-------------------------------------------------------------------------------------*/ +static int sci_strcat_two_rhs(char *fname) +{ + int Type_One = VarType(1); + int Type_Two = VarType(2); + + int Number_Inputs_Two = 0; + char **Input_String_Two = NULL; + + if (Type_Two != sci_strings) + { + Scierror(246, _("%s: Wrong type for input argument #%d: Single string expected.\n"), fname, 2); + return 0; + } + else /* sci_strings */ + { + int Row_Two = 0, Col_Two = 0; + + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &Row_Two, &Col_Two, &Input_String_Two); + Number_Inputs_Two = Row_Two * Col_Two; + /* check we have only a string as second parameter */ + if (Number_Inputs_Two != 1) + { + freeArrayOfString(Input_String_Two, Number_Inputs_Two); + Scierror(36, "%s : Wrong size for input argument #%d: Single string expected.\n", fname, 2); + return 0; + } + } + + if ((Type_One != sci_strings) && (Type_One != sci_matrix)) + { + freeArrayOfString(Input_String_Two, Number_Inputs_Two); + Scierror(246, "%s: Wrong type for input argument #%d: Matrix of strings expected.\n", fname, 1); + return 0; + } + else + { + if (Type_One == sci_matrix) + { + freeArrayOfString(Input_String_Two, Number_Inputs_Two); + sci_strcat_rhs_one_is_a_matrix(fname); + } + else /* sci_strings */ + { + char **Input_String_One = NULL; + int Row_One = 0, Col_One = 0; + int Number_Inputs_One = 0; + int length_output = 0; + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &Row_One, &Col_One, &Input_String_One); + Number_Inputs_One = Row_One * Col_One; + + if (Input_String_One) + { + if ((Number_Inputs_One == 1) && (strcmp(Input_String_One[0], "") == 0)) + { + /* With no input argument returns a zero length character string */ + int m1 = 0, n1 = 0, l1 = 0; + + CreateVar(Rhs + 1, STRING_DATATYPE, &m1, &n1, &l1); + + freeArrayOfString(Input_String_Two, Number_Inputs_Two); + freeArrayOfString(Input_String_One, Number_Inputs_One); + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; + } + else + { + if (Number_Inputs_One == 1) + { + length_output = (int)strlen(Input_String_One[0]); + } + else + { + int lengthInput_String_Two = (int)strlen(Input_String_Two[0]); + + length_output = sumlengthstring(1) + (int)(Number_Inputs_One) * lengthInput_String_Two - lengthInput_String_Two; + } + } + } + + if (length_output > 0) + { + static int n1 = 0, m1 = 0; + int outIndex = 0; + char *Output_String = NULL; + int i = 0; + int Number_Inputs_OneLessOne = Number_Inputs_One - 1; + + m1 = length_output; + n1 = 1; + + CreateVar(Rhs + 1, STRING_DATATYPE, &m1, &n1, &outIndex); + Output_String = cstk(outIndex); + + /* strcpy + strcat faster than sprintf */ + strcpy(Output_String, Input_String_One[0]); + (0 < Number_Inputs_OneLessOne) ? strcat(Output_String, Input_String_Two[0]) : 0; + + for (i = 1; i < Number_Inputs_One; i++) + { + strcat(Output_String, Input_String_One[i]); + (i < Number_Inputs_OneLessOne) ? strcat(Output_String, Input_String_Two[0]) : 0; + } + + freeArrayOfString(Input_String_One, Row_One * Col_One); + freeArrayOfString(Input_String_Two, Number_Inputs_Two); + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + } + else + { + if (length_output == 0) + { + int one = 1; + int len = (int)strlen(EMPTY_CHAR); + int outIndex = 0; + + CreateVar(Rhs + 1, STRING_DATATYPE, &len, &one, &outIndex); + strcpy(cstk(outIndex), EMPTY_CHAR); + + freeArrayOfString(Input_String_Two, Number_Inputs_Two); + freeArrayOfString(Input_String_One, Number_Inputs_One); + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + } + else + { + freeArrayOfString(Input_String_Two, Number_Inputs_Two); + freeArrayOfString(Input_String_One, Number_Inputs_One); + Scierror(999, _("%s : Wrong size for input argument(s).\n"), fname); + } + } + } + } + return 0; +} + +/*-------------------------------------------------------------------------------------*/ +static int sci_strcat_one_rhs(char *fname) +{ + int Type_One = VarType(1); + + if ((Type_One != sci_strings) && (Type_One != sci_matrix)) + { + Scierror(246, "%s: Wrong type for input argument #%d: Matrix of strings expected.\n", fname, 1); + return 0; + } + else + { + if (Type_One == sci_strings) + { + int lenstrcat = sumlengthstring(1); + + if (lenstrcat >= 0) + { + char **Input_String_One = NULL; + int m = 0, n = 0; /* matrix size */ + int mn = 0; /* m*n */ + int n1 = 1, m1 = lenstrcat; + int outIndex = 0; + + char *Output_String = NULL; + int i = 0; + + int sizeLengths = 0; + int *lengths = lengthEachString(1, &sizeLengths); + + int l = 0; + + if (lengths == NULL) + { + Scierror(999, _("%s: error.\n"), fname); + return 0; + } + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m, &n, &Input_String_One); + mn = m * n; + + CreateVar(Rhs + 1, STRING_DATATYPE, &m1, &n1, &outIndex); + Output_String = cstk(outIndex); + + l = 0; + for (i = 0; i < mn; i++) + { + /* bug 4728 Compatibility with Scilab 4.1.2 */ + /* replaces strcpy & strcat by memcpy */ + /* copy of char array and not string */ + if (i == 0) + { + memcpy(Output_String, Input_String_One[i], lengths[i]); + } + else + { + memcpy(Output_String + l, Input_String_One[i], lengths[i]); + } + l = l + lengths[i]; + } + + FREE(lengths); + lengths = NULL; + if (Input_String_One) + { + freeArrayOfString(Input_String_One, mn); + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + } + else + { + Scierror(999, _("%s: Wrong size for input argument(s).\n"), fname); + } + } + else /* sci_matrix */ + { + sci_strcat_rhs_one_is_a_matrix(fname); + } + } + return 0; +} + +/*-------------------------------------------------------------------------------------*/ +static int sci_strcat_rhs_one_is_a_matrix(char *fname) +{ + /* strcat([],'A') returns an empty string matrix */ + double *Input_String_One = NULL; + int Row_One = 0, Col_One = 0; + + GetRhsVar(1, MATRIX_OF_DOUBLE_DATATYPE, &Row_One, &Col_One, &Input_String_One); + + /* check that we have [] */ + if ((Row_One == 0) && (Col_One == 0)) + { + int one = 1; + int len = (int)strlen(EMPTY_CHAR); + int outIndex = 0; + + CreateVar(Rhs + 1, STRING_DATATYPE, &len, &one, &outIndex); + strcpy(cstk(outIndex), EMPTY_CHAR); + LhsVar(1) = Rhs + 1; + PutLhsVar(); + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings or empty real matrix expected.\n"), fname, 1); + } + return 0; +} + +/*-------------------------------------------------------------------------------------*/ +static int sumlengthstring(int rhspos) +{ + int sizelengths = 0; + int sumlength = -1; /* error */ + int *lengths = lengthEachString(rhspos, &sizelengths); + int i = 0; + + if (lengths) + { + sumlength = 0; + for (i = 0; i < sizelengths; i++) + { + sumlength = sumlength + lengths[i]; + } + FREE(lengths); + lengths = NULL; + } + + return sumlength; +} + +/*-------------------------------------------------------------------------------------*/ +static int *lengthEachString(int rhspos, int *sizeArrayReturned) +{ + int *StringsLength = NULL; + + if (VarType(rhspos) == sci_strings) + { + int m = 0, n = 0; /* matrix size */ + int mn = 0; /* m*n */ + + int il = 0; + int ilrd = 0; + int l1 = 0; + + int x = 0; + + int lw = rhspos + Top - Rhs; + + l1 = *Lstk(lw); + il = iadr(l1); + + if (*istk(il) < 0) + { + il = iadr(*istk(il + 1)); + } + + /* get dimensions */ + m = getNumberOfLines(il); /* row */ + n = getNumberOfColumns(il); /* col */ + mn = m * n; + ilrd = il + 4; + + StringsLength = (int *)MALLOC(sizeof(int) * mn); + if (StringsLength == NULL) + { + return NULL; + } + + *sizeArrayReturned = mn; + + for (x = 0; x < mn; x++) + { + StringsLength[x] = (int)(*istk(ilrd + x + 1) - *istk(ilrd + x)); + } + } + return StringsLength; +} + +/*-------------------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strchr.c b/modules/string/sci_gateway/c/sci_strchr.c new file mode 100755 index 000000000..150d6dda3 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strchr.c @@ -0,0 +1,162 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +#include <string.h> +#include <stdio.h> +#include <ctype.h> +#include "gw_string.h" +#include "api_scilab.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "stringsstrrchr.h" +/*----------------------------------------------------------------------------*/ +static wchar_t **getInputArgumentAsMatrixOfWideString(void* _pvCtx, int _iVar, + const char *fname, + int *m, int *n, int *iErr); +/*----------------------------------------------------------------------------*/ +int sci_strchr(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int iErr = 0; + + wchar_t **pStrVarOne = NULL; + int m1 = 0; + int n1 = 0; + + wchar_t **pStrVarTwo = NULL; + int m2 = 0; + int n2 = 0; + + int i = 0; + BOOL do_strchr = (strcmp(fname, "strchr") == 0); + + wchar_t **wcOutput_Strings = NULL; + + pStrVarOne = getInputArgumentAsMatrixOfWideString(pvApiCtx, 1, fname, &m1, &n1, &iErr); + if (iErr) + { + if (pStrVarOne) + { + freeAllocatedMatrixOfWideString(m1, n1, pStrVarOne); + } + return 0; + } + + pStrVarTwo = getInputArgumentAsMatrixOfWideString(pvApiCtx, 2, fname, &m2, &n2, &iErr); + if (iErr) + { + if (pStrVarOne) + { + freeAllocatedMatrixOfWideString(m1, n1, pStrVarOne); + } + + if (pStrVarTwo) + { + freeAllocatedMatrixOfWideString(m2, n2, pStrVarTwo); + } + return 0; + } + + for (i = 0; i < m2 * n2; i++) + { + if (wcslen(pStrVarTwo[i]) != 1) + { + freeAllocatedMatrixOfWideString(m1, n1, pStrVarOne); + freeAllocatedMatrixOfWideString(m2, n2, pStrVarTwo); + Scierror(999, _("%s: Wrong size for input argument #%d: A character expected.\n"), fname, 2); + return 0; + } + } + + wcOutput_Strings = strings_wcsrchr((const wchar_t**)pStrVarOne, m1 * n1, (const wchar_t**)pStrVarTwo, m2 * n2, do_strchr); + freeAllocatedMatrixOfWideString(m1, n1, pStrVarOne); + freeAllocatedMatrixOfWideString(m2, n2, pStrVarTwo); + + if (wcOutput_Strings == NULL) + { + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + sciErr = createMatrixOfWideString(pvApiCtx, Rhs + 1 , m1, n1, wcOutput_Strings); + freeAllocatedMatrixOfWideString(m1, n1, wcOutput_Strings); + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + return 0; +} +/*----------------------------------------------------------------------------*/ +static wchar_t **getInputArgumentAsMatrixOfWideString(void* _pvCtx, int _iVar, + const char *fname, + int *m, int *n, int *iErr) +{ + SciErr sciErr; + wchar_t **pStringValues = NULL; + int *piAddressVar = NULL; + int m_ = 0, n_ = 0; + int iType = 0; + + sciErr = getVarAddressFromPosition(pvApiCtx, _iVar, &piAddressVar); + if (sciErr.iErr) + { + *iErr = sciErr.iErr; + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, _iVar); + return NULL; + } + + sciErr = getVarType(pvApiCtx, piAddressVar, &iType); + if (sciErr.iErr) + { + *iErr = sciErr.iErr; + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, _iVar); + return NULL; + } + + if (iType != sci_strings) + { + *iErr = API_ERROR_INVALID_TYPE; + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, _iVar); + return NULL; + } + + *iErr = getAllocatedMatrixOfWideString(pvApiCtx, piAddressVar, &m_, &n_, &pStringValues); + if (*iErr) + { + if (pStringValues) + { + freeAllocatedMatrixOfWideString(m_, n_, pStringValues); + pStringValues = NULL; + } + *m = 0; + *n = 0; + Scierror(999, _("%s: Memory allocation error.\n"), fname); + } + else + { + *m = m_; + *n = n_; + } + + return pStringValues; +} +/*----------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strcmp.c b/modules/string/sci_gateway/c/sci_strcmp.c new file mode 100755 index 000000000..f5ca62c8d --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strcmp.c @@ -0,0 +1,138 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*-----------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "BOOL.h" +#include "stringsCompare.h" +/*----------------------------------------------------------------------------*/ +#define CHAR_I 'i' +#define CHAR_S 's' +/*----------------------------------------------------------------------------*/ +int sci_strcmp(char *fname, unsigned long fname_len) +{ + int Type_One = 0; + int Type_Two = 0; + BOOL do_stricmp = FALSE; + + CheckRhs(2, 3); + CheckLhs(1, 1); + + Type_One = VarType(1); + Type_Two = VarType(2); + + if (Rhs == 3) + { + int Type_Three = VarType(3); + if (Type_Three == sci_strings) + { + int Row_Num_Two = 0, Col_Num_Two = 0, Stack_Pos = 0; + + GetRhsVar(3, STRING_DATATYPE, &Row_Num_Two, &Col_Num_Two, &Stack_Pos); + if ( (Row_Num_Two * Col_Num_Two) == 1 ) + { + char typ = 's'; + /* To put "flag" into typ; whether "i"*/ + typ = cstk(Stack_Pos)[0]; + if ( (typ != CHAR_I) && (typ != CHAR_S)) + { + Scierror(999, _("%s: Wrong value for input argument #%d: %s or %s expected.\n"), fname, 3, "'i' (stricmp)", "'s' (strcmp)"); + return 0; + } + if (typ == CHAR_I) + { + do_stricmp = TRUE; + } + } + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 3); + return 0; + } + } + + if ( (Type_One == sci_strings) && (Type_Two == sci_strings) ) + { + char **Input_Strings_One = NULL; + int m1 = 0, n1 = 0; + int m1n1 = 0; + + char **Input_Strings_Two = NULL; + int m2 = 0, n2 = 0; + int m2n2 = 0; + + /* To input the string matrix */ + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &Input_Strings_One); + m1n1 = m1 * n1; + + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &m2, &n2, &Input_Strings_Two); + m2n2 = m2 * n2; + + if ( ( (m2 == m1) && (n2 == n1) ) || (m2n2 == 1) ) + { + int *values = stringsCompare(Input_Strings_One, m1n1, Input_Strings_Two, m2n2, do_stricmp); + + if (values == NULL) + { + freeArrayOfString(Input_Strings_One, m1n1); + freeArrayOfString(Input_Strings_Two, m2n2); + Scierror(999, _("%s : No more memory.\n"), fname); + } + else + { + int outIndex = 0 ; + int x = 0; + + CreateVar( Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &outIndex ); + for ( x = 0; x < m1n1; x++ ) + { + stk(outIndex)[x] = values[x]; + } + + freeArrayOfString(Input_Strings_One, m1n1); + freeArrayOfString(Input_Strings_Two, m2n2); + FREE(values); + values = NULL; + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + } + else + { + freeArrayOfString(Input_Strings_One, m1n1); + freeArrayOfString(Input_Strings_Two, m2n2); + Scierror(999, _("%s: Wrong size for input arguments: Same sizes expected.\n"), fname); + } + } + else + { + if (Type_One != sci_strings) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 1); + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 2); + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strcspn.c b/modules/string/sci_gateway/c/sci_strcspn.c new file mode 100755 index 000000000..bceeaff4e --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strcspn.c @@ -0,0 +1,125 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/* res = strcspn(str1,str2) */ +/* Scans str1 for the first occurrence of any of the characters */ +/* that are part of str2, returning the number of characters */ +/* of str1 read before this first occurrence. */ +/*---------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <ctype.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "charEncoding.h" +#include "freeArrayOfString.h" +/*---------------------------------------------------------------------------*/ +int sci_strcspn(char *fname, unsigned long fname_len) +{ + CheckRhs(2, 2); + CheckLhs(0, 1); + + if ( (GetType(1) == sci_strings) && (GetType(2) == sci_strings) ) + { + int m1 = 0; + int n1 = 0; + char **InputString_Parameter1 = NULL; + int m1n1 = 0; /* m1 * n1 */ + + int m2 = 0; + int n2 = 0; + char **InputString_Parameter2 = NULL; + int m2n2 = 0; /* m2 * n2 */ + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &InputString_Parameter1); + m1n1 = m1 * n1; + + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &m2, &n2, &InputString_Parameter2); + m2n2 = m2 * n2; + + if ( ((m1 == m2) && (n1 == n2)) || (m2n2 == 1) ) + { + int outIndex = 0; + int i = 0; + int j = 0; + + /*Output*/ + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &outIndex); + for ( i = 0 ; i < m1n1 ; i++ ) + { + wchar_t *wcParam1 = NULL; + wchar_t *wcParam2 = NULL; + + if (m2n2 == 1) + { + j = 0; + } + else + { + j = i; + } + + wcParam1 = to_wide_string(InputString_Parameter1[i]); + wcParam2 = to_wide_string(InputString_Parameter2[j]); + + if (wcParam1 && wcParam2) + { + stk(outIndex)[i] = (double) wcscspn( wcParam1, wcParam2 ); + } + else + { + stk(outIndex)[i] = (double) strcspn( InputString_Parameter1[i], InputString_Parameter2[j] ); + } + + if (wcParam1) + { + FREE(wcParam1); + wcParam1 = NULL; + } + if (wcParam2) + { + FREE(wcParam2); + wcParam2 = NULL; + } + + } + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + else + { + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + Scierror(999, _("%s: Wrong size for input argument #%d.\n"), fname, 2); + return 0; + } + + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + } + else + { + if (GetType(1) != sci_strings) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 1); + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 2); + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strindex.c b/modules/string/sci_gateway/c/sci_strindex.c new file mode 100755 index 000000000..ca799fb55 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strindex.c @@ -0,0 +1,391 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Cong WU + * + * 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 + * + */ + +/* desc : search position of a character string in an other string */ +/* using regular expression . */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <ctype.h> +#include <string.h> +#include "gw_string.h" +#include "pcre.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "pcre_private.h" +#include "BOOL.h" +#include "pcre_error.h" +#include "Scierror.h" +#include "sciprint.h" +#include "charEncoding.h" +#include "sort_inter.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +/*------------------------------------------------------------------------*/ +#define CHAR_S "s" +#define CHAR_R "r" +/*------------------------------------------------------------------------*/ +/*------------------------------------------------------------------------*/ +int cmp(In left, In right) +{ + return left.data < right.data; +} +/*------------------------------------------------------------------------*/ +int sci_strindex(char *fname, unsigned long fname_len) +{ + BOOL bStrindex_with_pattern = FALSE; + int outIndex = 0; + int numRow = 1; + int *next = NULL; + + CheckRhs(2, 3); + CheckLhs(1, 2); + + if (Rhs == 3) + { + int m3 = 0; + int n3 = 0; + char **Strings_Input3 = NULL; + int m3n3 = 0; /* m3 * n3 */ + + if (VarType(3) != sci_strings) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Character expected.\n"), fname, 3); + return 0; + } + GetRhsVar(3, MATRIX_OF_STRING_DATATYPE, &m3, &n3, &Strings_Input3); + m3n3 = m3 * n3; + + if (m3n3 != 1) + { + freeArrayOfString(Strings_Input3, m3n3); + Scierror(999, _("%s: Wrong type for input argument #%d: Character expected.\n"), fname, 3); + return 0; + } + + if ( (strcmp(Strings_Input3[0], CHAR_R) == 0) || (strcmp(Strings_Input3[0], CHAR_S) == 0) ) + { + if (strcmp(Strings_Input3[0], CHAR_R) == 0) + { + bStrindex_with_pattern = TRUE; + } + else + { + bStrindex_with_pattern = FALSE; + } + freeArrayOfString(Strings_Input3, m3n3); + } + else + { + freeArrayOfString(Strings_Input3, m3n3); + Scierror(999, _("%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n"), fname, 3, CHAR_S, CHAR_R); + return 0; + } + } + + if (VarType(1) == sci_matrix) + { + int m1 = 0; + int n1 = 0; + int l1 = 0; + + GetRhsVar(1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &l1); + if ((m1 == 0) && (n1 == 0)) + { + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &l1); + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + return 0; + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings or empty matrix expected.\n"), fname, 1); + return 0; + } + } + + if ( (VarType(1) == sci_strings) && (VarType(2) == sci_strings) ) + { + int m1 = 0, n1 = 0; + char **Strings_Input1 = NULL; + wchar_t *wStrings_Input1 = NULL; + int m1n1 = 0; /* m1 * n1 */ + + int m2 = 0, n2 = 0; + char **Strings_Input2 = NULL; + wchar_t **wStrings_Input2 = NULL; + int m2n2 = 0; /* m2 * n2 */ + + In *values = NULL; + + int nbValues = 0; + int nbposition = 0; + + int i = 0; + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &Strings_Input1); + m1n1 = m1 * n1; + + if (m1n1 != 1) + { + freeArrayOfString(Strings_Input1, m1n1); + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1); + return 0; + } + + wStrings_Input1 = to_wide_string(Strings_Input1[0]); + if (wStrings_Input1 == NULL) + { + /* string conversion fails */ + freeArrayOfString(Strings_Input1, m1n1); + freeArrayOfString(Strings_Input2, m2n2); + Scierror(999, _("%s: Wrong value for input argument #%d: A valid string expected (UTF-8 Encoding problem).\n"), fname, 1); + return 0; + } + + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &m2, &n2, &Strings_Input2); + m2n2 = m2 * n2; + + if ( (m2 != 1) && (n2 != 1) ) + { + freeArrayOfString(Strings_Input1, m1n1); + freeArrayOfString(Strings_Input2, m2n2); + Scierror(999, _("%s: Wrong type for input argument #%d: Row vector of strings or column vector of strings expected.\n"), fname, 2); + return 0; + } + + wStrings_Input2 = (wchar_t**)MALLOC(m2n2 * sizeof(wchar_t*)); + for (i = 0 ; i < m2n2 ; i++) + { + wStrings_Input2[i] = to_wide_string(Strings_Input2[i]); + } + + if ( (int)wcslen(wStrings_Input1) == 0 ) + { + values = (In*)MALLOC(sizeof(In)); + } + else + { + values = (In *)MALLOC( sizeof(In) * ( wcslen(wStrings_Input1) ) * m2n2); + } + + if (bStrindex_with_pattern) + { + int x = 0; + pcre_error_code answer = PCRE_FINISHED_OK; + + int Output_Start = 0; + int Output_End = 0; + + int wcOutput_Start = 0; + int wcstart_point = 0; + int wcOutput_End = 0; + + for (x = 0; x < m2n2; ++x) + { + char *save = strdup(Strings_Input2[x]); + if (save) + { + char *pointer = Strings_Input1[0]; + wcstart_point = 0; + + do + { + strcpy(save, Strings_Input2[x]); + Output_Start = 0; + Output_End = 0; + + answer = pcre_private(pointer, save, &Output_Start, &Output_End, NULL, NULL); + if ( answer == PCRE_FINISHED_OK ) + { + /* Start = End means that we matched a position and 0 characters. + * Matching 0 characters, for us, means no match. + */ + if (Output_Start != Output_End) + { + char * strOutput_Start = strdup(pointer); + char * strOutput_End = strdup(pointer); + + wchar_t *wcstrOutput_Start = NULL; + wchar_t *wcstrOutput_End = NULL; + + /* calculates positions with wide characters */ + strOutput_Start[Output_Start] = '\0'; + strOutput_End[Output_End] = '\0'; + + wcstrOutput_Start = to_wide_string(strOutput_Start); + wcstrOutput_End = to_wide_string(strOutput_End); + + if (wcstrOutput_Start) + { + wcOutput_Start = (int)wcslen(wcstrOutput_Start); + FREE(wcstrOutput_Start); + } + else + { + wcOutput_Start = 0; + } + + if (wcstrOutput_End) + { + wcOutput_End = (int)wcslen(wcstrOutput_End); + FREE(wcstrOutput_End); + } + else + { + wcOutput_End = 0; + } + + FREE(strOutput_Start); + FREE(strOutput_End); + + /*adding the answer into the outputmatrix*/ + values[nbValues].data = wcOutput_Start + wcstart_point + 1; + values[nbValues].position = x + 1; + nbValues++; + } + else if (Output_End == 0 && *pointer != '\0') + { + /* Avoid an infinite loop */ + pointer++; + } + + pointer = &pointer[Output_End]; + wcstart_point = wcstart_point + wcOutput_End; + } + else + { + if (answer != NO_MATCH) + { + pcre_error(fname, answer); + freeArrayOfString(Strings_Input1, m1n1); + freeArrayOfString(Strings_Input2, m2n2); + return 0; + } + } + } + while ( (answer == PCRE_FINISHED_OK) && (*pointer != '\0')); + + if (save) + { + FREE(save); + save = NULL; + } + } + else + { + freeArrayOfString(Strings_Input1, m1n1); + freeArrayOfString(Strings_Input2, m2n2); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + } + + sort_inert(values, values + nbValues, cmp); + } + else + { + /* We don't use pcre library */ + int x = 0; + + for (x = 0; x < m2n2 ; ++x) + { + if ( wcslen(wStrings_Input2[x]) == 0 ) + { + freeArrayOfWideString(wStrings_Input2, m2n2); + freeArrayOfString(Strings_Input2, m2n2); + freeArrayOfString(Strings_Input1, m1n1); + if (next) + { + FREE(next); + next = NULL; + } + if (values) + { + FREE(values); + values = NULL; + } + Scierror(999, _("%s: Wrong size for input argument #%d: Non-empty string expected.\n"), fname, 2); + return 0; + } + if (Strings_Input2) + { + wchar_t *pCur = wStrings_Input1; + do + { + pCur = wcsstr(pCur, wStrings_Input2[x]); + if (pCur != NULL) + { + pCur++; + values[nbValues++].data = (int)(pCur - wStrings_Input1); + values[nbposition++].position = x + 1; + } + } + while (pCur != NULL && *pCur != 0); //Plus tard + + /* values are sorted */ + sort_inert(values, values + nbValues, cmp); + } + } + } + + FREE(wStrings_Input1); + freeArrayOfWideString(wStrings_Input2, m2n2); + freeArrayOfString(Strings_Input1, m1n1); + freeArrayOfString(Strings_Input2, m2n2); + + numRow = 1; + outIndex = 0; + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &numRow, &nbValues, &outIndex); + for ( i = 0 ; i < nbValues ; i++ ) + { + stk(outIndex)[i] = (double)values[i].data ; + } + LhsVar(1) = Rhs + 1 ; + + if (Lhs == 2) + { + numRow = 1; + outIndex = 0; + CreateVar(Rhs + 2, MATRIX_OF_DOUBLE_DATATYPE, &numRow, &nbValues, &outIndex); + for ( i = 0 ; i < nbValues ; i++ ) + { + stk(outIndex)[i] = (double)values[i].position ; + } + LhsVar(2) = Rhs + 2; + } + + if (values) + { + FREE(values); + values = NULL; + } + PutLhsVar(); + } + else + { + if (VarType(1) != sci_strings) + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 1); + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Row vector of strings or column vector of strings expected.\n"), fname, 2); + } + return 0; + } + return 0; +} +/*------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_string.c b/modules/string/sci_gateway/c/sci_string.c new file mode 100755 index 000000000..f3ff9c8dd --- /dev/null +++ b/modules/string/sci_gateway/c/sci_string.c @@ -0,0 +1,161 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - 2011-2012 - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include "gw_string.h" +#include "localization.h" +#include "Scierror.h" +#include "api_scilab.h" +/*--------------------------------------------------------------------------*/ +extern int C2F(intstring) (void); /* fortran routine */ +/*--------------------------------------------------------------------------*/ +int sci_string(char *fname, unsigned long fname_len) +{ + CheckRhs(1, 1); + CheckLhs(1, 3); + + switch (VarType(1)) + { + case sci_matrix: + { + if (Lhs == 1) + { + SciErr sciErr; + int iRows = 0, iCols = 0; + int *piAddressVarOne = NULL; + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + sciErr = getVarDimension(pvApiCtx, piAddressVarOne, &iRows, &iCols); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + /* case string(A) returns '' */ + /* with A has special dimensions (-1,-1) */ + /* bug 3747, 10641 */ + if ( (iRows == -1) && (iCols == -1) ) + { + if (createSingleString(pvApiCtx, Rhs + 1, "") != 0) + { + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + LhsVar(1) = Rhs + 1; + PutLhsVar(); + } + else + { + C2F(intstring)(); + } + } + else + { + SciError(39); + } + } + break; + + case sci_poly: + case sci_boolean: + case sci_sparse: + case sci_boolean_sparse: + case sci_matlab_sparse: + case sci_ints: + case sci_handles: + case sci_strings: + case sci_list: + case sci_tlist: + case sci_mlist: + case sci_lufact_pointer: + { + if (Lhs == 1) + { + C2F(intstring)(); + } + else + { + SciError(39); + } + } + break; + + case sci_u_function: + { + if (Lhs == 3) + { + C2F(intstring)(); + } + else + { + SciError(41); + } + } + break; + case sci_c_function: + { + /* macros */ + if (Lhs == 3) + { + OverLoad(1); + } + else + { + SciError(41); + } + } + break; + case sci_lib: + { + if (Lhs == 1) + { + C2F(intstring)(); + } + else + { + SciError(39); + } + } + break; + + case sci_implicit_poly: + { + if (Lhs == 1) + { + OverLoad(1); + } + else + { + SciError(41); + } + } + break; + default: + { + Scierror(999, _("%s: Wrong type for input argument #%d.\n"), fname, 1); + } + break; + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_stripblanks.c b/modules/string/sci_gateway/c/sci_stripblanks.c new file mode 100755 index 000000000..02a9e4cdd --- /dev/null +++ b/modules/string/sci_gateway/c/sci_stripblanks.c @@ -0,0 +1,136 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/* desc : strips leading and trailing blanks (and tabs) of strings +txt=stripblanks(txt[,tabs]) +Parameters +txt : string or matrix of strings +tabs : if TRUE then tabs are also stripped (default value is FALSE)*/ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "stripblanks.h" +#include "Scierror.h" +#include "freeArrayOfString.h" +#include "localization.h" +/*----------------------------------------------------------------------------*/ +int sci_stripblanks(char *fname, unsigned long fname_len) +{ + char **Input_String_Matrix_One = NULL; + char **Output_String_Matrix = NULL; + int numRow = 0; /*@ The row number of the output string matrix*/ + int numCol = 0; /*@ The col number of the output string matrix*/ + int m1 = 0, n1 = 0, mn = 0, i = 0; + BOOL bREMOVE_TAB = FALSE; /* DEFAULT no TAB */ + int Type_One = VarType(1); + + CheckRhs(1, 2); + CheckLhs(1, 1); + + if (Rhs == 2) + { + int Type_Two = VarType(2); + + if (Type_Two == sci_boolean) + { + int m2 = 0, n2 = 0, l2 = 0; + GetRhsVar(2, MATRIX_OF_BOOLEAN_DATATYPE, &m2, &n2, &l2); + bREMOVE_TAB = (BOOL) * istk(l2); + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: A boolean expected.\n"), fname, 2); + return 0; + } + } + + switch (Type_One) + { + case sci_matrix : + { + /* case stripblanks([]) */ + GetRhsVar(1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &Input_String_Matrix_One); + if ( (m1 == 0) && (n1 == 0) ) + { + int l = 0; + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &l); + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + return 0; + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings or empty matrix expected.\n"), fname, 1); + return 0; + } + } + break; + case sci_strings : + { + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &Input_String_Matrix_One); + mn = m1 * n1; + } + break; + default : + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings or empty matrix expected.\n"), fname, 1); + return 0; + } + + if (mn > 0) + { + Output_String_Matrix = (char**)MALLOC(sizeof(char*) * (mn)); + } + else + { + Output_String_Matrix = NULL; + } + + if (Output_String_Matrix == NULL) + { + freeArrayOfString(Input_String_Matrix_One, mn); + Scierror(999, _("%s : No more memory.\n"), fname); + return 0; + } + + for (i = 0; i < mn ; i++) /*@ To malloc a space the same as input string*/ + { + Output_String_Matrix[i] = (char*)MALLOC(sizeof(char) * (strlen(Input_String_Matrix_One[i]) + 1)); + if (Output_String_Matrix[i] == NULL) + { + freeArrayOfString(Input_String_Matrix_One, mn); + freeArrayOfString(Output_String_Matrix, i); + Scierror(999, _("%s : No more memory.\n"), fname); + return 0; + } + } + + /*@ The stripblank function*/ + stripblanks(Input_String_Matrix_One, Output_String_Matrix, mn, bREMOVE_TAB); + + freeArrayOfString(Input_String_Matrix_One, mn); + + /* put result on scilab stack */ + numRow = m1; + numCol = n1; + CreateVarFromPtr( Rhs + 1, MATRIX_OF_STRING_DATATYPE, &numRow, &numCol, Output_String_Matrix); /*@ Output*/ + + /* free pointers */ + freeArrayOfString(Output_String_Matrix, mn); + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strncpy.c b/modules/string/sci_gateway/c/sci_strncpy.c new file mode 100755 index 000000000..66635a236 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strncpy.c @@ -0,0 +1,193 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/*----------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <ctype.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "charEncoding.h" +/*----------------------------------------------------------------------------*/ +int sci_strncpy(char *fname, unsigned long fname_len) +{ + CheckRhs(2, 2); + CheckLhs(0, 1); + + if ( (GetType(1) == sci_strings) && (GetType(2) == sci_matrix) ) + { + int m1 = 0; + int n1 = 0; + char **InputString_Parameter1 = NULL; + int m1n1 = 0; /* m1 * n1 */ + + int m2 = 0; + int n2 = 0 ; + int l2 = 0; + double *InputLength_Parameter2 = NULL; + int *InputLength_Parameter2_checked = NULL; + int m2n2 = 0; /* m2 * n2 */ + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &InputString_Parameter1); + m1n1 = m1 * n1; + + GetRhsVar(2, MATRIX_OF_DOUBLE_DATATYPE, &m2, &n2, &l2); + InputLength_Parameter2 = stk(l2); + m2n2 = m2 * n2; + + if (m2n2 == 0) + { + freeArrayOfString(InputString_Parameter1, m1n1); + Scierror(999, _("%s: Wrong size for input argument #%d: Non-empty matrix expected.\n"), fname, 2); + return 0; + } + else + { + int j = 0; + InputLength_Parameter2_checked = (int*)MALLOC(sizeof(int) * m2n2); + if (InputLength_Parameter2_checked == NULL) + { + freeArrayOfString(InputString_Parameter1, m1n1); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + if ( ((m1 == m2) && (n1 == n2)) || (m2n2 == 1) ) + { + for (j = 0; j < m2n2; j++) + { + int len = 0; + wchar_t *wcstring = to_wide_string(InputString_Parameter1[j]); + if (wcstring) + { + len = (int)wcslen(wcstring); + FREE(wcstring); + wcstring = NULL; + } + if ( len < InputLength_Parameter2[j] ) + { + InputLength_Parameter2_checked[j] = len; + } + else + { + if ( InputLength_Parameter2[j] < 0 ) + { + InputLength_Parameter2_checked[j] = 0; + } + else + { + InputLength_Parameter2_checked[j] = (int)InputLength_Parameter2[j]; + } + } + } + } + } + + if ( ((m1 == m2) && (n1 == n2)) || (m2n2 == 1) ) + { + char **OutputStrings = NULL; + int i = 0; + + OutputStrings = (char**)MALLOC(sizeof(char*) * m1n1); + if (OutputStrings == NULL) + { + if (InputLength_Parameter2_checked) + { + FREE(InputLength_Parameter2_checked); + InputLength_Parameter2_checked = NULL; + } + freeArrayOfString(InputString_Parameter1, m1n1); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + for (i = 0; i < m1n1 ; i++) + { + wchar_t *wcInput = NULL; + wchar_t *wcOutput = NULL; + + int j = 0; + + if (m2n2 == 1) + { + j = 0; /* Input parameter two is dimension one */ + } + else + { + j = i; /* Input parameter One & two have same dimension */ + } + + wcInput = to_wide_string(InputString_Parameter1[i]); + wcOutput = (wchar_t*)MALLOC(sizeof(wchar_t) * (InputLength_Parameter2_checked[j] + 1)); + if (wcInput && wcOutput) + { + wcsncpy(wcOutput, wcInput, InputLength_Parameter2_checked[j]); + wcOutput[InputLength_Parameter2_checked[j]] = L'\0'; + + OutputStrings[i] = wide_string_to_UTF8(wcOutput); + FREE(wcOutput); + wcOutput = NULL; + FREE(wcInput); + wcInput = NULL; + } + else + { + if (InputLength_Parameter2_checked) + { + FREE(InputLength_Parameter2_checked); + InputLength_Parameter2_checked = NULL; + } + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(OutputStrings, i); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + } + + CreateVarFromPtr(Rhs + 1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, OutputStrings); + freeArrayOfString(OutputStrings, m1n1); + if (InputLength_Parameter2_checked) + { + FREE(InputLength_Parameter2_checked); + InputLength_Parameter2_checked = NULL; + } + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + else + { + freeArrayOfString(InputString_Parameter1, m1n1); + Scierror(999, _("%s: Wrong size for input argument #%d.\n"), fname, 2); + return 0; + } + + freeArrayOfString(InputString_Parameter1, m1n1); + } + else + { + if (GetType(1) != sci_strings) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 1); + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of integers expected.\n"), fname, 2); + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strrev.c b/modules/string/sci_gateway/c/sci_strrev.c new file mode 100755 index 000000000..cf40ff9fc --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strrev.c @@ -0,0 +1,65 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/*----------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <ctype.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "stringsstrrev.h" +/*----------------------------------------------------------------------------*/ +int sci_strrev(char *fname, unsigned long fname_len) +{ + CheckRhs(1, 1); + CheckLhs(0, 1); + + if (GetType(1) == sci_strings) + { + int m1 = 0; + int n1 = 0; + char **InputStrings = NULL; + int m1n1 = 0; /* m1 * n1 */ + + char **OutputStrings = NULL; + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &InputStrings); + m1n1 = m1 * n1; + + OutputStrings = strings_strrev(InputStrings, m1n1); + + if (OutputStrings) + { + CreateVarFromPtr(Rhs + 1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, OutputStrings); + freeArrayOfString(InputStrings, m1n1); + freeArrayOfString(OutputStrings, m1n1); + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + else + { + freeArrayOfString(InputStrings, m1n1); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 1); + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strsplit.c b/modules/string/sci_gateway/c/sci_strsplit.c new file mode 100755 index 000000000..b2b32a26a --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strsplit.c @@ -0,0 +1,287 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU , Allan CORNET + * Copyright (C) DIGITEO - 2009-2011 - Allan CORNET + * + * 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 + * + */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include "gw_string.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "BOOL.h" +#include "api_scilab.h" +#include "strsplit.h" +/*----------------------------------------------------------------------------*/ +static BOOL isValidRegExp(wchar_t *pStr); +/*----------------------------------------------------------------------------*/ +int sci_strsplit(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int lw = 0; + int *piAddressVarOne = NULL; + wchar_t *pStVarOne = NULL; + + /* Check Input & Output parameters */ + CheckRhs(1, 3); + CheckLhs(1, 2); + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isEmptyMatrix(pvApiCtx, piAddressVarOne)) + { + createEmptyMatrix(pvApiCtx, Rhs + 1); + LhsVar(1) = Rhs + 1; + if (Lhs == 2) + { + // [r1, r2] = strsplit([]); + // r1 eq [] + // r2 eq '' + createSingleString(pvApiCtx, Rhs + 2, ""); + LhsVar(2) = Rhs + 2; + } + PutLhsVar(); + return 0; + } + + if (isStringType(pvApiCtx, piAddressVarOne) == 0 || isScalar(pvApiCtx, piAddressVarOne) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A single string expected.\n"), fname, 1); + return 0; + } + + if (Rhs > 2) /* Rhs eq. 3 */ + { + int *piAddressVarThree = NULL; + double dValueThree = 0.; + int iValueThree = 0; + + sciErr = getVarAddressFromPosition(pvApiCtx, 3, &piAddressVarThree); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 3); + return 0; + } + + if (isDoubleType(pvApiCtx, piAddressVarThree) == 0 || isScalar(pvApiCtx, piAddressVarThree) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d: A scalar expected.\n"), fname, 3); + return 0; + } + + if (getScalarDouble(pvApiCtx, piAddressVarThree, &dValueThree) != 0) + { + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + iValueThree = (int)dValueThree; + if ((double) iValueThree != dValueThree) + { + Scierror(999, _("%s: Wrong value for input argument #%d: An integer value expected.\n"), fname, 3); + return 0; + } + + if (iValueThree < 1 && iValueThree != -1) + { + Scierror(999, _("%s: Wrong value for input argument #%d: A value > 0 expected.\n"), fname, 3); + return 0; + } + + + } + + if (Rhs > 1) /* Rhs >= 2 */ + { + int *piAddressVarTwo = NULL; + sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + + if (isDoubleType(pvApiCtx, piAddressVarTwo)) + { + double *pdVarTwo = NULL; + int m2 = 0; + int n2 = 0; + + int m_out = 0, n_out = 0; + strsplit_error ierr = STRSPLIT_NO_ERROR; + wchar_t **results = NULL; + + if (Lhs == 2) + { + Scierror(78, _("%s: Wrong number of output arguments: %d expected.\n"), fname, 1); + return 0; + } + + if (isEmptyMatrix(pvApiCtx, piAddressVarTwo)) + { + Scierror(999, _("%s: Wrong value for input argument #%d.\n"), fname, 2); + return 0; + } + + + //vector or scalar only + if (isVector(pvApiCtx, piAddressVarTwo) == 0 && isScalar(pvApiCtx, piAddressVarTwo) == 0) + { + Scierror(999, _("%s: Wrong size for input argument #%d.\n"), fname, 2); + return 0; + } + + sciErr = getMatrixOfDouble(pvApiCtx, piAddressVarTwo, &m2, &n2, &pdVarTwo); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + + if (getAllocatedSingleWideString(pvApiCtx, piAddressVarOne, &pStVarOne) != 0) + { + if (pStVarOne) + { + freeAllocatedSingleWideString(pStVarOne); + } + + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + results = strsplit(pStVarOne, pdVarTwo, m2 * n2, &ierr); + freeAllocatedSingleWideString(pStVarOne); + + switch (ierr) + { + case STRSPLIT_NO_ERROR: + { + m_out = (m2 * n2) + 1; + n_out = 1; + + sciErr = createMatrixOfWideString(pvApiCtx, Rhs + 1, m_out, n_out, results); + + freeArrayOfWideString(results, m_out); + results = NULL; + + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; + } + break; + case STRSPLIT_INCORRECT_VALUE_ERROR: + { + Scierror(116, _("%s: Wrong value for input argument #%d.\n"), fname, 2); + return 0; + } + break; + case STRSPLIT_INCORRECT_ORDER_ERROR: + { + Scierror(99, _("%s: Elements of %dth argument must be in increasing order.\n"), fname, 2); + return 0; + } + break; + case STRSPLIT_MEMORY_ALLOCATION_ERROR: + { + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + break; + default: + { + Scierror(999, _("%s: error.\n"), fname); + return 0; + } + break; + } + } + else if (isStringType(pvApiCtx, piAddressVarTwo)) + { + if (!isScalar(pvApiCtx, piAddressVarTwo)) + { + wchar_t **pStrsTwo = NULL; + int m2 = 0; + int n2 = 0; + + if (getAllocatedMatrixOfWideString(pvApiCtx, piAddressVarTwo, &m2, &n2, &pStrsTwo) != 0) + { + if (pStrsTwo) + { + freeAllocatedMatrixOfWideString(m2, n2, pStrsTwo); + } + + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + else + { + if (pStrsTwo) + { + int k = 0; + + /* checks that 2nd parameter is not an array of regexp pattern */ + for (k = 0; k < m2 * n2; k++) + { + if (isValidRegExp(pStrsTwo[k])) + { + freeAllocatedMatrixOfWideString(m2, n2, pStrsTwo); + pStrsTwo = NULL; + + Scierror(999, _("%s: Wrong value for input argument #%d: a string expected, not a regexp pattern.\n"), fname, 2); + return 0; + } + } + freeAllocatedMatrixOfWideString(m2, n2, pStrsTwo); + pStrsTwo = NULL; + } + } + } + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d.\n"), fname, 2); + return 0; + } + } + + // we call %_strsplit macro + C2F(overload)(&lw, fname, fname_len); + + return 0; +} +/*----------------------------------------------------------------------------*/ +static BOOL isValidRegExp(wchar_t *pStr) +{ + if (pStr) + { + int lenStr = (int)wcslen(pStr); + if (lenStr > 2) + { + return (BOOL) ((pStr[0] == L'/') && (pStr[lenStr - 1] == L'/')); + } + } + return FALSE; +} +/*----------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strspn.c b/modules/string/sci_gateway/c/sci_strspn.c new file mode 100755 index 000000000..1c2f19169 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strspn.c @@ -0,0 +1,123 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/* res = strspn(str1,str2) */ +/* Returns the length of the initial portion of str1 */ +/* which consists only of characters that are part of str2. */ +/*----------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <ctype.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "charEncoding.h" +/*----------------------------------------------------------------------------*/ +int sci_strspn(char *fname, unsigned long fname_len) +{ + CheckRhs(2, 2); + CheckLhs(0, 1); + + if ( (GetType(1) == sci_strings) && (GetType(2) == sci_strings) ) + { + int m1 = 0; + int n1 = 0; + char **InputString_Parameter1 = NULL; + int m1n1 = 0; /* m1 * n1 */ + + int m2 = 0; + int n2 = 0; + char **InputString_Parameter2 = NULL; + int m2n2 = 0; /* m2 * n2 */ + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &InputString_Parameter1); + m1n1 = m1 * n1; + + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &m2, &n2, &InputString_Parameter2); + m2n2 = m2 * n2; + + if ( ((m2 == m1) && (n2 == n1)) || (m2n2 == 1) ) + { + int i = 0; + int j = 0; + int outIndex = 0; + + /*Output*/ + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &m1, &n1, &outIndex); + for ( i = 0 ; i < m1n1 ; i++ ) + { + wchar_t *wcParam1 = NULL; + wchar_t *wcParam2 = NULL; + + if (m2n2 == 1) + { + j = 0; + } + else + { + j = i; + } + + wcParam1 = to_wide_string(InputString_Parameter1[i]); + wcParam2 = to_wide_string(InputString_Parameter2[j]); + + if (wcParam1 && wcParam2) + { + stk(outIndex)[i] = (double) wcsspn( wcParam1, wcParam2 ); + } + else + { + stk(outIndex)[i] = (double) strspn( InputString_Parameter1[i], InputString_Parameter2[j] ); + } + + if (wcParam1) + { + FREE(wcParam1); + wcParam1 = NULL; + } + if (wcParam2) + { + FREE(wcParam2); + wcParam2 = NULL; + } + } + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + else + { + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + Scierror(999, _("%s: Wrong size for input argument #%d.\n"), fname, 2); + return 0; + } + + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + } + else + { + if (GetType(1) != sci_strings) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 1); + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 2); + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strstr.c b/modules/string/sci_gateway/c/sci_strstr.c new file mode 100755 index 000000000..491cb5aa4 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strstr.c @@ -0,0 +1,161 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - 2010 - Allan CORNET + * + * 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 + * + */ + +/*----------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <ctype.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +/*----------------------------------------------------------------------------*/ +int sci_strstr(char *fname, unsigned long fname_len) +{ + CheckRhs(2, 2); + CheckLhs(0, 1); + + if ( (GetType(1) == sci_strings) && (GetType(2) == sci_strings) ) + { + int m1 = 0; + int n1 = 0; + char **InputString_Parameter1 = NULL; + int m1n1 = 0; /* m1 * n1 */ + + int m2 = 0; + int n2 = 0 ; + char **InputString_Parameter2 = NULL; + int m2n2 = 0; /* m2 * n2 */ + + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &InputString_Parameter1); + m1n1 = m1 * n1; + + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &m2, &n2, &InputString_Parameter2); + m2n2 = m2 * n2; + + if (m2n2 == 0) + { + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + Scierror(999, _("%s: Wrong size for input argument #%d: Non-empty matrix of strings expected.\n"), fname, 2); + return 0; + } + else + { + int j = 0; + if ( ((m1 == m2) && (n1 == n2)) || (m2n2 == 1) ) + { + char **OutputStrings = NULL; + + OutputStrings = (char**)CALLOC(m1n1, sizeof(char*)); + if (OutputStrings == NULL) + { + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + for (j = 0; j < m1n1; j++) + { + int i = 0; + + if (m2n2 == 1) + { + i = 0; /* Second input argument is one dimensional */ + } + else + { + i = j; /* First and second input arguments have same size */ + } + + if (strlen(InputString_Parameter1[j]) < strlen(InputString_Parameter2[i])) + { + OutputStrings[j] = strdup(""); + if (OutputStrings[j] == NULL) + { + freeArrayOfString(OutputStrings, m1n1); + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + } + else + { + char *ptrstrstr = strstr(InputString_Parameter1[j], InputString_Parameter2[i]); + if (ptrstrstr) + { + OutputStrings[j] = strdup(ptrstrstr); + if (OutputStrings[j] == NULL) + { + freeArrayOfString(OutputStrings, m1n1); + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + } + else + { + OutputStrings[j] = strdup(""); + if (OutputStrings[j] == NULL) + { + freeArrayOfString(OutputStrings, m1n1); + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + } + } + } + + CreateVarFromPtr(Rhs + 1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, OutputStrings); + + freeArrayOfString(OutputStrings, m1n1); + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + else + { + freeArrayOfString(InputString_Parameter1, m1n1); + freeArrayOfString(InputString_Parameter2, m2n2); + Scierror(999, _("%s: Wrong size for input argument #%d.\n"), fname, 2); + return 0; + } + } + } + else + { + if (GetType(1) != sci_strings) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 1); + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"), fname, 2); + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/sci_gateway/c/sci_strsubst.c b/modules/string/sci_gateway/c/sci_strsubst.c new file mode 100755 index 000000000..a9aab95f2 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strsubst.c @@ -0,0 +1,230 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU , Allan CORNET + * Copyright (C) DIGITEO - 2009 - Allan CORNET + * + * 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 + * + */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include "gw_string.h" +#include "MALLOC.h" +#include "api_scilab.h" +#include "freeArrayOfString.h" +#include "strsubst.h" +#include "localization.h" +#include "Scierror.h" +#include "pcre_error.h" +#include "pcre_private.h" +#include "BOOL.h" +/*-------------------------------------------------------------------------------------*/ +#define CHAR_R "r" +#define CHAR_S "s" +/*-------------------------------------------------------------------------------------*/ +int sci_strsubst(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int *piAddressVarOne = NULL; + char **pStVarOne = NULL; + int mOne = 0, nOne = 0; + + int *piAddressVarTwo = NULL; + char *pStVarTwo = NULL; + + int *piAddressVarThree = NULL; + char *pStVarThree = NULL; + + char** Output_StringMatrix = NULL; + + BOOL isRegExp = FALSE; + + + CheckRhs(3, 4); + CheckLhs(1, 1); + + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isStringType(pvApiCtx, piAddressVarOne) == 0 && isEmptyMatrix(pvApiCtx, piAddressVarOne) == 0) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings or empty matrix expected.\n"), fname); + return 0; + } + + //to manage [] + if (isEmptyMatrix(pvApiCtx, piAddressVarOne)) + { + sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, mOne, nOne, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; + } + + + if (Rhs == 4) + { + int *piAddressVarFour = NULL; + char *pStVarFour = NULL; + + sciErr = getVarAddressFromPosition(pvApiCtx, 4, &piAddressVarFour); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 4); + return 0; + } + + if (isStringType(pvApiCtx, piAddressVarFour) == 0 || isScalar(pvApiCtx, piAddressVarFour) == 0) + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 4); + return 0; + } + + if (getAllocatedSingleString(pvApiCtx, piAddressVarFour, &pStVarFour)) + { + if (pStVarFour) + { + freeAllocatedSingleString(pStVarFour); + } + + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 4); + return 0; + } + + if ((strcmp(pStVarFour, CHAR_R) == 0) || (strcmp(pStVarFour, CHAR_S) == 0)) + { + if (strcmp(pStVarFour, CHAR_R) == 0) + { + isRegExp = TRUE; + } + else + { + isRegExp = FALSE; + } + + FREE(pStVarFour); + } + else + { + FREE(pStVarFour); + Scierror(999, _("%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n"), fname, 4, "s", "r"); + return 0; + } + } + + sciErr = getVarAddressFromPosition(pvApiCtx, 3, &piAddressVarThree); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 3); + return 0; + } + + if (isStringType(pvApiCtx, piAddressVarThree) == 0 || isScalar(pvApiCtx, piAddressVarThree) == 0) + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 3); + return 0; + } + + sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + + if (isStringType(pvApiCtx, piAddressVarTwo) == 0 || isScalar(pvApiCtx, piAddressVarTwo) == 0) + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 2); + return 0; + } + + if (getAllocatedSingleString(pvApiCtx, piAddressVarThree, &pStVarThree)) + { + freeAllocatedSingleString(pStVarThree); + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 3); + return 0; + } + + if (getAllocatedSingleString(pvApiCtx, piAddressVarTwo, &pStVarTwo)) + { + freeAllocatedSingleString(pStVarTwo); + freeAllocatedSingleString(pStVarThree); + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + + if (getAllocatedMatrixOfString(pvApiCtx, piAddressVarOne, &mOne, &nOne, &pStVarOne)) + { + freeAllocatedMatrixOfString(mOne, nOne, pStVarOne); + freeAllocatedSingleString(pStVarTwo); + freeAllocatedSingleString(pStVarThree); + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isRegExp) + { + int ierr = (int)PCRE_FINISHED_OK; + + Output_StringMatrix = strsubst_reg(pStVarOne, mOne * nOne, pStVarTwo, pStVarThree, &ierr); + if ((ierr != PCRE_FINISHED_OK) && (ierr != NO_MATCH) && (ierr != PCRE_EXIT)) + { + if (Output_StringMatrix) + { + freeArrayOfString(Output_StringMatrix, mOne * nOne); + } + + freeAllocatedMatrixOfString(mOne, nOne, pStVarOne); + freeAllocatedSingleString(pStVarTwo); + freeAllocatedSingleString(pStVarThree); + pcre_error(fname, ierr); + return 0; + } + } + else + { + Output_StringMatrix = strsubst(pStVarOne, mOne * nOne, pStVarTwo, pStVarThree); + } + + freeAllocatedSingleString(pStVarThree); + freeAllocatedSingleString(pStVarTwo); + freeAllocatedMatrixOfString(mOne, nOne, pStVarOne); + + sciErr = createMatrixOfString(pvApiCtx, Rhs + 1, mOne, nOne, Output_StringMatrix); + freeArrayOfString(Output_StringMatrix, mOne * nOne); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} + +/*-------------------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_strtod.c b/modules/string/sci_gateway/c/sci_strtod.c new file mode 100755 index 000000000..b9c0287fd --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strtod.c @@ -0,0 +1,318 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - Allan CORNET +* +* 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 +* +*/ + +/*----------------------------------------------------------------------------*/ +#include <stdlib.h> +#include "gw_string.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "api_scilab.h" +#include "locale.h" +#include "freeArrayOfString.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +/*----------------------------------------------------------------------------*/ +int sci_strtod(char *fname, unsigned long fname_len) +{ + SciErr sciErr; + int* piAddr = NULL; + int* piAddr2 = NULL; + int iRows = 0, iCols = 0; + int iRowsiCols = 0; + char **Input_StringMatrix_1 = NULL; + char *Input_SingleString_2 = NULL; + int first_nb = 0; + int x, y; //loop indexes + char keys[] = "1234567890"; + char symbol1[] = "-+."; + char symbol2[] = "-+,"; + unsigned long long raw = 0x7ff8000000000000; + double not_a_number = *( double* )&raw; + int iRhs = nbInputArgument(pvApiCtx); + int iLhs = nbOutputArgument(pvApiCtx); + int flag = 0; + + //output values + double *OutputDoubles = NULL; + char **OutputStrings = NULL; + + CheckInputArgument(pvApiCtx, 1, 2); + CheckOutputArgument(pvApiCtx, 1, 2); + + if (iRhs == 2) + { + //get variable address + sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddr2); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 2); + return 0; + } + if (isStringType(pvApiCtx, piAddr2) == 0 || isScalar(pvApiCtx, piAddr2) == 0) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Single string expected.\n"), fname, 2); + return 0; + } + if (getAllocatedSingleString(pvApiCtx, piAddr2, &Input_SingleString_2)) + { + Scierror(999, _("%s: Wrong type for input argument #%d: Single string expected.\n"), fname, 2); + return 0; + } + //Test on optional argument value + if (Input_SingleString_2[0] != '.' && Input_SingleString_2[0] != ',') + { + Scierror(999, _("%s: Wrong value for input argument #%d: '.' or ',' expected.\n"), fname, 2); + } + } + else + { + Input_SingleString_2 = strdup("."); + } + + //get variable address + sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr); + if (sciErr.iErr) + { + FREE(Input_SingleString_2); + printError(&sciErr, 0); + Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 1); + return 0; + } + + if (isEmptyMatrix(pvApiCtx, piAddr)) + { + FREE(Input_SingleString_2); + if (createEmptyMatrix(pvApiCtx, iRhs + 1) != 0) + { + return 0; + } + + AssignOutputVariable(pvApiCtx, 1) = iRhs + 1; + + if (iLhs == 2) + { + if (createSingleString(pvApiCtx, iRhs + 2, "")) + { + return 0; + } + + AssignOutputVariable(pvApiCtx, 2) = iRhs + 2; + } + + ReturnArguments(pvApiCtx); + return 0; + } + + if (isStringType(pvApiCtx, piAddr) == 0) //Check type + { + FREE(Input_SingleString_2); + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings or empty matrix expected.\n"), fname, 1); + return 0; + } + + if (getAllocatedMatrixOfString(pvApiCtx, piAddr, &iRows, &iCols, &Input_StringMatrix_1)) + { + if (Input_StringMatrix_1) + { + freeAllocatedMatrixOfString(iRows, iCols, Input_StringMatrix_1); + } + + FREE(Input_SingleString_2); + Scierror(999, _("%s: Wrong type for input argument #%d: Matrix of strings or empty matrix expected.\n"), fname, 1); + return 0; + } + + iRowsiCols = iRows * iCols; + + if (iLhs == 2) + { + OutputStrings = (char **)MALLOC(sizeof(char*) * iRowsiCols); + if (OutputStrings == NULL) + { + freeAllocatedMatrixOfString(iRows, iCols, Input_StringMatrix_1); + freeAllocatedSingleString(Input_SingleString_2); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + } + + sciErr = allocMatrixOfDouble(pvApiCtx, iRhs + 1, iRows, iCols, &OutputDoubles); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + for (x = 0 ; x < iRowsiCols ; x++) + { + //Double part + char *stopstring = NULL; + int iSign = 0; + + if (Input_SingleString_2[0] == ',') + { + iSign = (int)strcspn(Input_StringMatrix_1[x], symbol2); + } + else if (Input_SingleString_2[0] == '.') + { + iSign = (int)strcspn(Input_StringMatrix_1[x], symbol1); + } + first_nb = (int)strcspn(Input_StringMatrix_1[x], keys); + + //symbol can be use only if it is before key + if (iSign == first_nb - 1) + { + //let strtod do with symbol + first_nb -= 1; + } + + //special case for "-.3" + if (iSign == first_nb - 2 && (Input_StringMatrix_1[x][iSign + 1] == '.' || Input_StringMatrix_1[x][iSign + 1] == ',')) + { + + //let strtod do with symbol + first_nb -= 2; + } + + //Check if there is a number in the string + if (first_nb != 0) + { + flag = 0; + + for (y = 0 ; y < first_nb ; y++) + { + // spaces, tabs, cr are accepted + if (Input_StringMatrix_1[x][y] != ' ' && Input_StringMatrix_1[x][y] != '\t' && Input_StringMatrix_1[x][y] != '\r') + { + OutputDoubles[x] = not_a_number; + flag = 1; + stopstring = Input_StringMatrix_1[x]; + break; + } + } + + //it is still a number + if (flag == 0) + { + //only spaces ? + if (strlen(Input_StringMatrix_1[x]) == first_nb) // strtod(" ") + { + OutputDoubles[x] = not_a_number; + stopstring = Input_StringMatrix_1[x]; + } + else // strtod(" 000xxx") + { + if (Input_SingleString_2[0] == ',') + { +#ifdef _MSC_VER + setlocale(LC_NUMERIC, "French_France.1252"); +#else + setlocale(LC_NUMERIC, "fr_FR.UTF-8"); +#endif + OutputDoubles[x] = (double)strtod(Input_StringMatrix_1[x] + first_nb, &stopstring); + setlocale(LC_NUMERIC, "C"); + } + else + { + OutputDoubles[x] = (double)strtod(Input_StringMatrix_1[x] + first_nb, &stopstring); + } + } + } + } + else if (strlen(Input_StringMatrix_1[x]) == 0) //case strtod("") + { + OutputDoubles[x] = not_a_number; + } + else //all characters are digits + { + if (Input_SingleString_2[0] == ',') + { +#ifdef _MSC_VER + setlocale(LC_NUMERIC, "French_France.1252"); +#else + setlocale(LC_NUMERIC, "fr_FR.UTF-8"); +#endif + OutputDoubles[x] = (double)strtod(Input_StringMatrix_1[x], &stopstring); + setlocale(LC_NUMERIC, "C"); + } + else + { + OutputDoubles[x] = (double)strtod(Input_StringMatrix_1[x], &stopstring); + } + } + + if (iLhs == 2) + { + //String part + if (stopstring) + { + OutputStrings[x] = (char*)MALLOC(sizeof(char) * (strlen(stopstring) + 1)); + } + else + { + OutputStrings[x] = (char*)MALLOC(sizeof(char) * (strlen("") + 1)); + } + + if (OutputStrings[x] == NULL) + { + freeAllocatedMatrixOfString(iRows, iCols, Input_StringMatrix_1); + freeAllocatedSingleString(Input_SingleString_2); + freeAllocatedMatrixOfString(iRows, iCols, OutputStrings); + Scierror(999, _("%s: No more memory.\n"), fname); + return 0; + } + + if (stopstring) + { + if (Input_SingleString_2[0] == ',') + { + strcpy(OutputStrings[x], stopstring); + } + else + { + strcpy(OutputStrings[x], stopstring); + } + } + else + { + strcpy(OutputStrings[x], ""); + } + } + } + + AssignOutputVariable(pvApiCtx, 1) = iRhs + 1; + + if (iLhs == 2) + { + sciErr = createMatrixOfString(pvApiCtx, iRhs + 2, iRows, iCols, OutputStrings); + if (sciErr.iErr) + { + printError(&sciErr, 0); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + + AssignOutputVariable(pvApiCtx, 2) = iRhs + 2; + freeArrayOfString(OutputStrings, iRows * iCols); + } + + freeAllocatedMatrixOfString(iRows, iCols, Input_StringMatrix_1); + freeAllocatedSingleString(Input_SingleString_2); + ReturnArguments(pvApiCtx); + return 0; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/sci_gateway/c/sci_strtok.c b/modules/string/sci_gateway/c/sci_strtok.c new file mode 100755 index 000000000..b20d88f42 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_strtok.c @@ -0,0 +1,147 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*----------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "localization.h" +#include "freeArrayOfString.h" +#include "BOOL.h" +/*----------------------------------------------------------------------------*/ +static BOOL previousCallToStrtok = FALSE; +static char *previousStrToken = NULL; +/*----------------------------------------------------------------------------*/ +int sci_strtok(char *fname, unsigned long fname_len) +{ + char **Input_strings1 = NULL; + char **Input_strings2 = NULL; + char *token = NULL; + + int m = 0, n = 0 ; + int outIndex = 0 ; + + int m2n2 = 0; + int m1n1 = 0; + + CheckRhs(1, 2); + CheckLhs(0, 1); + + if (Rhs == 2) + { + if (GetType(2) == sci_strings) + { + int m2 = 0, n2 = 0; + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &m2, &n2, &Input_strings2); + m2n2 = m2 * n2; + if (m2n2 != 1) + { + freeArrayOfString(Input_strings2, m2n2); + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 2); + return 0; + } + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 2); + return 0; + } + } + + if (GetType(1) == sci_strings) + { + int m1 = 0, n1 = 0; + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &m1, &n1, &Input_strings1); + m1n1 = m1 * n1; + if (m1n1 != 1) + { + freeArrayOfString(Input_strings1, m1n1); + freeArrayOfString(Input_strings2, m2n2); + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1); + return 0; + } + } + else + { + freeArrayOfString(Input_strings2, m2n2); + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 1); + return 0; + } + + if (Rhs == 2) + { + /* strtok need to backup pointer on string */ + if (previousStrToken) + { + previousStrToken = (char*)REALLOC(previousStrToken, sizeof(char) * (strlen(Input_strings1[0]) + 1)); + } + else + { + previousStrToken = (char*)MALLOC(sizeof(char) * (strlen(Input_strings1[0]) + 1)); + } + + if (previousStrToken) + { + strcpy(previousStrToken, Input_strings1[0]); + token = strtok(previousStrToken, Input_strings2[0]); + previousCallToStrtok = TRUE; + } + else + { + token = NULL; + } + } + else + { + if (previousCallToStrtok) + { + token = strtok(NULL, Input_strings1[0]); + } + else + { + token = NULL; + } + } + + freeArrayOfString(Input_strings1, m1n1); + freeArrayOfString(Input_strings2, m2n2); + + if (token) + { + m = (int)strlen(token); + n = 1; + CreateVar(Rhs + 1, STRING_DATATYPE, &m, &n, &outIndex); + strcpy(cstk(outIndex), token); + } + else + { + if (previousStrToken) + { + FREE(previousStrToken); + previousStrToken = NULL; + } + previousCallToStrtok = FALSE; + outIndex = 0; + m = 0; + n = 0; + CreateVar(Rhs + 1, STRING_DATATYPE, &m, &n, &outIndex); + } + + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/c/sci_tokens.c b/modules/string/sci_gateway/c/sci_tokens.c new file mode 100755 index 000000000..257423c99 --- /dev/null +++ b/modules/string/sci_gateway/c/sci_tokens.c @@ -0,0 +1,158 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * Copyright (C) INRIA - 2008 - Allan CORNET + * + * 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 + * + */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "tokens.h" +#include "localization.h" +#include "freeArrayOfString.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#include "charEncoding.h" +/*--------------------------------------------------------------------------*/ +#define one 1 +/*--------------------------------------------------------------------------*/ +int sci_tokens(char *fname, unsigned long fname_len) +{ + + int Row_One = 0, Col_One = 0; + int mn_One = 0; /* Row_One * Col_One */ + char **Input_Strings = NULL; + char *StringWhereWeSearch = NULL; + + int Row_Two = 0, Col_Two = 0; + int mn_Two = 0; /* Row_Two * Col_Two */ + char **Delimiters = NULL; + int sizeDelimiters = 0; + + char **Output_Strings = NULL; + int sizeOutput_Strings = 0; + int Row_Output = 0, Col_Output = 0; + + CheckRhs(1, 2); + CheckLhs(1, 1); + + if ( VarType(1) == sci_strings ) + { + GetRhsVar(1, MATRIX_OF_STRING_DATATYPE, &Row_One, &Col_One, &Input_Strings); + mn_One = Row_One * Col_One; + + if (mn_One == 1) + { + if (Rhs == 2) + { + if ( VarType(2) == sci_strings ) + { + int i = 0; + GetRhsVar(2, MATRIX_OF_STRING_DATATYPE, &Row_Two, &Col_Two, &Delimiters); + mn_Two = Row_Two * Col_Two; + + for (i = 0; i < mn_Two ; i++) + { + if (Delimiters[i]) + { + wchar_t *wcDelim = to_wide_string(Delimiters[i]); + if ( (int)wcslen(wcDelim) > 1) + { + FREE(wcDelim); + freeArrayOfString(Input_Strings, mn_One); + Scierror(999, _("%s: Wrong type for input argument #%d: A character or a vector of single characters expected.\n"), fname, 2); + return 0; + } + + FREE(wcDelim); + } + } + sizeDelimiters = mn_Two; + } + else + { + freeArrayOfString(Input_Strings, mn_One); + Scierror(999, _("%s: Wrong type for input argument #%d: A character or a vector of single characters expected.\n"), fname); + return 0; + } + } + else + { + /* default delimiters are ' ' and Tabulation */ + sizeDelimiters = 2; + Delimiters = (char**)MALLOC(sizeof(char*) * (sizeDelimiters + 1)); + if (Delimiters == NULL) + { + freeArrayOfString(Input_Strings, mn_One); + Scierror(999, _("%s: Memory allocation error.\n"), fname); + return 0; + } + Delimiters[0] = strdup(" "); + Delimiters[1] = strdup("\t"); + Delimiters[2] = 0; + } + + StringWhereWeSearch = Input_Strings[0]; + + /* tokens('') */ + if ( (int)strlen(StringWhereWeSearch) == 0 ) + { + int l = 0; + Row_Output = 0; + Col_Output = 0; + + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &Row_Output, &Col_Output, &l); + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + else + { + Output_Strings = stringTokens(StringWhereWeSearch, Delimiters, sizeDelimiters, &sizeOutput_Strings); + if ( (Output_Strings == NULL) && (sizeOutput_Strings == 0) ) /* returns [] */ + { + int l = 0; + Row_Output = 0; + Col_Output = 0; + + CreateVar(Rhs + 1, MATRIX_OF_DOUBLE_DATATYPE, &Row_Output, &Col_Output, &l); + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + else + { + Row_Output = sizeOutput_Strings; + Col_Output = one; + CreateVarFromPtr( Rhs + 1, MATRIX_OF_STRING_DATATYPE, &Row_Output, &Col_Output, Output_Strings ); + freeArrayOfString(Output_Strings, sizeOutput_Strings); + LhsVar(1) = Rhs + 1 ; + PutLhsVar(); + } + } + + freeArrayOfString(Input_Strings, mn_One); + freeArrayOfString(Delimiters, sizeDelimiters); + } + else + { + freeArrayOfString(Input_Strings, mn_One); + Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1); + } + } + else + { + Scierror(999, _("%s: Wrong type for input argument #%d: A string expected.\n"), fname, 1); + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/sci_gateway/fortran/.deps/.dirstamp b/modules/string/sci_gateway/fortran/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/string/sci_gateway/fortran/.deps/.dirstamp diff --git a/modules/string/sci_gateway/fortran/.dirstamp b/modules/string/sci_gateway/fortran/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/string/sci_gateway/fortran/.dirstamp diff --git a/modules/string/sci_gateway/fortran/.libs/sci_f_string.o b/modules/string/sci_gateway/fortran/.libs/sci_f_string.o Binary files differnew file mode 100755 index 000000000..e6e8fb2ec --- /dev/null +++ b/modules/string/sci_gateway/fortran/.libs/sci_f_string.o diff --git a/modules/string/sci_gateway/fortran/.libs/strops.o b/modules/string/sci_gateway/fortran/.libs/strops.o Binary files differnew file mode 100755 index 000000000..71d0dc7fd --- /dev/null +++ b/modules/string/sci_gateway/fortran/.libs/strops.o diff --git a/modules/string/sci_gateway/fortran/sci_f_string.f b/modules/string/sci_gateway/fortran/sci_f_string.f new file mode 100755 index 000000000..2389949ad --- /dev/null +++ b/modules/string/sci_gateway/fortran/sci_f_string.f @@ -0,0 +1,227 @@ +c ========================================= +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +c ========================================= + subroutine intstring + INCLUDE 'stack.h' +c + integer eol,nclas + logical ref + integer iadr,sadr + data eol/99/,nclas/29/ +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + il=iadr(lstk(top)) + ilr=il + if(istk(il).lt.0) il=iadr(istk(il+1)) + ref=ilr.ne.il + + if(istk(il).eq.10) then + call ref2val + goto 999 + endif +c + lw=iadr(lstk(top+1)) +c + if(istk(il).eq.1) then +c +c conversion d'une matrice de scalaires +c ------------------------------------- + m=istk(il+1) + n=istk(il+2) + + if(m*n.eq.0) then + if (ref) then + istk(ilr)=1 + istk(ilr+1)=0 + istk(ilr+2)=0 + istk(ilr+3)=0 + lstk(top+1)=sadr(ilr+4) + endif + goto 999 + endif + + it=istk(il+3) + l=sadr(il+4) + if(ref) then + lw=ilr+4 + else + lw=iadr(lstk(top+1)) + endif + err=sadr(lw+m*n*(2*lct(7)+4))-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + lstr=lw+m*n+1 + if(it.eq.0) call cvdm(stk(l),m,m,n,lct(7),lct(6), + 1 istk(lstr),istk(lw)) + if(it.eq.1) call cvwm(stk(l),stk(l+m*n),m,m,n,lct(7),lct(6), + 1 istk(lstr),istk(lw)) + nstr=istk(lw+m*n)-1 + if(.not.ref) call icopy(m*n+1+nstr,istk(lw),1,istk(ilr+4),1) + istk(ilr)=10 + istk(ilr+1)=m + istk(ilr+2)=n + istk(ilr+3)=0 + lstk(top+1)=sadr(ilr+5+m*n+nstr) + goto 999 +c + elseif(abs(istk(il)).eq.11.or.abs(istk(il)).eq.13) then +c +c conversion d'une macro non compilee +c ----------------------------------- + ilm=il +c +c form vectors of output and input variables + il=il+1 + lw=lstk(top+1) + do 37 i=1,2 + n=istk(il) + il=il+1 + ilio=iadr(lw) + istk(ilio)=10 + if(n.eq.0) istk(ilio)=1 + istk(ilio+1)=min(1,n) + istk(ilio+2)=n + istk(ilio+3)=0 + ilp=ilio+4 + istk(ilp)=1 + l=ilp+n + if (n.eq.0) goto 35 + do 34 j=1,n + call namstr(istk(il),istk(l+1),nn,1) + l=l+nn + istk(ilp+j)=l+1-(ilp+n) + il=il+nsiz + 34 continue + 35 if(i.eq.1) then + lout=lw + else + llin=lw + endif + lw=sadr(l+1) + 37 continue +c + if(istk(ilm).eq.13) then + ltxt=lw + ilt=iadr(ltxt) + istk(ilt)=1 + istk(ilt+2)=0 + istk(ilt+3)=0 + istk(ilt+4)=1 + ilt=ilt+4 + goto 43 + endif + ltxt=lw + ilt=iadr(ltxt) + istk(ilt)=10 + istk(ilt+2)=1 + istk(ilt+3)=0 + istk(ilt+4)=1 + ilp=ilt+4 +c +c compute number of lines of the macro + nch=istk(il) + nl=0 + il=il+1 + l=il-1 + 39 l=l+1 + if(istk(l).eq.eol) then + if(istk(l+1).eq.eol) goto 40 + nl=nl+1 + endif + goto 39 +c + 40 continue + istk(ilt+1)=nl + if(nl.eq.0) then + istk(ilt)=1 + istk(ilt+2)=0 + ilt=ilt+3 + goto 43 + endif + ilt=ilp+nl+1 + l=il + 41 if(istk(l).eq.eol) goto 42 + l=l+1 + goto 41 + 42 if(istk(l+1).eq.eol) goto 43 + n=l-il + ilp=ilp+1 + istk(ilp)=istk(ilp-1)+n + call icopy(n,istk(il),1,istk(ilt),1) + ilt=ilt+n + il=l+1 + l=il + goto 41 +c + 43 continue + lw=sadr(ilt+1) +c update stack + if(lhs.eq.3) then + n=llin-lout + call unsfdcopy(n,stk(lout),1,stk(lstk(top)),1) + lstk(top+1)=lstk(top)+n+1 + top=top+1 + n=ltxt-llin + call unsfdcopy(n,stk(llin),1,stk(lstk(top)),1) + lstk(top+1)=lstk(top)+n+1 + top=top+1 + endif + n=lw-ltxt + call unsfdcopy(n,stk(ltxt),1,stk(lstk(top)),1) + lstk(top+1)=lstk(top)+n+1 + goto 999 + + elseif(istk(il).eq.14) then +c librairies + il0=ilr +c + n1=istk(il+1) + l1=il+2 + il=il+n1+2 + n=istk(il) + il=il+nclas+2 + + if(.not.ref) ilr=lw + err=sadr(ilr+6+n1+(nlgh+1)*n)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + + istk(ilr)=10 + istk(ilr+1)=n+1 + istk(ilr+2)=1 + istk(ilr+3)=0 + istk(ilr+4)=1 + l=ilr+6+n + call icopy(n1,istk(l1),1,istk(l),1) + istk(ilr+5)=1+n1 + l=l+n1 + do 49 k=1,n + call namstr(istk(il),istk(l),nn,1) + istk(ilr+5+k)=istk(ilr+4+k)+nn + l=l+nn + il=il+nsiz + 49 continue + if(.not.ref) call icopy(l-ilr,istk(ilr),1,istk(il0),1) + lstk(top+1)=sadr(il0+l-ilr) + goto 999 + else + fun=-1 + call funnam(ids(1,pt+1),'string',il) + return + endif + 999 return + end +c ========================================= diff --git a/modules/string/sci_gateway/fortran/sci_f_string.lo b/modules/string/sci_gateway/fortran/sci_f_string.lo new file mode 100755 index 000000000..bbab0dd22 --- /dev/null +++ b/modules/string/sci_gateway/fortran/sci_f_string.lo @@ -0,0 +1,12 @@ +# sci_gateway/fortran/sci_f_string.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/sci_f_string.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/fortran/strops.f b/modules/string/sci_gateway/fortran/strops.f new file mode 100755 index 000000000..d344f5231 --- /dev/null +++ b/modules/string/sci_gateway/fortran/strops.f @@ -0,0 +1,1070 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, +c which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + + subroutine strops +c ================================================================= +c +c operations sur les matrices de chaines de caracteres +c +c ================================================================= +c +c Copyright INRIA + include 'stack.h' + +C c (DLL Intel Fortran) +c DEC$ IF DEFINED (FORDLL) +c DEC$ ATTRIBUTES DLLIMPORT:: /mtlbc/ +c DEC$ ENDIF + common /mtlbc/ mmode +c + integer plus,quote,equal,less,great,insert,extrac,dot + integer top0,iadr,sadr,op,vol,volr,rhs1 + logical isany +c + data plus/45/,quote/53/,dot/51/ + data equal/50/,less/59/,great/60/,insert/2/,extrac/3/ +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + op=fin +c + if (ddt .eq. 4) then +c write(buf(1:4),'(i4)') fin +c call basout(io,wte,' strops '//buf(1:4)) + endif +c + fun=0 +c + top0=top +c + lw=lstk(top+1) + rhs1=rhs + if(op.eq.extrac) goto 130 + if(op.eq.insert) goto 120 +c + if(rhs.eq.1) goto 05 + il2=iadr(lstk(top)) + if(istk(il2).lt.0) il2=iadr(istk(il2+1)) + m2=istk(il2+1) + n2=istk(il2+2) + it2=istk(il2+3) + mn2=m2*n2 + id2=il2+4 + l2r=id2+mn2+1 + l3r=lw +c + top = top-1 + 05 il1=iadr(lstk(top)) + ilrs=il1 + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + m1=istk(il1+1) + n1=istk(il1+2) + it1=istk(il1+3) + mn1 = m1*n1 + id1=il1+4 + l1r=id1+mn1+1 + vol=istk(id1+mn1)-1 +c + goto (60,120,130,65) op + if (rhs .eq. 1.and.(op.eq.quote.or.op.eq.quote+dot)) goto 110 + if (op .eq. plus ) go to 20 + if(op.eq.equal.or.op.eq.less+great) goto 180 +c +c operations non implantees + 10 top=top0 + rhs=rhs1 + fin=-fin + return + + +c +c addition +c + 20 continue + if(m1*n1.eq.0) then +c . []+b + vol=5+mn2+istk(id2+mn2)-1 + call icopy(vol,istk(il2),1,istk(il1),1) + lstk(top+1)=sadr(il1+vol) + return + elseif(m2*n2.eq.0) then +c . a+[] + return + elseif(m1.ne.m2.or.n1.ne.n2) then + m1n1 = m1 * n1 + m2n2 = m2 * n2 + if (m1n1.eq.1 .or. m2n2.eq.1) then +c overload %c_a_c + goto 10 + else + call error(8) + return + endif + endif + if(istk(il1).ne.istk(il2)) goto 10 + err=lw+sadr(istk(id1+mn1)+istk(id2+mn2))-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif +c + lr=iadr(lw) + l=lr + i1=1 + do 11 i=1,mn1 + la=istk(id1+i)-i1 + lb=istk(id2+i)-istk(id2+i-1) + i1=istk(id1+i) + istk(id1+i)=istk(id1+i-1)+la+lb + call icopy(la,istk(l1r),1,istk(l),1) + l1r=l1r+la + l=l+la + call icopy(lb,istk(l2r),1,istk(l),1) + l2r=l2r+lb + l=l+lb + 11 continue + call icopy(l-lr,istk(lr),1,istk(il1+5+mn1),1) + lstk(top+1)=sadr(il1+5+mn1+l-lr) + goto 999 +c +c concatenation [a, b] +c + 60 continue + if(m1.lt.0.or.m2.lt.0) then + call error(14) + return + endif + if(m2.eq.0) then + return + elseif(m1.eq.0)then + call unsfdcopy(lstk(top+2)-lstk(top+1),stk(lstk(top+1)),1, + & stk(lstk(top)),1) + lstk(top+1)=lstk(top)+lstk(top+2)-lstk(top+1) + return + elseif(m1.ne.m2) then + call error(5) + return + endif + if(istk(il1).ne.istk(il2)) goto 10 +c + id3=iadr(lw) + l3r=id3+mn1+mn2+1 + vol=istk(id1+mn1)+istk(id2+mn2)-2 + err=sadr(l3r+vol)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call impcnc(istk(l1r),istk(id1),m1,istk(l2r),istk(id2),m1, + & istk(l3r),istk(id3),m1,n1,n2,1) +c + istk(il1)=10 + istk(il1+1)=m1 + istk(il1+2)=n1+n2 + istk(il1+3)=it1 + call icopy(mn1+mn2+vol+1,istk(id3),1,istk(il1+4),1) + lstk(top+1)=sadr(il1+5+mn1+mn2+vol) + goto 999 +c +c concatenation [a;b] + 65 continue + if(n1.lt.0.or.n2.lt.0) then + call error(14) + return + endif + if(n2.eq.0) then + return + elseif(n1.eq.0)then + call unsfdcopy(lstk(top+2)-lstk(top+1),stk(lstk(top+1)),1, + & stk(lstk(top)),1) + lstk(top+1)=lstk(top)+lstk(top+2)-lstk(top+1) + return + elseif(n1.ne.n2) then + call error(6) + return + endif + if(istk(il1).ne.istk(il2)) goto 10 +c + id3=iadr(lw) + l3r=id3+mn1+mn2+1 + vol=istk(id1+mn1)+istk(id2+mn2)-2 + err=sadr(l3r+vol)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call impcnc(istk(l1r),istk(id1),m1,istk(l2r),istk(id2),m2, + & istk(l3r),istk(id3),m1,m2,n2,-1) +c + istk(il1)=10 + istk(il1+1)=m1+m2 + istk(il1+2)=n1 + istk(il1+3)=it1 + call icopy(mn1+mn2+vol+1,istk(id3),1,istk(il1+4),1) + lstk(top+1)=sadr(il1+5+mn1+mn2+vol) + goto 999 +c +c transposition +c + 110 continue + id2=iadr(lw) + l2r=id2+mn1+1 + err=sadr(l2r+vol)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call imptra(istk(l1r),istk(id1),m1,istk(l2r),istk(id2),m1,n1) + istk(il1+1)=n1 + istk(il1+2)=m1 + call icopy(mn1+1+vol,istk(id2),1,istk(id1),1) + goto 999 +c +c insertion +c + 120 continue + if(rhs.gt.4) then + top=top0 + fin=-fin + return + endif + if(rhs.eq.4) goto 125 +c arg3(arg1)=arg2 +c +c get arg3 + il3=iadr(lstk(top)) + if(istk(il3).lt.0) il3=iadr(istk(il3+1)) + + if(istk(il3).ne.10) then + if(istk(il3).ne.1.or.istk(il3+1).ne.0) then + top=top0 + fin=-fin + return + endif + endif + m3=istk(il3+1) + n3=istk(il3+2) + mn3=m3*n3 + id3=il3+4 + l3r=id3+mn3+1 +c get arg2 + top=top-1 + il2=iadr(lstk(top)) + if(istk(il2).lt.0) il2=iadr(istk(il2+1)) + if(istk(il2).ne.10) then + if(istk(il2).eq.1) then + if(istk(il2+1)*istk(il2+2).eq.0) goto 121 + endif + top=top0 + fin=-fin + return + endif + 121 m2=istk(il2+1) + n2=istk(il2+2) + mn2=m2*n2 + id2=il2+4 + l2r=id2+mn2+1 +c get arg1 + top=top-1 + il1=iadr(lstk(top)) + ilrs=il1 + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + if (istk(il1).eq.10.or.istk(il1).eq.15) then + top=top0 + fin=-fin + return + endif + m1=istk(il1+1) + n1=istk(il1+2) +c + if (m2.eq.0) then +c . arg3(arg1)=[] + if(m1.eq.-1) then +c . arg3(:)=[] -->[] + istk(ilrs)=1 + istk(ilrs+1)=0 + istk(ilrs+2)=0 + istk(ilrs+3)=0 + lstk(top+1)=sadr(ilrs+4)+1 + goto 999 + elseif(m1.eq.0) then +c . arg3([])=[] --> arg3 + istk(ilrs)=10 + istk(ilrs+1)=m3 + istk(ilrs+2)=n3 + istk(ilrs+3)=0 + volr=istk(id3+mn3)-1 + call icopy(mn3+1+volr,istk(id3),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn3+volr) + goto 999 + else +c . arg3(arg1)=[] + if(istk(il1).eq.4.and.m3.eq.m1.and.n3.eq.n1) then + if(.not.isany(il1)) then +c . arg3([])=[] --> arg3 + istk(ilrs)=10 + istk(ilrs+1)=m3 + istk(ilrs+2)=n3 + istk(ilrs+3)=0 + volr=istk(id3+mn3)-1 + call icopy(mn3+1+volr,istk(id3),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn3+volr) + goto 999 + endif + endif +c . arg3(arg1)=[] --> arg3(compl(arg1)) + call indxgc(il1,mn3,ilr,mi,mx,lw) + if(err.gt.0) return + l2r=l3r + n2=n3 + m2=m3 + mn2=m2*n2 + id2=id3 + ili=ilr +c . call extraction + goto 131 + endif + elseif(m2.lt.0.or.m3.lt.0) then +c . arg3=eye,arg2=eye + call error(14) + return + elseif(m1.lt.0) then +c . arg3(:)=arg2 + if(mn2.ne.mn3) then + if(mn2.eq.1) goto 124 + call error(15) + return + endif +c . reshape arg2 according to arg3 + istk(ilrs)=10 + istk(ilrs+1)=m3 + istk(ilrs+2)=n3 + istk(ilrs+3)=0 + volr=istk(id2+mn2)-1 + call icopy(mn3+1+volr,istk(id2),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn3+volr) + goto 999 + endif + 124 call indxg(il1,mn3,ili,mi,mxi,lw,1) + if(err.gt.0) return + if(mi.eq.0) then +c . arg3([])=arg2 + if(mn2.eq.1) then +c . arg3([])=c --> arg3 + if(mn3.eq.0) then + istk(ilrs)=1 + istk(ilrs+1)=0 + istk(ilrs+2)=0 + istk(ilrs+3)=0 + lstk(top+1)=sadr(ilrs+4) + else + istk(ilrs)=10 + istk(ilrs+1)=m3 + istk(ilrs+2)=n3 + istk(ilrs+3)=0 + volr=istk(id3+mn3)-1 + call icopy(mn3+1+volr,istk(id3),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn3+volr) + endif + goto 999 + else + call error(15) + return + endif + endif + if(mi.ne.mn2.and.mn2.gt.1) then + call error(15) + return + endif +c + if (n3.gt.1.and.m3.gt.1) then +c . arg3 is not a vector + if(n2.gt.1.and.m2.gt.1) then + call error(15) + return + endif + if(mxi.gt.m3*n3) then + call error(21) + return + endif + mr=m3 + nr=n3 + elseif (n3.le.1.and.n2.le.1) then +c . arg3 and arg2 are column vectors + mr=max(m3,mxi) + nr=max(n3,1) + elseif (m3.le.1.and.m2.le.1) then +c . row vectors + nr=max(n3,mxi) + mr=max(m3,1) + else +c . arg3 and arg2 dimensions dont agree + call error(15) + return + endif +c + mnr=mr*nr +c set result pointers + idr=iadr(lw) + lr=idr+mr*nr+1 + ilw=lr + lw=sadr(ilw+mnr+1) + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mpinsp(istk(id3),m3*n3,1,istk(ili),mi,1,1,istk(id2),m2*n2,1 + $ ,istk(idr),mnr,1,0,istk(ilw),err) + if(err.gt.0) then + call error(15) + return + endif + volr=istk(idr) +c set result coefficients + + lw=sadr(lr+volr) + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif +c + call impins(istk(l3r),istk(id3),m3*n3,1,istk(l2r),istk(id2), + $ m2*n2,1,istk(lr),istk(idr),mnr,1) + +c set output variable + ilrs=iadr(lstk(top)) + istk(ilrs)=10 + if(mmode.eq.1.and.nr.eq.1.and.m3.eq.0) then + istk(ilrs+1)=nr + istk(ilrs+2)=mr + else + istk(ilrs+1)=mr + istk(ilrs+2)=nr + endif + istk(ilrs+3)=0 + call icopy(mnr+1+volr,istk(idr),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mnr+volr) + goto 999 +c + 125 continue +c arg4(arg1,arg2)=arg3 +c get arg4 + il4=iadr(lstk(top)) + if(istk(il4).lt.0) il4=iadr(istk(il4+1)) + if(istk(il4).ne.10) then + if(istk(il4).ne.1.or.istk(il4+1).ne.0) then + top=top0 + fin=-fin + return + endif + endif + m4=istk(il4+1) + n4=istk(il4+2) + mn4=m4*n4 + id4=il4+4 + l4r=id4+mn4+1 + top=top-1 +c get arg3 + il3=iadr(lstk(top)) + if(istk(il3).lt.0) il3=iadr(istk(il3+1)) + if(istk(il3).ne.10) then + if(istk(il3).eq.1) then + if(istk(il3+1)*istk(il3+2).eq.0) goto 126 + endif + top=top0 + fin=-fin + return + endif + 126 m3=istk(il3+1) + n3=istk(il3+2) + mn3=m3*n3 + id3=il3+4 + l3r=id3+mn3+1 +c get arg2 + top=top-1 + il2=iadr(lstk(top)) + if(istk(il2).lt.0) il2=iadr(istk(il2+1)) + m2=istk(il2+1) +c get arg1 + top=top-1 + il1=iadr(lstk(top)) + ilrs=il1 + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + m1=istk(il1+1) + + if (m3.eq.0) then +c . arg4(arg1,arg2)=[] + if(m1.eq.-1.and.m2.eq.-1) then +c . arg4(:,:)=[] -->[] + istk(ilrs)=1 + istk(ilrs+1)=0 + istk(ilrs+2)=0 + istk(ilrs+3)=0 + lstk(top+1)=sadr(ilrs+4)+1 + goto 999 + elseif(m1.eq.0.or.m2.eq.0) then +c . arg4([],arg2)=[], arg4(arg1,[])=[] --> arg4 + istk(ilrs)=10 + istk(ilrs+1)=m4 + istk(ilrs+2)=n4 + istk(ilrs+3)=0 + volr=istk(id4+mn4)-1 + call icopy(mn4+1+volr,istk(id4),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn4+volr) + goto 999 + elseif(m2.eq.-1) then +c . arg4(arg1,:)=[] --> arg4(compl(arg1),:) + call indxgc(il1,m4,ili,mi,mxi,lw) + if(err.gt.0) return + call indxg(il2,n4,ilj,nj,mxj,lw,1) + if(err.gt.0) return + l3r=l4r + n3=n4 + m3=m4 + mn3=m3*n3 + id3=id4 +c . call extraction + goto 133 + elseif(m1.eq.-1) then +c . arg4(:,arg2)=[] --> arg4(:,compl(arg2)) + call indxgc(il2,n4,ilj,nj,mxj,lw) + if(err.gt.0) return + call indxg(il1,m4,ili,mi,mxi,lw,1) + if(err.gt.0) return + l3r=l4r + n3=n4 + m3=m4 + mn3=m3*n3 + id3=id4 +c . call extraction + goto 133 + else +c . arg4(arg1,arg2)=[] + lw1=lw + call indxgc(il2,n4,ilj,nj,mxj,lw) + if(err.gt.0) return + if(nj.eq.0) then +c . arg4(arg1,1:n4)=[] + call indxgc(il1,m4,ili,mi,mxi,lw) + lw2=lw + if(err.gt.0) return +c . arg2=1:n4 + if(mi.eq.0) then +c . arg4(1:m4,1:n4)=[] + istk(ilrs)=1 + istk(ilrs+1)=0 + istk(ilrs+2)=0 + istk(ilrs+3)=0 + lstk(top+1)=sadr(ilrs+4)+1 + goto 999 + else +c . arg4(arg1,1:n4)=[] +c . replace arg2 by ":" + il2=iadr(lw2) + istk(il2)=1 + istk(il2+1)=-1 + istk(il2+2)=-1 + istk(il2+3)=0 +c . + lw=lw2+2 + call indxg(il2,n4,ilj,nj,mxj,lw,1) + if(err.gt.0) return + l3r=l4r + n3=n4 + m3=m4 + mn3=m3*n3 + id3=id4 +c . call extraction + goto 133 + endif + elseif(nj.eq.n4) then +c . arg4(arg1,[])=[] --> arg4 + istk(ilrs)=10 + istk(ilrs+1)=m4 + istk(ilrs+2)=n4 + istk(ilrs+3)=0 + volr=istk(id4+mn4)-1 + call icopy(mn4+1+volr,istk(id4),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn4+volr) + goto 999 + else + call indxgc(il1,m4,ili,mi,mxi,lw) + if(err.gt.0) return + if(mi.eq.0) then +c . arg4(1:m4,arg2)=[] + call indxg(il1,m4,ili,mi,mxi,lw,1) + if(err.gt.0) return + l3r=l4r + n3=n4 + m3=m4 +C . given set is larger than 1:m4 + mi=min(m4,mi) + mn3=m3*n3 + id3=id4 +c . call extraction + goto 133 + elseif(mi.eq.m4) then +c . arg4([],arg2)=[] --> arg4 + istk(ilrs)=10 + istk(ilrs+1)=m4 + istk(ilrs+2)=n4 + istk(ilrs+3)=0 + volr=istk(id4+mn4)-1 + call icopy(mn4+1+volr,istk(id4),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn4+volr) + goto 999 + else + call error(15) + return + endif + endif + endif + elseif(m3.lt.0.or.m4.lt.0) then +c . arg3=eye , arg4=eye + call error(14) + return + elseif(m1.eq.-1.and.m2.eq.-1) then +c . arg4(:,:)=arg3 + if(mn3.ne.mn4) then + if(mn3.eq.1) goto 127 + call error(15) + return + endif +c . reshape arg3 according to arg4 + istk(ilrs)=10 + istk(ilrs+1)=m4 + istk(ilrs+2)=n4 + istk(ilrs+3)=0 + volr=istk(id3+mn3)-1 + call icopy(mn3+1+volr,istk(id3),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn3+volr) + goto 999 + endif + + 127 continue + init4=0 + if(m1.eq.-1.and.m4.eq.0) then +c . arg4(:,i)=arg3 + m3=m3*n3 + n3=1 + n4=1 + m4=m3 + init4=1 + elseif(m2.eq.-1.and.m4.eq.0) then +c . arg4(i,:)=arg3 + n3=m3*n3 + m3=1 + m4=1 + n4=n3 + init4=1 + endif + if(init4.eq.1) then + mn4=m4*n4 + l4r=iadr(lw) + id4=l4r + lw=sadr(id4+mn4+1) + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call ivimp(1,mn4+1,1,istk(id4)) + endif + call indxg(il1,m4,ili,mi,mxi,lw,1) + if(err.gt.0) return + call indxg(il2,n4,ilj,mj,mxj,lw,1) + if(err.gt.0) return + if(mi.ne.m3.or.mj.ne.n3) then + if(m3*n3.eq.1) then + if(mi.eq.0.or.mj.eq.0) then + istk(ilrs)=10 + istk(ilrs+1)=m4 + istk(ilrs+2)=n4 + istk(ilrs+3)=0 + volr=istk(id4+mn4)-1 + call icopy(mn4+volr,istk(id4),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn4+volr) + goto 999 + endif + else +c . sizes of arg1 or arg2 dont agree with arg3 sizes + call error(15) + return + endif + if(mi.eq.0.or.mj.eq.0) then + call error(15) + return + endif + endif + mr=max(m4,mxi) + nr=max(n4,mxj) +c + mnr=mr*nr +c set result pointers + idr=iadr(lw) + lr=idr+mr*nr+1 + ilw=lr + lw=sadr(ilw+mr+nr) + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call mpinsp(istk(id4),m4,n4,istk(ili),mi,istk(ilj),mj,istk(id3) + $ ,m3,n3,istk(idr),mr,nr,0,istk(ilw),err) + if(err.gt.0) then + call error(15) + return + endif + volr=istk(idr) +c set result coefficients + lw=sadr(lr+volr) + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif +c + call impins(istk(l4r),istk(id4),m4,n4,istk(l3r),istk(id3),m3,n3 + $ ,istk(lr),istk(idr),mr,nr) +c set output variable + ilrs=iadr(lstk(top)) + istk(ilrs)=10 + istk(ilrs+1)=mr + istk(ilrs+2)=nr + istk(ilrs+3)=0 + call icopy(mnr+1+volr,istk(idr),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mnr+volr) + goto 999 +c +c extraction +c + 130 continue + if(rhs.lt.2) then + call error(227) + return + endif + if(rhs.eq.3) goto 132 + if(rhs.gt.3) then + fin=-fin + return + endif +c arg2(arg1) +c get arg2 + il2=iadr(lstk(top)) + if(istk(il2).lt.0) il2=iadr(istk(il2+1)) + m2=istk(il2+1) + n2=istk(il2+2) + mn2=m2*n2 + id2=il2+4 + l2r=id2+mn2+1 +c get arg1 + top=top-1 + il1=iadr(lstk(top)) + ilrs=il1 + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + m1=istk(il1+1) + n1=istk(il1+2) + + if(mn2.eq.0) then +c . arg2=[] + ilrs=iadr(lstk(top)) + istk(ilrs)=1 + istk(ilrs+1)=0 + istk(ilrs+2)=0 + istk(ilrs+3)=0 + l1=sadr(ilrs+4) + lstk(top+1)=l1+1 + goto 999 + elseif(m2.lt.0) then +c . arg2=eye + call error(14) + return + elseif(m1.lt.0) then +c . arg2(:), just reshape to column vector + ilrs=iadr(lstk(top)) + istk(ilrs)=10 + istk(ilrs+1)=mn2 + istk(ilrs+2)=1 + istk(ilrs+3)=istk(il2+3) + volr=istk(id2+mn2)-1 + call icopy(mn2+1+volr,istk(id2),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mn2+volr) + goto 999 + endif +c check and convert indices variable + call indxg(il1,mn2,ili,mi,mx,lw,1) + if(err.gt.0) return + if(mx.gt.mn2) then + call error(21) + return + endif + 131 if(mi.eq.0) then +c arg2([]) + ilrs=iadr(lstk(top)) + istk(ilrs)=1 + istk(ilrs+1)=0 + istk(ilrs+2)=0 + istk(ilrs+3)=0 + l1=sadr(ilrs+4) + lstk(top+1)=l1+1 + goto 999 + endif +c get memory for the result + idr=iadr(lw) + lr=idr+mi+1 + lw=sadr(lr) + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif +c set result pointers + if (m2 .gt. 1.or.m1.lt.0) then + call impext(istk(l2r),istk(id2),m2,n2,istk(ili),mi,1,1,istk(lr) + $ ,istk(idr),0,err) + else + call impext(istk(l2r),istk(id2),m2,n2,1,1,istk(ili),mi,istk(lr) + $ ,istk(idr),0,err) + endif + if(err.gt.0) then + call error(21) + return + endif + +c set result coefficients + volr=istk(idr+mi)-1 + lw=sadr(lr+volr) + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + if (m2.eq.1.and.n2.eq.1.and.m1.gt.0) then + call impext(istk(l2r),istk(id2),m2,n2,istk(ili),mi,1,1,istk(lr) + $ ,istk(idr),1,err) + m = m1 + n = min(n1,mi) + elseif (m2 .gt. 1.or.m1.lt.0) then + call impext(istk(l2r),istk(id2),m2,n2,istk(ili),mi,1,1,istk(lr) + $ ,istk(idr),1,err) + m = mi + n = 1 + else + call impext(istk(l2r),istk(id2),m2,n2,1,1,istk(ili),mi,istk(lr) + $ ,istk(idr),1,err) + n = mi + m = 1 + endif + +c form resulting variable + ilrs=iadr(lstk(top)) + istk(ilrs)=10 + istk(ilrs+1)=m + istk(ilrs+2)=n + istk(ilrs+3)=0 + volr=istk(idr+mi)-1 + call icopy(mi+1+volr,istk(idr),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+m*n+volr) + go to 999 + 132 continue +c arg3(arg1,arg2) +c get arg3 + il3=iadr(lstk(top)) + if(istk(il3).lt.0) il3=iadr(istk(il3+1)) + m3=istk(il3+1) + n3=istk(il3+2) + mn3=m3*n3 + id3=il3+4 + l3r=id3+mn3+1 +c get arg2 + top=top-1 + il2=iadr(lstk(top)) + if(istk(il2).lt.0) il2=iadr(istk(il2+1)) + m2=istk(il2+1) +c get arg1 + top=top-1 + il1=iadr(lstk(top)) + ilrs=il1 + if(istk(il1).lt.0) il1=iadr(istk(il1+1)) + m1=istk(il1+1) + l1=sadr(il1+4) +c + if(mn3.eq.0) then +c . arg3=[] + ilrs=iadr(lstk(top)) + istk(ilrs)=1 + istk(ilrs+1)=0 + istk(ilrs+2)=0 + istk(ilrs+3)=0 + l1=sadr(ilrs+4) + lstk(top+1)=l1+1 + goto 999 + elseif(m3.lt.0) then +c .arg3=eye + call error(14) + return + endif +c check and convert indices variables + call indxg(il1,m3,ili,mi,mxi,lw,1) + if(err.gt.0) return + if(mxi.gt.m3) then + call error(21) + return + endif + call indxg(il2,n3,ilj,nj,mxj,lw,1) + if(err.gt.0) return + if(mxj.gt.n3) then + call error(21) + return + endif +c +c perform extraction + 133 mnr=mi*nj + if(mnr.eq.0) then +c . arg1=[] or arg2=[] + ilrs=iadr(lstk(top)) + istk(ilrs)=1 + istk(ilrs+1)=0 + istk(ilrs+2)=0 + istk(ilrs+3)=0 + lstk(top+1)=sadr(ilrs+4)+1 + goto 999 + endif + idr=iadr(lw) + lr=idr+mnr+1 + lw=sadr(lr) + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif +c set result pointers + call impext(istk(l3r),istk(id3),m3,n3,istk(ili),mi,istk(ilj),nj + $ ,istk(lr),istk(idr),0,err) + if(err.gt.0) then + call error(21) + return + endif +c set result coefficients + volr=istk(idr+mnr)-1 + lw=sadr(lr+volr) + err=lw-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call impext(istk(l3r),istk(id3),m3,n3,istk(ili),mi,istk(ilj),nj + $ ,istk(lr),istk(idr),1,err) +c + ilrs=iadr(lstk(top)) + istk(ilrs)=10 + istk(ilrs+1)=mi + istk(ilrs+2)=nj + istk(ilrs+3)=0 + call icopy(mnr+1+volr,istk(idr),1,istk(ilrs+4),1) + lstk(top+1)=sadr(ilrs+5+mnr+volr) + goto 999 + +c +c comparaisons + 180 continue + itrue=1 + if(op.eq.less+great) itrue=0 +c comparaison des types + if(istk(il1).ne.istk(il2)) then + istk(il1)=4 + istk(il1+1)=1 + istk(il1+2)=1 + istk(il1+3)=1-itrue + lstk(top+1)=sadr(il1+4) + return + endif + +c des dimensions + if(mn1.eq.1.and.mn2.gt.1) then + nn1=istk(il1+5)-1 + l1r=iadr(lw) + err=sadr(l1r+nn1+2)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call icopy(nn1,istk(il1+6),1,istk(l1r),1) + id1=l1r+nn1 + istk(id1)=1 + istk(id1+1)=nn1+1 + inc1=0 + inc2=1 + mn1=mn2 + m1=m2 + n1=n2 + istk(il1+1)=m1 + istk(il1+2)=n1 + else if(mn2.eq.1.and.mn1.gt.1) then + nn2=istk(il2+5)-1 + l2r=iadr(lw) + err=sadr(l2r+nn2+2)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + call icopy(nn2,istk(il2+6),1,istk(l2r),1) + id2=l2r+nn2 + istk(id2)=1 + istk(id2+1)=nn2+1 + inc1=1 + inc2=0 + mn2=mn1 + m2=m1 + n2=n1 + else if(n1.ne.n2.or.m1.ne.m2) then + istk(il1)=4 + istk(il1+1)=1 + istk(il1+2)=1 + istk(il1+3)=1-itrue + lstk(top+1)=sadr(il1+4) + return + else + inc1=1 + inc2=1 + l1=il1+5+mn1 + l2=il2+5+mn2 + endif +c des valeurs + i1=id1-inc1 + i2=id2-inc2 + l1r=l1r-1 + l2r=l2r-1 + do 185 i=0,mn1-1 + i1=i1+inc1 + i2=i2+inc2 + if(istk(i1+1)-istk(i1).ne.istk(i2+1)-istk(i2) ) goto 184 + nl=istk(i1+1)-istk(i1)-1 + do 182 ii=0,nl + if(istk(l1r+istk(i1)+ii).ne.istk(l2r+istk(i2)+ii)) goto 184 + 182 continue + istk(il1+3+i)=itrue + goto 185 + 184 istk(il1+3+i)=1-itrue + 185 continue + istk(il1)=4 + istk(il1+1)=m1 + istk(il1+2)=n1 + lstk(top+1)=sadr(il1+3+mn1) + goto 999 + +c + + 999 return + end diff --git a/modules/string/sci_gateway/fortran/strops.lo b/modules/string/sci_gateway/fortran/strops.lo new file mode 100755 index 000000000..a5e01162e --- /dev/null +++ b/modules/string/sci_gateway/fortran/strops.lo @@ -0,0 +1,12 @@ +# sci_gateway/fortran/strops.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/strops.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/sci_gateway/string_gateway.xml b/modules/string/sci_gateway/string_gateway.xml new file mode 100755 index 000000000..27527da97 --- /dev/null +++ b/modules/string/sci_gateway/string_gateway.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> + +<!DOCTYPE GATEWAY SYSTEM "../../functions/xml/gateway.dtd"> +<GATEWAY name="string"> + <!-- =================== --> + <!-- + Scilab + Interface description. In this file, we define the list of the function which + will be available into Scilab and the link to the "native" function. + + gatewayId is the position in the hashtable 'Interfaces' defined in the + file SCI/modules/core/src/c/callinterf.h + + primitiveId is the position in the hashtable '<module>Table Tab[]' defined + in the file modules/<module>/sci_gateway/c/gw_<module>.c + + primitiveName is the name of the Scilab function + + =================== + Don't touch if you do not know what you are doing +--> + <!-- =================== --> + + + <!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET , Sylvestre LEDRU + * + * 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 + * + --> + + + <PRIMITIVE gatewayId="21" primitiveId="1" primitiveName="length" /> + <PRIMITIVE gatewayId="21" primitiveId="2" primitiveName="part" /> + <PRIMITIVE gatewayId="21" primitiveId="3" primitiveName="string" /> + <PRIMITIVE gatewayId="21" primitiveId="4" primitiveName="convstr" /> + <PRIMITIVE gatewayId="21" primitiveId="5" primitiveName="emptystr" /> + <PRIMITIVE gatewayId="21" primitiveId="6" primitiveName="str2code" /> + <PRIMITIVE gatewayId="21" primitiveId="7" primitiveName="code2str" /> + <PRIMITIVE gatewayId="21" primitiveId="8" primitiveName="strcat" /> + <PRIMITIVE gatewayId="21" primitiveId="9" primitiveName="strindex" /> + <PRIMITIVE gatewayId="21" primitiveId="10" primitiveName="strsubst" /> + <PRIMITIVE gatewayId="21" primitiveId="11" primitiveName="ascii" /> + <PRIMITIVE gatewayId="21" primitiveId="12" primitiveName="grep" /> + <PRIMITIVE gatewayId="21" primitiveId="13" primitiveName="tokens" /> + <PRIMITIVE gatewayId="21" primitiveId="14" primitiveName="strsplit" /> + <PRIMITIVE gatewayId="21" primitiveId="15" primitiveName="stripblanks" /> + <PRIMITIVE gatewayId="21" primitiveId="16" primitiveName="strcmp" /> + <PRIMITIVE gatewayId="21" primitiveId="17" primitiveName="isletter" /> + <PRIMITIVE gatewayId="21" primitiveId="18" primitiveName="isdigit" /> + <PRIMITIVE gatewayId="21" primitiveId="19" primitiveName="isalphanum" /> + <PRIMITIVE gatewayId="21" primitiveId="20" primitiveName="isascii" /> + <PRIMITIVE gatewayId="21" primitiveId="21" primitiveName="strcspn" /> + <PRIMITIVE gatewayId="21" primitiveId="22" primitiveName="strncpy" /> + <PRIMITIVE gatewayId="21" primitiveId="23" primitiveName="strrchr" /> + <PRIMITIVE gatewayId="21" primitiveId="24" primitiveName="strchr" /> + <PRIMITIVE gatewayId="21" primitiveId="25" primitiveName="strstr" /> + <PRIMITIVE gatewayId="21" primitiveId="26" primitiveName="strrev" /> + <PRIMITIVE gatewayId="21" primitiveId="27" primitiveName="strtok" /> + <PRIMITIVE gatewayId="21" primitiveId="28" primitiveName="strspn" /> + <PRIMITIVE gatewayId="21" primitiveId="29" primitiveName="strtod" /> + <PRIMITIVE gatewayId="21" primitiveId="30" primitiveName="regexp" /> + <PRIMITIVE gatewayId="21" primitiveId="31" primitiveName="_str2code" /> + <PRIMITIVE gatewayId="21" primitiveId="32" primitiveName="_code2str" /> + <PRIMITIVE gatewayId="21" primitiveId="33" primitiveName="isnum" /> + <PRIMITIVE gatewayId="21" primitiveId="34" primitiveName="csvIsnum" /> + +</GATEWAY> diff --git a/modules/string/src/c/.deps/.dirstamp b/modules/string/src/c/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/string/src/c/.deps/.dirstamp diff --git a/modules/string/src/c/.deps/libscistring_algo_la-InitializeString.Plo b/modules/string/src/c/.deps/libscistring_algo_la-InitializeString.Plo new file mode 100755 index 000000000..f0a6b6bd6 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-InitializeString.Plo @@ -0,0 +1,14 @@ +src/c/libscistring_algo_la-InitializeString.lo: src/c/InitializeString.c \ + /usr/include/stdc-predef.h includes/InitializeString.h \ + ../../modules/core/includes/BOOL.h includes/dynlib_string.h \ + src/c/setScilabCharactersCodes.h + +/usr/include/stdc-predef.h: + +includes/InitializeString.h: + +../../modules/core/includes/BOOL.h: + +includes/dynlib_string.h: + +src/c/setScilabCharactersCodes.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-StringConvert.Plo b/modules/string/src/c/.deps/libscistring_algo_la-StringConvert.Plo new file mode 100755 index 000000000..356aa1270 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-StringConvert.Plo @@ -0,0 +1,9 @@ +src/c/libscistring_algo_la-StringConvert.lo: src/c/StringConvert.c \ + /usr/include/stdc-predef.h includes/StringConvert.h \ + includes/dynlib_string.h + +/usr/include/stdc-predef.h: + +includes/StringConvert.h: + +includes/dynlib_string.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-code2str.Plo b/modules/string/src/c/.deps/libscistring_algo_la-code2str.Plo new file mode 100755 index 000000000..0f2808d37 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-code2str.Plo @@ -0,0 +1,106 @@ +src/c/libscistring_algo_la-code2str.lo: src/c/code2str.c \ + /usr/include/stdc-predef.h /usr/include/stdlib.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/string.h \ + /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/code2str.h \ + includes/dynlib_string.h includes/getfastcode.h \ + ../../modules/core/includes/machine.h + +/usr/include/stdc-predef.h: + +/usr/include/stdlib.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/string.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/code2str.h: + +includes/dynlib_string.h: + +includes/getfastcode.h: + +../../modules/core/includes/machine.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-complex_array.Plo b/modules/string/src/c/.deps/libscistring_algo_la-complex_array.Plo new file mode 100755 index 000000000..945ac23b3 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-complex_array.Plo @@ -0,0 +1,106 @@ +src/c/libscistring_algo_la-complex_array.lo: src/c/complex_array.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/complex_array.h \ + includes/dynlib_string.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/complex_array.h: + +includes/dynlib_string.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-convstr.Plo b/modules/string/src/c/.deps/libscistring_algo_la-convstr.Plo new file mode 100755 index 000000000..16fad8bb5 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-convstr.Plo @@ -0,0 +1,95 @@ +src/c/libscistring_algo_la-convstr.lo: src/c/convstr.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/wctype.h \ + includes/gw_string.h includes/dynlib_string.h src/c/convstr.h \ + includes/dynlib_string.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/wctype.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +src/c/convstr.h: + +includes/dynlib_string.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-cvstr.Plo b/modules/string/src/c/.deps/libscistring_algo_la-cvstr.Plo new file mode 100755 index 000000000..9ae5fd237 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-cvstr.Plo @@ -0,0 +1,165 @@ +src/c/libscistring_algo_la-cvstr.lo: src/c/cvstr.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/cvstr.h \ + ../../modules/core/includes/machine.h includes/dynlib_string.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h includes/getfastcode.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/cvstr.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_string.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +includes/getfastcode.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-getfastcode.Plo b/modules/string/src/c/.deps/libscistring_algo_la-getfastcode.Plo new file mode 100755 index 000000000..3e59e86c7 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-getfastcode.Plo @@ -0,0 +1,157 @@ +src/c/libscistring_algo_la-getfastcode.lo: src/c/getfastcode.c \ + /usr/include/stdc-predef.h includes/getfastcode.h \ + ../../modules/core/includes/machine.h includes/dynlib_string.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/stdlib.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h + +/usr/include/stdc-predef.h: + +includes/getfastcode.h: + +../../modules/core/includes/machine.h: + +includes/dynlib_string.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/stdlib.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-isalphanum.Plo b/modules/string/src/c/.deps/libscistring_algo_la-isalphanum.Plo new file mode 100755 index 000000000..4d61cd84c --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-isalphanum.Plo @@ -0,0 +1,122 @@ +src/c/libscistring_algo_la-isalphanum.lo: src/c/isalphanum.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/wctype.h \ + src/c/isalphanum.h ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/wctype.h: + +src/c/isalphanum.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-isdigit.Plo b/modules/string/src/c/.deps/libscistring_algo_la-isdigit.Plo new file mode 100755 index 000000000..59b16d825 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-isdigit.Plo @@ -0,0 +1,124 @@ +src/c/libscistring_algo_la-isdigit.lo: src/c/isdigit.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/wctype.h \ + src/c/isletter.h ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h src/c/isdigit.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/wctype.h: + +src/c/isletter.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +src/c/isdigit.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-isletter.Plo b/modules/string/src/c/.deps/libscistring_algo_la-isletter.Plo new file mode 100755 index 000000000..b446b2e4e --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-isletter.Plo @@ -0,0 +1,125 @@ +src/c/libscistring_algo_la-isletter.lo: src/c/isletter.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/ctype.h \ + /usr/include/wchar.h /usr/include/stdio.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/wctype.h \ + src/c/isletter.h ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/ctype.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/wctype.h: + +src/c/isletter.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-isnum.Plo b/modules/string/src/c/.deps/libscistring_algo_la-isnum.Plo new file mode 100755 index 000000000..41d950f6c --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-isnum.Plo @@ -0,0 +1,103 @@ +src/c/libscistring_algo_la-isnum.lo: src/c/isnum.c \ + /usr/include/stdc-predef.h src/c/isnum.h \ + ../../modules/core/includes/BOOL.h includes/stringToComplex.h \ + ../../modules/core/includes/doublecomplex.h includes/complex_array.h \ + includes/dynlib_string.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h /usr/include/stdlib.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h + +/usr/include/stdc-predef.h: + +src/c/isnum.h: + +../../modules/core/includes/BOOL.h: + +includes/stringToComplex.h: + +../../modules/core/includes/doublecomplex.h: + +includes/complex_array.h: + +includes/dynlib_string.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/stdlib.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-men_Sutils.Plo b/modules/string/src/c/.deps/libscistring_algo_la-men_Sutils.Plo new file mode 100755 index 000000000..aabb3c764 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-men_Sutils.Plo @@ -0,0 +1,131 @@ +src/c/libscistring_algo_la-men_Sutils.lo: src/c/men_Sutils.c \ + /usr/include/stdc-predef.h /usr/include/stdlib.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/string.h \ + /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/men_Sutils.h \ + includes/dynlib_string.h includes/getfastcode.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/core/includes/freeArrayOfString.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/stdlib.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/string.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/men_Sutils.h: + +includes/dynlib_string.h: + +includes/getfastcode.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-partfunction.Plo b/modules/string/src/c/.deps/libscistring_algo_la-partfunction.Plo new file mode 100755 index 000000000..a25a951bf --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-partfunction.Plo @@ -0,0 +1,135 @@ +src/c/libscistring_algo_la-partfunction.lo: src/c/partfunction.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h src/c/partfunction.h \ + ../../modules/core/includes/freeArrayOfString.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +src/c/partfunction.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/BOOL.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-pcre_error.Plo b/modules/string/src/c/.deps/libscistring_algo_la-pcre_error.Plo new file mode 100755 index 000000000..e497e8541 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-pcre_error.Plo @@ -0,0 +1,50 @@ +src/c/libscistring_algo_la-pcre_error.lo: src/c/pcre_error.c \ + /usr/include/stdc-predef.h includes/pcre_private.h \ + includes/dynlib_string.h \ + ../../modules/localization/includes/localization.h \ + ../../modules/core/includes/machine.h /usr/include/libintl.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/xlocale.h \ + ../../modules/output_stream/includes/Scierror.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + ../../modules/output_stream/includes/do_error_number.h + +/usr/include/stdc-predef.h: + +includes/pcre_private.h: + +includes/dynlib_string.h: + +../../modules/localization/includes/localization.h: + +../../modules/core/includes/machine.h: + +/usr/include/libintl.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/xlocale.h: + +../../modules/output_stream/includes/Scierror.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +../../modules/output_stream/includes/do_error_number.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-pcre_private.Plo b/modules/string/src/c/.deps/libscistring_algo_la-pcre_private.Plo new file mode 100755 index 000000000..152d8516f --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-pcre_private.Plo @@ -0,0 +1,221 @@ +src/c/libscistring_algo_la-pcre_private.lo: src/c/pcre_private.c \ + /usr/include/stdc-predef.h /usr/include/ctype.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/xlocale.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/errno.h \ + /usr/include/x86_64-linux-gnu/bits/errno.h /usr/include/linux/errno.h \ + /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /home/shashank/scilab-master_5.5.2/usr/include/pcre.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/core/includes/BOOL.h includes/pcre_private.h \ + includes/dynlib_string.h includes/strsubst.h \ + ../../modules/output_stream/includes/sciprint.h \ + ../../modules/core/includes/warningmode.h \ + ../../modules/core/includes/BOOL.h ../../modules/core/includes/machine.h \ + /usr/include/x86_64-linux-gnu/sys/time.h \ + /usr/include/x86_64-linux-gnu/sys/resource.h \ + /usr/include/x86_64-linux-gnu/bits/resource.h src/c/pcre_internal.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/setjmp.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp2.h src/c/ucp.h \ + src/c/pcre_tables.c src/c/config.h \ + /home/shashank/scilab-master_5.5.2/usr/include/pcreposix.h + +/usr/include/stdc-predef.h: + +/usr/include/ctype.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/xlocale.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/errno.h: + +/usr/include/x86_64-linux-gnu/bits/errno.h: + +/usr/include/linux/errno.h: + +/usr/include/x86_64-linux-gnu/asm/errno.h: + +/usr/include/asm-generic/errno.h: + +/usr/include/asm-generic/errno-base.h: + +/home/shashank/scilab-master_5.5.2/usr/include/pcre.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/core/includes/BOOL.h: + +includes/pcre_private.h: + +includes/dynlib_string.h: + +includes/strsubst.h: + +../../modules/output_stream/includes/sciprint.h: + +../../modules/core/includes/warningmode.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/machine.h: + +/usr/include/x86_64-linux-gnu/sys/time.h: + +/usr/include/x86_64-linux-gnu/sys/resource.h: + +/usr/include/x86_64-linux-gnu/bits/resource.h: + +src/c/pcre_internal.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/setjmp.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp2.h: + +src/c/ucp.h: + +src/c/pcre_tables.c: + +src/c/config.h: + +/home/shashank/scilab-master_5.5.2/usr/include/pcreposix.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-scistrtostr.Plo b/modules/string/src/c/.deps/libscistring_algo_la-scistrtostr.Plo new file mode 100755 index 000000000..1399ddab0 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-scistrtostr.Plo @@ -0,0 +1,98 @@ +src/c/libscistring_algo_la-scistrtostr.lo: src/c/scistrtostr.c \ + /usr/include/stdc-predef.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h /usr/include/stdlib.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h includes/scistrtostr.h \ + includes/dynlib_string.h includes/cvstr.h \ + ../../modules/core/includes/machine.h + +/usr/include/stdc-predef.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/stdlib.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +includes/scistrtostr.h: + +includes/dynlib_string.h: + +includes/cvstr.h: + +../../modules/core/includes/machine.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-setScilabCharactersCodes.Plo b/modules/string/src/c/.deps/libscistring_algo_la-setScilabCharactersCodes.Plo new file mode 100755 index 000000000..d05be3d4b --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-setScilabCharactersCodes.Plo @@ -0,0 +1,62 @@ +src/c/libscistring_algo_la-setScilabCharactersCodes.lo: \ + src/c/setScilabCharactersCodes.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + src/c/setScilabCharactersCodes.h ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +src/c/setScilabCharactersCodes.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-stringToComplex.Plo b/modules/string/src/c/.deps/libscistring_algo_la-stringToComplex.Plo new file mode 100755 index 000000000..88b448ec8 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-stringToComplex.Plo @@ -0,0 +1,177 @@ +src/c/libscistring_algo_la-stringToComplex.lo: src/c/stringToComplex.c \ + /usr/include/stdc-predef.h /usr/include/stdlib.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \ + /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/ctype.h \ + includes/stringToComplex.h ../../modules/core/includes/doublecomplex.h \ + includes/complex_array.h includes/dynlib_string.h \ + ../../modules/core/includes/BOOL.h includes/stringToDouble.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h includes/strsubst.h + +/usr/include/stdc-predef.h: + +/usr/include/stdlib.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/ctype.h: + +includes/stringToComplex.h: + +../../modules/core/includes/doublecomplex.h: + +includes/complex_array.h: + +includes/dynlib_string.h: + +../../modules/core/includes/BOOL.h: + +includes/stringToDouble.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +includes/strsubst.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-stringToDouble.Plo b/modules/string/src/c/.deps/libscistring_algo_la-stringToDouble.Plo new file mode 100755 index 000000000..7fd6c7b29 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-stringToDouble.Plo @@ -0,0 +1,192 @@ +src/c/libscistring_algo_la-stringToDouble.lo: src/c/stringToDouble.c \ + /usr/include/stdc-predef.h /usr/include/stdlib.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + includes/stringToDouble.h includes/dynlib_string.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \ + /usr/include/x86_64-linux-gnu/bits/xopen_lim.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h + +/usr/include/stdc-predef.h: + +/usr/include/stdlib.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +includes/stringToDouble.h: + +includes/dynlib_string.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/x86_64-linux-gnu/bits/xopen_lim.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-stringsCompare.Plo b/modules/string/src/c/.deps/libscistring_algo_la-stringsCompare.Plo new file mode 100755 index 000000000..90603a76b --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-stringsCompare.Plo @@ -0,0 +1,108 @@ +src/c/libscistring_algo_la-stringsCompare.lo: src/c/stringsCompare.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h src/c/stringsCompare.h \ + ../../modules/core/includes/BOOL.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h includes/stricmp.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +src/c/stringsCompare.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +includes/stricmp.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-stringsstrrchr.Plo b/modules/string/src/c/.deps/libscistring_algo_la-stringsstrrchr.Plo new file mode 100755 index 000000000..7bf75100c --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-stringsstrrchr.Plo @@ -0,0 +1,148 @@ +src/c/libscistring_algo_la-stringsstrrchr.lo: src/c/stringsstrrchr.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/ctype.h \ + src/c/stringsstrrchr.h ../../modules/core/includes/BOOL.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/ctype.h: + +src/c/stringsstrrchr.h: + +../../modules/core/includes/BOOL.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-stringsstrrev.Plo b/modules/string/src/c/.deps/libscistring_algo_la-stringsstrrev.Plo new file mode 100755 index 000000000..48b278f94 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-stringsstrrev.Plo @@ -0,0 +1,151 @@ +src/c/libscistring_algo_la-stringsstrrev.lo: src/c/stringsstrrev.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h src/c/stringsstrrev.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/BOOL.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +src/c/stringsstrrev.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-stripblanks.Plo b/modules/string/src/c/.deps/libscistring_algo_la-stripblanks.Plo new file mode 100755 index 000000000..0768f7a8b --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-stripblanks.Plo @@ -0,0 +1,147 @@ +src/c/libscistring_algo_la-stripblanks.lo: src/c/stripblanks.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h includes/gw_string.h \ + includes/dynlib_string.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h includes/stripblanks.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +includes/gw_string.h: + +includes/dynlib_string.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +includes/stripblanks.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-stristr.Plo b/modules/string/src/c/.deps/libscistring_algo_la-stristr.Plo new file mode 100755 index 000000000..67fe3d854 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-stristr.Plo @@ -0,0 +1,62 @@ +src/c/libscistring_algo_la-stristr.lo: src/c/stristr.c \ + /usr/include/stdc-predef.h /usr/include/ctype.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/xlocale.h \ + /usr/include/string.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/stristr.h \ + includes/dynlib_string.h includes/stricmp.h + +/usr/include/stdc-predef.h: + +/usr/include/ctype.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/xlocale.h: + +/usr/include/string.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/stristr.h: + +includes/dynlib_string.h: + +includes/stricmp.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-strsplit.Plo b/modules/string/src/c/.deps/libscistring_algo_la-strsplit.Plo new file mode 100755 index 000000000..52b255ebf --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-strsplit.Plo @@ -0,0 +1,124 @@ +src/c/libscistring_algo_la-strsplit.lo: src/c/strsplit.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h src/c/strsplit.h \ + /usr/include/wchar.h /usr/include/stdio.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/freeArrayOfString.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +src/c/strsplit.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/freeArrayOfString.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-strsubst.Plo b/modules/string/src/c/.deps/libscistring_algo_la-strsubst.Plo new file mode 100755 index 000000000..a555fc092 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-strsubst.Plo @@ -0,0 +1,150 @@ +src/c/libscistring_algo_la-strsubst.lo: src/c/strsubst.c \ + /usr/include/stdc-predef.h /usr/include/stdio.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \ + /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h includes/strsubst.h \ + includes/dynlib_string.h ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h includes/pcre_private.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/stdio.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +includes/strsubst.h: + +includes/dynlib_string.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +includes/pcre_private.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/src/c/.deps/libscistring_algo_la-tokens.Plo b/modules/string/src/c/.deps/libscistring_algo_la-tokens.Plo new file mode 100755 index 000000000..2e2d93b90 --- /dev/null +++ b/modules/string/src/c/.deps/libscistring_algo_la-tokens.Plo @@ -0,0 +1,146 @@ +src/c/libscistring_algo_la-tokens.lo: src/c/tokens.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h src/c/tokens.h \ + ../../modules/localization/includes/charEncoding.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +src/c/tokens.h: + +../../modules/localization/includes/charEncoding.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/string/src/c/.dirstamp b/modules/string/src/c/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/string/src/c/.dirstamp diff --git a/modules/string/src/c/.libs/libscistring_algo_la-InitializeString.o b/modules/string/src/c/.libs/libscistring_algo_la-InitializeString.o Binary files differnew file mode 100755 index 000000000..688df9e64 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-InitializeString.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-StringConvert.o b/modules/string/src/c/.libs/libscistring_algo_la-StringConvert.o Binary files differnew file mode 100755 index 000000000..b3c19d4d9 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-StringConvert.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-code2str.o b/modules/string/src/c/.libs/libscistring_algo_la-code2str.o Binary files differnew file mode 100755 index 000000000..f66e24946 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-code2str.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-complex_array.o b/modules/string/src/c/.libs/libscistring_algo_la-complex_array.o Binary files differnew file mode 100755 index 000000000..2c8be8d00 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-complex_array.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-convstr.o b/modules/string/src/c/.libs/libscistring_algo_la-convstr.o Binary files differnew file mode 100755 index 000000000..a0a78b691 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-convstr.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-cvstr.o b/modules/string/src/c/.libs/libscistring_algo_la-cvstr.o Binary files differnew file mode 100755 index 000000000..3d790a528 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-cvstr.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-getfastcode.o b/modules/string/src/c/.libs/libscistring_algo_la-getfastcode.o Binary files differnew file mode 100755 index 000000000..86fb05a68 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-getfastcode.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-isalphanum.o b/modules/string/src/c/.libs/libscistring_algo_la-isalphanum.o Binary files differnew file mode 100755 index 000000000..c673e546f --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-isalphanum.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-isdigit.o b/modules/string/src/c/.libs/libscistring_algo_la-isdigit.o Binary files differnew file mode 100755 index 000000000..6d60dd164 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-isdigit.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-isletter.o b/modules/string/src/c/.libs/libscistring_algo_la-isletter.o Binary files differnew file mode 100755 index 000000000..d27219995 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-isletter.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-isnum.o b/modules/string/src/c/.libs/libscistring_algo_la-isnum.o Binary files differnew file mode 100755 index 000000000..19d14caba --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-isnum.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-men_Sutils.o b/modules/string/src/c/.libs/libscistring_algo_la-men_Sutils.o Binary files differnew file mode 100755 index 000000000..9719ae187 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-men_Sutils.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-partfunction.o b/modules/string/src/c/.libs/libscistring_algo_la-partfunction.o Binary files differnew file mode 100755 index 000000000..9b6fcaf5b --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-partfunction.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-pcre_error.o b/modules/string/src/c/.libs/libscistring_algo_la-pcre_error.o Binary files differnew file mode 100755 index 000000000..95238e424 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-pcre_error.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-pcre_private.o b/modules/string/src/c/.libs/libscistring_algo_la-pcre_private.o Binary files differnew file mode 100755 index 000000000..6433b4002 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-pcre_private.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-scistrtostr.o b/modules/string/src/c/.libs/libscistring_algo_la-scistrtostr.o Binary files differnew file mode 100755 index 000000000..292971092 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-scistrtostr.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-setScilabCharactersCodes.o b/modules/string/src/c/.libs/libscistring_algo_la-setScilabCharactersCodes.o Binary files differnew file mode 100755 index 000000000..88efd2f9a --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-setScilabCharactersCodes.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-stringToComplex.o b/modules/string/src/c/.libs/libscistring_algo_la-stringToComplex.o Binary files differnew file mode 100755 index 000000000..2f3f24bae --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-stringToComplex.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-stringToDouble.o b/modules/string/src/c/.libs/libscistring_algo_la-stringToDouble.o Binary files differnew file mode 100755 index 000000000..764f80e7a --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-stringToDouble.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-stringsCompare.o b/modules/string/src/c/.libs/libscistring_algo_la-stringsCompare.o Binary files differnew file mode 100755 index 000000000..29f841e64 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-stringsCompare.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-stringsstrrchr.o b/modules/string/src/c/.libs/libscistring_algo_la-stringsstrrchr.o Binary files differnew file mode 100755 index 000000000..6c9f0507c --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-stringsstrrchr.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-stringsstrrev.o b/modules/string/src/c/.libs/libscistring_algo_la-stringsstrrev.o Binary files differnew file mode 100755 index 000000000..bc4a0203c --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-stringsstrrev.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-stripblanks.o b/modules/string/src/c/.libs/libscistring_algo_la-stripblanks.o Binary files differnew file mode 100755 index 000000000..57d9524fc --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-stripblanks.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-stristr.o b/modules/string/src/c/.libs/libscistring_algo_la-stristr.o Binary files differnew file mode 100755 index 000000000..e6fb3eb49 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-stristr.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-strsplit.o b/modules/string/src/c/.libs/libscistring_algo_la-strsplit.o Binary files differnew file mode 100755 index 000000000..904966f5e --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-strsplit.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-strsubst.o b/modules/string/src/c/.libs/libscistring_algo_la-strsubst.o Binary files differnew file mode 100755 index 000000000..aff741b48 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-strsubst.o diff --git a/modules/string/src/c/.libs/libscistring_algo_la-tokens.o b/modules/string/src/c/.libs/libscistring_algo_la-tokens.o Binary files differnew file mode 100755 index 000000000..42a2b9478 --- /dev/null +++ b/modules/string/src/c/.libs/libscistring_algo_la-tokens.o diff --git a/modules/string/src/c/CreateEmptystr.c b/modules/string/src/c/CreateEmptystr.c new file mode 100755 index 000000000..f90814e06 --- /dev/null +++ b/modules/string/src/c/CreateEmptystr.c @@ -0,0 +1,49 @@ +/*--------------------------------------------------------------------------*/ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "gw_string.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "Scierror.h" +#include "CreateEmptystr.h" +#include "localization.h" +#include "freeArrayOfString.h" +/*--------------------------------------------------------------------------*/ +char ** CreateEmptystr(int m1, int n1) +{ + int m1n1 = m1 * n1; + char **OutputStrings = (char**)MALLOC(sizeof(char*) * (m1n1 + 1)); + + if (OutputStrings) + { + int i = 0; + for (i = 0; i < m1n1; i++) /*m1 is the number of row ; n1 is the number of col*/ + { + OutputStrings[i] = (char*)MALLOC(sizeof(char) * (strlen(EMPTY_STRING) + 1)); + if (OutputStrings[i]) + { + strcpy(OutputStrings[i], EMPTY_STRING); + } + else + { + freeArrayOfString(OutputStrings, m1n1); + return NULL; + } + } + } + return OutputStrings; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/CreateEmptystr.h b/modules/string/src/c/CreateEmptystr.h new file mode 100755 index 000000000..9c5292d02 --- /dev/null +++ b/modules/string/src/c/CreateEmptystr.h @@ -0,0 +1,31 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __CREATEEMPTYSTR_H__ +#define __CREATEEMPTYSTR_H__ + +#define EMPTY_STRING "" + +/** +* CreateEmptystr +* Create Empty strings matrix +* @param[in] dimension row +* @param[in] dimension col +* @return an empty string +*/ +char **CreateEmptystr(int m1, int n1); + +#endif /* __CREATEEMPTYSTR_H__ */ +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/src/c/DllMainString.c b/modules/string/src/c/DllMainString.c new file mode 100755 index 000000000..46090ab69 --- /dev/null +++ b/modules/string/src/c/DllMainString.c @@ -0,0 +1,36 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <windows.h> +/*--------------------------------------------------------------------------*/ +#pragma comment(lib,"../../../../bin/pcre.lib") +#pragma comment(lib,"../../../../bin/pcreposix.lib") +#pragma comment(lib,"../../../../bin/libintl.lib") +/*--------------------------------------------------------------------------*/ +int WINAPI DllMain (HINSTANCE hInstance , DWORD reason, PVOID pvReserved) +{ + switch (reason) + { + case DLL_PROCESS_ATTACH: + break; + case DLL_PROCESS_DETACH: + break; + case DLL_THREAD_ATTACH: + break; + case DLL_THREAD_DETACH: + break; + } + return 1; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/InitializeString.c b/modules/string/src/c/InitializeString.c new file mode 100755 index 000000000..1297a8830 --- /dev/null +++ b/modules/string/src/c/InitializeString.c @@ -0,0 +1,23 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include "InitializeString.h" +#include "setScilabCharactersCodes.h" +/*--------------------------------------------------------------------------*/ +BOOL InitializeString(void) +{ + setScilabCharactersCodes(); + return TRUE; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/Scilab_windows_Import.def b/modules/string/src/c/Scilab_windows_Import.def new file mode 100755 index 000000000..1d2c781cf --- /dev/null +++ b/modules/string/src/c/Scilab_windows_Import.def @@ -0,0 +1,8 @@ +LIBRARY scilab_windows.dll + + +EXPORTS +; --------------------------------------- +; scilab_windows +; --------------------------------------- + strdup_windows diff --git a/modules/string/src/c/StringConvert.c b/modules/string/src/c/StringConvert.c new file mode 100755 index 000000000..d9ac379ce --- /dev/null +++ b/modules/string/src/c/StringConvert.c @@ -0,0 +1,61 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 +* +* 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 +* +*/ +/*--------------------------------------------------------------------------*/ +#include "StringConvert.h" +/*--------------------------------------------------------------------------*/ +int StringConvert(char *str) +/* changes `\``n` --> `\n` idem for \t and \r */ +{ + char *str1; + int count = 0; + str1 = str; + + while ( *str != 0) + { + if ( *str == '\\' ) + { + switch ( *(str + 1)) + { + case 'n' : + *str1 = '\n' ; + str1++; + str += 2; + count++; + break; + case 't' : + *str1 = '\t' ; + str1++; + str += 2; + break; + case 'r' : + *str1 = '\r' ; + str1++; + str += 2; + break; + default : + *str1 = *str; + str1++; + str++; + break; + } + } + else + { + *str1 = *str; + str1++; + str++; + } + } + *str1 = '\0'; + return count; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/code2str.c b/modules/string/src/c/code2str.c new file mode 100755 index 000000000..a08c9bf9e --- /dev/null +++ b/modules/string/src/c/code2str.c @@ -0,0 +1,43 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * + * 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 + * + */ + +/* desc : str=code2str(c) + Returns character string associated with Scilab int codes. + str is such that c(i) is the Scilab int code of part(str,i))*/ +/*------------------------------------------------------------------------*/ +#include <stdlib.h> +#include <string.h> +#include "code2str.h" +#include "getfastcode.h" +/*--------------------------------------------------------------------------*/ +void code2str(char **Output_Matrix, int *Input_Matrix, int Dim_Input_Matrix) +{ + int x = 0; + /* To look up in the table */ + for ( x = 0; x < Dim_Input_Matrix; x++) + { + Output_Matrix[0][x] = convertScilabCodeToAsciiCode(Input_Matrix[x]); + } +} +/*--------------------------------------------------------------------------*/ +void str2code(int *Output_Matrix, const char * const * Input_String) +{ + int i = 0; + int nbOutput_Matrix = (int)strlen(Input_String[0]); + + for (i = 0; i < nbOutput_Matrix ; i++) + { + Output_Matrix[i] = convertAsciiCodeToScilabCode(Input_String[0][i]); + } +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/complex_array.c b/modules/string/src/c/complex_array.c new file mode 100755 index 000000000..3e9872f16 --- /dev/null +++ b/modules/string/src/c/complex_array.c @@ -0,0 +1,159 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010-2011 - DIGITEO - Allan CORNET + * + * 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 + * + */ +#include <string.h> +#include "complex_array.h" +#include "MALLOC.h" +// ============================================================================= +complexArray *createComplexArrayEmpty(int nbSize) +{ + complexArray *pComplexArray = NULL; + pComplexArray = (complexArray *) MALLOC(sizeof(complexArray)); + if (pComplexArray) + { + pComplexArray->realPart = (double *)MALLOC(sizeof(double) * nbSize); + if (pComplexArray->realPart == NULL) + { + FREE(pComplexArray); + return NULL; + } + + pComplexArray->imagPart = (double *)MALLOC(sizeof(double) * nbSize); + if (pComplexArray->imagPart == NULL) + { + FREE(pComplexArray->realPart); + pComplexArray->realPart = NULL; + FREE(pComplexArray); + return NULL; + } + + memset(pComplexArray->realPart, 0, sizeof(double) * nbSize); + memset(pComplexArray->imagPart, 0, sizeof(double) * nbSize); + pComplexArray->isComplex = 1; + pComplexArray->nbElements = nbSize; + } + return pComplexArray; +} +// ============================================================================= +complexArray *createComplexArray(const double *realpart, const double *imagpart, int nbSize) +{ + complexArray *pComplexArray = NULL; + + if (realpart == NULL) + { + return pComplexArray; + } + + if (nbSize <= 0) + { + return pComplexArray; + } + + pComplexArray = (complexArray *) MALLOC(sizeof(complexArray)); + if (pComplexArray) + { + if (imagpart == NULL) + { + pComplexArray->isComplex = 0; + } + else + { + int i = 0; + pComplexArray->isComplex = 0; + for (i = 0; i < nbSize; i++) + { + if (imagpart[i] != 0) + { + pComplexArray->isComplex = 1; + break; + } + } + } + + pComplexArray->realPart = (double *)MALLOC(sizeof(double) * nbSize); + if (pComplexArray->realPart) + { + memcpy(pComplexArray->realPart, realpart, nbSize); + pComplexArray->nbElements = nbSize; + } + if (pComplexArray->isComplex) + { + pComplexArray->imagPart = (double *)MALLOC(sizeof(double) * nbSize); + if (pComplexArray->imagPart) + { + memcpy(pComplexArray->imagPart, imagpart, nbSize); + } + } + else + { + pComplexArray->imagPart = NULL; + } + } + return pComplexArray; +} +// ============================================================================= +void freeComplexArray(complexArray *pComplexArray) +{ + if (pComplexArray) + { + if (pComplexArray->realPart) + { + FREE(pComplexArray->realPart); + pComplexArray->realPart = NULL; + } + + if (pComplexArray->imagPart) + { + FREE(pComplexArray->imagPart); + pComplexArray->imagPart = NULL; + } + pComplexArray->isComplex = 0; + pComplexArray->nbElements = 0; + + FREE(pComplexArray); + pComplexArray = NULL; + } +} +// ============================================================================= +int cleanImagPartComplexArray(complexArray *pComplexArray) +{ + if (pComplexArray) + { + if (pComplexArray->imagPart) + { + int i = 0; + int isComplex = 0; + for (i = 0; i < pComplexArray->nbElements; i++) + { + if (pComplexArray->imagPart[i] != 0) + { + isComplex = 1; + break; + } + } + + if (isComplex) + { + pComplexArray->isComplex = 1; + } + else + { + pComplexArray->isComplex = 0; + } + } + else + { + return 1; + } + } + return 0; +} +// ============================================================================= diff --git a/modules/string/src/c/config.h b/modules/string/src/c/config.h new file mode 100755 index 000000000..3a12b8064 --- /dev/null +++ b/modules/string/src/c/config.h @@ -0,0 +1,44 @@ +/* config.h for CMake builds */ + +/* #undef HAVE_DIRENT_H */ +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TYPES_H 1 +/* #undef HAVE_UNISTD_H */ +#define HAVE_WINDOWS_H 1 + +/* #undef HAVE_TYPE_TRAITS_H */ +/* #undef HAVE_BITS_TYPE_TRAITS_H */ + +/* #undef HAVE_BCOPY */ +#define HAVE_MEMMOVE 1 +#define HAVE_STRERROR 1 +/* #undef HAVE_STRTOLL */ +/* #undef HAVE_STRTOQ */ +#define HAVE__STRTOI64 1 + +/* #undef PCRE_STATIC */ + +#define SUPPORT_UTF8 1 +/* #undef SUPPORT_UCP */ +/* #undef EBCDIC */ +/* #undef BSR_ANYCRLF */ +/* #undef NO_RECURSE */ + +#define HAVE_LONG_LONG 1 +#define HAVE_UNSIGNED_LONG_LONG 1 + +/* #undef SUPPORT_LIBBZ2 */ +/* #undef SUPPORT_LIBZ */ +/* #undef SUPPORT_LIBREADLINE */ + +#define NEWLINE 10 +#define POSIX_MALLOC_THRESHOLD 10 +#define LINK_SIZE 2 +#define MATCH_LIMIT 10000000 +#define MATCH_LIMIT_RECURSION MATCH_LIMIT + + +#define MAX_NAME_SIZE 32 +#define MAX_NAME_COUNT 10000 + +/* end config.h for CMake builds */ diff --git a/modules/string/src/c/convstr.c b/modules/string/src/c/convstr.c new file mode 100755 index 000000000..5f1abf27d --- /dev/null +++ b/modules/string/src/c/convstr.c @@ -0,0 +1,47 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <wchar.h> +#include <wctype.h> +#include "gw_string.h" +#include "convstr.h" +/*--------------------------------------------------------------------------*/ +void convstr(wchar_t **Input_Matrix, wchar_t **Output_Matrix, char typ, int mn) +{ + int x = 0; + for (x = 0 ; x < mn; x++) + { + int y = 0; + size_t len_Input_Matrix = wcslen(Input_Matrix[x]); + for (y = 0; y < len_Input_Matrix; y++) + { + /*To traverse every string in the string matrix */ + if ( (typ == UPPER) || (typ == UPPER_B) ) + { + /*converts the matrix of strings str-matrix into upper case */ + Output_Matrix[x][y] = (wchar_t) towupper(Input_Matrix[x][y]); + } + else if ( (typ == LOW) || (typ == LOW_B) ) + { + /*converts the matrix of strings str-matrix into lower case */ + Output_Matrix[x][y] = (wchar_t) towlower(Input_Matrix[x][y]); + } + } + Output_Matrix[x][y] = 0; + } +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/convstr.h b/modules/string/src/c/convstr.h new file mode 100755 index 000000000..5fec50410 --- /dev/null +++ b/modules/string/src/c/convstr.h @@ -0,0 +1,36 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __CONVSTR_H__ +#define __CONVSTR_H__ + +#include "dynlib_string.h" + +#define LOW 'l' +#define LOW_B 'L' +#define UPPER 'u' +#define UPPER_B 'U' + +/** +* convstr case conversion +* param[in] Input_Matrix Input string matrix +* param[out] Output_Matrix +* param[in] typ 'l' or 'u' means low or upper +* param[in] Number_Input the number of input string matrix +*/ +STRING_IMPEXP void convstr(wchar_t **Input_Matrix, wchar_t **Output_Matrix, char typ, int Number_Input); + +#endif /* __CONVSTR_H__ */ +/*--------------------------------------------------------------------------*/ + diff --git a/modules/string/src/c/core_Import.def b/modules/string/src/c/core_Import.def new file mode 100755 index 000000000..230fce1db --- /dev/null +++ b/modules/string/src/c/core_Import.def @@ -0,0 +1,27 @@ +LIBRARY core.dll + + +EXPORTS +;core +cha1_ +callFunctionFromGateway +freeArrayOfString +freeArrayOfWideString +gettype_ +com_ +vstk_ +checklhs_ +checkrhs_ +iop_ +stack_ +putlhsvar_ +intersci_ +getWarningMode +createvar_ +getrhsvar_ +vartype_ +createvarfromptr_ +overload_ +MyHeapAlloc +MyHeapFree +MyHeapRealloc diff --git a/modules/string/src/c/cvstr.c b/modules/string/src/c/cvstr.c new file mode 100755 index 000000000..a9c25a2da --- /dev/null +++ b/modules/string/src/c/cvstr.c @@ -0,0 +1,107 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET , Cong WU + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include "cvstr.h" +#include "core_math.h" +#include "getfastcode.h" +/*--------------------------------------------------------------------------*/ +/* Table of constant values */ +static int cx1 = 1; +static int c_n1 = -1; +/*--------------------------------------------------------------------------*/ +int C2F(cvstr)(int * n, int * line, char * str, int * job, unsigned long str_len) +{ + if (*job == 0) + { + C2F(asciitocode)(n, line, str, &cx1, str_len); + } + else + { + C2F(codetoascii)(n, line, str, str_len); + } + return 0; +} +/*--------------------------------------------------------------------------*/ +int C2F(cvstr1)(int *n, int * line, char * str, int * job, unsigned long str_len) +{ + if (*job == 0) + { + C2F(asciitocode)(n, line, str, &c_n1, str_len); + } + else + { + C2F(codetoascii)(n, line, str, str_len); + } + return 0; +} +/*--------------------------------------------------------------------------*/ +int C2F(codetoascii)(int *n, int * line, char * str, unsigned long str_len) +{ + int j = 0; + int nn = 0; + + /* check *n value */ + if (*n >= 0) + { + nn = *n; + } + + /* conversion code -> ascii */ + while (nn--) + { + str[j] = convertScilabCodeToAsciiCode(line[j]); + j++; + } + return 0; +} +/*--------------------------------------------------------------------------*/ +int C2F(asciitocode)(int * n, int * line, char * str, int * flagx, unsigned long str_len) +{ + int nn = 0; + + if (*flagx == 1) + { + int j = 0; + nn = *n; + while (nn--) + { + unsigned char current_char = str[j]; + line[j] = convertAsciiCodeToScilabCode(current_char); + j++; + } + } + else + { + int l = 0; + + /* check *n value */ + if ( (int)strlen(str) > *n ) + { + l = (int)strlen(str); + } + else + { + l = *n; + } + + for (nn = l - 1 ; nn >= 0; --nn) + { + unsigned char current_char = str[nn]; + line[nn] = convertAsciiCodeToScilabCode(current_char); + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/functions_Import.def b/modules/string/src/c/functions_Import.def new file mode 100755 index 000000000..b39dc2543 --- /dev/null +++ b/modules/string/src/c/functions_Import.def @@ -0,0 +1,9 @@ +LIBRARY functions.dll + + +EXPORTS +; --------------------------------------- +; functions +; --------------------------------------- +isScilabFunction + diff --git a/modules/string/src/c/getfastcode.c b/modules/string/src/c/getfastcode.c new file mode 100755 index 000000000..2b4ea0d8b --- /dev/null +++ b/modules/string/src/c/getfastcode.c @@ -0,0 +1,102 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET , Cong WU + * Copyright (C) Bruno PINON + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include "getfastcode.h" +#include "stack-def.h" +#include "core_math.h" +/*--------------------------------------------------------------------------*/ +/** +* Scilab not uses ASCII code in internal kernel +* TO DO : Remove this with a new kernel +* To understand Scilab coding style : +* scilab code --> ascii code +* 0 --> 0 +* 9 --> 9 +* 10 --> a +* 35 --> z +* -10 --> A +* -35 --> Z +*/ +#define NUMBER_INTERNAL_CHARACTERS 128 +static int INTERNAL_CHARACTERS_TABLE_CODES_FOR_SCILAB[NUMBER_INTERNAL_CHARACTERS] = +{ + 100, 101, 102, 103, 104, 105, 106, 107, 108, -40, + 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, + 130, 131, 40, 38, -53, 37, 39, 56, 58, 53, + 41, 42, 47, 45, 52, 46, 51, 48, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9, 44, 43, + 59, 50, 60, -38, -61, -10, -11, -12, -13, -14, + -15, -16, -17, -18, -19, -20, -21, -22, -23, -24, + -25, -26, -27, -28, -29, -30, -31, -32, -33, -34, + -35, 54, 49, 55, 62, 36, -59, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, -54, 57, -55, 61, 227 +}; +/*--------------------------------------------------------------------------*/ +int C2F(getfastcode)(unsigned char *c, unsigned long c_len) +{ + return convertAsciiCodeToScilabCode(c[0]); +} +/*--------------------------------------------------------------------------*/ +int convertAsciiCodeToScilabCode(unsigned char scilab_char) +{ + int k = (int)scilab_char ; + if (k < NUMBER_INTERNAL_CHARACTERS) + { + return INTERNAL_CHARACTERS_TABLE_CODES_FOR_SCILAB[k]; + } + else + { + return k + 100; + } +} +/*--------------------------------------------------------------------------*/ +unsigned char convertScilabCodeToAsciiCode(int scilab_code) +{ +#define eol 99 +#define EXCLAMATION_CHAR '!' + + if (scilab_code == eol) + { + return (unsigned char)EXCLAMATION_CHAR; + } + else + { + if (Abs(scilab_code) > csiz) + { + if (scilab_code > eol) + { + return (unsigned char)(scilab_code - (eol + 1)); + } + else + { + return EXCLAMATION_CHAR; + } + } + else + { + if (scilab_code < 0) + { + return (unsigned char)C2F(cha1).alfb[Abs(scilab_code)]; + } + else + { + return(unsigned char) C2F(cha1).alfa[scilab_code]; + } + } + } +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/isalphanum.c b/modules/string/src/c/isalphanum.c new file mode 100755 index 000000000..e6ac78fcc --- /dev/null +++ b/modules/string/src/c/isalphanum.c @@ -0,0 +1,53 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - Allan CORNET - 2009 + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include <wchar.h> +#include <wctype.h> +#include "isalphanum.h" +#include "MALLOC.h" +/*--------------------------------------------------------------------------*/ +BOOL *isalphanumW(wchar_t *input_string, int *returnedSize) +{ + BOOL *returnedValues = NULL; + *returnedSize = 0; + + if (input_string) + { + int i = 0; + int length_input_string = (int)wcslen(input_string); + *returnedSize = length_input_string; + + if (length_input_string > 0) + { + returnedValues = (BOOL*)MALLOC(sizeof(BOOL) * length_input_string); + if (returnedValues) + { + for (i = 0; i < length_input_string; i++) + { + if ( iswalnum(input_string[i]) ) + { + returnedValues[i] = TRUE; + } + else + { + returnedValues[i] = FALSE; + } + } + } + } + } + return returnedValues; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/isalphanum.h b/modules/string/src/c/isalphanum.h new file mode 100755 index 000000000..dc48f2e0c --- /dev/null +++ b/modules/string/src/c/isalphanum.h @@ -0,0 +1,30 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - Allan CORNET - 2009 + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __ISALPHANUM_H__ +#define __ISALPHANUM_H__ + +#include <wchar.h> +#include "BOOL.h" + +/** +* array elements that are alphabetic letters or digits +* @param[in] a string +* @return BOOL array +*/ +BOOL *isalphanumW(wchar_t *input_string, int *returnedSize); + +#endif /* __ISALPHANUM_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/isdigit.c b/modules/string/src/c/isdigit.c new file mode 100755 index 000000000..cb8be7387 --- /dev/null +++ b/modules/string/src/c/isdigit.c @@ -0,0 +1,53 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include <wchar.h> +#include <wctype.h> +#include "isletter.h" +#include "MALLOC.h" +#include "isdigit.h" +/*--------------------------------------------------------------------------*/ +BOOL *IsDigitW(wchar_t *input_string, int *returnedSizeArray) +{ + BOOL *returnedValues = NULL; + *returnedSizeArray = 0; + + if (input_string) + { + int i = 0; + int length_input_string = (int)wcslen(input_string); + *returnedSizeArray = length_input_string; + + if (length_input_string > 0) + { + returnedValues = (BOOL*)MALLOC(sizeof(BOOL) * length_input_string); + if (returnedValues) + { + for (i = 0; i < length_input_string; i++) + { + if ( iswdigit(input_string[i]) ) + { + returnedValues[i] = TRUE; + } + else + { + returnedValues[i] = FALSE; + } + } + } + } + } + return returnedValues; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/isdigit.h b/modules/string/src/c/isdigit.h new file mode 100755 index 000000000..dc5d9d5c0 --- /dev/null +++ b/modules/string/src/c/isdigit.h @@ -0,0 +1,33 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - Allan CORNET - 2009 + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __ISDIGIT_H__ +#define __ISDIGIT_H__ + +#include <wchar.h> + +#include "BOOL.h" + +/** +* array elements that are digit between 0 and 9 +* @param[in] a wide string +* @param[out] size of returned array +* @return BOOL array +*/ + +BOOL *IsDigitW(wchar_t *input_string, int *sizeReturnedArray); + +#endif /* __ISDIGIT_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/isletter.c b/modules/string/src/c/isletter.c new file mode 100755 index 000000000..413aeb80a --- /dev/null +++ b/modules/string/src/c/isletter.c @@ -0,0 +1,84 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include <ctype.h> +#include <wchar.h> +#include <wctype.h> /* iswalpha */ +#include "isletter.h" +#include "MALLOC.h" + +/*--------------------------------------------------------------------------*/ +BOOL *isletter(char *input_string, int *sizeArray) +{ + BOOL *returnedValues = NULL; + if (input_string) + { + int i = 0; + int length_input_string = (int)strlen(input_string); + *sizeArray = length_input_string; + + if (length_input_string > 0) + { + returnedValues = (BOOL*)MALLOC(sizeof(BOOL) * length_input_string); + if (returnedValues) + { + for (i = 0; i < length_input_string; i++) + { + if ( isalpha(input_string[i]) ) + { + returnedValues[i] = TRUE; + } + else + { + returnedValues[i] = FALSE; + } + } + } + } + } + return returnedValues; +} +/*--------------------------------------------------------------------------*/ +BOOL *isletterW(wchar_t *wcInput_string, int *sizeArray) +{ + BOOL *returnedValues = NULL; + if (wcInput_string) + { + int i = 0; + int length_input_string = (int)wcslen(wcInput_string); + + *sizeArray = length_input_string; + + if (length_input_string > 0) + { + returnedValues = (BOOL*)MALLOC(sizeof(BOOL) * length_input_string); + if (returnedValues) + { + for (i = 0; i < length_input_string; i++) + { + if ( iswalpha(wcInput_string[i]) ) + { + returnedValues[i] = TRUE; + } + else + { + returnedValues[i] = FALSE; + } + } + } + } + } + return returnedValues; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/isletter.h b/modules/string/src/c/isletter.h new file mode 100755 index 000000000..e5828fd57 --- /dev/null +++ b/modules/string/src/c/isletter.h @@ -0,0 +1,37 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - 2009 - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __ISLETTER_H__ +#define __ISLETTER_H__ + +#include <wchar.h> +#include "BOOL.h" + +/** +* array elements that are alphabetic letters +* @param[in] a string +* @return BOOL array +*/ +BOOL *isletter(char *input_string, int *sizeArray); + +/** +* array elements that are alphabetic letters +* @param[in] a string +* @return BOOL array +*/ +BOOL *isletterW(wchar_t *wcInput_string, int *sizeArray); + +#endif /* __ISLETTER_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/isnum.c b/modules/string/src/c/isnum.c new file mode 100755 index 000000000..1513010b2 --- /dev/null +++ b/modules/string/src/c/isnum.c @@ -0,0 +1,46 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010-2011 - DIGITEO - Allan CORNET + * + * 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 + * + */ +#include "isnum.h" +#include "stringToComplex.h" +#include "MALLOC.h" +// ============================================================================= +BOOL isNum(const char *pStr) +{ + if (pStr) + { + stringToComplexError ierr = STRINGTOCOMPLEX_NO_ERROR; + stringToComplex(pStr, ".", FALSE, &ierr); + return (BOOL)(ierr == STRINGTOCOMPLEX_NO_ERROR); + } + return FALSE; +} +// ============================================================================= +BOOL *isNumMatrix(const char **pStrs, int nbRows, int nbCols) +{ + BOOL *pResults = NULL; + if (pStrs) + { + pResults = (BOOL*)MALLOC(sizeof(BOOL) * (nbCols * nbRows)); + if (pResults) + { + int i = 0; + for (i = 0; i < nbRows * nbCols; i++) + { + pResults[i] = isNum(pStrs[i]); + } + } + } + return pResults; +} +// ============================================================================= + + diff --git a/modules/string/src/c/isnum.h b/modules/string/src/c/isnum.h new file mode 100755 index 000000000..e72f46031 --- /dev/null +++ b/modules/string/src/c/isnum.h @@ -0,0 +1,31 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010-2011 - DIGITEO - Allan CORNET + * + * 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 + * + */ +#ifndef __CSV_ISNUM_H__ +#define __CSV_ISNUM_H__ + +#include "BOOL.h" + +#ifdef __cplusplus +extern "C" { +#endif + + BOOL isNum(const char *pStr); + + BOOL *isNumMatrix(const char **pStrs, int nbRows, int nbCols); + +#ifdef __cplusplus +} +#endif + + +#endif /* __CSV_ISNUM_H__ */ +// ============================================================================= diff --git a/modules/string/src/c/libscistring_algo_la-InitializeString.lo b/modules/string/src/c/libscistring_algo_la-InitializeString.lo new file mode 100755 index 000000000..fa0be6522 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-InitializeString.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-InitializeString.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-InitializeString.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-StringConvert.lo b/modules/string/src/c/libscistring_algo_la-StringConvert.lo new file mode 100755 index 000000000..2591060df --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-StringConvert.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-StringConvert.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-StringConvert.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-code2str.lo b/modules/string/src/c/libscistring_algo_la-code2str.lo new file mode 100755 index 000000000..b1cdba60b --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-code2str.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-code2str.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-code2str.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-complex_array.lo b/modules/string/src/c/libscistring_algo_la-complex_array.lo new file mode 100755 index 000000000..7c5de2b95 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-complex_array.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-complex_array.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-complex_array.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-convstr.lo b/modules/string/src/c/libscistring_algo_la-convstr.lo new file mode 100755 index 000000000..fd8d649c2 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-convstr.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-convstr.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-convstr.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-cvstr.lo b/modules/string/src/c/libscistring_algo_la-cvstr.lo new file mode 100755 index 000000000..d81e9e488 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-cvstr.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-cvstr.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-cvstr.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-getfastcode.lo b/modules/string/src/c/libscistring_algo_la-getfastcode.lo new file mode 100755 index 000000000..86eb39be6 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-getfastcode.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-getfastcode.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-getfastcode.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-isalphanum.lo b/modules/string/src/c/libscistring_algo_la-isalphanum.lo new file mode 100755 index 000000000..a92fc0672 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-isalphanum.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-isalphanum.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-isalphanum.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-isdigit.lo b/modules/string/src/c/libscistring_algo_la-isdigit.lo new file mode 100755 index 000000000..73a2852f9 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-isdigit.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-isdigit.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-isdigit.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-isletter.lo b/modules/string/src/c/libscistring_algo_la-isletter.lo new file mode 100755 index 000000000..9acf675b5 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-isletter.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-isletter.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-isletter.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-isnum.lo b/modules/string/src/c/libscistring_algo_la-isnum.lo new file mode 100755 index 000000000..9b26358e9 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-isnum.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-isnum.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-isnum.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-men_Sutils.lo b/modules/string/src/c/libscistring_algo_la-men_Sutils.lo new file mode 100755 index 000000000..d8787df60 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-men_Sutils.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-men_Sutils.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-men_Sutils.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-partfunction.lo b/modules/string/src/c/libscistring_algo_la-partfunction.lo new file mode 100755 index 000000000..67a59f918 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-partfunction.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-partfunction.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-partfunction.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-pcre_error.lo b/modules/string/src/c/libscistring_algo_la-pcre_error.lo new file mode 100755 index 000000000..32814de72 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-pcre_error.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-pcre_error.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-pcre_error.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-pcre_private.lo b/modules/string/src/c/libscistring_algo_la-pcre_private.lo new file mode 100755 index 000000000..d5b9db21a --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-pcre_private.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-pcre_private.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-pcre_private.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-scistrtostr.lo b/modules/string/src/c/libscistring_algo_la-scistrtostr.lo new file mode 100755 index 000000000..0f710bb3b --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-scistrtostr.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-scistrtostr.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-scistrtostr.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-setScilabCharactersCodes.lo b/modules/string/src/c/libscistring_algo_la-setScilabCharactersCodes.lo new file mode 100755 index 000000000..4865f4fb0 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-setScilabCharactersCodes.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-setScilabCharactersCodes.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-setScilabCharactersCodes.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-stringToComplex.lo b/modules/string/src/c/libscistring_algo_la-stringToComplex.lo new file mode 100755 index 000000000..68f056d97 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-stringToComplex.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-stringToComplex.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-stringToComplex.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-stringToDouble.lo b/modules/string/src/c/libscistring_algo_la-stringToDouble.lo new file mode 100755 index 000000000..ca1179aaf --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-stringToDouble.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-stringToDouble.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-stringToDouble.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-stringsCompare.lo b/modules/string/src/c/libscistring_algo_la-stringsCompare.lo new file mode 100755 index 000000000..28a7e3a9d --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-stringsCompare.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-stringsCompare.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-stringsCompare.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-stringsstrrchr.lo b/modules/string/src/c/libscistring_algo_la-stringsstrrchr.lo new file mode 100755 index 000000000..87602f265 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-stringsstrrchr.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-stringsstrrchr.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-stringsstrrchr.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-stringsstrrev.lo b/modules/string/src/c/libscistring_algo_la-stringsstrrev.lo new file mode 100755 index 000000000..e16a27b95 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-stringsstrrev.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-stringsstrrev.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-stringsstrrev.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-stripblanks.lo b/modules/string/src/c/libscistring_algo_la-stripblanks.lo new file mode 100755 index 000000000..85bb30620 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-stripblanks.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-stripblanks.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-stripblanks.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-stristr.lo b/modules/string/src/c/libscistring_algo_la-stristr.lo new file mode 100755 index 000000000..7f666910e --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-stristr.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-stristr.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-stristr.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-strsplit.lo b/modules/string/src/c/libscistring_algo_la-strsplit.lo new file mode 100755 index 000000000..14d848e22 --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-strsplit.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-strsplit.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-strsplit.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-strsubst.lo b/modules/string/src/c/libscistring_algo_la-strsubst.lo new file mode 100755 index 000000000..82214f4bd --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-strsubst.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-strsubst.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-strsubst.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/libscistring_algo_la-tokens.lo b/modules/string/src/c/libscistring_algo_la-tokens.lo new file mode 100755 index 000000000..97f5cd71e --- /dev/null +++ b/modules/string/src/c/libscistring_algo_la-tokens.lo @@ -0,0 +1,12 @@ +# src/c/libscistring_algo_la-tokens.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-tokens.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/c/linpack_f_Import.def b/modules/string/src/c/linpack_f_Import.def new file mode 100755 index 000000000..d056196c3 --- /dev/null +++ b/modules/string/src/c/linpack_f_Import.def @@ -0,0 +1,5 @@ +LIBRARY linpack_f.dll + + +EXPORTS +icopy_ diff --git a/modules/string/src/c/localization_Import.def b/modules/string/src/c/localization_Import.def new file mode 100755 index 000000000..15d9312af --- /dev/null +++ b/modules/string/src/c/localization_Import.def @@ -0,0 +1,6 @@ +LIBRARY scilocalization.dll + + +EXPORTS +wide_string_to_UTF8 +to_wide_string diff --git a/modules/string/src/c/men_Sutils.c b/modules/string/src/c/men_Sutils.c new file mode 100755 index 000000000..79185f801 --- /dev/null +++ b/modules/string/src/c/men_Sutils.c @@ -0,0 +1,129 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <stdlib.h> +#include <string.h> +#include "men_Sutils.h" +#include "getfastcode.h" +#include "MALLOC.h" /* MALLOC */ +#include "freeArrayOfString.h" +/*--------------------------------------------------------------------------*/ +void ScilabStr2C(int *n, int *Scistring, char **strh, int *ierr) +{ + int j = 0; + + *strh = (char *)MALLOC((*n + 1) * sizeof(char)); + if ((*strh) == NULL) + { + *ierr = 1; + return; + } + + for (j = 0; j < *n; ++j) + { + (*strh)[j] = convertScilabCodeToAsciiCode(Scistring[j]); + } + (*strh)[*n] = '\0'; +} + +/*--------------------------------------------------------------------------*/ +void ScilabMStr2CM(int *Scistring, int *nstring, int *ptrstrings, char ***strh, int *ierr) +{ + char **strings = NULL, *p = NULL; + int li = 0, ni = 0, *SciS = NULL, i = 0; + + strings = (char **)MALLOC(((*nstring) + 1) * sizeof(char *)); + + if (strings == NULL) + { + *ierr = 1; + return; + } + + li = 1; + SciS = Scistring; + for (i = 1; i < *nstring + 1; i++) + { + ni = ptrstrings[i] - li; + li = ptrstrings[i]; + /* p is allocated here */ + ScilabStr2C(&ni, SciS, &p, ierr); + if (*ierr == 1) + { + if (p) + { + FREE(p); + } + + freeArrayOfString(strings, i - 1); + return; + } + strings[i - 1] = p; + SciS += ni; + } + strings[*nstring] = NULL; + *strh = strings; +} + +/*--------------------------------------------------------------------------*/ +void ScilabMStr2C(int *desc, int *nd, int *ptrdesc, char **strh, int *ierr) +{ + int ln = 0, i = 0; + int *SciS = NULL; + char *description = NULL; + +#ifdef _MSC_VER + ln = ptrdesc[*nd] + 2 * (*nd) + 1; +#else + ln = ptrdesc[*nd] + *nd + 1; +#endif + + description = (char *)MALLOC(ln * sizeof(char)); + + if (description == NULL) + { + *ierr = 1; + return; + } + + SciS = desc; + + for (i = 1; i < *nd + 1; i++) + { + int j = 0; + int ni = 0; + int li = 1; + int di = 0; + char *p = NULL; + + p = &(description[di]); + ni = ptrdesc[i] - li; + + /* conversion code -> ascii */ + for (j = 0; j < ni; ++j) + { + p[j] = convertScilabCodeToAsciiCode(SciS[j]); + } + SciS += ni; +#ifdef _MSC_VER + p[ni] = '\r'; + ni++; +#endif + p[ni] = '\n'; + } + description[ln - 2] = '\0'; + *strh = description; +} + +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/partfunction.c b/modules/string/src/c/partfunction.c new file mode 100755 index 000000000..a585ebad9 --- /dev/null +++ b/modules/string/src/c/partfunction.c @@ -0,0 +1,72 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include "MALLOC.h" +#include "partfunction.h" +#include "freeArrayOfString.h" +#include "charEncoding.h" + +/*--------------------------------------------------------------------------*/ +#define BLANK_CHAR ' ' +/*--------------------------------------------------------------------------*/ +char **partfunction(char** stringInput, int m, int n, int *vectInput, int row) +{ + char **parts = NULL; + int mn = m * n; + + int i = 0; + + parts = (char**)MALLOC(sizeof(char*) * (mn)); + + for (i = 0; i < mn; i++) + { + int j = 0; + int lengthstringInput = 0; + wchar_t *wcInput = to_wide_string(stringInput[i]); + wchar_t *wcOutput = NULL; + + wcOutput = (wchar_t*)MALLOC(sizeof(wchar_t) * ((row) + 1)); + + if (wcInput) + { + lengthstringInput = (int)wcslen(wcInput); + for (j = 0; j < row; j++) + { + if ( vectInput[j] > lengthstringInput ) + { + wcOutput[j] = L' '; + } + else + { + wcOutput[j] = wcInput[vectInput[j] - 1]; + } + } + FREE(wcInput); + } + else // fill output with blank + { + for (j = 0; j < row; j++) + { + wcOutput[j] = L' '; + } + } + + wcOutput[j] = '\0'; + parts[i] = wide_string_to_UTF8(wcOutput); + FREE(wcOutput); + } + return parts; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/partfunction.h b/modules/string/src/c/partfunction.h new file mode 100755 index 000000000..7b5185080 --- /dev/null +++ b/modules/string/src/c/partfunction.h @@ -0,0 +1,28 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Allan CORNET + * + * 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 + * + */ +#ifndef __PARTFUNCTION_H__ +#define __PARTFUNCTION_H__ + + +/** +* part : extraction of strings +* @param[in] stringInput : matrix of strings +* @param[in] m : col of stringInput +* @param[in] n : row of stringInput +* @param[in] vectInput : row vector +* @param[in] row : row of vectInput +* @return matrix of strings (same size as stringInput) +*/ +char **partfunction(char** stringInput, int m, int n, int *vectInput, int row); + +#endif /* __PARTFUNCTION_H__ */ +/*---------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/pcre_error.c b/modules/string/src/c/pcre_error.c new file mode 100755 index 000000000..18daa5217 --- /dev/null +++ b/modules/string/src/c/pcre_error.c @@ -0,0 +1,65 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Sylvestre LEDRU + * + * 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 + * + */ + + +/** + * File: pcre_error.c + * desc : Display a human readable error message (PCRE error). + */ +#include "pcre_private.h" +#include "localization.h" +#include "Scierror.h" +void pcre_error(char *fname, int errorCode) +{ + switch (errorCode) + { + case NO_MATCH: + /*No match */ + break; + case NOT_ENOUGH_MEMORY_FOR_VECTOR: + Scierror(999, _("%s: No more memory.\n"), fname); + break; + case DELIMITER_NOT_ALPHANUMERIC: + Scierror(999, _("%s: Delimiter must not be alphameric.\n"), fname); + break; + case CAPTURING_SUBPATTERNS_ERROR: + Scierror(999, _("%s: Capturing subpatterns error.\n"), fname); + break; + case PARTIAL_MATCHING_NOT_SUPPORTED: + Scierror(999, _("%s: Partial matching not supported.\n"), fname); + break; + case CONTAINS_EXPLICIT_CR_OR_LF_MATCH: + Scierror(999, _("%s: Contains explicit CR or LF match.\n"), fname); + break; + case DUPLICATE_NAME_STATUS_CHANGES: + Scierror(999, _("%s: Duplicate name status changes.\n"), fname); + break; + case TOO_BIG_FOR_OFFSET_SIZE: + Scierror(999, _("%s: Returned count is too big for offset size.\n"), fname); + break; + case LIMIT_NOT_RELEVANT_FOR_DFA_MATCHING: + Scierror(999, _("%s: Match limit not relevant for DFA matching: ignored.\n"), fname); + break; + case CAN_NOT_COMPILE_PATTERN: + Scierror(999, _("%s: Can not compile pattern.\n"), fname); + break; + case MATCH_LIMIT: + Scierror(999, _("%s: Matched text exceeds buffer limit.\n"), fname); + break; + case UTF8_NOT_SUPPORTED: + Scierror(999, _("%s: Current PCRE library does not support UTF-8.\n"), fname); + break; + default: + Scierror(999, _("%s: Unknown error.\n"), fname); + break; + } +} diff --git a/modules/string/src/c/pcre_error.h b/modules/string/src/c/pcre_error.h new file mode 100755 index 000000000..919fb9861 --- /dev/null +++ b/modules/string/src/c/pcre_error.h @@ -0,0 +1,28 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Sylvestre LEDRU + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __PCRE_ERROR_H__ +#define __PCRE_ERROR_H__ + + +/** + * + * Display a human readable error message (PCRE error). + * @param fname the name of the Scilab function + * @param errorCode the error code returned by the pcre function + */ +void pcre_error(char *fname, int errorCode); + +#endif + diff --git a/modules/string/src/c/pcre_internal.h b/modules/string/src/c/pcre_internal.h new file mode 100755 index 000000000..7aa8ea564 --- /dev/null +++ b/modules/string/src/c/pcre_internal.h @@ -0,0 +1,1117 @@ +/************************************************* +* Perl-Compatible Regular Expressions * +*************************************************/ + + +/* PCRE is a library of functions to support regular expressions whose syntax +and semantics are as close as possible to those of the Perl 5 language. + + Written by Philip Hazel + Copyright (c) 1997-2008 University of Cambridge + +----------------------------------------------------------------------------- +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the University of Cambridge nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +----------------------------------------------------------------------------- +*/ + +/* This header contains definitions that are shared between the different +modules, but which are not relevant to the exported API. This includes some +functions whose names all begin with "_pcre_". */ + +#ifndef PCRE_INTERNAL_H +#define PCRE_INTERNAL_H + +/* Define DEBUG to get debugging output on stdout. */ + +#if 0 +#define DEBUG +#endif + +/* Use a macro for debugging printing, 'cause that eliminates the use of #ifdef +inline, and there are *still* stupid compilers about that don't like indented +pre-processor statements, or at least there were when I first wrote this. After +all, it had only been about 10 years then... + +It turns out that the Mac Debugging.h header also defines the macro DPRINTF, so +be absolutely sure we get our version. */ + +#undef DPRINTF +#ifdef DEBUG +#define DPRINTF(p) printf p +#else +#define DPRINTF(p) /* Nothing */ +#endif + + +/* Standard C headers plus the external interface definition. The only time +setjmp and stdarg are used is when NO_RECURSE is set. */ + +#include <ctype.h> +#include <limits.h> +#include <setjmp.h> +#include <stdarg.h> +#include <stddef.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +/* When compiling a DLL for Windows, the exported symbols have to be declared +using some MS magic. I found some useful information on this web page: +http://msdn2.microsoft.com/en-us/library/y4h7bcy6(VS.80).aspx. According to the +information there, using __declspec(dllexport) without "extern" we have a +definition; with "extern" we have a declaration. The settings here override the +setting in pcre.h (which is included below); it defines only PCRE_EXP_DECL, +which is all that is needed for applications (they just import the symbols). We +use: + + PCRE_EXP_DECL for declarations + PCRE_EXP_DEFN for definitions of exported functions + PCRE_EXP_DATA_DEFN for definitions of exported variables + +The reason for the two DEFN macros is that in non-Windows environments, one +does not want to have "extern" before variable definitions because it leads to +compiler warnings. So we distinguish between functions and variables. In +Windows, the two should always be the same. + +The reason for wrapping this in #ifndef PCRE_EXP_DECL is so that pcretest, +which is an application, but needs to import this file in order to "peek" at +internals, can #include pcre.h first to get an application's-eye view. + +In principle, people compiling for non-Windows, non-Unix-like (i.e. uncommon, +special-purpose environments) might want to stick other stuff in front of +exported symbols. That's why, in the non-Windows case, we set PCRE_EXP_DEFN and +PCRE_EXP_DATA_DEFN only if they are not already set. */ + +#ifndef PCRE_EXP_DECL +# ifdef _WIN32 +# ifndef PCRE_STATIC +# define PCRE_EXP_DECL extern __declspec(dllexport) +# define PCRE_EXP_DEFN __declspec(dllexport) +# define PCRE_EXP_DATA_DEFN __declspec(dllexport) +# else +# define PCRE_EXP_DECL extern +# define PCRE_EXP_DEFN +# define PCRE_EXP_DATA_DEFN +# endif +# else +# ifdef __cplusplus +# define PCRE_EXP_DECL extern "C" +# else +# define PCRE_EXP_DECL extern +# endif +# ifndef PCRE_EXP_DEFN +# define PCRE_EXP_DEFN PCRE_EXP_DECL +# endif +# ifndef PCRE_EXP_DATA_DEFN +# define PCRE_EXP_DATA_DEFN +# endif +# endif +#endif + +/* We need to have types that specify unsigned 16-bit and 32-bit integers. We +cannot determine these outside the compilation (e.g. by running a program as +part of "configure") because PCRE is often cross-compiled for use on other +systems. Instead we make use of the maximum sizes that are available at +preprocessor time in standard C environments. */ + +#if USHRT_MAX == 65535 +typedef unsigned short pcre_uint16; +#elif UINT_MAX == 65535 +typedef unsigned int pcre_uint16; +#else +#error Cannot determine a type for 16-bit unsigned integers +#endif + +#if UINT_MAX == 4294967295 +typedef unsigned int pcre_uint32; +#elif ULONG_MAX == 4294967295 +typedef unsigned long int pcre_uint32; +#else +#error Cannot determine a type for 32-bit unsigned integers +#endif + +/* All character handling must be done as unsigned characters. Otherwise there +are problems with top-bit-set characters and functions such as isspace(). +However, we leave the interface to the outside world as char *, because that +should make things easier for callers. We define a short type for unsigned char +to save lots of typing. I tried "uchar", but it causes problems on Digital +Unix, where it is defined in sys/types, so use "uschar" instead. */ + +typedef unsigned char uschar; + +/* This is an unsigned int value that no character can ever have. UTF-8 +characters only go up to 0x7fffffff (though Unicode doesn't go beyond +0x0010ffff). */ + +#define NOTACHAR 0xffffffff + +/* PCRE is able to support several different kinds of newline (CR, LF, CRLF, +"any" and "anycrlf" at present). The following macros are used to package up +testing for newlines. NLBLOCK, PSSTART, and PSEND are defined in the various +modules to indicate in which datablock the parameters exist, and what the +start/end of string field names are. */ + +#define NLTYPE_FIXED 0 /* Newline is a fixed length string */ +#define NLTYPE_ANY 1 /* Newline is any Unicode line ending */ +#define NLTYPE_ANYCRLF 2 /* Newline is CR, LF, or CRLF */ + +/* This macro checks for a newline at the given position */ + +#define IS_NEWLINE(p) \ + ((NLBLOCK->nltype != NLTYPE_FIXED)? \ + ((p) < NLBLOCK->PSEND && \ + _pcre_is_newline((p), NLBLOCK->nltype, NLBLOCK->PSEND, &(NLBLOCK->nllen),\ + utf8)) \ + : \ + ((p) <= NLBLOCK->PSEND - NLBLOCK->nllen && \ + (p)[0] == NLBLOCK->nl[0] && \ + (NLBLOCK->nllen == 1 || (p)[1] == NLBLOCK->nl[1]) \ + ) \ + ) + +/* This macro checks for a newline immediately preceding the given position */ + +#define WAS_NEWLINE(p) \ + ((NLBLOCK->nltype != NLTYPE_FIXED)? \ + ((p) > NLBLOCK->PSSTART && \ + _pcre_was_newline((p), NLBLOCK->nltype, NLBLOCK->PSSTART, \ + &(NLBLOCK->nllen), utf8)) \ + : \ + ((p) >= NLBLOCK->PSSTART + NLBLOCK->nllen && \ + (p)[-NLBLOCK->nllen] == NLBLOCK->nl[0] && \ + (NLBLOCK->nllen == 1 || (p)[-NLBLOCK->nllen+1] == NLBLOCK->nl[1]) \ + ) \ + ) + +/* When PCRE is compiled as a C++ library, the subject pointer can be replaced +with a custom type. This makes it possible, for example, to allow pcre_exec() +to process subject strings that are discontinuous by using a smart pointer +class. It must always be possible to inspect all of the subject string in +pcre_exec() because of the way it backtracks. Two macros are required in the +normal case, for sign-unspecified and unsigned char pointers. The former is +used for the external interface and appears in pcre.h, which is why its name +must begin with PCRE_. */ + +#ifdef CUSTOM_SUBJECT_PTR +#define PCRE_SPTR CUSTOM_SUBJECT_PTR +#define USPTR CUSTOM_SUBJECT_PTR +#else +#define PCRE_SPTR const char * +#define USPTR const unsigned char * +#endif + + + +/* Include the public PCRE header and the definitions of UCP character property +values. */ + +#include "pcre.h" +#include "ucp.h" + +/* When compiling for use with the Virtual Pascal compiler, these functions +need to have their names changed. PCRE must be compiled with the -DVPCOMPAT +option on the command line. */ + +#ifdef VPCOMPAT +#define strlen(s) _strlen(s) +#define strncmp(s1,s2,m) _strncmp(s1,s2,m) +#define memcmp(s,c,n) _memcmp(s,c,n) +#define memcpy(d,s,n) _memcpy(d,s,n) +#define memmove(d,s,n) _memmove(d,s,n) +#define memset(s,c,n) _memset(s,c,n) +#endif /* not VPCOMPAT */ + + +/* PCRE keeps offsets in its compiled code as 2-byte quantities (always stored +in big-endian order) by default. These are used, for example, to link from the +start of a subpattern to its alternatives and its end. The use of 2 bytes per +offset limits the size of the compiled regex to around 64K, which is big enough +for almost everybody. However, I received a request for an even bigger limit. +For this reason, and also to make the code easier to maintain, the storing and +loading of offsets from the byte string is now handled by the macros that are +defined here. + +The macros are controlled by the value of LINK_SIZE. This defaults to 2 in +the config.h file, but can be overridden by using -D on the command line. This +is automated on Unix systems via the "configure" command. */ + +#if LINK_SIZE == 2 + +#define PUT(a,n,d) \ + (a[n] = (d) >> 8), \ + (a[(n)+1] = (d) & 255) + +#define GET(a,n) \ + (((a)[n] << 8) | (a)[(n)+1]) + +#define MAX_PATTERN_SIZE (1 << 16) + + +#elif LINK_SIZE == 3 + +#define PUT(a,n,d) \ + (a[n] = (d) >> 16), \ + (a[(n)+1] = (d) >> 8), \ + (a[(n)+2] = (d) & 255) + +#define GET(a,n) \ + (((a)[n] << 16) | ((a)[(n)+1] << 8) | (a)[(n)+2]) + +#define MAX_PATTERN_SIZE (1 << 24) + + +#elif LINK_SIZE == 4 + +#define PUT(a,n,d) \ + (a[n] = (d) >> 24), \ + (a[(n)+1] = (d) >> 16), \ + (a[(n)+2] = (d) >> 8), \ + (a[(n)+3] = (d) & 255) + +#define GET(a,n) \ + (((a)[n] << 24) | ((a)[(n)+1] << 16) | ((a)[(n)+2] << 8) | (a)[(n)+3]) + +#define MAX_PATTERN_SIZE (1 << 30) /* Keep it positive */ + + +#else +#error LINK_SIZE must be either 2, 3, or 4 +#endif + + +/* Convenience macro defined in terms of the others */ + +#define PUTINC(a,n,d) PUT(a,n,d), a += LINK_SIZE + + +/* PCRE uses some other 2-byte quantities that do not change when the size of +offsets changes. There are used for repeat counts and for other things such as +capturing parenthesis numbers in back references. */ + +#define PUT2(a,n,d) \ + a[n] = (d) >> 8; \ + a[(n)+1] = (d) & 255 + +#define GET2(a,n) \ + (((a)[n] << 8) | (a)[(n)+1]) + +#define PUT2INC(a,n,d) PUT2(a,n,d), a += 2 + + +/* When UTF-8 encoding is being used, a character is no longer just a single +byte. The macros for character handling generate simple sequences when used in +byte-mode, and more complicated ones for UTF-8 characters. BACKCHAR should +never be called in byte mode. To make sure it can never even appear when UTF-8 +support is omitted, we don't even define it. */ + +#ifndef SUPPORT_UTF8 +#define NEXTCHAR(p) p++; +#define GETCHAR(c, eptr) c = *eptr; +#define GETCHARTEST(c, eptr) c = *eptr; +#define GETCHARINC(c, eptr) c = *eptr++; +#define GETCHARINCTEST(c, eptr) c = *eptr++; +#define GETCHARLEN(c, eptr, len) c = *eptr; +/* #define BACKCHAR(eptr) */ + +#else /* SUPPORT_UTF8 */ + +/* Advance a character pointer one byte in non-UTF-8 mode and by one character +in UTF-8 mode. */ + +#define NEXTCHAR(p) \ + p++; \ + if (utf8) { while((*p & 0xc0) == 0x80) p++; } + +/* Get the next UTF-8 character, not advancing the pointer. This is called when +we know we are in UTF-8 mode. */ + +#define GETCHAR(c, eptr) \ + c = *eptr; \ + if (c >= 0xc0) \ + { \ + int gcii; \ + int gcaa = _pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */ \ + int gcss = 6*gcaa; \ + c = (c & _pcre_utf8_table3[gcaa]) << gcss; \ + for (gcii = 1; gcii <= gcaa; gcii++) \ + { \ + gcss -= 6; \ + c |= (eptr[gcii] & 0x3f) << gcss; \ + } \ + } + +/* Get the next UTF-8 character, testing for UTF-8 mode, and not advancing the +pointer. */ + +#define GETCHARTEST(c, eptr) \ + c = *eptr; \ + if (utf8 && c >= 0xc0) \ + { \ + int gcii; \ + int gcaa = _pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */ \ + int gcss = 6*gcaa; \ + c = (c & _pcre_utf8_table3[gcaa]) << gcss; \ + for (gcii = 1; gcii <= gcaa; gcii++) \ + { \ + gcss -= 6; \ + c |= (eptr[gcii] & 0x3f) << gcss; \ + } \ + } + +/* Get the next UTF-8 character, advancing the pointer. This is called when we +know we are in UTF-8 mode. */ + +#define GETCHARINC(c, eptr) \ + c = *eptr++; \ + if (c >= 0xc0) \ + { \ + int gcaa = _pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */ \ + int gcss = 6*gcaa; \ + c = (c & _pcre_utf8_table3[gcaa]) << gcss; \ + while (gcaa-- > 0) \ + { \ + gcss -= 6; \ + c |= (*eptr++ & 0x3f) << gcss; \ + } \ + } + +/* Get the next character, testing for UTF-8 mode, and advancing the pointer */ + +#define GETCHARINCTEST(c, eptr) \ + c = *eptr++; \ + if (utf8 && c >= 0xc0) \ + { \ + int gcaa = _pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */ \ + int gcss = 6*gcaa; \ + c = (c & _pcre_utf8_table3[gcaa]) << gcss; \ + while (gcaa-- > 0) \ + { \ + gcss -= 6; \ + c |= (*eptr++ & 0x3f) << gcss; \ + } \ + } + +/* Get the next UTF-8 character, not advancing the pointer, incrementing length +if there are extra bytes. This is called when we know we are in UTF-8 mode. */ + +#define GETCHARLEN(c, eptr, len) \ + c = *eptr; \ + if (c >= 0xc0) \ + { \ + int gcii; \ + int gcaa = _pcre_utf8_table4[c & 0x3f]; /* Number of additional bytes */ \ + int gcss = 6*gcaa; \ + c = (c & _pcre_utf8_table3[gcaa]) << gcss; \ + for (gcii = 1; gcii <= gcaa; gcii++) \ + { \ + gcss -= 6; \ + c |= (eptr[gcii] & 0x3f) << gcss; \ + } \ + len += gcaa; \ + } + +/* If the pointer is not at the start of a character, move it back until +it is. This is called only in UTF-8 mode - we don't put a test within the macro +because almost all calls are already within a block of UTF-8 only code. */ + +#define BACKCHAR(eptr) while((*eptr & 0xc0) == 0x80) eptr-- + +#endif + + +/* In case there is no definition of offsetof() provided - though any proper +Standard C system should have one. */ + +#ifndef offsetof +#define offsetof(p_type,field) ((size_t)&(((p_type *)0)->field)) +#endif + + +/* These are the public options that can change during matching. */ + +#define PCRE_IMS (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL) + +/* Private flags containing information about the compiled regex. They used to +live at the top end of the options word, but that got almost full, so now they +are in a 16-bit flags word. */ + +#define PCRE_NOPARTIAL 0x0001 /* can't use partial with this regex */ +#define PCRE_FIRSTSET 0x0002 /* first_byte is set */ +#define PCRE_REQCHSET 0x0004 /* req_byte is set */ +#define PCRE_STARTLINE 0x0008 /* start after \n for multiline */ +#define PCRE_JCHANGED 0x0010 /* j option used in regex */ +#define PCRE_HASCRORLF 0x0020 /* explicit \r or \n in pattern */ + +/* Options for the "extra" block produced by pcre_study(). */ + +#define PCRE_STUDY_MAPPED 0x01 /* a map of starting chars exists */ + +/* Masks for identifying the public options that are permitted at compile +time, run time, or study time, respectively. */ + +#define PCRE_NEWLINE_BITS (PCRE_NEWLINE_CR|PCRE_NEWLINE_LF|PCRE_NEWLINE_ANY| \ + PCRE_NEWLINE_ANYCRLF) + +#define PUBLIC_OPTIONS \ + (PCRE_CASELESS|PCRE_EXTENDED|PCRE_ANCHORED|PCRE_MULTILINE| \ + PCRE_DOTALL|PCRE_DOLLAR_ENDONLY|PCRE_EXTRA|PCRE_UNGREEDY|PCRE_UTF8| \ + PCRE_NO_AUTO_CAPTURE|PCRE_NO_UTF8_CHECK|PCRE_AUTO_CALLOUT|PCRE_FIRSTLINE| \ + PCRE_DUPNAMES|PCRE_NEWLINE_BITS|PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE| \ + PCRE_JAVASCRIPT_COMPAT) + +#define PUBLIC_EXEC_OPTIONS \ + (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK| \ + PCRE_PARTIAL|PCRE_NEWLINE_BITS|PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE) + +#define PUBLIC_DFA_EXEC_OPTIONS \ + (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK| \ + PCRE_PARTIAL|PCRE_DFA_SHORTEST|PCRE_DFA_RESTART|PCRE_NEWLINE_BITS| \ + PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE) + +#define PUBLIC_STUDY_OPTIONS 0 /* None defined */ + +/* Magic number to provide a small check against being handed junk. Also used +to detect whether a pattern was compiled on a host of different endianness. */ + +#define MAGIC_NUMBER 0x50435245UL /* 'PCRE' */ + +/* Negative values for the firstchar and reqchar variables */ + +#define REQ_UNSET (-2) +#define REQ_NONE (-1) + +/* The maximum remaining length of subject we are prepared to search for a +req_byte match. */ + +#define REQ_BYTE_MAX 1000 + +/* Flags added to firstbyte or reqbyte; a "non-literal" item is either a +variable-length repeat, or anything other than literal characters. */ + +#define REQ_CASELESS 0x0100 /* indicates caselessness */ +#define REQ_VARY 0x0200 /* reqbyte followed non-literal item */ + +/* Miscellaneous definitions */ + +/* Already defined in scilab modules/core/includes/BOOL.h */ +/* typedef int BOOL; */ + +#define FALSE 0 +#define TRUE 1 + +/* Escape items that are just an encoding of a particular data value. */ + +#ifndef ESC_e +#define ESC_e 27 +#endif + +#ifndef ESC_f +#define ESC_f '\f' +#endif + +#ifndef ESC_n +#define ESC_n '\n' +#endif + +#ifndef ESC_r +#define ESC_r '\r' +#endif + +/* We can't officially use ESC_t because it is a POSIX reserved identifier +(presumably because of all the others like size_t). */ + +#ifndef ESC_tee +#define ESC_tee '\t' +#endif + +/* Codes for different types of Unicode property */ + +#define PT_ANY 0 /* Any property - matches all chars */ +#define PT_LAMP 1 /* L& - the union of Lu, Ll, Lt */ +#define PT_GC 2 /* General characteristic (e.g. L) */ +#define PT_PC 3 /* Particular characteristic (e.g. Lu) */ +#define PT_SC 4 /* Script (e.g. Han) */ + +/* Flag bits and data types for the extended class (OP_XCLASS) for classes that +contain UTF-8 characters with values greater than 255. */ + +#define XCL_NOT 0x01 /* Flag: this is a negative class */ +#define XCL_MAP 0x02 /* Flag: a 32-byte map is present */ + +#define XCL_END 0 /* Marks end of individual items */ +#define XCL_SINGLE 1 /* Single item (one multibyte char) follows */ +#define XCL_RANGE 2 /* A range (two multibyte chars) follows */ +#define XCL_PROP 3 /* Unicode property (2-byte property code follows) */ +#define XCL_NOTPROP 4 /* Unicode inverted property (ditto) */ + +/* These are escaped items that aren't just an encoding of a particular data +value such as \n. They must have non-zero values, as check_escape() returns +their negation. Also, they must appear in the same order as in the opcode +definitions below, up to ESC_z. There's a dummy for OP_ANY because it +corresponds to "." rather than an escape sequence, and another for OP_ALLANY +(which is used for [^] in JavaScript compatibility mode). + +The final escape must be ESC_REF as subsequent values are used for +backreferences (\1, \2, \3, etc). There are two tests in the code for an escape +greater than ESC_b and less than ESC_Z to detect the types that may be +repeated. These are the types that consume characters. If any new escapes are +put in between that don't consume a character, that code will have to change. +*/ + +enum { ESC_A = 1, ESC_G, ESC_K, ESC_B, ESC_b, ESC_D, ESC_d, ESC_S, ESC_s, + ESC_W, ESC_w, ESC_dum1, ESC_dum2, ESC_C, ESC_P, ESC_p, ESC_R, ESC_H, + ESC_h, ESC_V, ESC_v, ESC_X, ESC_Z, ESC_z, ESC_E, ESC_Q, ESC_g, ESC_k, + ESC_REF + }; + + +/* Opcode table: Starting from 1 (i.e. after OP_END), the values up to +OP_EOD must correspond in order to the list of escapes immediately above. + +*** NOTE NOTE NOTE *** Whenever this list is updated, the two macro definitions +that follow must also be updated to match. There is also a table called +"coptable" in pcre_dfa_exec.c that must be updated. */ + +enum +{ + OP_END, /* 0 End of pattern */ + + /* Values corresponding to backslashed metacharacters */ + + OP_SOD, /* 1 Start of data: \A */ + OP_SOM, /* 2 Start of match (subject + offset): \G */ + OP_SET_SOM, /* 3 Set start of match (\K) */ + OP_NOT_WORD_BOUNDARY, /* 4 \B */ + OP_WORD_BOUNDARY, /* 5 \b */ + OP_NOT_DIGIT, /* 6 \D */ + OP_DIGIT, /* 7 \d */ + OP_NOT_WHITESPACE, /* 8 \S */ + OP_WHITESPACE, /* 9 \s */ + OP_NOT_WORDCHAR, /* 10 \W */ + OP_WORDCHAR, /* 11 \w */ + OP_ANY, /* 12 Match any character (subject to DOTALL) */ + OP_ALLANY, /* 13 Match any character (not subject to DOTALL) */ + OP_ANYBYTE, /* 14 Match any byte (\C); different to OP_ANY for UTF-8 */ + OP_NOTPROP, /* 15 \P (not Unicode property) */ + OP_PROP, /* 16 \p (Unicode property) */ + OP_ANYNL, /* 17 \R (any newline sequence) */ + OP_NOT_HSPACE, /* 18 \H (not horizontal whitespace) */ + OP_HSPACE, /* 19 \h (horizontal whitespace) */ + OP_NOT_VSPACE, /* 20 \V (not vertical whitespace) */ + OP_VSPACE, /* 21 \v (vertical whitespace) */ + OP_EXTUNI, /* 22 \X (extended Unicode sequence */ + OP_EODN, /* 23 End of data or \n at end of data: \Z. */ + OP_EOD, /* 24 End of data: \z */ + + OP_OPT, /* 25 Set runtime options */ + OP_CIRC, /* 26 Start of line - varies with multiline switch */ + OP_DOLL, /* 27 End of line - varies with multiline switch */ + OP_CHAR, /* 28 Match one character, casefully */ + OP_CHARNC, /* 29 Match one character, caselessly */ + OP_NOT, /* 30 Match one character, not the following one */ + + OP_STAR, /* 31 The maximizing and minimizing versions of */ + OP_MINSTAR, /* 32 these six opcodes must come in pairs, with */ + OP_PLUS, /* 33 the minimizing one second. */ + OP_MINPLUS, /* 34 This first set applies to single characters.*/ + OP_QUERY, /* 35 */ + OP_MINQUERY, /* 36 */ + + OP_UPTO, /* 37 From 0 to n matches */ + OP_MINUPTO, /* 38 */ + OP_EXACT, /* 39 Exactly n matches */ + + OP_POSSTAR, /* 40 Possessified star */ + OP_POSPLUS, /* 41 Possessified plus */ + OP_POSQUERY, /* 42 Posesssified query */ + OP_POSUPTO, /* 43 Possessified upto */ + + OP_NOTSTAR, /* 44 The maximizing and minimizing versions of */ + OP_NOTMINSTAR, /* 45 these six opcodes must come in pairs, with */ + OP_NOTPLUS, /* 46 the minimizing one second. They must be in */ + OP_NOTMINPLUS, /* 47 exactly the same order as those above. */ + OP_NOTQUERY, /* 48 This set applies to "not" single characters. */ + OP_NOTMINQUERY, /* 49 */ + + OP_NOTUPTO, /* 50 From 0 to n matches */ + OP_NOTMINUPTO, /* 51 */ + OP_NOTEXACT, /* 52 Exactly n matches */ + + OP_NOTPOSSTAR, /* 53 Possessified versions */ + OP_NOTPOSPLUS, /* 54 */ + OP_NOTPOSQUERY, /* 55 */ + OP_NOTPOSUPTO, /* 56 */ + + OP_TYPESTAR, /* 57 The maximizing and minimizing versions of */ + OP_TYPEMINSTAR, /* 58 these six opcodes must come in pairs, with */ + OP_TYPEPLUS, /* 59 the minimizing one second. These codes must */ + OP_TYPEMINPLUS, /* 60 be in exactly the same order as those above. */ + OP_TYPEQUERY, /* 61 This set applies to character types such as \d */ + OP_TYPEMINQUERY, /* 62 */ + + OP_TYPEUPTO, /* 63 From 0 to n matches */ + OP_TYPEMINUPTO, /* 64 */ + OP_TYPEEXACT, /* 65 Exactly n matches */ + + OP_TYPEPOSSTAR, /* 66 Possessified versions */ + OP_TYPEPOSPLUS, /* 67 */ + OP_TYPEPOSQUERY, /* 68 */ + OP_TYPEPOSUPTO, /* 69 */ + + OP_CRSTAR, /* 70 The maximizing and minimizing versions of */ + OP_CRMINSTAR, /* 71 all these opcodes must come in pairs, with */ + OP_CRPLUS, /* 72 the minimizing one second. These codes must */ + OP_CRMINPLUS, /* 73 be in exactly the same order as those above. */ + OP_CRQUERY, /* 74 These are for character classes and back refs */ + OP_CRMINQUERY, /* 75 */ + OP_CRRANGE, /* 76 These are different to the three sets above. */ + OP_CRMINRANGE, /* 77 */ + + OP_CLASS, /* 78 Match a character class, chars < 256 only */ + OP_NCLASS, /* 79 Same, but the bitmap was created from a negative + class - the difference is relevant only when a UTF-8 + character > 255 is encountered. */ + + OP_XCLASS, /* 80 Extended class for handling UTF-8 chars within the + class. This does both positive and negative. */ + + OP_REF, /* 81 Match a back reference */ + OP_RECURSE, /* 82 Match a numbered subpattern (possibly recursive) */ + OP_CALLOUT, /* 83 Call out to external function if provided */ + + OP_ALT, /* 84 Start of alternation */ + OP_KET, /* 85 End of group that doesn't have an unbounded repeat */ + OP_KETRMAX, /* 86 These two must remain together and in this */ + OP_KETRMIN, /* 87 order. They are for groups the repeat for ever. */ + + /* The assertions must come before BRA, CBRA, ONCE, and COND.*/ + + OP_ASSERT, /* 88 Positive lookahead */ + OP_ASSERT_NOT, /* 89 Negative lookahead */ + OP_ASSERTBACK, /* 90 Positive lookbehind */ + OP_ASSERTBACK_NOT, /* 91 Negative lookbehind */ + OP_REVERSE, /* 92 Move pointer back - used in lookbehind assertions */ + + /* ONCE, BRA, CBRA, and COND must come after the assertions, with ONCE first, + as there's a test for >= ONCE for a subpattern that isn't an assertion. */ + + OP_ONCE, /* 93 Atomic group */ + OP_BRA, /* 94 Start of non-capturing bracket */ + OP_CBRA, /* 95 Start of capturing bracket */ + OP_COND, /* 96 Conditional group */ + + /* These three must follow the previous three, in the same order. There's a + check for >= SBRA to distinguish the two sets. */ + + OP_SBRA, /* 97 Start of non-capturing bracket, check empty */ + OP_SCBRA, /* 98 Start of capturing bracket, check empty */ + OP_SCOND, /* 99 Conditional group, check empty */ + + OP_CREF, /* 100 Used to hold a capture number as condition */ + OP_RREF, /* 101 Used to hold a recursion number as condition */ + OP_DEF, /* 102 The DEFINE condition */ + + OP_BRAZERO, /* 103 These two must remain together and in this */ + OP_BRAMINZERO, /* 104 order. */ + + /* These are backtracking control verbs */ + + OP_PRUNE, /* 105 */ + OP_SKIP, /* 106 */ + OP_THEN, /* 107 */ + OP_COMMIT, /* 108 */ + + /* These are forced failure and success verbs */ + + OP_FAIL, /* 109 */ + OP_ACCEPT, /* 110 */ + + /* This is used to skip a subpattern with a {0} quantifier */ + + OP_SKIPZERO /* 111 */ +}; + + +/* This macro defines textual names for all the opcodes. These are used only +for debugging. The macro is referenced only in pcre_printint.c. */ + +#define OP_NAME_LIST \ + "End", "\\A", "\\G", "\\K", "\\B", "\\b", "\\D", "\\d", \ + "\\S", "\\s", "\\W", "\\w", "Any", "AllAny", "Anybyte", \ + "notprop", "prop", "\\R", "\\H", "\\h", "\\V", "\\v", \ + "extuni", "\\Z", "\\z", \ + "Opt", "^", "$", "char", "charnc", "not", \ + "*", "*?", "+", "+?", "?", "??", "{", "{", "{", \ + "*+","++", "?+", "{", \ + "*", "*?", "+", "+?", "?", "??", "{", "{", "{", \ + "*+","++", "?+", "{", \ + "*", "*?", "+", "+?", "?", "??", "{", "{", "{", \ + "*+","++", "?+", "{", \ + "*", "*?", "+", "+?", "?", "??", "{", "{", \ + "class", "nclass", "xclass", "Ref", "Recurse", "Callout", \ + "Alt", "Ket", "KetRmax", "KetRmin", "Assert", "Assert not", \ + "AssertB", "AssertB not", "Reverse", \ + "Once", "Bra", "CBra", "Cond", "SBra", "SCBra", "SCond", \ + "Cond ref", "Cond rec", "Cond def", "Brazero", "Braminzero", \ + "*PRUNE", "*SKIP", "*THEN", "*COMMIT", "*FAIL", "*ACCEPT", \ + "Skip zero" + + +/* This macro defines the length of fixed length operations in the compiled +regex. The lengths are used when searching for specific things, and also in the +debugging printing of a compiled regex. We use a macro so that it can be +defined close to the definitions of the opcodes themselves. + +As things have been extended, some of these are no longer fixed lenths, but are +minima instead. For example, the length of a single-character repeat may vary +in UTF-8 mode. The code that uses this table must know about such things. */ + +#define OP_LENGTHS \ + 1, /* End */ \ + 1, 1, 1, 1, 1, /* \A, \G, \K, \B, \b */ \ + 1, 1, 1, 1, 1, 1, /* \D, \d, \S, \s, \W, \w */ \ + 1, 1, 1, /* Any, AllAny, Anybyte */ \ + 3, 3, 1, /* NOTPROP, PROP, EXTUNI */ \ + 1, 1, 1, 1, 1, /* \R, \H, \h, \V, \v */ \ + 1, 1, 2, 1, 1, /* \Z, \z, Opt, ^, $ */ \ + 2, /* Char - the minimum length */ \ + 2, /* Charnc - the minimum length */ \ + 2, /* not */ \ + /* Positive single-char repeats ** These are */ \ + 2, 2, 2, 2, 2, 2, /* *, *?, +, +?, ?, ?? ** minima in */ \ + 4, 4, 4, /* upto, minupto, exact ** UTF-8 mode */ \ + 2, 2, 2, 4, /* *+, ++, ?+, upto+ */ \ + /* Negative single-char repeats - only for chars < 256 */ \ + 2, 2, 2, 2, 2, 2, /* NOT *, *?, +, +?, ?, ?? */ \ + 4, 4, 4, /* NOT upto, minupto, exact */ \ + 2, 2, 2, 4, /* Possessive *, +, ?, upto */ \ + /* Positive type repeats */ \ + 2, 2, 2, 2, 2, 2, /* Type *, *?, +, +?, ?, ?? */ \ + 4, 4, 4, /* Type upto, minupto, exact */ \ + 2, 2, 2, 4, /* Possessive *+, ++, ?+, upto+ */ \ + /* Character class & ref repeats */ \ + 1, 1, 1, 1, 1, 1, /* *, *?, +, +?, ?, ?? */ \ + 5, 5, /* CRRANGE, CRMINRANGE */ \ + 33, /* CLASS */ \ + 33, /* NCLASS */ \ + 0, /* XCLASS - variable length */ \ + 3, /* REF */ \ + 1+LINK_SIZE, /* RECURSE */ \ + 2+2*LINK_SIZE, /* CALLOUT */ \ + 1+LINK_SIZE, /* Alt */ \ + 1+LINK_SIZE, /* Ket */ \ + 1+LINK_SIZE, /* KetRmax */ \ + 1+LINK_SIZE, /* KetRmin */ \ + 1+LINK_SIZE, /* Assert */ \ + 1+LINK_SIZE, /* Assert not */ \ + 1+LINK_SIZE, /* Assert behind */ \ + 1+LINK_SIZE, /* Assert behind not */ \ + 1+LINK_SIZE, /* Reverse */ \ + 1+LINK_SIZE, /* ONCE */ \ + 1+LINK_SIZE, /* BRA */ \ + 3+LINK_SIZE, /* CBRA */ \ + 1+LINK_SIZE, /* COND */ \ + 1+LINK_SIZE, /* SBRA */ \ + 3+LINK_SIZE, /* SCBRA */ \ + 1+LINK_SIZE, /* SCOND */ \ + 3, /* CREF */ \ + 3, /* RREF */ \ + 1, /* DEF */ \ + 1, 1, /* BRAZERO, BRAMINZERO */ \ + 1, 1, 1, 1, /* PRUNE, SKIP, THEN, COMMIT, */ \ + 1, 1, 1 /* FAIL, ACCEPT, SKIPZERO */ + + +/* A magic value for OP_RREF to indicate the "any recursion" condition. */ + +#define RREF_ANY 0xffff + +/* Error code numbers. They are given names so that they can more easily be +tracked. */ + +enum { ERR0, ERR1, ERR2, ERR3, ERR4, ERR5, ERR6, ERR7, ERR8, ERR9, + ERR10, ERR11, ERR12, ERR13, ERR14, ERR15, ERR16, ERR17, ERR18, ERR19, + ERR20, ERR21, ERR22, ERR23, ERR24, ERR25, ERR26, ERR27, ERR28, ERR29, + ERR30, ERR31, ERR32, ERR33, ERR34, ERR35, ERR36, ERR37, ERR38, ERR39, + ERR40, ERR41, ERR42, ERR43, ERR44, ERR45, ERR46, ERR47, ERR48, ERR49, + ERR50, ERR51, ERR52, ERR53, ERR54, ERR55, ERR56, ERR57, ERR58, ERR59, + ERR60, ERR61, ERR62, ERR63, ERR64 + }; + +/* The real format of the start of the pcre block; the index of names and the +code vector run on as long as necessary after the end. We store an explicit +offset to the name table so that if a regex is compiled on one host, saved, and +then run on another where the size of pointers is different, all might still +be well. For the case of compiled-on-4 and run-on-8, we include an extra +pointer that is always NULL. For future-proofing, a few dummy fields were +originally included - even though you can never get this planning right - but +there is only one left now. + +NOTE NOTE NOTE: +Because people can now save and re-use compiled patterns, any additions to this +structure should be made at the end, and something earlier (e.g. a new +flag in the options or one of the dummy fields) should indicate that the new +fields are present. Currently PCRE always sets the dummy fields to zero. +NOTE NOTE NOTE: +*/ + +typedef struct real_pcre +{ + pcre_uint32 magic_number; + pcre_uint32 size; /* Total that was malloced */ + pcre_uint32 options; /* Public options */ + pcre_uint16 flags; /* Private flags */ + pcre_uint16 dummy1; /* For future use */ + pcre_uint16 top_bracket; + pcre_uint16 top_backref; + pcre_uint16 first_byte; + pcre_uint16 req_byte; + pcre_uint16 name_table_offset; /* Offset to name table that follows */ + pcre_uint16 name_entry_size; /* Size of any name items */ + pcre_uint16 name_count; /* Number of name items */ + pcre_uint16 ref_count; /* Reference count */ + + const unsigned char *tables; /* Pointer to tables or NULL for std */ + const unsigned char *nullpad; /* NULL padding */ +} real_pcre; + +/* The format of the block used to store data from pcre_study(). The same +remark (see NOTE above) about extending this structure applies. */ + +typedef struct pcre_study_data +{ + pcre_uint32 size; /* Total that was malloced */ + pcre_uint32 options; + uschar start_bits[32]; +} pcre_study_data; + +/* Structure for passing "static" information around between the functions +doing the compiling, so that they are thread-safe. */ + +typedef struct compile_data +{ + const uschar *lcc; /* Points to lower casing table */ + const uschar *fcc; /* Points to case-flipping table */ + const uschar *cbits; /* Points to character type table */ + const uschar *ctypes; /* Points to table of type maps */ + const uschar *start_workspace;/* The start of working space */ + const uschar *start_code; /* The start of the compiled code */ + const uschar *start_pattern; /* The start of the pattern */ + const uschar *end_pattern; /* The end of the pattern */ + uschar *hwm; /* High watermark of workspace */ + uschar *name_table; /* The name/number table */ + int names_found; /* Number of entries so far */ + int name_entry_size; /* Size of each entry */ + int bracount; /* Count of capturing parens as we compile */ + int final_bracount; /* Saved value after first pass */ + int top_backref; /* Maximum back reference */ + unsigned int backref_map; /* Bitmap of low back refs */ + int external_options; /* External (initial) options */ + int external_flags; /* External flag bits to be set */ + int req_varyopt; /* "After variable item" flag for reqbyte */ + BOOL had_accept; /* (*ACCEPT) encountered */ + int nltype; /* Newline type */ + int nllen; /* Newline string length */ + uschar nl[4]; /* Newline string when fixed length */ +} compile_data; + +/* Structure for maintaining a chain of pointers to the currently incomplete +branches, for testing for left recursion. */ + +typedef struct branch_chain +{ + struct branch_chain *outer; + uschar *current; +} branch_chain; + +/* Structure for items in a linked list that represents an explicit recursive +call within the pattern. */ + +typedef struct recursion_info +{ + struct recursion_info *prevrec; /* Previous recursion record (or NULL) */ + int group_num; /* Number of group that was called */ + const uschar *after_call; /* "Return value": points after the call in the expr */ + USPTR save_start; /* Old value of mstart */ + int *offset_save; /* Pointer to start of saved offsets */ + int saved_max; /* Number of saved offsets */ +} recursion_info; + +/* Structure for building a chain of data for holding the values of the subject +pointer at the start of each subpattern, so as to detect when an empty string +has been matched by a subpattern - to break infinite loops. */ + +typedef struct eptrblock +{ + struct eptrblock *epb_prev; + USPTR epb_saved_eptr; +} eptrblock; + + +/* Structure for passing "static" information around between the functions +doing traditional NFA matching, so that they are thread-safe. */ + +typedef struct match_data +{ + unsigned long int match_call_count; /* As it says */ + unsigned long int match_limit; /* As it says */ + unsigned long int match_limit_recursion; /* As it says */ + int *offset_vector; /* Offset vector */ + int offset_end; /* One past the end */ + int offset_max; /* The maximum usable for return data */ + int nltype; /* Newline type */ + int nllen; /* Newline string length */ + uschar nl[4]; /* Newline string when fixed */ + const uschar *lcc; /* Points to lower casing table */ + const uschar *ctypes; /* Points to table of type maps */ + BOOL offset_overflow; /* Set if too many extractions */ + BOOL notbol; /* NOTBOL flag */ + BOOL noteol; /* NOTEOL flag */ + BOOL utf8; /* UTF8 flag */ + BOOL jscript_compat; /* JAVASCRIPT_COMPAT flag */ + BOOL endonly; /* Dollar not before final \n */ + BOOL notempty; /* Empty string match not wanted */ + BOOL partial; /* PARTIAL flag */ + BOOL hitend; /* Hit the end of the subject at some point */ + BOOL bsr_anycrlf; /* \R is just any CRLF, not full Unicode */ + const uschar *start_code; /* For use when recursing */ + USPTR start_subject; /* Start of the subject string */ + USPTR end_subject; /* End of the subject string */ + USPTR start_match_ptr; /* Start of matched string */ + USPTR end_match_ptr; /* Subject position at end match */ + int end_offset_top; /* Highwater mark at end of match */ + int capture_last; /* Most recent capture number */ + int start_offset; /* The start offset value */ + eptrblock *eptrchain; /* Chain of eptrblocks for tail recursions */ + int eptrn; /* Next free eptrblock */ + recursion_info *recursive; /* Linked list of recursion data */ + void *callout_data; /* To pass back to callouts */ +} match_data; + +/* A similar structure is used for the same purpose by the DFA matching +functions. */ + +typedef struct dfa_match_data +{ + const uschar *start_code; /* Start of the compiled pattern */ + const uschar *start_subject; /* Start of the subject string */ + const uschar *end_subject; /* End of subject string */ + const uschar *tables; /* Character tables */ + int moptions; /* Match options */ + int poptions; /* Pattern options */ + int nltype; /* Newline type */ + int nllen; /* Newline string length */ + uschar nl[4]; /* Newline string when fixed */ + void *callout_data; /* To pass back to callouts */ +} dfa_match_data; + +/* Bit definitions for entries in the pcre_ctypes table. */ + +#define ctype_space 0x01 +#define ctype_letter 0x02 +#define ctype_digit 0x04 +#define ctype_xdigit 0x08 +#define ctype_word 0x10 /* alphanumeric or '_' */ +#define ctype_meta 0x80 /* regexp meta char or zero (end pattern) */ + +/* Offsets for the bitmap tables in pcre_cbits. Each table contains a set +of bits for a class map. Some classes are built by combining these tables. */ + +#define cbit_space 0 /* [:space:] or \s */ +#define cbit_xdigit 32 /* [:xdigit:] */ +#define cbit_digit 64 /* [:digit:] or \d */ +#define cbit_upper 96 /* [:upper:] */ +#define cbit_lower 128 /* [:lower:] */ +#define cbit_word 160 /* [:word:] or \w */ +#define cbit_graph 192 /* [:graph:] */ +#define cbit_print 224 /* [:print:] */ +#define cbit_punct 256 /* [:punct:] */ +#define cbit_cntrl 288 /* [:cntrl:] */ +#define cbit_length 320 /* Length of the cbits table */ + +/* Offsets of the various tables from the base tables pointer, and +total length. */ + +#define lcc_offset 0 +#define fcc_offset 256 +#define cbits_offset 512 +#define ctypes_offset (cbits_offset + cbit_length) +#define tables_length (ctypes_offset + 256) + +/* Layout of the UCP type table that translates property names into types and +codes. Each entry used to point directly to a name, but to reduce the number of +relocations in shared libraries, it now has an offset into a single string +instead. */ + +typedef struct +{ + pcre_uint16 name_offset; + pcre_uint16 type; + pcre_uint16 value; +} ucp_type_table; + + +/* Internal shared data tables. These are tables that are used by more than one +of the exported public functions. They have to be "external" in the C sense, +but are not part of the PCRE public API. The data for these tables is in the +pcre_tables.c module. */ + +extern const int _pcre_utf8_table1[]; +extern const int _pcre_utf8_table2[]; +extern const int _pcre_utf8_table3[]; +extern const uschar _pcre_utf8_table4[]; + +extern const int _pcre_utf8_table1_size; + +extern const char _pcre_utt_names[]; +extern const ucp_type_table _pcre_utt[]; +extern const int _pcre_utt_size; + +extern const uschar _pcre_default_tables[]; + +extern const uschar _pcre_OP_lengths[]; + + +/* Internal shared functions. These are functions that are used by more than +one of the exported public functions. They have to be "external" in the C +sense, but are not part of the PCRE public API. */ + +extern BOOL _pcre_is_newline(const uschar *, int, const uschar *, + int *, BOOL); +extern int _pcre_ord2utf8(int, uschar *); +extern real_pcre *_pcre_try_flipped(const real_pcre *, real_pcre *, + const pcre_study_data *, pcre_study_data *); +extern int _pcre_ucp_findprop(const unsigned int, int *, int *); +extern unsigned int _pcre_ucp_othercase(const unsigned int); +extern int _pcre_valid_utf8(const uschar *, int); +extern BOOL _pcre_was_newline(const uschar *, int, const uschar *, + int *, BOOL); +extern BOOL _pcre_xclass(int, const uschar *); + +#endif + +/* End of pcre_internal.h */ diff --git a/modules/string/src/c/pcre_private.c b/modules/string/src/c/pcre_private.c new file mode 100755 index 000000000..cbc4e4f0b --- /dev/null +++ b/modules/string/src/c/pcre_private.c @@ -0,0 +1,1145 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA +* Copyright (C) DIGITEO - 2009 +* +* 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 +* +*/ + +/*-------------------------------------------------------------------------------*/ +#include <ctype.h> +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <time.h> +#include <locale.h> +#include <errno.h> +#include <pcre.h> +#include "MALLOC.h" +#include "BOOL.h" +#include "pcre_private.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#include "strsubst.h" +#include "sciprint.h" +#include "warningmode.h" +/*-------------------------------------------------------------------------------*/ +/* A number of things vary for Windows builds. Originally, pcretest opened its +input and output without "b"; then I was told that "b" was needed in some +environments, so it was added for release 5.0 to both the input and output. (It +makes no difference on Unix-like systems.) Later I was told that it is wrong +for the input on Windows. I've now abstracted the modes into two macros that +are set here, to make it easier to fiddle with them, and removed "b" from the +input mode under Windows. */ +/*-------------------------------------------------------------------------------*/ +#if _MSC_VER +#include <io.h> /* For _setmode() */ +#include <fcntl.h> /* For _O_BINARY */ +#define INPUT_MODE "r" +#define OUTPUT_MODE "wb" +#else +#include <sys/time.h> /* These two includes are needed */ +#include <sys/resource.h> /* for setrlimit(). */ +#define INPUT_MODE "rb" +#define OUTPUT_MODE "wb" +#endif + +#define LINK_SIZE 2 + +/* We have to include pcre_internal.h because we need the internal info for +displaying the results of pcre_study() and we also need to know about the +internal macros, structures, and other internal data values; pcretest has +"inside information" compared to a program that strictly follows the PCRE API. + +Although pcre_internal.h does itself include pcre.h, we explicitly include it +here before pcre_internal.h so that the PCRE_EXP_xxx macros get set +appropriately for an application, not for building PCRE. */ + +#include <pcre.h> +#include "pcre_internal.h" + +/* We need access to the data tables that PCRE uses. So as not to have to keep +two copies, we include the source file here, changing the names of the external +symbols to prevent clashes. */ + +#define _pcre_utf8_table1 utf8_table1 +#define _pcre_utf8_table1_size utf8_table1_size +#define _pcre_utf8_table2 utf8_table2 +#define _pcre_utf8_table3 utf8_table3 +#define _pcre_utf8_table4 utf8_table4 +#define _pcre_utt utt +#define _pcre_utt_size utt_size +#define _pcre_utt_names utt_names +#define _pcre_OP_lengths OP_lengths + +#include "pcre_tables.c" + +/* It is possible to compile this test program without including support for +testing the POSIX interface, though this is not available via the standard +Makefile. */ + +#if !defined NOPOSIX +#include "pcreposix.h" +#endif + +/* It is also possible, for the benefit of the version currently imported into +Exim, to build pcretest without support for UTF8 (define NOUTF8), without the +interface to the DFA matcher (NODFA), and without the doublecheck of the old +"info" function (define NOINFOCHECK). In fact, we automatically cut out the +UTF8 support if PCRE is built without it. */ + +#ifndef SUPPORT_UTF8 +#ifndef NOUTF8 +#define NOUTF8 +#endif +#endif +/*-------------------------------------------------------------------------------*/ +/* Static variables */ + +static int callout_count = 0; +static int callout_fail_count = 0; +static int callout_fail_id = 0; + +/* The buffers grow automatically if very long input lines are encountered. */ + +char *buffer = NULL; + + +static int check_match_limit(pcre *re, pcre_extra *extra, char *bptr, int len, + int start_offset, int options, int *use_offsets, int use_size_offsets, + int flag, unsigned long int *limit, int errnumber); + + +/************************************************* +* Check match or recursion limit * +*************************************************/ + +static int check_match_limit(pcre *re, pcre_extra *extra, char *bptr, int len, + int start_offset, int options, int *use_offsets, int use_size_offsets, + int flag, unsigned long int *limit, int errnumber) +{ + int count; + int min = 0; + int mid = 64; + int max = -1; + + extra->flags |= flag; + + for (;;) + { + *limit = mid; + + count = pcre_exec(re, extra, (char *)bptr, len, start_offset, options, + use_offsets, use_size_offsets); + + if (count == errnumber) + { + min = mid; + mid = (mid == max - 1) ? max : (max > 0) ? (min + max) / 2 : mid * 2; + } + + else if (count >= 0 || count == PCRE_ERROR_NOMATCH || + count == PCRE_ERROR_PARTIAL) + { + if (mid == min + 1) + { + break; + } + max = mid; + mid = (min + mid) / 2; + } + else + { + break; /* Some other error */ + } + } + + extra->flags &= ~flag; + return count; +} + + +/************************************************* +* Algorithm * +*************************************************/ + +/* Read lines from named file or stdin and write to named file or stdout; lines +consist of a regular expression, in delimiters and optionally followed by +options, followed by a set of test data, terminated by an empty line. */ + +pcre_error_code pcre_private(char *INPUT_LINE, char *INPUT_PAT, int *Output_Start, int *Output_End, char*** _pstCapturedString, int* _piCapturedStringCount) +{ + /* ALL strings are managed as UTF-8 by default */ + int options = PCRE_UTF8; + int size_offsets = 45; + int size_offsets_max; + int *offsets = NULL; + int all_use_dfa = 0; + BOOL LOOP_PCRE_TST = FALSE; + + /* These vectors store, end-to-end, a list of captured substring names. Assume + that 1024 is plenty long enough for the few names we'll be testing. */ + + char copynames[1024]; + char getnames[1024]; + + char *copynamesptr = NULL; + char *getnamesptr = NULL; + + int rc = 0; + (void)pcre_config(PCRE_CONFIG_UTF8, &rc); + if (rc != 1) + { + return UTF8_NOT_SUPPORTED; + } + + /* bug 3891 */ + /* backslash characters are not interpreted for input */ + buffer = strsub(INPUT_LINE, "\\", "\\\\"); + + size_offsets_max = size_offsets; + offsets = (int *)MALLOC(size_offsets_max * sizeof(int)); + if (offsets == NULL) + { + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + return NOT_ENOUGH_MEMORY_FOR_VECTOR; + } + /* Main loop */ + LOOP_PCRE_TST = FALSE; + while (!LOOP_PCRE_TST) + { + pcre *re = NULL; + pcre_extra *extra = NULL; + const char *error = NULL; + char *back_p = NULL; + char *p = NULL; + char *pp = NULL; + char *ppp = NULL; + const unsigned char *tables = NULL; + int do_G = 0; + int do_g = 0; + int erroroffset = 0, len = 0, delimiter; + + LOOP_PCRE_TST = TRUE; + p = strdup(INPUT_PAT); + back_p = p; + while (isspace(*p)) + { + p++; + } + if (*p == 0) + { + continue; + } + /* In-line pattern (the usual case). Get the delimiter and seek the end of + the pattern; if is isn't complete, read more. */ + + delimiter = *p++; + + if (isalnum(delimiter) || delimiter == '\\') + { + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + if (offsets) + { + FREE(offsets); + offsets = NULL; + } + if (back_p) + { + FREE(back_p); + back_p = NULL; + } + return DELIMITER_NOT_ALPHANUMERIC; + } + + pp = p; + + while (*pp != 0) + { + if (*pp == '\\' && pp[1] != 0) + { + pp++; + } + else if (*pp == delimiter) + { + break; + } + pp++; + } + + /* If the delimiter can't be found, it's a syntax error */ + if (*pp == 0) + { + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + if (offsets) + { + FREE(offsets); + offsets = NULL; + } + if (back_p) + { + FREE(back_p); + back_p = NULL; + } + if (offsets) + { + FREE(offsets); + } + return CAN_NOT_COMPILE_PATTERN; + } + + /* If the first character after the delimiter is backslash, make + the pattern end with backslash. This is purely to provide a way + of testing for the error message when a pattern ends with backslash. */ + + if (pp[1] == '\\') + { + *pp++ = '\\'; + } + + /* Terminate the pattern at the delimiter, and save a copy of the pattern + for callouts. */ + + *pp++ = 0; + + /* Look for options after final delimiter */ + + //options = 8192; + + while (*pp != 0) + { + switch (*pp++) + { + case 'f': + options |= PCRE_FIRSTLINE; + break; + case 'g': + do_g = 1; + break; + case 'i': + options |= PCRE_CASELESS; + break; + case 'm': + options |= PCRE_MULTILINE; + break; + case 's': + options |= PCRE_DOTALL; + break; + case 'x': + options |= PCRE_EXTENDED; + break; + case '+': + break; + case 'A': + options |= PCRE_ANCHORED; + break; + case 'B': + break; + case 'C': + options |= PCRE_AUTO_CALLOUT; + break; + case 'D': + break; + case 'E': + options |= PCRE_DOLLAR_ENDONLY; + break; + case 'F': + break; + case 'G': + do_G = 1; + break; + case 'I': + break; + case 'J': + options |= PCRE_DUPNAMES; + break; + case 'M': + break; + case 'N': + options |= PCRE_NO_AUTO_CAPTURE; + break; + case 'S': + break; + case 'U': + options |= PCRE_UNGREEDY; + break; + case 'X': + options |= PCRE_EXTRA; + break; + case 'Z': + break; + case '8': + { + int rc = 0; + (void)pcre_config(PCRE_CONFIG_UTF8, &rc); + if (rc != 1) + { + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + if (offsets) + { + FREE(offsets); + } + return UTF8_NOT_SUPPORTED; + } + options |= PCRE_UTF8; + } + break; + case '?': + options |= PCRE_NO_UTF8_CHECK; + break; + case 'L': + ppp = pp; + /* The '\r' test here is so that it works on Windows. */ + /* The '0' test is just in case this is an unterminated line. */ + while (*ppp != 0 && *ppp != '\n' && *ppp != '\r' && *ppp != ' ') + { + ppp++; + } + *ppp = 0; + if (setlocale(LC_CTYPE, (const char *)pp) == NULL) + { + goto SKIP_DATA; + } + + tables = pcre_maketables(); + pp = ppp; + break; + case '>': + while (*pp != 0) + { + pp++; + } + while (isspace(pp[-1])) + { + pp--; + } + *pp = 0; + break; + case '<': + { + while (*pp++ != '>') + { + ; + } + } + break; + case '\r': /* So that it works in Windows */ + case '\n': + case ' ': + break; + + default: + goto SKIP_DATA; + } + } + + /* Handle compiling via the POSIX interface, which doesn't support the + timing, showing, or debugging options, nor the ability to pass over + local character tables. */ + + + { + re = pcre_compile((char *)p, options, &error, &erroroffset, tables); + /* Compilation failed; go back for another re, skipping to blank line + if non-interactive. */ + if (re == NULL) + { +SKIP_DATA: + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + if (offsets) + { + FREE(offsets); + offsets = NULL; + } + if (tables) + { + (*pcre_free)((void*)tables); + tables = NULL; + } + if (extra) + { + FREE(extra); + extra = NULL; + } + if (back_p) + { + FREE(back_p); + back_p = NULL; + } + return CAN_NOT_COMPILE_PATTERN; + } + + } /* End of non-POSIX compile */ + + /* Read data lines and test them */ + { + char *q = NULL; + char *bptr = NULL; + int *use_offsets = offsets; + int use_size_offsets = size_offsets; + int callout_data = 0; + int callout_data_set = 0; + int count = 0; + int c = 0; + int copystrings = 0; + int find_match_limit = 0; + int getstrings = 0; + int gmatched = 0; + int start_offset = 0; + int g_notempty = 0; + int use_dfa = 0; + + options = 0; + *copynames = 0; + *getnames = 0; + + copynamesptr = copynames; + getnamesptr = getnames; + + callout_count = 0; + callout_fail_count = 999999; + callout_fail_id = -1; + + if (extra != NULL) + { + extra->flags &= ~(PCRE_EXTRA_MATCH_LIMIT | PCRE_EXTRA_MATCH_LIMIT_RECURSION); + } + p = buffer; + bptr = q = buffer; + while ((c = *p++) != 0) + { + int i = 0; + int n = 0; + + if (c == '\\') switch ((c = *p++)) + { + case 'a': + c = 7; + break; + case 'b': + c = '\b'; + break; + case 'e': + c = 27; + break; + case 'f': + c = '\f'; + break; + case 'n': + c = '\n'; + break; + case 'r': + c = '\r'; + break; + case 't': + c = '\t'; + break; + case 'v': + c = '\v'; + break; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + c -= '0'; + while (i++ < 2 && isdigit(*p) && *p != '8' && *p != '9') + { + c = c * 8 + *p++ - '0'; + } + break; + case 'x': + /* Ordinary \x */ + c = 0; + while (i++ < 2 && isxdigit(*p)) + { + c = c * 16 + tolower(*p) - ((isdigit(*p)) ? '0' : 'W'); + p++; + } + break; + case 0: /* \ followed by EOF allows for an empty line */ + p--; + continue; + case '>': + while (isdigit(*p)) + { + start_offset = start_offset * 10 + *p++ - '0'; + } + continue; + case 'A': /* Option setting */ + options |= PCRE_ANCHORED; + continue; + case 'B': + options |= PCRE_NOTBOL; + continue; + case 'C': + if (isdigit(*p)) /* Set copy string */ + { + while (isdigit(*p)) + { + n = n * 10 + *p++ - '0'; + } + copystrings |= 1 << n; + } + else if (isalnum(*p)) + { + char *npp = copynamesptr; + while (isalnum(*p)) + { + *npp++ = *p++; + } + *npp++ = 0; + *npp = 0; + pcre_get_stringnumber(re, (char *)copynamesptr); + copynamesptr = npp; + } + else if (*p == '+') + { + p++; + } + else if (*p == '-') + { + p++; + } + else if (*p == '!') + { + callout_fail_id = 0; + p++; + while (isdigit(*p)) + { + callout_fail_id = callout_fail_id * 10 + *p++ - '0'; + } + callout_fail_count = 0; + if (*p == '!') + { + p++; + while (isdigit(*p)) + { + callout_fail_count = callout_fail_count * 10 + *p++ - '0'; + } + } + } + else if (*p == '*') + { + int sign = 1; + callout_data = 0; + if (*(++p) == '-') + { + sign = -1; + p++; + } + while (isdigit(*p)) + { + callout_data = callout_data * 10 + *p++ - '0'; + } + callout_data *= sign; + callout_data_set = 1; + } + continue; + case 'G': + if (isdigit(*p)) + { + while (isdigit(*p)) + { + n = n * 10 + *p++ - '0'; + } + getstrings |= 1 << n; + } + else if (isalnum(*p)) + { + char *npp = getnamesptr; + while (isalnum(*p)) + { + *npp++ = *p++; + } + *npp++ = 0; + *npp = 0; + pcre_get_stringnumber(re, (char *)getnamesptr); + getnamesptr = npp; + } + continue; + case 'L': + continue; + case 'M': + find_match_limit = 1; + continue; + case 'N': + options |= PCRE_NOTEMPTY; + continue; + case 'O': + while (isdigit(*p)) + { + n = n * 10 + *p++ - '0'; + } + if (n > size_offsets_max) + { + size_offsets_max = n; + if (offsets) + { + FREE(offsets); + } + use_offsets = offsets = (int *)MALLOC(size_offsets_max * sizeof(int)); + } + use_size_offsets = n; + if (n == 0) + { + use_offsets = NULL; /* Ensures it can't write to it */ + } + continue; + case 'P': + options |= PCRE_PARTIAL; + continue; + case 'Q': + while (isdigit(*p)) + { + n = n * 10 + *p++ - '0'; + } + if (extra == NULL) + { + extra = (pcre_extra *)MALLOC(sizeof(pcre_extra)); + extra->flags = 0; + } + extra->flags |= PCRE_EXTRA_MATCH_LIMIT_RECURSION; + extra->match_limit_recursion = n; + continue; + case 'q': + while (isdigit(*p)) + { + n = n * 10 + *p++ - '0'; + } + if (extra == NULL) + { + extra = (pcre_extra *)MALLOC(sizeof(pcre_extra)); + extra->flags = 0; + } + extra->flags |= PCRE_EXTRA_MATCH_LIMIT; + extra->match_limit = n; + continue; +#if !defined NODFA + case 'R': + options |= PCRE_DFA_RESTART; + continue; +#endif + case 'S': + + continue; + case 'Z': + options |= PCRE_NOTEOL; + continue; + case '?': + options |= PCRE_NO_UTF8_CHECK; + continue; + case '<': + { + while (*p++ != '>') + { + ; + } + } + continue; + } + *q++ = (char)c; + } + *q = 0; + len = (int)(q - buffer); + if ((all_use_dfa || use_dfa) && find_match_limit) + { + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + if (offsets) + { + FREE(offsets); + offsets = NULL; + } + if (p) + { + FREE(p); + p = NULL; + } + if (re) + { + (*pcre_free)(re); + re = NULL; + } + if (tables) + { + (*pcre_free)((void*)tables); + tables = NULL; + } + if (extra) + { + FREE(extra); + extra = NULL; + } + return LIMIT_NOT_RELEVANT_FOR_DFA_MATCHING; + } + /* Handle matching via the POSIX interface, which does not + support timing or playing with the match limit or callout data. */ + for (;; gmatched++) /* Loop for /g or /G */ + { + + /* If find_match_limit is set, we want to do repeated matches with + varying limits in order to find the minimum value for the match limit and + for the recursion limit. */ + + if (find_match_limit) + { + if (extra == NULL) + { + extra = (pcre_extra *)MALLOC(sizeof(pcre_extra)); + extra->flags = 0; + } + + (void)check_match_limit(re, extra, bptr, len, start_offset, + options | g_notempty, use_offsets, use_size_offsets, + PCRE_EXTRA_MATCH_LIMIT, &(extra->match_limit), + PCRE_ERROR_MATCHLIMIT); + + count = check_match_limit(re, extra, bptr, len, start_offset, + options | g_notempty, use_offsets, use_size_offsets, + PCRE_EXTRA_MATCH_LIMIT_RECURSION, &(extra->match_limit_recursion), + PCRE_ERROR_RECURSIONLIMIT); + } + /* If callout_data is set, use the interface with additional data */ + else if (callout_data_set) + { + if (extra == NULL) + { + extra = (pcre_extra *)MALLOC(sizeof(pcre_extra)); + extra->flags = 0; + } + extra->flags |= PCRE_EXTRA_CALLOUT_DATA; + extra->callout_data = &callout_data; + count = pcre_exec(re, extra, (char *)bptr, len, start_offset, + options | g_notempty, use_offsets, use_size_offsets); + + extra->flags &= ~PCRE_EXTRA_CALLOUT_DATA; + } + /* The normal case is just to do the match once, with the default + value of match_limit. */ + else + { + count = pcre_exec(re, extra, (char *)bptr, len, + start_offset, options | g_notempty, use_offsets, use_size_offsets); + if (count == 0) + { + count = use_size_offsets / 3; + } + + //to retrieve backref count and values + if (count > 0 && _pstCapturedString != NULL && _piCapturedStringCount != NULL) + { + int i = 0; + int iErr = 0; + + iErr = pcre_fullinfo(re, extra, PCRE_INFO_CAPTURECOUNT, _piCapturedStringCount); + //sciprint("PCRE_INFO_CAPTURECOUNT %d\n", *_piCapturedStringCount); + + if (*_piCapturedStringCount > 0) + { + *_pstCapturedString = (char**)MALLOC(sizeof(char*) * *_piCapturedStringCount); + for (i = 0 ; i < *_piCapturedStringCount ; i++) + { + char* pstSubstring = NULL; + pcre_get_substring(bptr, use_offsets, count, i + 1, &pstSubstring); + if (pstSubstring != NULL) + { + (*_pstCapturedString)[i] = strdup(pstSubstring); + } + pcre_free_substring(pstSubstring); + } + } + } + } + /* Matched */ + if (count >= 0) + { + int i, maxcount; + maxcount = use_size_offsets / 3; + /* This is a check against a lunatic return value. */ + if (count > maxcount) + { + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + if (offsets) + { + FREE(offsets); + offsets = NULL; + } + if (re) + { + (*pcre_free)(re); + re = NULL; + } + if (tables) + { + (*pcre_free)((void*)tables); + tables = NULL; + } + if (extra) + { + FREE(extra); + extra = NULL; + } + if (back_p) + { + FREE(back_p); + back_p = NULL; + } + return TOO_BIG_FOR_OFFSET_SIZE; + } + + for (i = 0; i < count * 2; i += 2) + { + if (use_offsets[i] >= 0) + { + *Output_Start = use_offsets[i]; + *Output_End = use_offsets[i + 1]; + if (buffer) + { + FREE(buffer); + } + + /* use_offsets = offsets no need to free use_offsets if we free offsets */ + if (offsets) + { + FREE(offsets); + } + + /* "re" allocated by pcre_compile (better to use free function associated)*/ + if (re) + { + (*pcre_free)(re); + } + + if (extra) + { + FREE(extra); + } + if (tables) + { + /* "tables" allocated by pcre_maketables (better to use free function associated to pcre)*/ + (*pcre_free)((void *)tables); + tables = NULL; + setlocale(LC_CTYPE, "C"); + } + + if (back_p) + { + FREE(back_p); + back_p = NULL; + } + return PCRE_FINISHED_OK; + } + } + + for (copynamesptr = copynames; *copynamesptr != 0; copynamesptr += (int)strlen((char*)copynamesptr) + 1) + { + char copybuffer[256]; + pcre_copy_named_substring(re, (char *)bptr, use_offsets, count, (char *)copynamesptr, copybuffer, sizeof(copybuffer)); + } + + for (i = 0; i < 32; i++) + { + if ((getstrings & (1 << i)) != 0) + { + const char *substring; + pcre_get_substring((char *)bptr, use_offsets, count, i, &substring); + } + } + + for (getnamesptr = getnames; *getnamesptr != 0; getnamesptr += (int)strlen((char*)getnamesptr) + 1) + { + const char *substring; + pcre_get_named_substring(re, (char *)bptr, use_offsets, count, (char *)getnamesptr, &substring); + } + + } + /* Failed to match. If this is a /g or /G loop and we previously set + g_notempty after a null match, this is not necessarily the end. We want + to advance the start offset, and continue. We won't be at the end of the + string - that was checked before setting g_notempty. + Complication arises in the case when the newline option is "any" or + "anycrlf". If the previous match was at the end of a line terminated by + CRLF, an advance of one character just passes the \r, whereas we should + prefer the longer newline sequence, as does the code in pcre_exec(). + Fudge the offset value to achieve this. + + Otherwise, in the case of UTF-8 matching, the advance must be one + character, not one byte. */ + else + { + if (count == PCRE_ERROR_NOMATCH) + { + if (gmatched == 0) + { + if (tables) + { + (*pcre_free)((void *)tables); + tables = NULL; + } + if (re) + { + (*pcre_free)((void *)re); + re = NULL; + } + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + if (offsets) + { + FREE(offsets); + } + if (p) + { + FREE(back_p); + back_p = NULL; + } + return NO_MATCH; + } + } + + if (count == PCRE_ERROR_MATCHLIMIT ) + { + if (tables) + { + (*pcre_free)((void *)tables); + tables = NULL; + } + if (re) + { + (*pcre_free)((void *)re); + re = NULL; + } + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + if (offsets) + { + FREE(offsets); + offsets = NULL; + } + if (back_p) + { + FREE(back_p); + back_p = NULL; + } + return MATCH_LIMIT; + } + break; /* Out of loop */ + } + + /* If not /g or /G we are done */ + if (!do_g && !do_G) + { + break; + } + + /* If we have matched an empty string, first check to see if we are at + the end of the subject. If so, the /g loop is over. Otherwise, mimic + what Perl's /g options does. This turns out to be rather cunning. First + we set PCRE_NOTEMPTY and PCRE_ANCHORED and try the match again at the + same point. If this fails (picked up above) we advance to the next + character. */ + + g_notempty = 0; + + if (use_offsets[0] == use_offsets[1]) + { + if (use_offsets[0] == len) + { + break; + } + g_notempty = PCRE_NOTEMPTY | PCRE_ANCHORED; + } + + /* For /g, update the start offset, leaving the rest alone */ + + if (do_g) + { + start_offset = use_offsets[1]; + } + /* For /G, update the pointer and length */ + else + { + bptr += use_offsets[1]; + len -= use_offsets[1]; + } + } /* End of loop for /g and /G */ + + if (re) + { + (*pcre_free)(re); + re = NULL; + } + if (extra) + { + FREE(extra); + extra = NULL; + } + if (tables) + { + (*pcre_free)((void *)tables); + tables = NULL; + } + + FREE(back_p); + back_p = NULL; + continue; + } /* End of loop for data lines */ + } + + if (buffer) + { + FREE(buffer); + buffer = NULL; + } + if (offsets) + { + FREE(offsets); + offsets = NULL; + } + + return PCRE_EXIT; +} + +/*-------------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/pcre_tables.c b/modules/string/src/c/pcre_tables.c new file mode 100755 index 000000000..4063523fa --- /dev/null +++ b/modules/string/src/c/pcre_tables.c @@ -0,0 +1,321 @@ +/************************************************* +* Perl-Compatible Regular Expressions * +*************************************************/ + +/* PCRE is a library of functions to support regular expressions whose syntax +and semantics are as close as possible to those of the Perl 5 language. + + Written by Philip Hazel + Copyright (c) 1997-2007 University of Cambridge + +----------------------------------------------------------------------------- +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the University of Cambridge nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +----------------------------------------------------------------------------- +*/ + + +/* This module contains some fixed tables that are used by more than one of the +PCRE code modules. The tables are also #included by the pcretest program, which +uses macros to change their names from _pcre_xxx to xxxx, thereby avoiding name +clashes with the library. */ + + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "pcre_internal.h" + + +/* Table of sizes for the fixed-length opcodes. It's defined in a macro so that +the definition is next to the definition of the opcodes in pcre_internal.h. */ + +//const uschar _pcre_OP_lengths[] = { OP_LENGTHS }; + + + +/************************************************* +* Tables for UTF-8 support * +*************************************************/ + +/* These are the breakpoints for different numbers of bytes in a UTF-8 +character. */ + +#ifdef SUPPORT_UTF8 + +const int _pcre_utf8_table1[] = +{ 0x7f, 0x7ff, 0xffff, 0x1fffff, 0x3ffffff, 0x7fffffff}; + +const int _pcre_utf8_table1_size = sizeof(_pcre_utf8_table1) / sizeof(int); + +/* These are the indicator bits and the mask for the data bits to set in the +first byte of a character, indexed by the number of additional bytes. */ + +const int _pcre_utf8_table2[] = { 0, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc}; +const int _pcre_utf8_table3[] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01}; + +/* Table of the number of extra bytes, indexed by the first byte masked with +0x3f. The highest number for a valid UTF-8 first byte is in fact 0x3d. */ + +const uschar _pcre_utf8_table4[] = +{ + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5 +}; + +/* The pcre_utt[] table below translates Unicode property names into type and +code values. It is searched by binary chop, so must be in collating sequence of +name. Originally, the table contained pointers to the name strings in the first +field of each entry. However, that leads to a large number of relocations when +a shared library is dynamically loaded. A significant reduction is made by +putting all the names into a single, large string and then using offsets in the +table itself. Maintenance is more error-prone, but frequent changes to this +data is unlikely. */ + +const char _pcre_utt_names[] = + "Any\0" + "Arabic\0" + "Armenian\0" + "Balinese\0" + "Bengali\0" + "Bopomofo\0" + "Braille\0" + "Buginese\0" + "Buhid\0" + "C\0" + "Canadian_Aboriginal\0" + "Cc\0" + "Cf\0" + "Cherokee\0" + "Cn\0" + "Co\0" + "Common\0" + "Coptic\0" + "Cs\0" + "Cuneiform\0" + "Cypriot\0" + "Cyrillic\0" + "Deseret\0" + "Devanagari\0" + "Ethiopic\0" + "Georgian\0" + "Glagolitic\0" + "Gothic\0" + "Greek\0" + "Gujarati\0" + "Gurmukhi\0" + "Han\0" + "Hangul\0" + "Hanunoo\0" + "Hebrew\0" + "Hiragana\0" + "Inherited\0" + "Kannada\0" + "Katakana\0" + "Kharoshthi\0" + "Khmer\0" + "L\0" + "L&\0" + "Lao\0" + "Latin\0" + "Limbu\0" + "Linear_B\0" + "Ll\0" + "Lm\0" + "Lo\0" + "Lt\0" + "Lu\0" + "M\0" + "Malayalam\0" + "Mc\0" + "Me\0" + "Mn\0" + "Mongolian\0" + "Myanmar\0" + "N\0" + "Nd\0" + "New_Tai_Lue\0" + "Nko\0" + "Nl\0" + "No\0" + "Ogham\0" + "Old_Italic\0" + "Old_Persian\0" + "Oriya\0" + "Osmanya\0" + "P\0" + "Pc\0" + "Pd\0" + "Pe\0" + "Pf\0" + "Phags_Pa\0" + "Phoenician\0" + "Pi\0" + "Po\0" + "Ps\0" + "Runic\0" + "S\0" + "Sc\0" + "Shavian\0" + "Sinhala\0" + "Sk\0" + "Sm\0" + "So\0" + "Syloti_Nagri\0" + "Syriac\0" + "Tagalog\0" + "Tagbanwa\0" + "Tai_Le\0" + "Tamil\0" + "Telugu\0" + "Thaana\0" + "Thai\0" + "Tibetan\0" + "Tifinagh\0" + "Ugaritic\0" + "Yi\0" + "Z\0" + "Zl\0" + "Zp\0" + "Zs\0"; + +const ucp_type_table _pcre_utt[] = +{ + { 0, PT_ANY, 0 }, + { 4, PT_SC, ucp_Arabic }, + { 11, PT_SC, ucp_Armenian }, + { 20, PT_SC, ucp_Balinese }, + { 29, PT_SC, ucp_Bengali }, + { 37, PT_SC, ucp_Bopomofo }, + { 46, PT_SC, ucp_Braille }, + { 54, PT_SC, ucp_Buginese }, + { 63, PT_SC, ucp_Buhid }, + { 69, PT_GC, ucp_C }, + { 71, PT_SC, ucp_Canadian_Aboriginal }, + { 91, PT_PC, ucp_Cc }, + { 94, PT_PC, ucp_Cf }, + { 97, PT_SC, ucp_Cherokee }, + { 106, PT_PC, ucp_Cn }, + { 109, PT_PC, ucp_Co }, + { 112, PT_SC, ucp_Common }, + { 119, PT_SC, ucp_Coptic }, + { 126, PT_PC, ucp_Cs }, + { 129, PT_SC, ucp_Cuneiform }, + { 139, PT_SC, ucp_Cypriot }, + { 147, PT_SC, ucp_Cyrillic }, + { 156, PT_SC, ucp_Deseret }, + { 164, PT_SC, ucp_Devanagari }, + { 175, PT_SC, ucp_Ethiopic }, + { 184, PT_SC, ucp_Georgian }, + { 193, PT_SC, ucp_Glagolitic }, + { 204, PT_SC, ucp_Gothic }, + { 211, PT_SC, ucp_Greek }, + { 217, PT_SC, ucp_Gujarati }, + { 226, PT_SC, ucp_Gurmukhi }, + { 235, PT_SC, ucp_Han }, + { 239, PT_SC, ucp_Hangul }, + { 246, PT_SC, ucp_Hanunoo }, + { 254, PT_SC, ucp_Hebrew }, + { 261, PT_SC, ucp_Hiragana }, + { 270, PT_SC, ucp_Inherited }, + { 280, PT_SC, ucp_Kannada }, + { 288, PT_SC, ucp_Katakana }, + { 297, PT_SC, ucp_Kharoshthi }, + { 308, PT_SC, ucp_Khmer }, + { 314, PT_GC, ucp_L }, + { 316, PT_LAMP, 0 }, + { 319, PT_SC, ucp_Lao }, + { 323, PT_SC, ucp_Latin }, + { 329, PT_SC, ucp_Limbu }, + { 335, PT_SC, ucp_Linear_B }, + { 344, PT_PC, ucp_Ll }, + { 347, PT_PC, ucp_Lm }, + { 350, PT_PC, ucp_Lo }, + { 353, PT_PC, ucp_Lt }, + { 356, PT_PC, ucp_Lu }, + { 359, PT_GC, ucp_M }, + { 361, PT_SC, ucp_Malayalam }, + { 371, PT_PC, ucp_Mc }, + { 374, PT_PC, ucp_Me }, + { 377, PT_PC, ucp_Mn }, + { 380, PT_SC, ucp_Mongolian }, + { 390, PT_SC, ucp_Myanmar }, + { 398, PT_GC, ucp_N }, + { 400, PT_PC, ucp_Nd }, + { 403, PT_SC, ucp_New_Tai_Lue }, + { 415, PT_SC, ucp_Nko }, + { 419, PT_PC, ucp_Nl }, + { 422, PT_PC, ucp_No }, + { 425, PT_SC, ucp_Ogham }, + { 431, PT_SC, ucp_Old_Italic }, + { 442, PT_SC, ucp_Old_Persian }, + { 454, PT_SC, ucp_Oriya }, + { 460, PT_SC, ucp_Osmanya }, + { 468, PT_GC, ucp_P }, + { 470, PT_PC, ucp_Pc }, + { 473, PT_PC, ucp_Pd }, + { 476, PT_PC, ucp_Pe }, + { 479, PT_PC, ucp_Pf }, + { 482, PT_SC, ucp_Phags_Pa }, + { 491, PT_SC, ucp_Phoenician }, + { 502, PT_PC, ucp_Pi }, + { 505, PT_PC, ucp_Po }, + { 508, PT_PC, ucp_Ps }, + { 511, PT_SC, ucp_Runic }, + { 517, PT_GC, ucp_S }, + { 519, PT_PC, ucp_Sc }, + { 522, PT_SC, ucp_Shavian }, + { 530, PT_SC, ucp_Sinhala }, + { 538, PT_PC, ucp_Sk }, + { 541, PT_PC, ucp_Sm }, + { 544, PT_PC, ucp_So }, + { 547, PT_SC, ucp_Syloti_Nagri }, + { 560, PT_SC, ucp_Syriac }, + { 567, PT_SC, ucp_Tagalog }, + { 575, PT_SC, ucp_Tagbanwa }, + { 584, PT_SC, ucp_Tai_Le }, + { 591, PT_SC, ucp_Tamil }, + { 597, PT_SC, ucp_Telugu }, + { 604, PT_SC, ucp_Thaana }, + { 611, PT_SC, ucp_Thai }, + { 616, PT_SC, ucp_Tibetan }, + { 624, PT_SC, ucp_Tifinagh }, + { 633, PT_SC, ucp_Ugaritic }, + { 642, PT_SC, ucp_Yi }, + { 645, PT_GC, ucp_Z }, + { 647, PT_PC, ucp_Zl }, + { 650, PT_PC, ucp_Zp }, + { 653, PT_PC, ucp_Zs } +}; + +const int _pcre_utt_size = sizeof(_pcre_utt) / sizeof(ucp_type_table); + +#endif /* SUPPORT_UTF8 */ + +/* End of pcre_tables.c */ diff --git a/modules/string/src/c/scistrtostr.c b/modules/string/src/c/scistrtostr.c new file mode 100755 index 000000000..b2555e842 --- /dev/null +++ b/modules/string/src/c/scistrtostr.c @@ -0,0 +1,53 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 +* +* 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 +* +*/ +/*--------------------------------------------------------------------------*/ +#include "MALLOC.h" +#include "scistrtostr.h" +#include "cvstr.h" +/*--------------------------------------------------------------------------*/ +#define MEM_LACK -3 +/*--------------------------------------------------------------------------*/ +int SciStrtoStr (int *Scistring, int *nstring, int *ptrstrings, char **strh) +{ + char *s = NULL, *p = NULL; + int li = 0, ni = 0, *SciS = NULL, i = 0, job = 1; + + li = ptrstrings[0]; + ni = ptrstrings[*nstring] - li + *nstring + 1; + + p = (char *) MALLOC(ni * sizeof(char) ); + + if (p == NULL) + { + return MEM_LACK; + } + + SciS = Scistring; + s = p; + for ( i = 1 ; i < *nstring + 1 ; i++) + { + ni = ptrstrings[i] - li; + li = ptrstrings[i]; + F2C(cvstr)(&ni, SciS, s, &job, (long int)ni); + SciS += ni; + s += ni; + if (i < *nstring) + { + *s = '\n'; + s++; + } + } + *s = '\0'; + *strh = p; + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/setScilabCharactersCodes.c b/modules/string/src/c/setScilabCharactersCodes.c new file mode 100755 index 000000000..ec70011b0 --- /dev/null +++ b/modules/string/src/c/setScilabCharactersCodes.c @@ -0,0 +1,48 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - 2010 - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include "setScilabCharactersCodes.h" +#include "stack-def.h" +/*--------------------------------------------------------------------------*/ +void setScilabCharactersCodes(void) +{ + const char alpha[csiz] = + { + "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" + "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" + "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" + "u" "v" "w" "x" "y" "z" "_" "#" "!" "$" + " " "(" ")" ";" ":" "+" "-" "*" "/" "\\" + "=" "." "," "'" "[" "]" "%" "|" "&" "<" + ">" "~" "^" + }; + + const char alphb[csiz] = + { + "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" + "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" + "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" + "U" "V" "W" "X" "Y" "Z" "0" "0" "?" "0" + "\t" "0" "0" "0" "0" "0" "0" "0" "0" "$" + "0" "0" "0" "\"" "{" "}" "0" "0" "0" "`" + "0" "@" "0" + }; + + memcpy(C2F(cha1).alfa, alpha, sizeof(alpha)); + memcpy(C2F(cha1).alfb, alphb, sizeof(alphb)); + C2F(cha1).buf[0] = 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/setScilabCharactersCodes.h b/modules/string/src/c/setScilabCharactersCodes.h new file mode 100755 index 000000000..78fe4e79d --- /dev/null +++ b/modules/string/src/c/setScilabCharactersCodes.h @@ -0,0 +1,58 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __SETSCILABCHARACTERSCODES_H__ +#define __SETSCILABCHARACTERSCODES_H__ + + +/** ASCII printable characters +* http://en.wikipedia.org/wiki/ASCII +*/ + +/** +* Scilab codes for known characters +* In Scilab, chars are first converted as integers (positives and some +* negatives) and we have : +* +* code | 0 1 .... 9 | 10 11 ... 35 | 36 37 38 39 | 40 +* -----+-------------+----------------+----------------+------ +* char | 0 1 .... 9 | a b ... z | _ # ! $ | blank +* ============================================================ +* char | | A B ... Z | ? | tab +* -------------------+----------------+----------------+------ +* code | |-10 -11 ... -35 | -38 ! -40 +* +* In fact (for the mapping code -> char), code = -1 +* to -9 correspond also to chars 1 to 9 and code = -36,-37,-39 +* to the char 0 +* +* So if c is a scilab coded char then : +* +* abs(c) <= 9 => c is a digit +* abs(c) < 40 => c is an alphanum Scilab char (which +* comprise _ but also # ! $ ?). Moreover +* Scilab names may begin with % +* abs(c) == 40 => c is a blank "like" (blank or tab) char +* The upper-case characters and some equivalents are coded by the lower-case code with a sign +* change. +* ref : Guide for Developers (Scilab Internals) +*/ + +/** +* Set Scilab Characters Codes in C2F(cha1) +*/ +void setScilabCharactersCodes(void); + +#endif /* __SETSCILABCHARACTERSCODES_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/string.rc b/modules/string/src/c/string.rc new file mode 100755 index 000000000..046836256 --- /dev/null +++ b/modules/string/src/c/string.rc @@ -0,0 +1,96 @@ +// Microsoft Visual C++ generated resource script. +// + + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +//#include "afxres.h" +#define APSTUDIO_HIDDEN_SYMBOLS +#include "windows.h" +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// French (France) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) +#ifdef _WIN32 +LANGUAGE LANG_FRENCH, SUBLANG_FRENCH +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 5,5,2,0 + PRODUCTVERSION 5,5,2,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040c04b0" + BEGIN + VALUE "FileDescription", "string module" + VALUE "FileVersion", "5, 5, 2, 0" + VALUE "InternalName", "string module" + VALUE "LegalCopyright", "Copyright (C) 2017" + VALUE "OriginalFilename", "string.dll" + VALUE "ProductName", "string module" + VALUE "ProductVersion", "5, 5, 2, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x40c, 1200 + END +END + +#endif // French (France) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/modules/string/src/c/string.vcxproj b/modules/string/src/c/string.vcxproj new file mode 100755 index 000000000..12428c029 --- /dev/null +++ b/modules/string/src/c/string.vcxproj @@ -0,0 +1,352 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{8D45767A-9B03-4905-97F6-D2F3F79141EA}</ProjectGuid> + <RootNamespace>string</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>.;../../includes;../cpp;../../../../libs/pcre;../../../core/includes;../../../api_scilab/includes;../../../windows_tools/includes;../../../localization/includes;../../../output_stream/includes;../../../functions/includes;../../../../libs/intl;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;STRING_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)string_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)scilab_windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilab_windows.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)localization_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilocalization.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)functions.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>scilab_windows.lib;core.lib;string_f.lib;scilocalization.lib;linpack_f.lib;functions.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>.;../../includes;../cpp;../../../../libs/pcre;../../../core/includes;../../../api_scilab/includes;../../../windows_tools/includes;../../../localization/includes;../../../output_stream/includes;../../../functions/includes;../../../../libs/intl;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;STRING_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)string_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)scilab_windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilab_windows.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)localization_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilocalization.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)functions.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>scilab_windows.lib;core.lib;string_f.lib;scilocalization.lib;linpack_f.lib;functions.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>.;../../includes;../cpp;../../../../libs/pcre;../../../core/includes;../../../api_scilab/includes;../../../windows_tools/includes;../../../localization/includes;../../../output_stream/includes;../../../functions/includes;../../../../libs/intl;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;STRING_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + <DisableSpecificWarnings>4723</DisableSpecificWarnings> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)string_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)scilab_windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilab_windows.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)localization_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilocalization.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)functions.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>scilab_windows.lib;core.lib;string_f.lib;scilocalization.lib;linpack_f.lib;functions.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>.;../../includes;../cpp;../../../../libs/pcre;../../../core/includes;../../../api_scilab/includes;../../../windows_tools/includes;../../../localization/includes;../../../output_stream/includes;../../../functions/includes;../../../../libs/intl;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;STRING_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + <DisableSpecificWarnings>4723</DisableSpecificWarnings> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)string_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)scilab_windows_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilab_windows.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)localization_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)scilocalization.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)functions.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>scilab_windows.lib;core.lib;string_f.lib;scilocalization.lib;linpack_f.lib;functions.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="..\cpp\sort_inter.cpp" /> + <ClCompile Include="code2str.c" /> + <ClCompile Include="convstr.c" /> + <ClCompile Include="cvstr.c" /> + <ClCompile Include="DllMainString.c" /> + <ClCompile Include="getfastcode.c" /> + <ClCompile Include="..\..\sci_gateway\c\gw_string.c" /> + <ClCompile Include="InitializeString.c" /> + <ClCompile Include="isalphanum.c" /> + <ClCompile Include="isdigit.c" /> + <ClCompile Include="isletter.c" /> + <ClCompile Include="men_Sutils.c" /> + <ClCompile Include="partfunction.c" /> + <ClCompile Include="pcre_error.c" /> + <ClCompile Include="pcre_private.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_ascii.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_code2str.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_convstr.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_emptystr.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_grep.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_isalphanum.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_isascii.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_isdigit.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_isletter.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_length.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_part.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_regexp.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_str2code.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strcat.c"> + <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MinSpace</Optimization> + <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MinSpace</Optimization> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strchr.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strcmp.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strcspn.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strindex.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_string.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_stripblanks.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strncpy.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strrev.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strsplit.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strspn.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strstr.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strsubst.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strtod.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_strtok.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_tokens.c" /> + <ClCompile Include="..\..\sci_gateway\c\sci_isnum.c" /> + <ClCompile Include="scistrtostr.c" /> + <ClCompile Include="setScilabCharactersCodes.c" /> + <ClCompile Include="StringConvert.c" /> + <ClCompile Include="stringsCompare.c" /> + <ClCompile Include="stringsstrrchr.c" /> + <ClCompile Include="stringsstrrev.c" /> + <ClCompile Include="stringToDouble.c" /> + <ClCompile Include="stripblanks.c" /> + <ClCompile Include="stristr.c" /> + <ClCompile Include="strsplit.c" /> + <ClCompile Include="strsubst.c" /> + <ClCompile Include="tokens.c" /> + <ClCompile Include="isnum.c" /> + <ClCompile Include="stringToComplex.c" /> + <ClCompile Include="complex_array.c" /> + </ItemGroup> + <ItemGroup> + <None Include="..\..\locales\string.pot" /> + <None Include="functions_Import.def" /> + <None Include="core_import.def" /> + <None Include="linpack_f_Import.def" /> + <None Include="localization_Import.def" /> + <None Include="Scilab_windows_Import.def" /> + <None Include="string_f_Import.def" /> + <None Include="..\..\Makefile.am" /> + <None Include="..\..\string.iss" /> + <None Include="..\..\sci_gateway\string_gateway.xml" /> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="string.rc" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\..\..\tools\Dumpexts\Dumpexts.vcxproj"> + <Project>{3170e4c2-1173-4264-a222-7ee8ccb3ddf7}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\..\..\api_scilab\api_scilab.vcxproj"> + <Project>{43c5bab1-1dca-4743-a183-77e0d42fe7d0}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\..\..\integer\src\c\integer.vcxproj"> + <Project>{c7865caa-ec7c-41eb-8324-2b81c384ca20}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\..\..\output_stream\src\c\output_stream.vcxproj"> + <Project>{a5911cd7-f8e8-440c-a23e-4843a0636f3a}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\..\includes\code2str.h" /> + <ClInclude Include="..\..\includes\cvstr.h" /> + <ClInclude Include="..\..\includes\dynlib_string.h" /> + <ClInclude Include="..\..\includes\getfastcode.h" /> + <ClInclude Include="..\..\includes\gw_string.h" /> + <ClInclude Include="..\..\includes\InitializeString.h" /> + <ClInclude Include="..\..\includes\men_Sutils.h" /> + <ClInclude Include="..\..\includes\pcre_private.h" /> + <ClInclude Include="..\..\includes\scistrtostr.h" /> + <ClInclude Include="..\..\includes\stricmp.h" /> + <ClInclude Include="..\..\includes\StringConvert.h" /> + <ClInclude Include="..\..\includes\stringToDouble.h" /> + <ClInclude Include="..\..\includes\stripblanks.h" /> + <ClInclude Include="..\..\includes\stristr.h" /> + <ClInclude Include="..\..\includes\strsubst.h" /> + <ClInclude Include="..\..\includes\stringToComplex.h" /> + <ClInclude Include="..\..\includes\complex_array.h" /> + <ClInclude Include="..\cpp\sort_inter.h" /> + <ClInclude Include="config.h" /> + <ClInclude Include="convstr.h" /> + <ClInclude Include="CreateEmptystr.h" /> + <ClInclude Include="isalphanum.h" /> + <ClInclude Include="isdigit.h" /> + <ClInclude Include="isletter.h" /> + <ClInclude Include="partfunction.h" /> + <ClInclude Include="pcre_error.h" /> + <ClInclude Include="pcre_internal.h" /> + <ClInclude Include="setScilabCharactersCodes.h" /> + <ClInclude Include="stringsCompare.h" /> + <ClInclude Include="stringsstrrchr.h" /> + <ClInclude Include="stringsstrrev.h" /> + <ClInclude Include="strsplit.h" /> + <ClInclude Include="tokens.h" /> + <ClInclude Include="ucp.h" /> + <ClInclude Include="isnum.h" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/string/src/c/string.vcxproj.filters b/modules/string/src/c/string.vcxproj.filters new file mode 100755 index 000000000..fc0978073 --- /dev/null +++ b/modules/string/src/c/string.vcxproj.filters @@ -0,0 +1,345 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{8f4b4e86-05d3-4230-9042-215d5da39a5b}</UniqueIdentifier> + <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{b5bb30d7-e6b4-428d-8105-8afaa34e6bc4}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl</Extensions> + </Filter> + <Filter Include="localization"> + <UniqueIdentifier>{80ed89b6-b1df-47ba-a04e-81edafdf3bdd}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies"> + <UniqueIdentifier>{34866862-df2f-420b-9752-9a0063422099}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies\Imports"> + <UniqueIdentifier>{dc8cf049-5b47-426f-8325-135f6110c526}</UniqueIdentifier> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{0d508648-07ca-4944-8dee-2b1644e28665}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="code2str.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="convstr.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="cvstr.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="DllMainString.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="getfastcode.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\gw_string.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="InitializeString.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="isalphanum.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="isdigit.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="isletter.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="men_Sutils.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="partfunction.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="pcre_error.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="pcre_private.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_ascii.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_code2str.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_convstr.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_emptystr.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_grep.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_isalphanum.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_isascii.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_isdigit.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_isletter.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_length.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_part.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_regexp.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_str2code.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strcat.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strchr.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strcmp.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strcspn.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_string.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_stripblanks.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strncpy.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strrev.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strsplit.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strspn.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strstr.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strsubst.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strtod.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strtok.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_tokens.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="scistrtostr.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="setScilabCharactersCodes.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="StringConvert.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="stringsCompare.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="stringsstrrchr.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="stringsstrrev.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="stripblanks.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="strsplit.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="strsubst.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="tokens.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="stringToDouble.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="stristr.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_isnum.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="isnum.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="stringToComplex.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="complex_array.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\sci_strindex.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\cpp\sort_inter.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <None Include="core_import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="localization_Import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="Scilab_windows_Import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="string_f_Import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="..\..\Makefile.am" /> + <None Include="..\..\string.iss" /> + <None Include="..\..\sci_gateway\string_gateway.xml" /> + <None Include="linpack_f_Import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="functions_Import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="..\..\locales\string.pot"> + <Filter>localization</Filter> + </None> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="string.rc"> + <Filter>Resource Files</Filter> + </ResourceCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\..\includes\code2str.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\cvstr.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\dynlib_string.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\getfastcode.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\gw_string.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\InitializeString.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\men_Sutils.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\pcre_private.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\scistrtostr.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\stricmp.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\StringConvert.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\stringToDouble.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\stripblanks.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\strsubst.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="config.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="convstr.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="CreateEmptystr.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="isalphanum.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="isdigit.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="isletter.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="partfunction.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="pcre_error.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="pcre_internal.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="setScilabCharactersCodes.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="stringsCompare.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="stringsstrrchr.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="stringsstrrev.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="strsplit.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="tokens.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="ucp.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\stristr.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\stringToComplex.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\complex_array.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="isnum.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\cpp\sort_inter.h"> + <Filter>Header Files</Filter> + </ClInclude> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/string/src/c/stringToComplex.c b/modules/string/src/c/stringToComplex.c new file mode 100755 index 000000000..d2a9cf348 --- /dev/null +++ b/modules/string/src/c/stringToComplex.c @@ -0,0 +1,538 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2010-2011 - DIGITEO - Allan CORNET + * + * 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 + * + */ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <math.h> +#include <ctype.h> +#include "stringToComplex.h" +#include "stringToDouble.h" +#include "MALLOC.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#include "BOOL.h" +#include "strsubst.h" +/* ========================================================================== */ +#define PlusChar '+' +#define LessChar '-' +#define ComplexCharI 'i' +#define ComplexCharJ 'j' +#define ComplexScilab "%i" +#define ComplexI "i" +/* ========================================================================== */ +#ifndef _MSC_VER +#ifndef strnicmp +#define strnicmp strncasecmp +#endif +#else +#define stricmp _stricmp +#endif +#ifdef _MSC_VER +#undef strnicmp +#define strnicmp _strnicmp +#endif +/* ========================================================================== */ +static int ParseNumber(const char* tx); +static stringToComplexError ParseComplexValue(const char *tx, BOOL bConvertByNAN, double *real, double *imag); +static char *midstring(const char *tx, size_t pos, int nb); +static char *leftstring(const char *tx, size_t pos); +static BOOL is_unit_imaginary (const char *src, double *im); +static double returnNAN(void); +/* ========================================================================== */ +complexArray *stringsToComplexArray(const char **pSTRs, int nbElements, + const char *decimal, + BOOL bConvertByNAN, + stringToComplexError *ierr) +{ + complexArray *pComplexArray = NULL; + + *ierr = STRINGTOCOMPLEX_ERROR; + if (nbElements <= 0) + { + return NULL; + } + + if (pSTRs == NULL) + { + *ierr = STRINGTOCOMPLEX_MEMORY_ALLOCATION; + } + else + { + pComplexArray = createComplexArrayEmpty(nbElements); + if (pComplexArray) + { + int i = 0; + for (i = 0; i < nbElements; i++) + { + doublecomplex dComplexValue = stringToComplex(pSTRs[i], decimal, bConvertByNAN, ierr); + if (*ierr != STRINGTOCOMPLEX_NO_ERROR) + { + freeComplexArray(pComplexArray); + return NULL; + } + else + { + pComplexArray->realPart[i] = dComplexValue.r; + pComplexArray->imagPart[i] = dComplexValue.i; + } + } + cleanImagPartComplexArray(pComplexArray); + } + else + { + *ierr = STRINGTOCOMPLEX_MEMORY_ALLOCATION; + } + } + return pComplexArray; +} +/* ========================================================================== */ +doublecomplex stringToComplex(const char *pSTR, const char *decimal, BOOL bConvertByNAN, stringToComplexError *ierr) +{ + doublecomplex dComplexValue; + *ierr = STRINGTOCOMPLEX_ERROR; + + dComplexValue.r = 0.; + dComplexValue.i = 0.; + + if (pSTR) + { + double real = 0.; + double imag = 0.; + char *pStrTemp = strsub((char*)pSTR, " ", ""); + + if (pStrTemp) + { + char *pStrFormatted = strsub(pStrTemp, decimal, "."); + FREE(pStrTemp); + + if (pStrFormatted) + { + int lenStrFormatted = (int) strlen(pStrFormatted); + + /* case .4 replaced by 0.4 */ + if (pStrFormatted[0] == '.') + { + /* case .4 replaced by 0.4 */ + char *pstStrTemp = (char*)MALLOC(sizeof(char) * (lenStrFormatted + strlen("0") + 1)); + strcpy(pstStrTemp, "0"); + strcat(pstStrTemp, pStrFormatted); + FREE(pStrFormatted); + pStrFormatted = pstStrTemp; + } + + if (lenStrFormatted > 1) + { + if (((pStrFormatted[0] == '+') || (pStrFormatted[0] == '-')) && + (pStrFormatted[1] == '.')) + { + /* case +.4 replaced by +0.4 */ + char *pstStrTemp = strsub(pStrFormatted, "+.", "+0."); + FREE(pStrFormatted); + + /* case -.4 replaced by -0.4 */ + pStrFormatted = strsub(pstStrTemp, "-.", "-0."); + FREE(pstStrTemp); + } + } + + /* Case: "i", "+i", "-i", and with "j" */ + if (is_unit_imaginary (pStrFormatted, &imag)) + { + *ierr = STRINGTOCOMPLEX_NO_ERROR; + dComplexValue.r = 0.; + dComplexValue.i = imag; + } + else + { + *ierr = ParseComplexValue(pStrFormatted, bConvertByNAN, &real, &imag); + } + FREE(pStrFormatted); + } + } + dComplexValue.r = real; + dComplexValue.i = imag; + } + return dComplexValue; +} +/* ========================================================================== */ +static int ParseNumber(const char* tx) +{ + int lookahead = 0; + int len = 0; + + if (tx[len] == NULL) + { + return lookahead; + } + if (tx[len] < 0) + { + return lookahead; + } + + // Special cases: constants + if (strlen(tx) >= 5 && strncmp(tx, "+%eps", 5) == 0 || strncmp(tx, "-%eps", 5) == 0 || strncmp(tx, "+%nan", 5) == 0 || + strncmp(tx, "-%nan", 5) == 0 || strncmp(tx, "+%inf", 5) == 0 || strncmp(tx, "-%inf", 5) == 0) + { + return 5; + } + else if (strlen(tx) >= 4 && strncmp(tx, "%eps", 4) == 0 || strncmp(tx, "+%pi", 4) == 0 || strncmp(tx, "-%pi", 4) == 0 || + strncmp(tx, "+Inf", 4) == 0 || strncmp(tx, "-Inf", 4) == 0 || strncmp(tx, "+Nan", 4) == 0 || + strncmp(tx, "-Nan", 4) == 0 || strncmp(tx, "%nan", 4) == 0 || strncmp(tx, "%inf", 4) == 0 ) + { + return 4; + } + else if (strlen(tx) >= 3 && strncmp(tx, "+%e", 3) == 0 || strncmp(tx, "-%e", 3) == 0 || strncmp(tx, "%pi", 3) == 0 || + strncmp(tx, "Nan", 3) == 0 || strncmp(tx, "Inf", 3) == 0 || strncmp(tx, "%pi", 3) == 0) + { + return 3; + } + else if (strlen(tx) >= 2 && strncmp(tx, "%e", 2) == 0) + { + return 2; + } + + if ((tx[len] == '+') || (tx[len] == '-')) + { + len++; + } + + while (isdigit(tx[len])) + { + len++; + } + lookahead = len; + + if (tx[lookahead] == '.') + { + lookahead++; + len = 0; + while (isdigit(tx[len + lookahead])) + { + len++; + } + lookahead += len; + } + + if ((tx[lookahead] == 'E') || (tx[lookahead] == 'e') || + (tx[lookahead] == 'D') || (tx[lookahead] == 'd')) + { + + lookahead++; + if ((tx[lookahead] == '+') || (tx[lookahead] == '-')) + { + lookahead++; + } + + len = 0; + while (isdigit(tx[len + lookahead])) + { + len++; + } + + lookahead += len; + } + return lookahead; +} +/* ========================================================================== */ +static stringToComplexError ParseComplexValue(const char *tx, BOOL bConvertByNAN, double *real, double *imag) +{ + stringToDoubleError ierrDouble = STRINGTODOUBLE_NO_ERROR; + stringToComplexError ierr = STRINGTOCOMPLEX_NO_ERROR; + char *rnum_string = NULL; + char *inum_string = NULL; + size_t lnum = 0; + BOOL haveImagI = FALSE; + char *modifiedTxt = NULL; + int i = 0; + + *real = stringToDouble(tx, FALSE, &ierrDouble); + *imag = 0; + + /* test on strlen(tx) > 1 to remove case 'e' */ + if ((int)strlen(tx) < 2) + { + if (ierrDouble == STRINGTODOUBLE_NO_ERROR) + { + ierr = (stringToComplexError) ierrDouble; + } + else + { + if (bConvertByNAN) + { + ierrDouble = STRINGTODOUBLE_NOT_A_NUMBER; + *real = returnNAN(); + *imag = 0; + } + else + { + *real = 0; + *imag = 0; + ierr = (stringToComplexError) ierrDouble; + } + } + } + else if (ierrDouble != STRINGTODOUBLE_NO_ERROR) + { + modifiedTxt = strsub((char*)tx, ComplexScilab, ComplexI); + lnum = ParseNumber(modifiedTxt); + if (lnum <= 1) + { + /* manages special cases nan + nani, ... */ + if (strnicmp(modifiedTxt, NanString, strlen(NanString)) == 0) + { + lnum = strlen(NanString); + } + else if (strnicmp(modifiedTxt, InfString, strlen(InfString)) == 0) + { + lnum = strlen(InfString); + } + else if (strnicmp(modifiedTxt, NegInfString, strlen(NegInfString)) == 0) + { + lnum = strlen(NegInfString); + } + else if (strnicmp(modifiedTxt, PosInfString, strlen(PosInfString)) == 0) + { + lnum = strlen(PosInfString); + } + else if (strnicmp(modifiedTxt, NegNanString, strlen(NegNanString)) == 0) + { + lnum = strlen(NegNanString); + } + else if (strnicmp(modifiedTxt, PosNanString, strlen(PosNanString)) == 0) + { + lnum = strlen(PosNanString); + } + } + inum_string = midstring(modifiedTxt, lnum, -1); + + if ((inum_string[strlen(inum_string) - 1] == 'i') || + (inum_string[strlen(inum_string) - 1] == 'j')) // The imaginary part looks like "a*%i" + { + inum_string[strlen(inum_string) - 1] = 0; + if (inum_string[strlen(inum_string) - 1] == '*') + { + inum_string[strlen(inum_string) - 1] = 0; + } + + if (strcmp(inum_string, "+") == 0) + { + FREE(inum_string); + inum_string = strdup("+1"); + } + + if (strcmp(inum_string, "-") == 0) + { + FREE(inum_string); + inum_string = strdup("-1"); + } + haveImagI = TRUE; + } + else if (inum_string[1] == 'i' || inum_string[1] == 'j') // The imaginary part looks like "%i*a". For instance if string() has been used + { + int len_inum_string = strlen(inum_string); + for (i = 1; i < len_inum_string; ++i) + { + inum_string[i] = inum_string[i + 1]; // Removing the "i" + } + if (inum_string[1] == '*') + { + for (i = 1; i < len_inum_string; ++i) + { + inum_string[i] = inum_string[i + 1]; // Removing the "*" + } + } + + if (strcmp(inum_string, "+") == 0) + { + FREE(inum_string); + inum_string = strdup("+1"); + } + + if (strcmp(inum_string, "-") == 0) + { + FREE(inum_string); + inum_string = strdup("-1"); + } + haveImagI = TRUE; + } + else + { + haveImagI = FALSE; + } + rnum_string = leftstring(modifiedTxt, lnum); + + if (strcmp(inum_string, "") == 0) + { + *imag = stringToDouble(rnum_string, bConvertByNAN, &ierrDouble); + ierr = (stringToComplexError)(ierrDouble); + *real = 0.; + } + else + { + double dReal = 0.; + double dImag = 0.; + + stringToDoubleError ierrReal = STRINGTODOUBLE_NO_ERROR; + stringToDoubleError ierrImag = STRINGTODOUBLE_NO_ERROR; + dReal = stringToDouble(rnum_string, FALSE, &ierrReal); + dImag = stringToDouble(inum_string, FALSE, &ierrImag); + + if ((ierrReal == STRINGTODOUBLE_NO_ERROR) && (ierrImag == STRINGTODOUBLE_NO_ERROR)) + { + if (!haveImagI) + { + if (bConvertByNAN) + { + ierr = STRINGTOCOMPLEX_NO_ERROR; + *real = returnNAN(); + *imag = 0.; + } + else + { + ierr = STRINGTOCOMPLEX_ERROR; + } + } + else + { + ierr = STRINGTOCOMPLEX_NO_ERROR; + *real = dReal; + *imag = dImag; + } + } + else + { + if (bConvertByNAN) + { + ierr = STRINGTOCOMPLEX_NO_ERROR; + *real = returnNAN(); + *imag = 0.; + } + else + { + ierr = STRINGTOCOMPLEX_ERROR; + } + } + } + + FREE(rnum_string); + FREE(inum_string); + FREE(modifiedTxt); + } + return ierr; +} +/* ========================================================================== */ +static char *midstring(const char *tx, size_t pos, int nb) +{ + char *returnString = NULL; + if (tx) + { + int lenTx = (int) strlen(tx); + int posEnd = 0; + int newLen = 0; + + if (nb < 0) + { + posEnd = lenTx; + } + else + { + posEnd = nb; + } + newLen = posEnd + 1; + if (newLen > 0) + { + returnString = (char*)MALLOC(sizeof(char) * newLen); + strncpy(returnString, &tx[pos], posEnd); + returnString[posEnd] = 0; + } + } + return returnString; +} +/* ========================================================================== */ +static char *leftstring(const char *tx, size_t pos) +{ + char *returnString = NULL; + if (tx) + { + int lenTx = (int) strlen(tx); + returnString = strdup(tx); + if ((pos > lenTx)) + { + return returnString; + } + else + { + returnString[pos] = 0; + } + } + return returnString; +} +/* ========================================================================== */ +static BOOL is_unit_imaginary (const char *src, double *im) +{ + char *modifiedSrc = strsub((char*)src, ComplexScilab, ComplexI); + char *nextChar = NULL; + BOOL isUnitImag = FALSE; + + if (modifiedSrc == NULL) + { + return isUnitImag; + } + + if (modifiedSrc[0] == LessChar) + { + *im = -1.0; + nextChar = modifiedSrc + 1; + } + else + { + *im = +1.0; + if (modifiedSrc[0] == PlusChar) + { + nextChar = modifiedSrc + 1; + } + else + { + nextChar = modifiedSrc; + } + } + + if (nextChar) + { + if ((nextChar[0] == ComplexCharI || nextChar[0] == ComplexCharJ) && nextChar[1] == 0) + { + isUnitImag = TRUE; + } + } + + if (modifiedSrc) + { + FREE(modifiedSrc); + modifiedSrc = NULL; + } + return isUnitImag; +} +/* ========================================================================== */ +static double returnNAN(void) +{ + static int first = 1; + static double nan = 1.0; + + if ( first ) + { + nan = (nan - (double) first) / (nan - (double) first); + first = 0; + } + return (nan); +} +// ============================================================================= diff --git a/modules/string/src/c/stringToDouble.c b/modules/string/src/c/stringToDouble.c new file mode 100755 index 000000000..368132ce0 --- /dev/null +++ b/modules/string/src/c/stringToDouble.c @@ -0,0 +1,186 @@ +/* +* Copyright (C) 2010-2011 - DIGITEO - Allan CORNET +* +* 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 +* +*/ + +/* ========================================================================== */ +#if defined(__linux__) +#define _GNU_SOURCE /* avoid dependency on GLIBC_2.7 */ +#endif +/* ========================================================================== */ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <math.h> +#include "stringToDouble.h" +#include "core_math.h" +#include "MALLOC.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#ifndef _MSC_VER +#ifndef stricmp +#define stricmp strcasecmp +#endif +#else +#define stricmp _stricmp +#endif +/* ========================================================================== */ +#define DEFAULT_DOUBLE_MAX_DIGIT_FORMAT "%lg" +/* ========================================================================== */ +static double returnINF(BOOL bPositive); +static double returnNAN(void); +/* ========================================================================== */ + +static char* replace_D_By_E(const char* _pst) +{ + //find and replace d and D by E for compatibility with strtod Linux/Mac + char* pstReturn = strdup(_pst); + char* pstFind = pstReturn; + do + { + pstFind = strchr(pstFind, 'D'); + if (pstFind) + { + pstFind[0] = 'E'; + } + } + while (pstFind); + + pstFind = pstReturn; + do + { + pstFind = strchr(pstFind, 'd'); + if (pstFind) + { + pstFind[0] = 'e'; + } + } + while (pstFind); + + return pstReturn; +} + +double stringToDouble(const char *pSTR, BOOL bConvertByNAN, stringToDoubleError *ierr) +{ + double dValue = 0.0; + *ierr = STRINGTODOUBLE_ERROR; + if (pSTR) + { + if ((stricmp(pSTR, NanString) == 0) || (stricmp(pSTR, NegNanString) == 0) || + (stricmp(pSTR, PosNanString) == 0) || (stricmp(pSTR, ScilabPosNanString) == 0) || + (stricmp(pSTR, ScilabNanString) == 0) || (stricmp(pSTR, ScilabNegNanString) == 0)) + { + dValue = returnNAN(); + } + else if ((stricmp(pSTR, InfString) == 0) || (stricmp(pSTR, PosInfString) == 0) || + (stricmp(pSTR, ScilabInfString) == 0) || (stricmp(pSTR, ScilabPosInfString) == 0)) + { + dValue = returnINF(TRUE); + } + else if ((stricmp(pSTR, NegInfString) == 0) || (stricmp(pSTR, ScilabNegInfString) == 0)) + { + dValue = returnINF(FALSE); + } + else if ((stricmp(pSTR, ScilabPiString) == 0) || (stricmp(pSTR, ScilabPosPiString) == 0)) + { + dValue = M_PI; + } + else if (stricmp(pSTR, ScilabNegPiString) == 0) + { + dValue = -M_PI; + } + else if ((stricmp(pSTR, ScilabEString) == 0) || (stricmp(pSTR, ScilabPosEString) == 0)) + { + dValue = exp(1); + } + else if (stricmp(pSTR, ScilabNegEString) == 0) + { + dValue = -exp(1); + } + else if ((stricmp(pSTR, ScilabEpsString) == 0) || (stricmp(pSTR, ScilabPosEpsString) == 0)) + { + dValue = EPSILON; + } + else if (stricmp(pSTR, ScilabNegEpsString) == 0) + { + dValue = -EPSILON; + } + else + { + char* pstReplaced = replace_D_By_E(pSTR); + char *pEnd = NULL; + double v = strtod(pstReplaced, &pEnd); + if ((v == 0) && (pEnd == pstReplaced)) + { + if (bConvertByNAN) + { + dValue = returnNAN(); + } + else + { + *ierr = STRINGTODOUBLE_NOT_A_NUMBER; + FREE(pstReplaced); + return (dValue = 0.0); + } + } + else + { + if (strcmp(pEnd, "") == 0) + { + dValue = v; + } + else + { + if (bConvertByNAN) + { + dValue = returnNAN(); + } + else + { + *ierr = STRINGTODOUBLE_NOT_A_NUMBER; + FREE(pstReplaced); + return (dValue = 0.0); + } + } + } + + FREE(pstReplaced); + } + *ierr = STRINGTODOUBLE_NO_ERROR; + } + else + { + *ierr = STRINGTODOUBLE_MEMORY_ALLOCATION; + } + return dValue; +} +// ============================================================================= +static double returnINF(BOOL bPositive) +{ + double dbl1 = 1.0; + double dbl0 = dbl1 - dbl1; + int iSign = bPositive == 1 ? 1 : -1; + + return iSign * dbl1 / dbl0; +} +// ============================================================================= +static double returnNAN(void) +{ + static int first = 1; + static double nan = 1.0; + + if ( first ) + { + nan = (nan - (double) first) / (nan - (double) first); + first = 0; + } + return (nan); +} +// ============================================================================= diff --git a/modules/string/src/c/string_f_Import.def b/modules/string/src/c/string_f_Import.def new file mode 100755 index 000000000..0f0e0037b --- /dev/null +++ b/modules/string/src/c/string_f_Import.def @@ -0,0 +1,9 @@ +LIBRARY string_f.dll + + +EXPORTS +; --------------------------------------- +; string_f +; --------------------------------------- +intstring_ + diff --git a/modules/string/src/c/stringsCompare.c b/modules/string/src/c/stringsCompare.c new file mode 100755 index 000000000..c9b069b9a --- /dev/null +++ b/modules/string/src/c/stringsCompare.c @@ -0,0 +1,65 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <string.h> +#include "stringsCompare.h" +#include "MALLOC.h" +#include "stricmp.h" +/*--------------------------------------------------------------------------*/ +static int sign(int x) +{ + if (x < 0) + { + return -1; + } + if (x > 0) + { + return 1; + } + return 0; +} + +int * stringsCompare(char **Input_String_One, int dim_One, char **Input_String_Two, int dim_Two, BOOL dostricmp) +{ + int *returnedValues = NULL; + int j = 0; + + returnedValues = (int*)MALLOC(sizeof(int) * dim_One); + if (returnedValues) + { + int i = 0; + for (i = 0; i < dim_One; i++) + { + if (dim_Two == 1) + { + j = 0; + } + else + { + j = i; + } + + if (dostricmp) + { + returnedValues[i] = sign(stricmp(Input_String_One[i], Input_String_Two[j])); + } + else + { + returnedValues[i] = sign(strcmp(Input_String_One[i], Input_String_Two[j])); + } + } + } + return returnedValues; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/stringsCompare.h b/modules/string/src/c/stringsCompare.h new file mode 100755 index 000000000..78826a99e --- /dev/null +++ b/modules/string/src/c/stringsCompare.h @@ -0,0 +1,32 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __STRINGSCOMPARE_H__ +#define __STRINGSCOMPARE_H__ + +#include "BOOL.h" + +/** +* Compare strings matrix +* @param[in] String matrix One +* @param[in] Dimension m*n of String matrix one +* @param[in] String matrix Two +* @param[in] Dimension m*n of String matrix two +* @param[in] BOOL to do stricmp +* @return a int matrix (result of strcmp) +*/ +int * stringsCompare(char **Input_String_One, int dim_One, char **Input_String_Two, int dim_Two, BOOL dostricmp); + +#endif /* __STRINGSCOMPARE_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/stringsstrrchr.c b/modules/string/src/c/stringsstrrchr.c new file mode 100755 index 000000000..bc434b05a --- /dev/null +++ b/modules/string/src/c/stringsstrrchr.c @@ -0,0 +1,76 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - 2011 - Allan CORNET + * + * 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 + * + */ + +/*----------------------------------------------------------------------------*/ +#include <string.h> +#include <stdlib.h> +#include <stdio.h> +#include <ctype.h> +#include "stringsstrrchr.h" +#include "MALLOC.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#define EMPTY_WCSTR L"" +/*----------------------------------------------------------------------------*/ +wchar_t ** strings_wcsrchr(const wchar_t **InputStrings, int Dim_InputStrings, + const wchar_t** InputChar, int Dim_InputChar, BOOL do_strchr) +{ + wchar_t **wcOutput_Strings = NULL; + + if ( (InputStrings) && (InputChar) ) + { + wcOutput_Strings = (wchar_t**)MALLOC(sizeof(wchar_t*) * Dim_InputStrings); + if (wcOutput_Strings) + { + int i = 0; + for (i = 0; i < Dim_InputStrings; i++) + { + int c = 0; + wchar_t *ptrStr = NULL; + + if (Dim_InputChar == 1) + { + c = InputChar[0][0]; + } + else + { + c = InputChar[i][0]; + } + + if (do_strchr) + { + ptrStr = wcschr(InputStrings[i], (wchar_t)c); + } + else + { + ptrStr = wcsrchr(InputStrings[i], (wchar_t)c); + } + + if (ptrStr) + { + wcOutput_Strings[i] = (wchar_t*)MALLOC(sizeof(wchar_t) * (wcslen(ptrStr) + 1)); + wcscpy(wcOutput_Strings[i], ptrStr); + } + else + { + wcOutput_Strings[i] = (wchar_t*)MALLOC(sizeof(wchar_t) * (wcslen(EMPTY_WCSTR) + 1)); + wcscpy(wcOutput_Strings[i], EMPTY_WCSTR); + } + } + } + } + return wcOutput_Strings; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/stringsstrrchr.h b/modules/string/src/c/stringsstrrchr.h new file mode 100755 index 000000000..49e5f9f6f --- /dev/null +++ b/modules/string/src/c/stringsstrrchr.h @@ -0,0 +1,38 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - 2011 - Allan CORNET + * + * 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 + * + */ + +/*----------------------------------------------------------------------------*/ +#ifndef __STRINGSTRRCHAR_H__ +#define __STRINGSTRRCHAR_H__ + +#include "BOOL.h" +#include "charEncoding.h" + +/* +* Locate last occurrence of character in string or +* Locate first occurrence of character in string +* @param[in] String matrix One +* @param[in] Dimension m*n of String matrix one +* @param[in] String matrix Two +* @param[in] Dimension m*n of String matrix two +* @param[in] BOOL to do strchr (first occurrence) +* @return a string matrix (result of strchr or strrchr) +*/ +wchar_t ** strings_wcsrchr(const wchar_t **InputStrings, int Dim_InputStrings, + const wchar_t** InputChar, int Dim_InputChar, BOOL do_strchr); + +#endif /* __STRINGSTRRCHAR_H__ */ +/*----------------------------------------------------------------------------*/ + + diff --git a/modules/string/src/c/stringsstrrev.c b/modules/string/src/c/stringsstrrev.c new file mode 100755 index 000000000..6d92debb3 --- /dev/null +++ b/modules/string/src/c/stringsstrrev.c @@ -0,0 +1,85 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * Copyright (C) DIGITEO - 2009 - Allan CORNET + * + * 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 + * + */ + +/*----------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "stringsstrrev.h" +#include "freeArrayOfString.h" +#include "MALLOC.h" +#include "charEncoding.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +/*----------------------------------------------------------------------------*/ +char **strings_strrev(char **Input_strings, int Dim_Input_strings) +{ + char **Output_strings = NULL; + if (Input_strings) + { + Output_strings = (char **)MALLOC(sizeof(char*) * Dim_Input_strings); + if (Output_strings) + { + int i = 0; + for (i = 0; i < Dim_Input_strings; i++) + { + Output_strings[i] = scistrrev(Input_strings[i]); + if (Output_strings[i] == NULL) + { + freeArrayOfString(Output_strings, i); + return NULL; + } + } + } + } + return Output_strings; +} +/*----------------------------------------------------------------------------*/ +char* scistrrev(char* str) +{ + char *revstr = NULL; + if (str) + { + wchar_t *wcstr = to_wide_string(str); +#ifdef _MSC_VER + wchar_t *wcrevstr = _wcsrev(wcstr); + revstr = wide_string_to_UTF8(wcrevstr); +#else + int i = 0; + int t = 0; + int j = 0, k = 0; + + if (wcstr) + { + i = (int)wcslen(wcstr); + } + t = !(i % 2) ? 1 : 0; // check the length of the string . + + /* copy character by character to reverse string */ + k = 0; + for (j = i - 1; j > (i / 2 - t) ; j-- ) + { + /* j starts from end of string */ + /* k starts from beginning of string */ + wchar_t ch = wcstr[j]; /* ch temp. character */ + wcstr[j] = wcstr[k]; /* end and beginning characters are exchanged */ + wcstr[k++] = ch; + } + revstr = wide_string_to_UTF8(wcstr); +#endif + FREE(wcstr); + } + return revstr; +} +/*----------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/stringsstrrev.h b/modules/string/src/c/stringsstrrev.h new file mode 100755 index 000000000..a590bd3c3 --- /dev/null +++ b/modules/string/src/c/stringsstrrev.h @@ -0,0 +1,22 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*----------------------------------------------------------------------------*/ +#ifndef __STRINGSSTRREV_H__ +#define __STRINGSSTRREV_H__ + +char **strings_strrev(char **Input_strings, int Dim_Input_strings); +char* scistrrev(char* str); + +#endif /* __STRINGSSTRREV_H__ */ +/*----------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/stripblanks.c b/modules/string/src/c/stripblanks.c new file mode 100755 index 000000000..56181d1e0 --- /dev/null +++ b/modules/string/src/c/stripblanks.c @@ -0,0 +1,152 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET , Cong WU + * + * 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 + * + */ + +/* desc : The algorithm of stripblanks */ +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include <stdlib.h> +#include "gw_string.h" +#include "MALLOC.h" +#include "stripblanks.h" +#include "freeArrayOfString.h" +/*------------------------------------------------------------------------*/ +static char* substr(const char*str, unsigned start, unsigned end); +/*------------------------------------------------------------------------*/ +#define BLANK_CHARACTER ' ' +#define TAB_CHARACTER 9 +/*------------------------------------------------------------------------*/ +static char* substr(const char*str, unsigned start, unsigned end) +{ + unsigned n = end - start; + char *stbuf = NULL; + stbuf = (char*)MALLOC(sizeof(char) * (n + 1)); + + if (stbuf) + { + if ( strcmp(str, "") != 0 ) + { + strncpy(stbuf, str + start, n); /*Put a part of str into stbuf*/ + stbuf[n] = 0; + } + else + { + strcpy(stbuf, ""); + } + } + return stbuf; +} +/*------------------------------------------------------------------------*/ +void stripblanks(char **InputStrings, char **OutputStrings, int InputStringsDim, BOOL withTAB) +{ + int x = 0; + char *replacedstr = NULL; + + for ( x = 0; x < InputStringsDim ; x++) /*Search for all the matrix*/ + { + int lengthInput_One = 0; + int lengthInput_Two = 0; + int i = 0; + + /* search character ' ' or TAB from end of the string */ + for ( i = (int)strlen(InputStrings[x]) - 1 ; i > 0 ; i--) + { + if (withTAB) + { + if ( (InputStrings[x][i] == (char)BLANK_CHARACTER) || + (InputStrings[x][i] == (char)TAB_CHARACTER) ) + { + continue; + } + else + { + lengthInput_Two = i; + break; + } + } + else + { + if (InputStrings[x][i] == (char)BLANK_CHARACTER) + { + continue; + } + else + { + lengthInput_Two = i; + break; + } + } + } + /* search character ' ' or TAB from beginning of the string */ + if (lengthInput_Two > 0) + { + int len_InputStrings = (int)strlen(InputStrings[x]); + for (i = 0; i < len_InputStrings; i++) + { + if (withTAB) + { + if ( (InputStrings[x][i] == (char)BLANK_CHARACTER) || + (InputStrings[x][i] == (char)TAB_CHARACTER) ) + { + continue; + } + else + { + lengthInput_One = i; + break; + } + } + else + { + if (InputStrings[x][i] == (char)BLANK_CHARACTER) + { + continue; + } + else + { + lengthInput_One = i; + break; + } + } + } + } + + if (lengthInput_One <= lengthInput_Two ) + { + if ( (lengthInput_Two == 0) + && ( (InputStrings[x][0] == (char)BLANK_CHARACTER ) + || (withTAB && (InputStrings[x][0] == (char)TAB_CHARACTER)) ) ) + { + strcpy(OutputStrings[x], "\0"); + } + else + { + /*Get the substring without tabs*/ + replacedstr = substr(InputStrings[x], lengthInput_One, lengthInput_Two + 1 ); + /*To add the substring into the output matrix*/ + strcpy(OutputStrings[x], replacedstr); + } + + if (replacedstr) + { + FREE(replacedstr); + replacedstr = NULL; + } + } + else + { + strcpy(OutputStrings[x], InputStrings[x]); + } + } +} +/*------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/stristr.c b/modules/string/src/c/stristr.c new file mode 100755 index 000000000..3c2e797f3 --- /dev/null +++ b/modules/string/src/c/stristr.c @@ -0,0 +1,56 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) INRIA - Allan CORNET +* +* 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 +* +*/ + +/*--------------------------------------------------------------------------*/ +#include <ctype.h> +#include <string.h> +#include "stristr.h" +#include "stricmp.h" +/*--------------------------------------------------------------------------*/ +char *stristr(const char *psz, const char *tofind) +{ + const char *ptr = psz; + const char *ptr2; + + if (strlen(tofind) > 0) + { + while (1) + { + ptr = strchr(psz, toupper(*tofind)); + ptr2 = strchr(psz, tolower(*tofind)); + + if (!ptr) + { + ptr = ptr2; /* was ptr2 = ptr. Big bug fixed 10/22/99 */ + } + + if (!ptr) + { + break; + } + + if (ptr2 && (ptr2 < ptr)) + { + ptr = ptr2; + } + + if (!strnicmp(ptr, tofind, strlen(tofind))) + { + return (char *) ptr; + } + + psz = ptr + 1; + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/strsplit.c b/modules/string/src/c/strsplit.c new file mode 100755 index 000000000..e641078c0 --- /dev/null +++ b/modules/string/src/c/strsplit.c @@ -0,0 +1,106 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2009 - DIGITEO - Allan CORNET +* +* 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 +* +*/ +/*----------------------------------------------------------------------------*/ +#include <string.h> +#include "strsplit.h" +#include "MALLOC.h" +#include "freeArrayOfString.h" +/*----------------------------------------------------------------------------*/ +wchar_t **strsplit(wchar_t * wcstringToSplit, double *indices, int sizeIndices, strsplit_error *ierr) +{ + wchar_t **splitted = NULL; + *ierr = STRSPLIT_NO_ERROR; + + if (wcstringToSplit) + { + int lengthToCopy = 0; + int lenString = (int)wcslen(wcstringToSplit); + int i = 0, j = 0; + wchar_t* wcStrDest = NULL; + wchar_t* wcStrSrc = NULL; + + for (i = 0; i < sizeIndices; i++) + { + /* Check 2nd input matrix position */ + if ( ((int)indices[i] <= 0) || ((int)indices[i] >= lenString) ) + { + *ierr = STRSPLIT_INCORRECT_VALUE_ERROR; + return NULL; + } + + /* check 2nd input order */ + if (sizeIndices > 1) + { + if ( i < (sizeIndices - 1) ) + { + if ((int)indices[i] > (int)indices[i + 1]) + { + *ierr = STRSPLIT_INCORRECT_ORDER_ERROR; + return NULL; + } + } + } + } + + splitted = (wchar_t**)MALLOC(sizeof(wchar_t*) * (sizeIndices + 1)); + if (splitted == NULL) + { + *ierr = STRSPLIT_MEMORY_ALLOCATION_ERROR; + return NULL; + } + + for (i = 0; i < sizeIndices; i++) + { + + if (i == 0) + { + lengthToCopy = (int)indices[i]; + } + else + { + lengthToCopy = (int)indices[i] - (int)indices[i - 1]; + } + + splitted[i] = (wchar_t*)MALLOC(sizeof(wchar_t) * (lengthToCopy + 1)); + wcStrDest = splitted[i]; + + if (splitted[i] == NULL) + { + freeArrayOfWideString(splitted, sizeIndices); + *ierr = STRSPLIT_MEMORY_ALLOCATION_ERROR; + return NULL; + } + wcStrSrc = &wcstringToSplit[j]; + memcpy(wcStrDest, wcStrSrc, lengthToCopy * sizeof(wchar_t)); + wcStrDest[lengthToCopy] = 0; + + j = (int)indices[i]; + } + + lengthToCopy = lenString - (int)indices[sizeIndices - 1]; + splitted[sizeIndices] = (wchar_t*)MALLOC(sizeof(wchar_t) * (lengthToCopy + 1)); + wcStrDest = splitted[sizeIndices]; + + if (splitted[sizeIndices] == NULL) + { + freeArrayOfWideString(splitted, sizeIndices + 1); + *ierr = STRSPLIT_MEMORY_ALLOCATION_ERROR; + return NULL; + } + + wcStrSrc = &wcstringToSplit[j]; + memcpy(wcStrDest, wcStrSrc, lengthToCopy * sizeof(wchar_t)); + wcStrDest[lengthToCopy] = 0; + } + return splitted; +} +/*----------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/strsplit.h b/modules/string/src/c/strsplit.h new file mode 100755 index 000000000..20f5479f1 --- /dev/null +++ b/modules/string/src/c/strsplit.h @@ -0,0 +1,37 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2009 - DIGITEO - Allan CORNET +* +* 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 +* +*/ +/*----------------------------------------------------------------------------*/ +#ifndef __STRSPLITFUNCTION_H__ +#define __STRSPLITFUNCTION_H__ + +#include <wchar.h> + +typedef enum +{ + STRSPLIT_NO_ERROR = 0, + STRSPLIT_INCORRECT_VALUE_ERROR = 1, + STRSPLIT_INCORRECT_ORDER_ERROR = 2, + STRSPLIT_MEMORY_ALLOCATION_ERROR = 3 +} strsplit_error; + +/** +* split a string into substrings +* @param[in] string to split +* @param[in] indices where it is splitted +* @param[in] size of array indices +* @param[out] error code +* @return substrings +*/ +wchar_t **strsplit(wchar_t * wcstringToSplit, double *indices, int sizeIndices, strsplit_error *ierr); + +#endif /* __STRSPLITFUNCTION_H__ */ +/*----------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/strsubst.c b/modules/string/src/c/strsubst.c new file mode 100755 index 000000000..35c4e61a2 --- /dev/null +++ b/modules/string/src/c/strsubst.c @@ -0,0 +1,252 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * 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 + * + */ + +/*--------------------------------------------------------------------------*/ +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <wchar.h> +#include "strsubst.h" +#include "MALLOC.h" +#include "pcre_private.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#include "charEncoding.h" +/*--------------------------------------------------------------------------*/ +char **strsubst(char **strings_input, int strings_dim, char *string_to_search, char *replacement_string) +{ + char **replacedStrings = NULL; + + if ( (strings_input) && (string_to_search) && (replacement_string) ) + { + int i = 0; + replacedStrings = (char**)MALLOC(sizeof(char*) * strings_dim); + for (i = 0; i < strings_dim; i++) + { + char *str = strings_input[i]; + replacedStrings[i] = strsub (str, string_to_search, replacement_string); + } + } + return replacedStrings; +} +/*--------------------------------------------------------------------------*/ +char **strsubst_reg(char **strings_input, int strings_dim, char *string_to_search, char *replacement_string, int *ierr) +{ + char **replacedStrings = NULL; + + if ( (strings_input) && (string_to_search) && (replacement_string) ) + { + int i = 0; + replacedStrings = (char**)MALLOC(sizeof(char*) * strings_dim); + for (i = 0; i < strings_dim; i++) + { + char *str = strings_input[i]; + replacedStrings[i] = strsub_reg(str, string_to_search, replacement_string, ierr); + } + } + return replacedStrings; +} +/*-------------------------------------------------------------------------------------*/ +char *strsub(char* input_string, const char* string_to_search, const char* replacement_string) +{ + char *occurrence_str = NULL, *result_str = NULL; + + + char *replacedString = NULL; + int count = 0, len = 0; + + if (input_string == NULL) + { + return NULL; + } + + if (string_to_search == NULL || replacement_string == NULL) + { + return strdup(input_string); + } + + occurrence_str = strstr (input_string, string_to_search); + if (occurrence_str == NULL) + { + return strdup(input_string); + } + + if (strlen (replacement_string) > strlen (string_to_search)) + { + count = 0; + len = (int)strlen (string_to_search); + if (len) + { + occurrence_str = input_string; + while (occurrence_str != NULL && *occurrence_str != '\0') + { + occurrence_str = strstr (occurrence_str, string_to_search); + if (occurrence_str != NULL) + { + occurrence_str += len; + count++; + } + } + } + len = count * ((int)strlen(replacement_string) - (int)strlen(string_to_search)) + (int)strlen(input_string); + } + else + { + len = (int)strlen(input_string); + } + + replacedString = MALLOC (sizeof(char) * (len + 1)); + if (replacedString == NULL) + { + return NULL; + } + + occurrence_str = input_string; + result_str = replacedString; + len = (int)strlen (string_to_search); + while (*occurrence_str != '\0') + { + if (*occurrence_str == string_to_search[0] && strncmp (occurrence_str, string_to_search, len) == 0) + { + const char *N = NULL; + N = replacement_string; + while (*N != '\0') + { + *result_str++ = *N++; + } + occurrence_str += len; + } + else + { + *result_str++ = *occurrence_str++; + } + } + *result_str = '\0'; + + return replacedString; +}/*-------------------------------------------------------------------------------------*/ +char *strsub_reg(char* input_string, const char* string_to_search, const char* replacement_string, int *ierr) +{ + pcre_error_code w = PCRE_FINISHED_OK; + + int Output_Start = 0; + int Output_End = 0; + + char *replacedString = NULL; + wchar_t *wcreplacedString = NULL; + + wchar_t *wcreplacement_string = NULL; + wchar_t *wcinput_string = NULL; + + int len = 0; + + *ierr = (int)PCRE_FINISHED_OK; + + if (input_string == NULL) + { + return NULL; + } + + if (string_to_search == NULL || replacement_string == NULL) + { + return strdup(input_string); + } + + w = pcre_private(input_string, (char*)string_to_search, &Output_Start, &Output_End, NULL, NULL); + if (w != PCRE_FINISHED_OK) + { + *ierr = (int)w; + return strdup(input_string); + } + + wcreplacement_string = to_wide_string((char*)replacement_string); + wcinput_string = to_wide_string((char*)input_string); + + if (wcreplacement_string == NULL) + { + FREE(wcinput_string); + *ierr = (int)NOT_ENOUGH_MEMORY_FOR_VECTOR; + return strdup(input_string); + } + + len = (int)wcslen(wcreplacement_string) + (int)wcslen(wcinput_string); + + wcreplacedString = (wchar_t*)MALLOC (sizeof(wchar_t) * (len + 1)); + if (wcreplacedString == NULL) + { + FREE(replacement_string); + FREE(wcinput_string); + return NULL; + } + + { + /* converts to wide characters */ + + wchar_t *wctail = NULL; + + int wcOutput_Start = 0; + int wcOutput_End = 0; + + char * strOutput_Start = strdup(input_string); + char * strOutput_End = strdup(input_string); + + wchar_t *wcstrOutput_Start = NULL; + wchar_t *wcstrOutput_End = NULL; + + /* calculates positions with wide characters */ + strOutput_Start[Output_Start] = '\0'; + strOutput_End[Output_End] = '\0'; + + wcstrOutput_Start = to_wide_string(strOutput_Start); + wcstrOutput_End = to_wide_string(strOutput_End); + + FREE(strOutput_Start); + FREE(strOutput_End); + + if (wcstrOutput_Start) + { + wcOutput_Start = (int)wcslen(wcstrOutput_Start); + FREE(wcstrOutput_Start); + } + else + { + wcOutput_Start = 0; + } + + if (wcstrOutput_End) + { + wcOutput_End = (int)wcslen(wcstrOutput_End); + FREE(wcstrOutput_End); + } + else + { + wcOutput_End = 0; + } + + wcsncpy(wcreplacedString, wcinput_string, wcOutput_Start); + wcreplacedString[wcOutput_Start] = L'\0'; + wcscat(wcreplacedString, wcreplacement_string); + wctail = wcinput_string + wcOutput_End; + wcscat(wcreplacedString, wctail); + replacedString = wide_string_to_UTF8(wcreplacedString); + + FREE(wcreplacedString); + } + + FREE(wcinput_string); + FREE(wcreplacement_string); + + return replacedString; +} +/*-------------------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/tokens.c b/modules/string/src/c/tokens.c new file mode 100755 index 000000000..afb05bb2a --- /dev/null +++ b/modules/string/src/c/tokens.c @@ -0,0 +1,93 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * Copyright (C) INRIA - 2008 - Allan CORNET + * + * 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 + * + */ + +/*------------------------------------------------------------------------*/ +#include <string.h> +#include <stdio.h> +#include "MALLOC.h" +#include "tokens.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#include "charEncoding.h" +/*------------------------------------------------------------------------*/ +char** stringTokens(char *str, char **delim, int sizedelim, int *sizeOutputs) +{ + char **Outputs = NULL; + *sizeOutputs = 0; + + if (str) + { + wchar_t *wcdelimiters = NULL; + wcdelimiters = (wchar_t*)MALLOC(sizeof(wchar_t) * (sizedelim + 1)); + + if (wcdelimiters) + { + int i = 0; + wchar_t * wcstr = to_wide_string(str); + wchar_t *wctoken = NULL; +#ifndef _MSC_VER + wchar_t *state = NULL; +#endif + + for (i = 0; i < sizedelim; i++) + { + wchar_t * wcdelim = to_wide_string(delim[i]); + wcdelimiters[i] = wcdelim[0]; + FREE(wcdelim); + wcdelim = NULL; + } + wcdelimiters[i] = L'\0'; + +#ifndef _MSC_VER + wctoken = wcstok(wcstr, wcdelimiters, &state); +#else + wctoken = wcstok(wcstr, wcdelimiters); +#endif + + while ( wctoken != NULL) + { + (*sizeOutputs)++; + if (Outputs == NULL) + { + Outputs = (char**)MALLOC(sizeof(char*) * (*sizeOutputs)); + } + else + { + Outputs = (char**)REALLOC(Outputs, sizeof(char*) * (*sizeOutputs)); + } + Outputs[*sizeOutputs - 1] = wide_string_to_UTF8(wctoken); +#ifndef _MSC_VER + wctoken = wcstok(NULL, wcdelimiters, &state); +#else + wctoken = wcstok(NULL, wcdelimiters); +#endif + } + + if (wcdelimiters) + { + FREE(wcdelimiters); + wcdelimiters = NULL; + } + if (wcstr) + { + FREE(wcstr); + wcstr = NULL; + } + } + + } + return Outputs; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/tokens.h b/modules/string/src/c/tokens.h new file mode 100755 index 000000000..6e553eaa1 --- /dev/null +++ b/modules/string/src/c/tokens.h @@ -0,0 +1,31 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Cong WU + * Copyright (C) INRIA - 2008 - Allan CORNET + * + * 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 + * + */ + +/*------------------------------------------------------------------------*/ +#ifndef __TOKENS_H__ +#define __TOKENS_H__ + +/** +* stringTokens function +* @param[in] *str string where we search delimiters +* @param[in] **delim delimiters to search +* @param[in] sizedelim size of matrix delim +* @param[out] sizeOutputs size of matrix of string returned +* @return matrix of string tokens +*/ + +char** stringTokens(char *str, char **delim, int sizedelim, int *sizeOutputs); + +#endif /* __TOKENS_H__ */ +/*------------------------------------------------------------------------*/ diff --git a/modules/string/src/c/ucp.h b/modules/string/src/c/ucp.h new file mode 100755 index 000000000..a678a78d5 --- /dev/null +++ b/modules/string/src/c/ucp.h @@ -0,0 +1,149 @@ +/************************************************* +* Unicode Property Table handler * +*************************************************/ + +#ifndef _UCP_H +#define _UCP_H + +/* This file contains definitions of the property values that are returned by +the function _pcre_ucp_findprop(). New values that are added for new releases +of Unicode should always be at the end of each enum, for backwards +compatibility. */ + +/* These are the general character categories. */ + +enum +{ + ucp_C, /* Other */ + ucp_L, /* Letter */ + ucp_M, /* Mark */ + ucp_N, /* Number */ + ucp_P, /* Punctuation */ + ucp_S, /* Symbol */ + ucp_Z /* Separator */ +}; + +/* These are the particular character types. */ + +enum +{ + ucp_Cc, /* Control */ + ucp_Cf, /* Format */ + ucp_Cn, /* Unassigned */ + ucp_Co, /* Private use */ + ucp_Cs, /* Surrogate */ + ucp_Ll, /* Lower case letter */ + ucp_Lm, /* Modifier letter */ + ucp_Lo, /* Other letter */ + ucp_Lt, /* Title case letter */ + ucp_Lu, /* Upper case letter */ + ucp_Mc, /* Spacing mark */ + ucp_Me, /* Enclosing mark */ + ucp_Mn, /* Non-spacing mark */ + ucp_Nd, /* Decimal number */ + ucp_Nl, /* Letter number */ + ucp_No, /* Other number */ + ucp_Pc, /* Connector punctuation */ + ucp_Pd, /* Dash punctuation */ + ucp_Pe, /* Close punctuation */ + ucp_Pf, /* Final punctuation */ + ucp_Pi, /* Initial punctuation */ + ucp_Po, /* Other punctuation */ + ucp_Ps, /* Open punctuation */ + ucp_Sc, /* Currency symbol */ + ucp_Sk, /* Modifier symbol */ + ucp_Sm, /* Mathematical symbol */ + ucp_So, /* Other symbol */ + ucp_Zl, /* Line separator */ + ucp_Zp, /* Paragraph separator */ + ucp_Zs /* Space separator */ +}; + +/* These are the script identifications. */ + +enum +{ + ucp_Arabic, + ucp_Armenian, + ucp_Bengali, + ucp_Bopomofo, + ucp_Braille, + ucp_Buginese, + ucp_Buhid, + ucp_Canadian_Aboriginal, + ucp_Cherokee, + ucp_Common, + ucp_Coptic, + ucp_Cypriot, + ucp_Cyrillic, + ucp_Deseret, + ucp_Devanagari, + ucp_Ethiopic, + ucp_Georgian, + ucp_Glagolitic, + ucp_Gothic, + ucp_Greek, + ucp_Gujarati, + ucp_Gurmukhi, + ucp_Han, + ucp_Hangul, + ucp_Hanunoo, + ucp_Hebrew, + ucp_Hiragana, + ucp_Inherited, + ucp_Kannada, + ucp_Katakana, + ucp_Kharoshthi, + ucp_Khmer, + ucp_Lao, + ucp_Latin, + ucp_Limbu, + ucp_Linear_B, + ucp_Malayalam, + ucp_Mongolian, + ucp_Myanmar, + ucp_New_Tai_Lue, + ucp_Ogham, + ucp_Old_Italic, + ucp_Old_Persian, + ucp_Oriya, + ucp_Osmanya, + ucp_Runic, + ucp_Shavian, + ucp_Sinhala, + ucp_Syloti_Nagri, + ucp_Syriac, + ucp_Tagalog, + ucp_Tagbanwa, + ucp_Tai_Le, + ucp_Tamil, + ucp_Telugu, + ucp_Thaana, + ucp_Thai, + ucp_Tibetan, + ucp_Tifinagh, + ucp_Ugaritic, + ucp_Yi, + /* New for Unicode 5.0: */ + ucp_Balinese, + ucp_Cuneiform, + ucp_Nko, + ucp_Phags_Pa, + ucp_Phoenician, + /* New for Unicode 5.1: */ + ucp_Carian, + ucp_Cham, + ucp_Kayah_Li, + ucp_Lepcha, + ucp_Lycian, + ucp_Lydian, + ucp_Ol_Chiki, + ucp_Rejang, + ucp_Saurashtra, + ucp_Sundanese, + ucp_Vai +}; + +#endif + +/* End of ucp.h */ diff --git a/modules/string/src/cpp/.deps/.dirstamp b/modules/string/src/cpp/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/string/src/cpp/.deps/.dirstamp diff --git a/modules/string/src/cpp/.deps/libscistring_algo_la-sort_inter.Plo b/modules/string/src/cpp/.deps/libscistring_algo_la-sort_inter.Plo new file mode 100755 index 000000000..2168525c4 --- /dev/null +++ b/modules/string/src/cpp/.deps/libscistring_algo_la-sort_inter.Plo @@ -0,0 +1,185 @@ +src/cpp/libscistring_algo_la-sort_inter.lo: src/cpp/sort_inter.cpp \ + /usr/include/stdc-predef.h src/cpp/sort_inter.h \ + /usr/include/c++/5/algorithm /usr/include/c++/5/utility \ + /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h \ + /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/c++/5/bits/cpu_defines.h \ + /usr/include/c++/5/bits/stl_relops.h /usr/include/c++/5/bits/stl_pair.h \ + /usr/include/c++/5/bits/move.h /usr/include/c++/5/bits/concept_check.h \ + /usr/include/c++/5/bits/stl_algobase.h \ + /usr/include/c++/5/bits/functexcept.h \ + /usr/include/c++/5/bits/exception_defines.h \ + /usr/include/c++/5/bits/cpp_type_traits.h \ + /usr/include/c++/5/ext/type_traits.h \ + /usr/include/c++/5/ext/numeric_traits.h \ + /usr/include/c++/5/bits/stl_iterator_base_types.h \ + /usr/include/c++/5/bits/stl_iterator_base_funcs.h \ + /usr/include/c++/5/debug/debug.h /usr/include/c++/5/bits/stl_iterator.h \ + /usr/include/c++/5/bits/ptr_traits.h \ + /usr/include/c++/5/bits/predefined_ops.h \ + /usr/include/c++/5/bits/stl_algo.h /usr/include/c++/5/cstdlib \ + /usr/include/stdlib.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/c++/5/bits/algorithmfwd.h \ + /usr/include/c++/5/bits/stl_heap.h /usr/include/c++/5/bits/stl_tempbuf.h \ + /usr/include/c++/5/bits/stl_construct.h /usr/include/c++/5/new \ + /usr/include/c++/5/exception \ + /usr/include/c++/5/bits/atomic_lockfree_defines.h \ + /usr/include/c++/5/ext/alloc_traits.h \ + /usr/include/c++/5/bits/allocator.h \ + /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h \ + /usr/include/c++/5/ext/new_allocator.h \ + /usr/include/c++/5/bits/memoryfwd.h + +/usr/include/stdc-predef.h: + +src/cpp/sort_inter.h: + +/usr/include/c++/5/algorithm: + +/usr/include/c++/5/utility: + +/usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h: + +/usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/c++/5/bits/cpu_defines.h: + +/usr/include/c++/5/bits/stl_relops.h: + +/usr/include/c++/5/bits/stl_pair.h: + +/usr/include/c++/5/bits/move.h: + +/usr/include/c++/5/bits/concept_check.h: + +/usr/include/c++/5/bits/stl_algobase.h: + +/usr/include/c++/5/bits/functexcept.h: + +/usr/include/c++/5/bits/exception_defines.h: + +/usr/include/c++/5/bits/cpp_type_traits.h: + +/usr/include/c++/5/ext/type_traits.h: + +/usr/include/c++/5/ext/numeric_traits.h: + +/usr/include/c++/5/bits/stl_iterator_base_types.h: + +/usr/include/c++/5/bits/stl_iterator_base_funcs.h: + +/usr/include/c++/5/debug/debug.h: + +/usr/include/c++/5/bits/stl_iterator.h: + +/usr/include/c++/5/bits/ptr_traits.h: + +/usr/include/c++/5/bits/predefined_ops.h: + +/usr/include/c++/5/bits/stl_algo.h: + +/usr/include/c++/5/cstdlib: + +/usr/include/stdlib.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/c++/5/bits/algorithmfwd.h: + +/usr/include/c++/5/bits/stl_heap.h: + +/usr/include/c++/5/bits/stl_tempbuf.h: + +/usr/include/c++/5/bits/stl_construct.h: + +/usr/include/c++/5/new: + +/usr/include/c++/5/exception: + +/usr/include/c++/5/bits/atomic_lockfree_defines.h: + +/usr/include/c++/5/ext/alloc_traits.h: + +/usr/include/c++/5/bits/allocator.h: + +/usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h: + +/usr/include/c++/5/ext/new_allocator.h: + +/usr/include/c++/5/bits/memoryfwd.h: diff --git a/modules/string/src/cpp/.dirstamp b/modules/string/src/cpp/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/string/src/cpp/.dirstamp diff --git a/modules/string/src/cpp/.libs/libscistring_algo_la-sort_inter.o b/modules/string/src/cpp/.libs/libscistring_algo_la-sort_inter.o Binary files differnew file mode 100755 index 000000000..0f0caf0f7 --- /dev/null +++ b/modules/string/src/cpp/.libs/libscistring_algo_la-sort_inter.o diff --git a/modules/string/src/cpp/libscistring_algo_la-sort_inter.lo b/modules/string/src/cpp/libscistring_algo_la-sort_inter.lo new file mode 100755 index 000000000..878a65594 --- /dev/null +++ b/modules/string/src/cpp/libscistring_algo_la-sort_inter.lo @@ -0,0 +1,12 @@ +# src/cpp/libscistring_algo_la-sort_inter.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscistring_algo_la-sort_inter.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/string/src/cpp/sort_inter.cpp b/modules/string/src/cpp/sort_inter.cpp new file mode 100755 index 000000000..76fc9fd46 --- /dev/null +++ b/modules/string/src/cpp/sort_inter.cpp @@ -0,0 +1,23 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS + * + * 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 + * + */ + +extern "C" +{ +#include "sort_inter.h" +} + +#include <algorithm> + +void sort_inert(In* pBegin, In* pEnd, cmp_func func) +{ + std::sort(pBegin, pEnd, func); +}
\ No newline at end of file diff --git a/modules/string/src/cpp/sort_inter.h b/modules/string/src/cpp/sort_inter.h new file mode 100755 index 000000000..ea7c7dfcc --- /dev/null +++ b/modules/string/src/cpp/sort_inter.h @@ -0,0 +1,22 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS + * + * 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 + * + */ + +typedef struct __In__ +{ + int data; + int position; +} In; + + +typedef int (* cmp_func)(In left, In right); + +void sort_inert(In* pBegin, In* pEnd, cmp_func func); diff --git a/modules/string/src/fortran/Core_f_Import.def b/modules/string/src/fortran/Core_f_Import.def new file mode 100755 index 000000000..bdfa3d1df --- /dev/null +++ b/modules/string/src/fortran/Core_f_Import.def @@ -0,0 +1,17 @@ + LIBRARY core_f.dll + + +EXPORTS +; +;core_f +; +funnam_ +ref2val_ +isany_ +indxgc_ +indxg_ +cvdm_ +cvwm_ +; + + diff --git a/modules/string/src/fortran/core_Import.def b/modules/string/src/fortran/core_Import.def new file mode 100755 index 000000000..5bf28f9aa --- /dev/null +++ b/modules/string/src/fortran/core_Import.def @@ -0,0 +1,19 @@ + LIBRARY core.dll + + +EXPORTS +; +;core +; +errgst_ +iop_ +adre_ +recu_ +intersci_ +stack_ +vstk_ +com_ +cha1_ +mtlbc_ +cremat_ +namstr_ diff --git a/modules/string/src/fortran/elementary_functions_Import.def b/modules/string/src/fortran/elementary_functions_Import.def new file mode 100755 index 000000000..03c39e988 --- /dev/null +++ b/modules/string/src/fortran/elementary_functions_Import.def @@ -0,0 +1,5 @@ +LIBRARY elementary_functions.dll + + +EXPORTS +unsfdcopy_
\ No newline at end of file diff --git a/modules/string/src/fortran/elementary_functions_f_Import.def b/modules/string/src/fortran/elementary_functions_f_Import.def new file mode 100755 index 000000000..9266a2f63 --- /dev/null +++ b/modules/string/src/fortran/elementary_functions_f_Import.def @@ -0,0 +1,5 @@ +LIBRARY elementary_functions_f.dll + + +EXPORTS +ivimp_
\ No newline at end of file diff --git a/modules/string/src/fortran/linpack_f_Import.def b/modules/string/src/fortran/linpack_f_Import.def new file mode 100755 index 000000000..12ee0776e --- /dev/null +++ b/modules/string/src/fortran/linpack_f_Import.def @@ -0,0 +1,5 @@ +LIBRARY linpack_f.dll + + +EXPORTS +icopy_
\ No newline at end of file diff --git a/modules/string/src/fortran/output_stream_Import.def b/modules/string/src/fortran/output_stream_Import.def new file mode 100755 index 000000000..94f56b430 --- /dev/null +++ b/modules/string/src/fortran/output_stream_Import.def @@ -0,0 +1,5 @@ +LIBRARY output_stream.dll + + +EXPORTS +error_
\ No newline at end of file diff --git a/modules/string/src/fortran/polynomials_f_Import.def b/modules/string/src/fortran/polynomials_f_Import.def new file mode 100755 index 000000000..11c03b723 --- /dev/null +++ b/modules/string/src/fortran/polynomials_f_Import.def @@ -0,0 +1,9 @@ +LIBRARY polynomials_f.dll + + +EXPORTS +impcnc_ +impext_ +impins_ +imptra_ +mpinsp_ diff --git a/modules/string/src/fortran/string_Import.def b/modules/string/src/fortran/string_Import.def new file mode 100755 index 000000000..bd09a235d --- /dev/null +++ b/modules/string/src/fortran/string_Import.def @@ -0,0 +1,5 @@ +LIBRARY string.dll + + +EXPORTS +cvstr_
\ No newline at end of file diff --git a/modules/string/src/fortran/string_f.rc b/modules/string/src/fortran/string_f.rc new file mode 100755 index 000000000..4365584f3 --- /dev/null +++ b/modules/string/src/fortran/string_f.rc @@ -0,0 +1,96 @@ +// Microsoft Visual C++ generated resource script. +// + + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +//#include "afxres.h" +#define APSTUDIO_HIDDEN_SYMBOLS +#include "windows.h" +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// French (France) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) +#ifdef _WIN32 +LANGUAGE LANG_FRENCH, SUBLANG_FRENCH +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 5,5,2,0 + PRODUCTVERSION 5,5,2,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040c04b0" + BEGIN + VALUE "FileDescription", "string_f module" + VALUE "FileVersion", "5, 5, 2, 0" + VALUE "InternalName", "string_f module" + VALUE "LegalCopyright", "Copyright (C) 2017" + VALUE "OriginalFilename", "string_f.dll" + VALUE "ProductName", "string_f module" + VALUE "ProductVersion", "5, 5, 2, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x40c, 1200 + END +END + +#endif // French (France) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/modules/string/src/fortran/string_f.vfproj b/modules/string/src/fortran/string_f.vfproj new file mode 100755 index 000000000..4ff736c60 --- /dev/null +++ b/modules/string/src/fortran/string_f.vfproj @@ -0,0 +1,121 @@ +<?xml version="1.0" encoding="UTF-8"?> +<VisualStudioProject ProjectType="typeDynamicLibrary" ProjectCreator="Intel Fortran" Keyword="Dll" Version="11.0" ProjectIdGuid="{FAF6A7EB-8A36-4278-B34E-34EA89E55304}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/></Platforms> + <Configurations> + <Configuration Name="Debug|Win32" OutputDirectory="$(SolutionDir)bin\" IntermediateDirectory="$(ProjectDir)$(ConfigurationName)" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.dll;$(TargetPath)" ConfigurationType="typeDynamicLibrary"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" AdditionalIncludeDirectories="../../../core/includes" PreprocessorDefinitions="WIN32;FORDLL" AlternateParameterSyntax="false" F77RuntimeCompatibility="true" FPS4Libs="false" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" RuntimeLibrary="rtMultiThreadedDebugDLL"/> + <Tool Name="VFLinkerTool" OutputFile="$(SolutionDir)bin\$(ProjectName).dll" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ModuleDefinitionFile="string_f.def" GenerateDebugInformation="true" SubSystem="subSystemWindows" ImportLibrary="$(SolutionDir)bin\$(ProjectName).lib" LinkDLL="true" AdditionalDependencies="core.lib string.lib elementary_functions.lib elementary_functions_f.lib output_stream.lib polynomials_f.lib linpack_f.lib core_f.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool" CommandLine="setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName).def >nul +del *.def >nul +cd .." Description="Build $(ProjectName).def"/> + <Tool Name="VFPreBuildEventTool" CommandLine="lib /DEF:"$(InputDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)string_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)polynomials_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)polynomials_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)core_f.lib" 1>NUL 2>NUL" Description="Build Dependencies"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration> + <Configuration Name="Release|Win32" OutputDirectory="$(SolutionDir)bin\" IntermediateDirectory="$(ProjectDir)$(ConfigurationName)" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.dll;$(TargetPath)" ConfigurationType="typeDynamicLibrary"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" AdditionalIncludeDirectories="../../../core/includes" PreprocessorDefinitions="WIN32;FORDLL" AlternateParameterSyntax="false" F77RuntimeCompatibility="true" FPS4Libs="false" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" RuntimeLibrary="rtMultiThreadedDLL"/> + <Tool Name="VFLinkerTool" OutputFile="$(SolutionDir)bin\$(ProjectName).dll" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ModuleDefinitionFile="string_f.def" SubSystem="subSystemWindows" ImportLibrary="$(SolutionDir)bin\$(ProjectName).lib" LinkDLL="true" AdditionalDependencies="core.lib string.lib elementary_functions.lib elementary_functions_f.lib output_stream.lib polynomials_f.lib linpack_f.lib core_f.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool" CommandLine="setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName).def >nul +del *.def >nul +cd .." Description="Build $(ProjectName).def"/> + <Tool Name="VFPreBuildEventTool" CommandLine="lib /DEF:"$(InputDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)string_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)polynomials_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)polynomials_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X86 /OUT:"$(InputDir)core_f.lib" 1>NUL 2>NUL" Description="Build Dependencies"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration> + <Configuration Name="Debug|x64" OutputDirectory="$(SolutionDir)bin\" IntermediateDirectory="$(ProjectDir)$(ConfigurationName)" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.dll;$(TargetPath)" ConfigurationType="typeDynamicLibrary"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" AdditionalIncludeDirectories="../../../core/includes" PreprocessorDefinitions="WIN32;FORDLL" AlternateParameterSyntax="false" F77RuntimeCompatibility="true" FPS4Libs="false" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" RuntimeLibrary="rtMultiThreadedDebugDLL"/> + <Tool Name="VFLinkerTool" OutputFile="$(SolutionDir)bin\$(ProjectName).dll" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ModuleDefinitionFile="string_f.def" GenerateDebugInformation="true" SubSystem="subSystemWindows" ImportLibrary="$(SolutionDir)bin\$(ProjectName).lib" LinkDLL="true" AdditionalDependencies="core.lib string.lib elementary_functions.lib elementary_functions_f.lib output_stream.lib polynomials_f.lib linpack_f.lib core_f.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool" CommandLine="setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName).def >nul +del *.def >nul +cd .." Description="Build $(ProjectName).def"/> + <Tool Name="VFPreBuildEventTool" CommandLine="lib /DEF:"$(InputDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)string_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)polynomials_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)polynomials_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)core_f.lib" 1>NUL 2>NUL" Description="Build Dependencies"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration> + <Configuration Name="Release|x64" OutputDirectory="$(SolutionDir)bin\" IntermediateDirectory="$(ProjectDir)$(ConfigurationName)" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.dll;$(TargetPath)" ConfigurationType="typeDynamicLibrary"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" AdditionalIncludeDirectories="../../../core/includes" PreprocessorDefinitions="WIN32;FORDLL" AlternateParameterSyntax="false" F77RuntimeCompatibility="true" FPS4Libs="false" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" RuntimeLibrary="rtMultiThreadedDLL"/> + <Tool Name="VFLinkerTool" OutputFile="$(SolutionDir)bin\$(ProjectName).dll" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" ModuleDefinitionFile="string_f.def" SubSystem="subSystemWindows" ImportLibrary="$(SolutionDir)bin\$(ProjectName).lib" LinkDLL="true" AdditionalDependencies="core.lib string.lib elementary_functions.lib elementary_functions_f.lib output_stream.lib polynomials_f.lib linpack_f.lib core_f.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool" CommandLine="setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName).def >nul +del *.def >nul +cd .." Description="Build $(ProjectName).def"/> + <Tool Name="VFPreBuildEventTool" CommandLine="lib /DEF:"$(InputDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)string_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)polynomials_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)polynomials_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(InputDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:X64 /OUT:"$(InputDir)core_f.lib" 1>NUL 2>NUL" Description="Build Dependencies"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration></Configurations> + <Files> + <Filter Name="Header Files" Filter="fi;fd"/> + <Filter Name="Libraries Dependencies"> + <File RelativePath=".\Core_f_Import.def"/> + <File RelativePath=".\core_import.def"/> + <File RelativePath=".\elementary_functions_f_Import.def"/> + <File RelativePath=".\elementary_functions_Import.def"/> + <File RelativePath=".\linpack_f_Import.def"/> + <File RelativePath=".\output_stream_Import.def"/> + <File RelativePath=".\polynomials_f_Import.def"/> + <File RelativePath=".\string_Import.def"/></Filter> + <Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"> + <File RelativePath=".\string_f.rc"/></Filter> + <Filter Name="Source Files" Filter="f90;for;f;fpp;ftn;def;odl;idl"> + <File RelativePath="..\..\sci_gateway\fortran\sci_f_string.f"/> + <File RelativePath="..\..\sci_gateway\fortran\strops.f"/></Filter> + <File RelativePath="..\..\Makefile.am"/> + <File RelativePath="..\..\sci_gateway\string_gateway.xml"/></Files> + <Globals/></VisualStudioProject> diff --git a/modules/string/src/fortran/string_f2c.vcxproj b/modules/string/src/fortran/string_f2c.vcxproj new file mode 100755 index 000000000..b0a3d7e11 --- /dev/null +++ b/modules/string/src/fortran/string_f2c.vcxproj @@ -0,0 +1,300 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectName>string_f</ProjectName> + <ProjectGuid>{FAF6A7EB-8A36-4278-B34E-34EA89E55304}</ProjectGuid> + <RootNamespace>string_f2c</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>Unicode</CharacterSet> + <WholeProgramOptimization>true</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>Unicode</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>Unicode</CharacterSet> + <WholeProgramOptimization>true</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>Unicode</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + <Import Project="..\..\..\..\Visual-Studio-settings\f2c.props" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <PreBuildEvent> + <Message>Build Dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)string_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)polynomials_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)polynomials_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../libs/f2c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;STRING_F2C_EXPORTS;FORDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message>Build $(ProjectName).def</Message> + <Command>setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName).def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;string.lib;elementary_functions.lib;elementary_functions_f.lib;output_stream.lib;polynomials_f.lib;linpack_f.lib;core_f.lib;../../../../bin/libf2c.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>string_f.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <PreBuildEvent> + <Message>Build Dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)string_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)polynomials_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)polynomials_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../libs/f2c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;STRING_F2C_EXPORTS;FORDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message>Build $(ProjectName).def</Message> + <Command>setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName).def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;string.lib;elementary_functions.lib;elementary_functions_f.lib;output_stream.lib;polynomials_f.lib;linpack_f.lib;core_f.lib;../../../../bin/libf2c.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>string_f.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <PreBuildEvent> + <Message>Build Dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)string_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)polynomials_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)polynomials_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + <ClCompile> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>../../../../libs/f2c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;STRING_F2C_EXPORTS;FORDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <Message>Build $(ProjectName).def</Message> + <Command>setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName).def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;string.lib;elementary_functions.lib;elementary_functions_f.lib;output_stream.lib;polynomials_f.lib;linpack_f.lib;core_f.lib;../../../../bin/libf2c.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>string_f.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <PreBuildEvent> + <Message>Build Dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)string_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)string.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)elementary_functions_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)elementary_functions_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)elementary_functions_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)output_stream_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)output_stream.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)linpack_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)linpack_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)polynomials_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)polynomials_f.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>../../../../libs/f2c;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;STRING_F2C_EXPORTS;FORDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <Message>Build $(ProjectName).def</Message> + <Command>setlocal EnableDelayedExpansion +cd $(ConfigurationName) +set LIST_OBJ= +for %%f in (*.obj) do set LIST_OBJ=!LIST_OBJ! %%f +"$(SolutionDir)bin\dumpexts" -o $(ProjectName).def $(ProjectName).dll %LIST_OBJ% +copy $(ProjectName).def ..\$(ProjectName).def >nul +del *.def >nul +cd .. +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;string.lib;elementary_functions.lib;elementary_functions_f.lib;output_stream.lib;polynomials_f.lib;linpack_f.lib;core_f.lib;../../../../bin/libf2c.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>string_f.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="..\..\sci_gateway\fortran\sci_f_string.c" /> + <ClCompile Include="..\..\sci_gateway\fortran\strops.c" /> + </ItemGroup> + <ItemGroup> + <f2c_rule Include="..\..\sci_gateway\fortran\sci_f_string.f" /> + <f2c_rule Include="..\..\sci_gateway\fortran\strops.f" /> + </ItemGroup> + <ItemGroup> + <None Include="..\..\Makefile.am" /> + <None Include="..\..\sci_gateway\string_gateway.xml" /> + <None Include="Core_f_Import.def" /> + <None Include="elementary_functions_f_Import.def" /> + <None Include="elementary_functions_Import.def" /> + <None Include="core_import.def" /> + <None Include="linpack_f_Import.def" /> + <None Include="output_stream_Import.def" /> + <None Include="polynomials_f_Import.def" /> + <None Include="string_Import.def" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\..\..\tools\Dumpexts\Dumpexts.vcxproj"> + <Project>{3170e4c2-1173-4264-a222-7ee8ccb3ddf7}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + <Import Project="..\..\..\..\Visual-Studio-settings\f2c.targets" /> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/string/src/fortran/string_f2c.vcxproj.filters b/modules/string/src/fortran/string_f2c.vcxproj.filters new file mode 100755 index 000000000..93f637f3d --- /dev/null +++ b/modules/string/src/fortran/string_f2c.vcxproj.filters @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions> + </Filter> + <Filter Include="Fortran files"> + <UniqueIdentifier>{c7582236-a0f9-4bad-acbd-2e406f96cf1f}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies"> + <UniqueIdentifier>{831ff52b-294b-4941-9c77-84d983d323d3}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\..\sci_gateway\fortran\strops.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\fortran\sci_f_string.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <f2c_rule Include="..\..\sci_gateway\fortran\strops.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + <f2c_rule Include="..\..\sci_gateway\fortran\sci_f_string.f"> + <Filter>Fortran files</Filter> + </f2c_rule> + </ItemGroup> + <ItemGroup> + <None Include="..\..\Makefile.am" /> + <None Include="..\..\sci_gateway\string_gateway.xml" /> + <None Include="elementary_functions_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="core_import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="output_stream_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="string_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="elementary_functions_f_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="linpack_f_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="polynomials_f_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + <None Include="Core_f_Import.def"> + <Filter>Libraries Dependencies</Filter> + </None> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/string/string.iss b/modules/string/string.iss new file mode 100755 index 000000000..62cb530ad --- /dev/null +++ b/modules/string/string.iss @@ -0,0 +1,45 @@ +; +; Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +; Copyright (C) INRIA - Allan CORNET +; Copyright (C) DIGITEO - 2010 - Allan CORNET +; +; 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 +; +;-------------------------------------------------------------------------------------------------------------- +; Inno Setup Script (5.3 and more) for Scilab (UNICODE version required) +; +;-------------------------------------------------------------------------------------------------------------- +; string module +;-------------------------------------------------------------------------------------------------------------- +; +#define STRING "string" +; +Source: bin\{#STRING}.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +Source: bin\{#STRING}_f.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +; +Source: modules\{#STRING}\license.txt; DestDir: {app}\modules\{#STRING}; Components: {#COMPN_SCILAB} +; +Source: modules\{#STRING}\sci_gateway\{#STRING}_gateway.xml; DestDir: {app}\modules\{#STRING}\sci_gateway; Components: {#COMPN_SCILAB} +; +Source: modules\{#STRING}\etc\{#STRING}.quit; DestDir: {app}\modules\{#STRING}\etc; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +Source: modules\{#STRING}\etc\{#STRING}.start; DestDir: {app}\modules\{#STRING}\etc; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +; +;Source: modules\{#STRING}\includes\*.h; DestDir: {app}\modules\{#STRING}\includes; Components: {#COMPN_SCILAB} +; +Source: modules\{#STRING}\macros\buildmacros.sce; DestDir: {app}\modules\{#STRING}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#STRING}\macros\buildmacros.bat; DestDir: {app}\modules\{#STRING}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#STRING}\macros\cleanmacros.bat; DestDir: {app}\modules\{#STRING}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#STRING}\macros\lib; DestDir: {app}\modules\{#STRING}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#STRING}\macros\names; DestDir: {app}\modules\{#STRING}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#STRING}\macros\*.bin; DestDir: {app}\modules\{#STRING}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#STRING}\macros\*.sci; DestDir: {app}\modules\{#STRING}\macros; Components: {#COMPN_SCILAB} +; +;Source: modules\{#STRING}\demos\*.*; DestDir: {app}\modules\{#STRING}\demos; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +; +Source: modules\{#STRING}\tests\*.*; DestDir: {app}\modules\{#STRING}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS} +; +;-------------------------------------------------------------------------------------------------------------- diff --git a/modules/string/tests/benchmarks/ascii_code.txt b/modules/string/tests/benchmarks/ascii_code.txt new file mode 100755 index 000000000..fcf225398 --- /dev/null +++ b/modules/string/tests/benchmarks/ascii_code.txt @@ -0,0 +1,201 @@ +ref = []; +ref = [ref 125 113 92 119 73 40 58 46 41 62 62 53 92 48 101 103 94 84 44 35 38 73 82 84 39 60 86 75 63 48 71 112 57 39 36 90 110 115 47 81 78 40 114 35 99 47 109 54 37 117 112 124 102 59 121 48 35 32 37 83 56 121 35 54 119 120 61 78 95 55 99 101 118 80 37 51 103 45 108 53 46 75 64 125 123 105 122 64 80 110 55 57 118 78 74 37 42 104 77 111 102 52 104 57 38 41 69 125 114 36 88 33 123 126 119 121 116 41 45 65 122 45 79 120 64 55 73 59 39 68 78 64 104 97 70 115 102 90 103 40 50 123 104 58 86 91 93 125 65 102 52 41 58 40 46 117 80 103 125 46 37 58 104 42 78 105 83 64 66 60 99 52 98 36 40 78 96 66 125 41 46 88 83 48 107 98 55 110 35 35 35 124 124 87 86 119 125 38 39 42 ]; +ref = [ref 116 32 50 34 93 71 51 65 39 105 79 58 104 70 84 38 99 61 115 74 126 57 102 58 70 82 98 66 58 62 45 53 89 126 52 124 56 100 37 93 101 53 48 96 109 118 81 42 112 94 107 91 46 56 101 88 66 97 123 52 62 44 125 51 66 84 114 90 46 99 88 47 110 65 96 60 120 46 46 57 124 64 84 32 45 60 108 78 55 95 123 83 67 34 125 45 88 56 66 102 117 69 43 120 64 37 57 106 72 73 89 106 55 117 122 110 38 102 96 64 96 93 95 49 83 75 54 107 116 50 75 33 65 57 33 91 96 96 97 89 53 84 61 101 69 61 42 69 49 121 50 57 79 58 61 126 112 62 61 113 60 92 104 76 46 38 42 57 102 112 95 75 108 94 54 55 120 34 96 106 112 37 81 115 90 81 38 60 76 64 82 55 49 109 86 65 120 94 59 33 ]; +ref = [ref 42 62 70 35 55 61 118 115 40 80 110 38 90 38 110 47 42 108 35 56 76 121 76 90 110 42 79 38 107 74 114 63 97 90 95 121 60 59 118 78 115 62 58 111 95 100 121 46 34 38 32 69 93 35 124 104 81 60 96 60 69 112 51 58 70 94 119 41 99 81 45 56 104 85 45 59 54 97 83 105 86 53 89 33 122 57 68 68 81 59 103 51 59 65 36 37 65 42 124 50 62 99 79 61 84 38 109 85 80 90 60 77 126 78 42 107 37 48 57 99 73 114 68 124 32 94 42 105 40 109 100 94 91 51 74 70 110 108 93 91 74 74 81 124 99 34 97 58 68 112 67 68 71 119 93 57 58 62 68 72 60 113 71 97 37 81 110 59 91 39 102 70 38 90 101 114 59 84 65 88 60 76 42 61 111 97 113 41 35 82 99 40 89 104 126 109 94 37 100 35 ]; +ref = [ref 98 121 70 86 104 74 114 63 89 61 58 118 117 61 47 104 111 83 64 90 83 71 38 72 110 64 125 75 83 79 79 44 122 71 111 72 119 82 61 91 116 113 114 62 111 96 108 69 54 98 87 61 58 74 43 54 58 92 66 39 104 74 109 78 76 121 75 82 94 56 79 108 116 59 47 62 99 64 45 88 65 79 67 41 36 67 75 71 85 83 40 64 116 97 124 51 105 79 68 70 119 58 83 45 121 66 33 102 91 106 49 90 56 97 62 112 101 53 45 126 75 74 93 106 39 97 47 66 95 49 93 125 86 53 55 104 53 120 89 69 52 37 115 47 115 44 60 107 62 120 123 83 51 95 38 84 108 106 122 65 51 61 83 44 118 57 47 33 111 59 100 125 116 72 105 102 79 91 64 68 87 120 114 88 124 113 40 98 39 83 109 76 68 117 91 120 51 32 51 41 ]; +ref = [ref 39 118 62 108 80 85 117 69 45 50 75 33 35 72 56 85 94 45 115 73 66 108 116 117 118 120 32 32 90 41 39 64 87 37 126 110 55 91 43 58 74 60 115 49 79 93 72 87 111 64 97 32 119 125 91 126 91 103 46 89 41 65 67 104 94 104 90 70 35 107 100 88 58 95 48 85 120 97 100 113 55 112 51 81 125 120 113 126 42 65 125 107 108 74 87 62 74 97 110 68 33 101 80 65 114 38 116 75 32 74 37 123 46 86 111 69 45 49 95 120 115 106 90 65 67 47 82 70 55 65 114 123 90 82 43 77 104 90 33 51 109 39 36 95 67 91 92 105 103 95 93 43 105 74 57 103 102 57 119 38 108 60 47 112 103 86 111 107 54 35 125 125 63 88 72 90 58 33 51 80 79 109 32 100 123 83 111 116 110 106 59 68 91 81 51 46 83 107 91 65 ]; +ref = [ref 83 77 75 76 35 118 54 92 58 34 50 49 117 52 38 119 41 60 98 117 108 45 123 99 59 120 58 94 44 123 99 82 88 62 97 33 61 37 48 117 64 104 112 89 41 81 89 52 42 79 42 97 49 80 81 120 112 35 75 104 43 65 61 92 78 76 97 90 125 124 103 88 41 57 40 76 82 40 85 56 50 97 111 87 76 35 53 98 44 91 66 110 32 66 120 47 81 95 116 68 92 53 95 87 111 102 92 71 112 97 87 111 64 98 75 97 96 70 121 90 54 103 63 48 62 88 110 86 126 63 101 115 35 76 120 81 48 81 101 50 101 36 32 75 42 115 110 64 70 45 40 69 109 96 57 81 100 112 36 110 75 63 87 114 66 114 46 121 89 126 112 64 35 75 90 124 33 91 51 55 107 63 125 37 93 38 114 36 103 85 92 56 117 61 105 125 87 38 97 112 ]; +ref = [ref 93 67 126 123 100 49 110 117 126 92 88 114 123 37 61 119 119 54 92 117 95 56 64 65 51 36 109 110 88 66 121 51 32 65 35 115 52 124 97 99 95 70 101 60 69 55 119 113 119 88 45 64 110 59 86 108 93 58 107 119 76 56 72 126 52 88 94 34 74 63 60 110 86 80 56 74 108 53 104 50 57 42 50 56 48 98 115 83 96 79 121 42 81 52 36 46 65 55 51 52 69 118 34 96 47 45 83 108 119 101 50 112 95 39 48 77 57 67 87 117 97 63 68 116 81 122 51 39 54 42 56 34 61 96 46 64 116 66 103 71 108 88 68 58 56 107 62 61 79 52 125 113 34 111 39 42 89 102 123 33 90 118 45 50 68 51 62 60 123 92 81 75 32 109 38 79 59 88 47 116 104 106 104 78 43 67 114 89 73 66 49 125 126 56 34 35 48 97 71 104 ]; +ref = [ref 54 44 108 35 59 78 76 124 84 106 115 109 55 102 113 56 108 77 110 52 38 37 97 91 63 95 39 74 72 42 50 47 102 54 77 88 53 123 78 92 44 123 115 91 117 122 91 105 91 47 91 103 119 40 60 88 63 57 47 112 94 49 74 44 69 113 34 81 66 112 43 94 114 46 55 73 112 59 74 57 85 60 56 67 93 62 37 110 106 88 85 107 43 68 114 98 57 125 122 70 49 68 48 71 40 74 71 74 74 39 89 78 87 78 101 106 126 74 48 64 65 34 63 79 89 104 65 32 41 123 66 70 95 86 35 59 48 64 97 106 75 68 92 70 90 116 45 32 85 49 59 37 75 67 87 121 82 115 47 45 70 37 52 65 102 90 125 80 59 95 39 123 100 101 114 61 77 91 102 116 91 43 63 121 88 37 73 36 117 74 76 85 101 104 104 33 53 53 71 112 ]; +ref = [ref 33 51 115 110 125 108 88 101 38 46 67 45 102 83 105 61 102 72 121 62 88 53 98 93 85 67 89 117 93 54 86 83 42 108 89 42 61 89 59 95 87 40 113 55 85 123 84 72 55 102 89 89 73 80 59 109 63 58 37 68 94 123 59 110 46 63 100 73 76 78 76 103 38 46 106 103 61 80 47 52 107 54 119 60 100 117 62 104 49 82 33 68 57 124 50 111 70 126 90 119 36 95 101 95 112 82 55 82 79 44 92 68 106 112 76 94 69 95 76 55 103 50 45 56 88 92 121 41 72 88 74 55 86 100 56 80 68 53 33 70 63 92 90 79 109 36 42 87 101 74 112 39 96 118 97 58 91 123 114 64 34 37 57 71 50 72 87 68 34 33 90 96 64 74 56 84 98 58 91 82 103 74 52 83 49 51 70 69 62 58 97 125 116 123 118 105 80 92 119 123 ]; +ref = [ref 45 58 110 44 102 68 67 83 71 92 85 112 124 32 33 44 71 43 57 84 104 58 98 112 86 67 55 117 117 82 83 59 45 73 42 114 117 124 51 77 92 33 75 54 36 105 111 94 109 78 62 49 100 102 114 88 49 84 46 98 34 113 114 84 115 66 80 86 93 114 87 65 61 81 51 95 97 38 97 92 48 90 42 72 50 102 82 71 68 42 118 67 113 86 88 35 37 57 68 104 98 112 101 90 94 70 36 74 71 122 90 44 113 80 74 72 72 86 35 69 44 120 54 84 107 76 78 42 109 87 93 63 106 110 63 91 59 56 71 95 96 77 59 111 92 89 103 60 106 124 108 43 102 90 105 62 64 49 59 71 74 76 119 37 39 76 62 84 108 94 82 110 107 96 110 89 99 34 83 67 55 55 79 34 92 95 59 76 121 51 45 123 65 43 39 87 51 112 121 54 ]; +ref = [ref 68 42 119 118 50 97 84 53 59 53 102 117 100 92 90 123 74 45 49 86 61 61 60 88 120 104 99 48 87 102 82 85 121 82 83 83 80 84 43 94 74 66 123 40 114 83 37 72 108 46 112 62 118 117 56 55 117 86 41 32 63 113 82 105 57 116 121 90 35 59 75 76 78 117 96 102 114 35 49 43 79 102 55 93 121 111 48 89 75 38 33 59 83 104 54 61 103 71 123 35 124 88 41 108 83 123 66 32 98 52 121 42 60 92 69 41 79 49 102 86 115 86 125 113 44 109 109 81 126 37 83 124 32 102 71 82 108 126 78 112 57 113 65 65 45 73 36 43 56 69 62 41 125 48 79 88 121 92 33 121 42 77 125 39 101 51 45 113 111 42 85 97 42 117 42 105 125 85 53 73 53 73 88 114 33 90 94 67 90 101 47 81 117 47 62 68 75 71 108 48 ]; +ref = [ref 90 103 122 93 122 54 85 102 38 99 38 71 45 69 64 60 66 106 91 106 81 87 111 59 91 54 58 36 100 58 78 71 98 35 103 123 109 60 101 43 106 40 74 80 114 123 113 75 109 44 98 68 87 115 113 34 107 66 52 110 58 109 84 84 123 71 79 46 126 35 112 92 121 42 117 100 78 70 78 56 79 93 46 107 44 58 124 72 72 57 88 72 106 85 86 96 87 40 115 49 84 87 113 120 105 118 66 42 62 75 102 79 72 109 86 51 88 56 102 45 69 68 94 80 122 42 54 50 89 91 55 75 104 70 63 111 46 55 48 56 96 96 80 62 104 37 40 111 64 79 54 72 54 49 73 92 71 64 88 82 95 66 59 110 126 38 80 70 93 62 124 124 90 98 124 77 89 55 38 103 51 65 119 94 33 86 126 109 32 117 47 44 69 39 60 67 83 82 100 40 ]; +ref = [ref 107 120 104 99 58 126 86 118 90 88 99 90 59 118 61 67 98 119 42 36 107 57 68 107 114 68 98 58 121 41 112 102 51 80 114 70 63 78 82 51 33 99 37 116 71 39 112 55 80 58 38 72 87 49 120 65 112 70 53 67 54 101 56 103 117 89 50 123 126 100 91 73 84 33 122 113 109 54 80 89 117 48 123 55 36 83 74 105 33 50 59 117 98 55 98 122 66 44 54 43 41 111 74 107 104 57 73 44 76 33 94 111 71 81 42 100 68 96 38 76 126 67 121 110 77 98 105 103 125 38 70 38 111 45 114 89 53 81 32 36 105 84 95 60 52 52 118 88 100 55 64 42 66 89 46 69 106 100 56 123 47 38 50 63 74 75 34 44 46 43 69 73 104 117 97 55 74 106 115 75 108 58 33 91 76 53 93 65 118 38 39 111 103 64 89 76 91 36 81 112 ]; +ref = [ref 114 51 46 70 96 120 61 47 65 107 45 124 91 33 50 104 56 99 123 58 111 34 43 117 51 83 67 38 116 70 49 71 102 49 110 67 44 66 58 41 45 50 35 97 58 111 63 98 112 64 49 88 98 48 90 121 41 118 82 76 93 80 116 41 119 103 114 50 84 58 42 78 94 76 50 114 104 120 89 65 46 96 112 104 105 114 78 101 57 69 100 109 54 36 45 35 88 118 44 80 60 112 111 120 108 111 104 116 122 47 47 96 55 50 83 42 66 45 53 125 68 42 113 119 92 126 87 104 124 72 48 48 32 73 82 72 97 37 44 90 91 90 98 96 106 106 89 109 51 64 96 36 45 93 86 63 48 56 59 98 111 70 41 125 89 120 42 89 95 72 97 67 85 60 120 68 45 71 91 87 107 44 67 105 116 110 119 57 120 94 37 120 113 56 53 67 90 82 106 75 ]; +ref = [ref 32 66 44 120 101 91 74 83 93 93 35 73 45 62 112 47 108 58 123 104 41 116 65 107 70 102 53 75 35 98 108 122 70 45 120 124 87 32 62 65 78 56 66 53 86 118 71 51 88 72 88 97 126 120 68 117 45 80 49 40 84 86 124 52 54 51 47 99 64 44 56 107 102 107 99 55 114 44 126 73 103 63 51 123 47 70 103 121 42 86 41 49 69 84 61 94 98 101 85 118 86 82 74 36 36 52 116 81 78 90 60 101 49 120 87 89 34 64 58 116 96 69 58 43 69 64 83 78 72 94 35 37 81 101 111 87 77 70 104 60 44 79 50 111 91 48 98 40 92 117 61 122 115 118 50 69 108 47 106 69 57 121 52 125 115 93 63 55 123 118 47 42 66 108 65 39 56 76 103 70 126 86 65 34 89 36 51 60 56 74 123 75 79 78 93 85 64 93 54 126 ]; +ref = [ref 122 67 45 44 86 94 39 110 43 39 32 78 76 55 40 112 60 59 108 120 76 95 77 55 35 38 121 122 77 112 92 101 92 60 101 33 36 104 75 48 111 117 119 68 107 107 95 88 72 99 96 51 45 96 91 54 50 126 78 110 75 36 49 102 69 82 126 41 66 107 89 65 36 35 45 102 42 85 83 58 71 36 58 45 88 49 55 61 80 113 63 51 43 117 88 51 107 126 101 37 106 33 66 65 45 111 101 32 96 56 74 80 74 53 59 51 84 96 37 91 32 119 68 57 110 102 97 61 112 52 62 119 46 101 126 57 104 106 51 33 86 116 122 41 98 121 79 123 97 84 66 88 83 91 121 98 100 90 50 78 108 126 55 85 96 44 65 112 85 101 116 61 34 36 48 35 72 101 91 96 64 98 62 47 88 101 81 43 102 34 116 50 49 33 113 80 53 109 35 111 ]; +ref = [ref 103 42 41 99 107 48 35 56 72 125 88 64 125 54 89 51 51 89 118 34 33 110 98 116 65 80 103 59 83 104 37 74 117 67 86 100 51 54 105 109 77 89 91 82 111 103 97 62 58 41 97 103 39 110 39 76 61 110 61 33 120 38 79 90 81 75 98 54 48 71 114 114 41 79 119 108 53 93 78 94 33 87 108 121 71 92 61 121 47 47 125 89 119 122 90 76 116 81 44 121 113 45 54 36 53 99 43 119 46 126 88 43 112 93 104 47 110 41 41 87 89 41 98 45 63 94 122 79 99 95 41 44 71 46 125 91 59 78 58 72 86 84 116 90 64 106 105 119 47 126 44 58 50 66 121 122 68 91 125 124 120 116 38 49 59 121 59 36 49 112 102 59 113 55 107 107 96 121 81 107 111 71 115 69 94 66 37 102 45 79 97 38 76 39 52 71 90 46 111 66 ]; +ref = [ref 93 52 71 111 120 110 108 97 41 121 121 42 100 66 68 109 119 123 47 81 38 72 91 51 38 57 48 96 49 75 76 117 76 75 32 90 104 121 105 115 124 103 87 85 111 119 61 79 53 32 61 87 116 52 33 46 38 109 88 52 83 63 67 120 49 35 97 98 65 73 70 91 98 99 33 77 71 107 115 51 121 46 57 50 80 103 60 59 59 126 126 66 87 57 69 80 90 87 93 115 41 44 77 75 66 81 100 40 99 69 57 103 77 63 77 73 63 59 98 96 109 65 75 81 59 124 126 63 107 78 41 58 107 95 66 100 51 56 46 55 60 48 97 75 111 91 102 99 88 33 53 53 123 90 82 113 35 125 57 107 109 39 52 113 110 120 50 94 100 41 59 61 126 96 33 39 70 104 36 69 43 75 100 101 41 60 37 67 32 50 94 35 36 92 78 64 43 86 67 70 ]; +ref = [ref 105 44 47 78 61 99 45 118 53 122 33 46 125 50 70 35 90 111 49 96 41 113 95 50 57 41 123 39 55 36 100 75 49 106 38 52 91 59 103 79 87 73 93 73 101 70 60 118 110 78 54 45 37 86 59 92 50 91 33 57 59 102 123 47 66 71 105 41 96 99 125 67 43 57 94 88 81 95 59 55 121 96 118 101 33 88 81 70 114 105 117 43 114 96 111 93 78 81 53 114 125 63 71 75 44 120 125 51 93 96 38 114 34 54 52 49 59 49 73 95 77 86 115 73 116 56 85 98 93 37 67 117 79 86 118 84 81 43 33 35 45 49 89 91 34 120 100 126 91 69 74 64 37 50 45 38 80 88 122 47 84 70 82 100 45 87 111 66 117 63 123 44 101 109 89 48 99 123 96 90 92 102 44 102 89 88 58 112 110 117 108 59 52 78 108 41 97 40 50 102 ]; +ref = [ref 58 95 120 91 110 49 76 36 111 108 63 80 95 63 52 71 35 91 84 62 96 77 34 83 53 73 123 45 69 121 33 68 124 75 43 97 120 109 48 67 33 120 43 75 120 34 40 119 89 50 97 32 61 97 34 72 123 80 84 118 39 116 98 101 44 36 107 40 125 67 105 108 126 117 43 92 42 114 83 123 45 120 84 80 42 87 105 100 69 79 66 46 123 126 99 75 67 71 59 126 51 103 98 61 84 64 65 125 32 92 36 59 106 109 56 36 43 83 46 103 112 70 40 75 111 55 39 125 41 34 111 68 117 73 106 126 105 64 62 72 120 98 43 35 78 65 52 112 100 81 37 38 60 91 77 82 41 120 61 94 126 68 77 90 94 99 33 104 35 92 67 57 125 118 73 111 35 98 87 39 37 60 95 46 103 62 82 123 39 39 49 36 36 120 96 96 89 47 32 52 ]; +ref = [ref 61 56 73 75 36 112 114 65 116 70 94 82 91 68 86 87 36 74 55 36 57 98 113 99 114 89 40 90 126 125 62 50 48 35 71 39 112 41 60 86 69 124 96 113 94 118 126 48 101 111 77 44 104 49 112 55 82 103 38 82 115 94 61 87 45 73 32 99 81 120 76 84 32 44 88 86 85 43 110 81 75 126 56 32 97 66 72 105 89 97 58 115 46 71 124 114 104 65 56 122 63 114 70 116 104 121 50 92 53 122 122 94 69 118 51 108 110 106 108 89 114 87 126 61 86 123 58 113 121 54 74 112 123 106 41 95 103 83 52 105 73 43 53 36 44 93 81 32 44 99 100 78 41 42 91 98 56 44 76 49 40 38 107 82 117 118 92 45 122 103 113 61 34 64 96 91 91 118 124 116 87 55 116 125 83 56 116 117 43 104 112 123 79 108 65 94 62 56 82 112 ]; +ref = [ref 121 64 56 120 54 37 85 62 99 68 77 36 114 51 110 63 81 33 40 83 105 72 90 56 80 89 114 48 47 126 94 82 32 47 57 103 105 60 84 74 80 38 99 77 65 44 79 85 98 52 53 92 66 77 42 94 124 78 109 106 102 59 61 69 50 115 67 70 41 34 96 102 78 62 56 98 124 37 68 39 79 52 42 47 118 119 42 100 68 117 61 106 69 38 110 54 96 94 107 77 68 88 87 50 78 33 114 62 64 72 63 74 41 100 58 78 85 85 81 79 70 82 55 95 110 53 66 121 40 67 101 113 97 110 70 77 52 65 48 103 110 94 114 95 92 78 34 113 63 32 52 113 43 51 60 121 68 104 59 102 52 108 112 81 118 34 123 61 112 101 84 70 108 35 60 93 40 50 46 81 102 126 50 34 76 123 53 109 37 69 97 122 86 65 112 52 107 95 98 53 ]; +ref = [ref 41 58 77 118 117 46 51 52 48 39 107 40 33 77 108 112 90 47 116 48 76 38 72 73 72 106 64 82 110 42 108 77 65 87 120 118 71 89 106 54 35 116 40 82 46 42 81 55 73 111 100 55 79 121 72 78 90 69 100 121 48 118 43 52 51 120 68 114 100 69 86 63 124 79 112 58 77 75 83 72 113 38 110 93 121 59 75 81 117 58 71 48 76 44 55 107 52 104 109 66 115 76 35 101 114 110 32 36 47 91 38 62 74 89 83 48 106 114 42 47 40 37 42 84 97 57 75 77 122 101 58 85 47 33 79 93 103 80 55 111 48 87 70 97 104 76 94 118 84 52 66 40 88 85 68 102 108 58 102 45 56 113 85 34 115 118 121 109 122 113 55 77 53 121 95 81 126 112 34 37 55 68 52 66 121 43 53 65 92 40 98 69 119 70 60 102 125 112 50 91 ]; +ref = [ref 81 75 45 81 46 70 71 44 65 122 126 40 64 90 34 77 86 105 34 36 67 52 89 108 67 103 54 85 47 99 122 57 46 46 93 86 53 94 106 74 98 48 126 100 71 75 115 107 90 35 79 73 67 125 50 73 123 32 32 102 84 85 46 90 63 101 68 125 125 33 92 36 38 50 43 44 105 114 90 117 35 88 125 81 84 101 108 73 49 98 120 123 123 117 57 40 47 108 110 40 123 68 45 74 58 70 116 121 101 95 123 46 95 91 100 121 46 96 39 46 75 43 73 76 112 82 120 46 52 87 77 88 120 35 70 36 75 58 108 79 125 125 56 59 92 32 81 92 33 105 37 42 123 104 73 94 89 99 67 121 45 102 98 101 34 104 84 65 106 34 59 35 75 52 61 45 98 39 68 83 55 45 120 80 118 70 66 102 104 121 61 75 69 47 99 76 68 102 109 118 ]; +ref = [ref 126 54 64 121 69 102 116 72 122 72 80 77 75 91 38 104 115 65 44 124 72 119 92 113 82 113 58 68 103 108 40 72 45 110 84 122 116 61 56 98 77 43 58 52 60 115 102 65 100 57 105 108 90 54 83 62 106 100 86 108 78 76 78 96 52 115 117 89 84 46 73 59 61 32 91 95 91 74 45 110 67 45 36 103 117 58 68 41 44 73 99 78 87 65 69 85 114 115 108 71 109 99 73 78 68 78 64 54 121 87 37 48 60 119 92 41 114 100 33 38 95 53 73 78 42 59 79 122 41 110 38 71 49 48 53 94 107 57 111 72 78 121 119 45 114 51 64 60 126 64 126 71 75 107 84 104 88 120 62 101 37 97 37 71 53 84 102 91 35 96 104 72 90 124 71 45 61 90 119 61 50 72 35 118 97 38 74 110 122 121 98 81 97 109 96 90 80 91 85 125 ]; +ref = [ref 82 118 44 35 103 64 79 35 96 61 113 79 114 72 75 65 63 47 62 45 57 104 108 99 94 91 100 120 54 70 93 96 49 112 61 92 99 117 34 70 59 39 109 90 96 56 118 76 37 42 94 94 37 124 43 44 124 58 117 94 112 72 98 79 50 114 77 70 88 98 97 108 55 90 34 54 99 115 32 36 100 113 57 124 84 40 121 32 122 91 58 117 60 89 99 115 116 40 124 84 121 96 97 81 72 64 58 58 70 70 60 86 33 125 82 96 66 46 106 88 123 43 78 58 70 125 122 85 111 100 38 121 90 58 88 56 81 78 126 37 117 89 44 37 109 97 70 71 46 93 69 39 62 39 51 73 97 112 63 92 120 112 102 90 115 101 125 60 89 94 103 67 46 120 108 63 85 84 78 123 101 48 93 45 42 107 73 110 70 120 40 62 112 52 103 101 42 64 66 96 ]; +ref = [ref 96 94 32 40 70 110 101 87 70 84 111 47 41 82 126 107 49 38 48 60 43 122 108 55 70 91 105 66 115 69 98 107 105 108 50 112 75 97 106 68 70 105 118 109 34 81 114 121 120 88 102 118 64 41 123 77 60 45 109 111 81 40 62 124 36 83 36 48 66 36 92 114 73 72 54 69 78 48 87 43 64 103 81 89 105 32 85 117 99 126 99 112 46 37 77 85 73 81 61 107 110 72 72 79 49 91 53 108 90 94 56 32 112 54 76 47 91 92 74 79 71 67 119 34 49 119 49 124 58 118 96 59 36 67 57 117 112 70 95 119 86 95 47 41 69 39 117 111 78 90 97 118 92 104 59 73 47 78 105 49 79 60 41 125 61 52 43 65 120 75 69 42 123 75 39 50 63 90 41 71 65 80 86 117 71 58 61 81 59 116 98 51 107 101 55 50 123 125 89 59 ]; +ref = [ref 97 50 92 93 36 62 52 32 80 97 54 126 47 82 101 47 107 76 48 109 46 74 35 35 63 65 83 93 51 35 33 83 106 79 81 37 89 111 125 87 55 118 38 32 72 50 115 119 76 53 65 54 45 74 65 93 77 57 47 65 52 116 69 78 76 101 61 58 86 70 67 115 73 43 122 43 79 73 94 121 56 37 37 50 40 85 42 61 37 114 95 81 41 97 111 122 126 87 103 120 59 96 56 38 82 113 90 65 111 91 42 63 35 78 48 42 91 67 79 32 88 78 91 39 49 122 93 47 96 36 44 53 87 52 53 44 102 50 65 32 121 35 51 107 78 114 34 114 99 68 117 56 43 78 108 42 45 119 126 56 37 55 79 37 69 33 65 42 33 64 109 112 58 64 39 85 65 58 98 98 120 41 91 125 124 94 73 122 71 46 58 121 100 75 86 107 63 66 78 88 ]; +ref = [ref 60 105 65 45 115 68 62 114 75 111 46 119 119 105 67 102 43 38 34 53 82 108 120 99 58 122 107 43 91 74 85 119 83 46 119 118 121 34 112 39 54 43 112 43 84 40 119 33 77 52 47 77 99 40 41 54 123 124 45 94 48 63 61 94 35 91 74 125 39 70 126 64 38 124 61 56 65 79 92 123 110 95 123 105 61 70 94 53 69 90 124 96 117 103 38 99 69 38 119 66 88 41 40 123 41 73 34 43 80 89 37 41 92 116 80 123 86 100 36 81 34 115 100 80 46 52 122 103 122 91 109 65 70 106 55 49 111 37 65 109 57 39 72 80 80 104 109 106 62 88 90 94 91 73 87 37 82 115 45 59 112 49 63 125 122 104 101 108 55 63 109 78 110 98 55 124 89 38 121 99 108 69 90 95 78 101 38 35 99 110 87 36 66 50 114 53 105 33 70 44 ]; +ref = [ref 99 86 66 43 92 116 105 90 83 106 83 96 83 55 104 64 108 110 84 64 93 37 94 120 40 70 65 71 47 43 115 107 67 105 125 93 57 71 86 79 67 70 86 72 69 43 83 96 90 72 90 38 110 119 74 70 65 123 113 93 64 96 92 118 63 32 63 126 81 82 120 95 42 113 73 111 83 90 117 117 120 104 85 100 114 54 110 70 63 63 36 50 102 92 121 39 66 111 97 85 61 59 77 57 46 98 60 112 98 34 110 86 80 93 80 35 53 108 50 89 86 100 114 125 121 39 98 101 66 51 122 87 92 69 82 125 67 103 112 65 58 121 56 60 108 60 106 35 50 101 45 62 47 55 36 45 84 116 35 67 62 64 122 114 69 38 94 86 41 34 47 95 106 49 115 86 76 77 116 95 126 37 83 101 53 87 125 70 108 33 123 37 45 47 104 86 56 85 35 108 ]; +ref = [ref 99 48 47 37 40 64 60 46 38 60 100 92 53 48 99 100 51 74 58 118 47 75 92 112 110 97 70 51 68 95 33 74 52 40 32 98 38 85 35 84 78 64 71 118 64 90 37 124 62 73 102 85 81 116 100 82 92 122 76 100 58 113 71 89 62 52 43 111 123 123 115 52 66 80 69 67 83 91 94 115 121 109 37 116 76 42 73 52 80 119 52 116 63 72 35 47 86 110 61 57 53 62 50 93 53 43 38 43 91 36 66 80 42 89 111 86 51 126 93 55 84 120 82 91 90 55 34 86 126 44 59 43 36 65 77 56 109 108 102 124 65 35 116 73 115 89 72 57 73 62 84 38 105 40 66 103 69 86 60 104 99 60 68 115 64 60 111 53 125 85 49 83 96 40 72 101 120 105 34 57 123 43 89 54 105 53 37 94 106 71 114 68 50 62 105 99 73 40 112 37 ]; +ref = [ref 104 99 63 87 78 117 43 94 119 78 95 67 55 116 114 82 112 109 40 61 46 123 60 38 66 109 97 42 54 106 52 39 41 121 102 120 63 76 53 97 44 49 67 91 90 63 95 49 122 72 111 58 103 90 122 53 67 87 60 105 44 95 113 100 98 52 49 87 80 46 38 39 119 116 51 56 86 121 98 43 39 46 90 41 33 35 77 99 62 57 80 108 50 81 108 105 83 120 117 81 53 116 89 110 65 40 91 79 89 41 68 72 79 85 104 81 39 106 126 37 80 87 72 45 65 92 81 55 81 103 33 90 44 65 121 57 95 82 88 87 49 40 99 108 74 93 42 61 126 37 84 89 99 105 108 71 103 124 32 69 102 106 103 53 111 65 64 117 32 67 125 90 53 83 59 50 94 58 67 101 51 117 64 45 122 90 36 113 34 32 66 57 123 76 89 123 118 40 52 123 ]; +ref = [ref 117 53 113 96 104 115 126 72 63 96 123 96 95 89 37 82 64 84 63 102 118 108 42 71 95 100 71 39 106 99 87 51 35 82 124 104 38 39 96 39 122 65 101 84 47 85 44 106 72 86 47 119 87 108 32 47 62 109 75 39 48 94 88 68 103 119 41 118 124 82 84 57 85 40 48 90 71 58 42 40 76 34 40 105 78 97 82 121 51 86 59 117 67 72 71 32 116 111 96 56 98 51 93 105 111 67 78 54 62 113 105 67 69 55 115 64 117 38 125 61 73 55 101 67 45 124 55 106 63 38 55 54 108 111 117 121 96 122 46 84 119 95 83 105 93 49 112 114 107 58 52 34 96 97 86 53 67 91 99 58 110 103 49 97 94 84 64 38 87 99 61 38 86 75 85 92 88 103 93 74 92 116 114 96 116 58 69 63 69 98 62 62 90 42 50 42 42 68 120 78 ]; +ref = [ref 78 99 95 89 113 91 42 72 125 52 44 47 74 74 69 75 107 38 41 84 40 71 62 90 62 94 54 114 90 56 76 41 75 97 65 50 93 126 93 47 112 61 107 65 99 112 81 85 77 103 91 107 82 100 93 41 86 59 37 82 79 123 43 100 107 79 37 70 118 98 44 109 82 67 55 55 87 115 79 88 91 107 62 98 90 66 63 78 118 100 52 39 110 78 41 105 38 45 54 84 102 91 47 47 44 53 56 108 36 89 105 97 118 69 78 80 37 105 106 83 80 105 105 69 62 63 116 113 76 101 98 58 32 115 51 88 33 40 105 33 52 101 72 88 33 93 91 86 72 63 105 91 42 44 64 79 113 59 94 87 42 34 38 47 65 117 99 77 113 46 89 49 93 112 47 77 109 81 110 126 87 66 49 118 101 115 119 42 38 41 55 68 100 118 104 87 103 86 64 69 ]; +ref = [ref 98 63 40 116 113 99 121 106 48 34 114 35 44 81 72 109 97 78 36 122 79 92 53 82 50 72 109 91 71 117 33 115 76 85 59 107 106 65 43 92 119 45 74 84 55 121 101 50 67 94 103 70 117 121 98 45 89 105 47 63 54 109 50 52 92 57 61 49 74 59 70 71 76 39 45 47 84 102 124 103 52 81 105 115 33 106 35 69 34 107 116 114 91 80 111 84 54 78 43 68 85 72 50 116 83 48 80 87 67 61 77 45 85 102 87 77 81 39 68 100 110 86 107 42 120 107 95 42 39 37 71 107 72 54 103 77 85 44 112 89 126 121 63 62 99 126 107 82 83 109 52 51 107 66 33 45 39 42 45 112 61 81 39 121 94 80 101 38 56 126 50 50 66 59 91 91 104 62 57 59 51 118 78 33 102 97 124 46 125 82 96 36 46 37 90 37 52 69 94 124 ]; +ref = [ref 102 62 121 64 106 36 58 35 100 115 82 78 110 75 117 125 114 113 61 57 40 67 86 67 34 40 56 99 64 38 91 72 120 51 92 124 121 90 103 51 70 80 39 48 44 33 113 47 95 77 51 103 96 113 55 34 107 41 124 122 104 92 35 57 77 77 79 89 39 120 62 98 83 108 116 62 44 49 70 99 92 80 94 47 64 66 41 48 77 116 47 80 101 99 77 44 117 96 36 38 77 48 62 121 103 117 105 98 126 62 118 87 70 62 46 115 48 97 102 82 124 49 61 80 76 47 101 109 62 60 77 34 120 105 110 71 97 104 34 89 81 79 106 89 100 52 59 85 50 121 117 59 64 96 52 54 63 89 115 44 72 107 46 78 101 60 70 81 35 62 114 103 105 85 108 67 123 32 109 35 75 75 80 43 38 62 61 72 66 33 76 35 122 103 106 44 83 84 62 104 ]; +ref = [ref 98 123 53 41 50 82 90 84 64 35 89 34 64 60 92 83 115 53 76 90 102 41 124 45 73 125 111 97 102 85 98 82 110 120 56 113 113 124 107 119 96 58 36 70 90 112 88 64 86 91 118 126 71 108 39 81 81 97 82 32 107 113 51 54 39 40 49 58 59 111 34 115 124 114 65 53 92 114 108 78 62 88 93 61 100 87 68 124 77 81 38 64 125 88 101 38 93 82 126 110 65 52 117 101 71 98 58 55 60 107 113 115 38 101 122 60 53 103 121 74 58 107 86 52 43 119 82 126 85 96 64 125 104 81 116 63 56 74 114 67 49 69 70 103 67 92 70 46 75 94 49 38 120 81 38 77 108 58 66 85 109 42 66 83 93 91 108 87 44 100 75 75 73 96 52 118 64 66 33 83 118 120 97 54 66 96 62 34 77 118 46 106 92 113 95 73 93 77 76 59 ]; +ref = [ref 49 83 105 36 103 58 122 80 35 96 108 95 32 78 61 63 78 53 98 98 41 52 83 114 94 89 53 42 54 89 124 113 95 35 61 80 54 113 57 106 116 54 86 106 51 103 50 79 120 65 105 108 95 76 39 43 56 51 83 74 75 36 37 60 72 71 104 45 61 52 85 56 97 88 40 116 44 75 42 43 113 81 43 110 53 60 56 85 105 37 84 47 111 62 40 48 101 46 106 85 72 63 34 118 83 47 69 108 116 106 101 51 77 106 103 104 113 79 43 107 112 124 124 113 115 102 43 104 36 81 101 46 120 34 70 111 66 124 96 68 60 36 49 87 100 101 102 95 44 97 110 85 100 108 57 75 92 99 94 51 51 53 108 108 98 101 32 115 72 71 45 54 70 98 79 38 74 114 80 111 73 53 99 84 86 82 37 63 107 72 74 118 71 79 42 93 117 103 72 97 ]; +ref = [ref 64 97 74 79 117 121 75 52 123 89 63 42 112 126 64 120 114 45 58 104 122 89 121 111 98 49 51 44 80 89 82 113 46 65 55 37 104 86 55 58 36 86 76 118 123 75 35 36 107 32 91 53 69 84 106 43 59 67 76 36 35 33 50 69 119 85 49 122 110 78 82 91 47 93 77 69 42 90 72 121 84 34 111 115 126 53 38 81 57 32 126 124 123 110 56 57 56 60 37 47 93 68 61 68 66 59 57 56 85 45 71 34 114 54 54 117 97 104 81 59 59 126 65 88 63 91 48 69 80 71 70 84 48 53 55 87 55 86 53 100 57 76 54 74 67 52 40 38 125 114 75 111 78 64 108 76 43 65 126 90 113 92 54 60 110 103 105 77 96 81 39 50 69 44 116 109 40 123 62 46 48 100 102 97 81 105 70 92 105 74 35 38 121 60 60 60 60 113 84 66 ]; +ref = [ref 80 46 122 35 78 117 95 73 116 83 117 86 74 108 74 71 101 65 90 106 75 50 104 96 88 49 64 55 107 124 120 91 39 107 39 37 76 59 40 33 125 53 94 117 107 47 81 110 77 92 100 42 80 75 75 122 126 124 34 88 36 64 83 54 107 48 90 41 46 110 115 113 74 74 115 80 108 86 50 33 93 108 104 107 89 93 40 115 113 111 104 50 94 57 32 81 61 102 59 67 99 97 68 75 105 40 39 52 46 54 68 107 51 56 68 57 45 45 122 57 53 94 51 111 60 58 108 61 124 104 38 109 83 44 33 98 65 109 103 122 49 63 109 117 33 66 40 120 61 107 82 123 47 68 106 72 55 58 43 71 109 89 89 59 53 53 50 67 45 83 63 79 122 36 46 95 98 77 70 102 66 38 40 98 36 33 96 46 99 84 34 82 98 116 107 105 102 70 51 63 ]; +ref = [ref 47 34 119 57 80 88 109 71 100 53 79 61 94 47 82 108 114 97 34 49 83 113 77 62 45 106 37 60 113 66 93 119 53 95 69 126 95 82 117 59 83 37 101 102 108 104 120 71 32 72 79 75 101 53 107 36 59 45 105 37 107 105 105 40 69 56 55 98 112 50 95 116 35 122 90 41 89 107 72 94 41 32 37 115 58 35 111 67 77 107 68 44 125 52 71 108 112 42 108 73 84 74 54 56 112 87 96 85 47 107 96 61 66 73 50 102 114 93 99 97 33 102 96 65 48 43 105 38 63 35 46 56 119 74 105 100 48 80 108 48 96 68 104 74 122 91 56 76 113 62 51 85 81 70 104 123 85 107 112 59 36 101 72 40 108 105 115 42 67 105 76 66 81 46 91 82 116 85 58 87 49 111 97 108 81 111 54 52 67 77 97 55 49 35 117 105 126 90 85 103 ]; +ref = [ref 35 95 68 124 120 110 115 78 117 102 122 40 77 50 108 90 86 34 119 113 69 85 61 68 107 84 65 121 126 55 64 115 120 113 41 45 124 108 60 56 119 50 32 122 41 46 86 62 89 34 121 92 120 99 73 105 73 47 52 54 118 88 119 114 59 85 37 89 52 117 91 63 78 86 108 35 79 112 60 51 113 65 64 76 101 55 112 60 33 119 42 48 111 47 34 106 39 60 75 124 80 87 121 99 99 121 66 52 66 45 121 126 38 42 122 115 76 69 91 87 79 110 38 73 73 115 110 112 87 79 98 58 94 59 80 119 58 97 75 112 44 51 53 63 45 62 115 122 32 111 125 44 108 123 43 113 36 77 75 50 122 107 91 85 39 60 45 71 120 35 62 73 63 97 52 125 39 45 53 83 55 34 32 51 83 81 99 104 112 101 52 79 41 42 59 112 66 101 121 126 ]; +ref = [ref 33 97 66 102 57 52 99 34 82 48 76 45 117 119 116 114 122 53 65 125 92 46 107 121 79 75 83 122 121 36 103 98 80 45 68 120 78 70 125 96 79 96 123 113 100 70 54 112 94 89 39 62 98 94 49 34 67 89 46 107 74 89 108 97 39 36 123 59 94 59 72 57 90 118 52 37 93 49 100 82 95 94 59 90 58 93 93 102 108 60 107 82 63 114 45 81 97 61 58 124 49 54 83 98 98 63 55 54 80 62 114 101 50 69 58 57 126 37 64 87 55 74 73 54 49 85 56 78 48 51 36 59 58 45 107 44 106 121 95 79 86 55 54 94 91 104 45 70 37 109 35 119 110 117 102 60 54 83 82 70 66 53 32 120 98 66 109 50 76 80 123 46 88 74 88 93 70 73 74 71 70 54 75 50 52 43 107 70 87 84 105 62 54 124 69 121 125 101 77 58 ]; +ref = [ref 106 122 65 38 114 91 94 34 43 33 54 58 73 120 99 77 53 73 113 64 88 101 99 104 86 101 39 76 72 66 67 75 57 78 123 42 94 81 99 109 63 38 107 39 119 84 67 113 119 56 72 52 38 35 75 122 92 45 92 57 68 85 36 82 92 40 84 60 95 44 107 85 96 86 103 74 68 36 94 53 84 110 64 90 85 62 124 70 66 82 35 42 76 82 103 90 94 92 76 35 112 103 114 122 113 54 122 45 94 113 47 112 119 122 55 46 74 76 87 94 89 64 69 103 126 46 120 115 93 64 63 44 61 61 71 88 99 50 94 86 118 82 111 63 93 54 123 119 48 35 60 59 111 51 49 32 64 85 42 106 37 122 102 108 88 79 41 88 49 85 81 74 117 56 76 71 104 66 67 69 49 35 71 39 121 46 94 54 87 112 96 89 108 48 114 86 119 59 111 57 ]; +ref = [ref 83 70 116 62 97 118 58 38 60 105 45 47 48 55 102 82 76 73 90 125 32 74 126 60 94 114 126 38 116 48 124 96 65 88 115 65 78 124 51 85 50 81 115 50 113 89 53 70 119 78 72 41 115 106 67 101 64 76 121 96 47 107 108 57 97 123 106 123 39 119 56 101 44 75 60 114 46 44 45 100 90 81 74 112 45 83 74 59 97 53 82 59 88 68 50 67 49 73 56 88 62 87 74 52 103 78 100 82 116 124 93 100 78 54 87 95 69 47 65 98 87 92 103 96 60 75 89 105 61 78 108 74 56 114 117 122 106 70 80 117 113 125 34 66 71 44 64 112 94 32 64 74 114 91 48 40 51 70 53 47 68 79 38 66 55 78 82 85 82 88 126 119 81 65 49 96 96 37 32 112 87 104 48 54 36 35 120 76 80 64 73 94 124 75 75 87 101 45 116 42 ]; +ref = [ref 59 65 56 77 113 111 110 99 105 55 56 82 71 73 122 42 39 112 122 110 98 108 68 47 117 87 78 98 40 85 81 93 47 42 69 89 38 38 33 66 65 87 123 37 57 97 107 90 106 89 112 59 69 102 126 119 94 61 80 79 32 41 83 44 101 59 91 76 64 63 56 102 96 75 74 99 61 99 109 86 71 99 122 63 103 65 126 101 82 47 51 32 32 44 106 55 46 34 120 118 70 85 38 77 37 101 105 66 52 70 38 32 119 108 42 91 107 51 67 75 126 123 68 67 80 38 34 74 46 78 86 108 57 104 35 76 109 71 100 110 77 47 105 85 60 38 83 38 45 51 120 55 113 124 85 125 35 45 119 125 68 48 122 112 93 90 61 97 58 64 91 118 36 122 73 47 88 97 72 75 109 112 49 121 104 70 117 70 114 102 120 51 100 97 86 60 96 80 103 68 ]; +ref = [ref 60 89 121 68 109 122 64 42 36 40 100 66 69 61 65 54 61 106 112 92 122 93 120 98 117 84 58 34 50 109 60 58 109 35 102 84 70 79 115 70 122 69 83 92 47 115 112 37 92 98 49 36 57 98 124 108 41 82 77 91 65 84 44 59 109 64 107 109 107 95 57 86 80 102 111 36 102 41 94 94 85 76 111 99 62 75 84 33 118 117 105 103 117 59 126 39 80 66 104 106 60 38 43 97 82 100 90 91 91 69 61 123 50 43 118 73 53 54 40 89 46 61 85 85 93 71 66 59 113 124 107 76 68 58 67 118 39 93 76 49 56 65 105 83 45 62 94 49 110 43 123 55 44 85 125 71 92 97 104 84 49 42 66 116 105 86 42 43 115 38 96 71 120 71 112 124 45 89 94 46 78 73 96 116 106 122 117 82 86 49 112 38 63 71 78 117 71 51 95 56 ]; +ref = [ref 114 34 86 52 60 68 87 103 62 87 110 53 113 42 93 78 52 85 49 42 119 70 103 51 105 32 44 64 105 35 99 87 63 86 78 97 102 49 46 84 111 72 97 48 59 81 40 45 44 46 126 58 50 118 42 69 63 116 36 71 126 101 89 101 54 34 122 53 49 79 100 42 51 59 84 48 61 57 83 125 92 119 82 81 125 37 70 54 109 79 101 76 60 48 94 95 46 79 82 62 122 97 107 75 126 43 112 40 100 68 74 80 125 118 86 122 51 52 123 115 55 115 122 112 64 91 102 74 72 51 111 80 36 87 84 99 47 59 65 126 97 78 73 99 93 58 89 36 124 51 56 75 41 121 54 64 106 35 105 113 112 119 58 125 60 78 100 56 104 95 102 86 81 70 91 83 67 50 100 58 108 43 119 33 34 72 34 86 105 36 83 111 88 63 114 68 41 40 67 79 ]; +ref = [ref 68 84 111 104 72 97 90 58 85 97 39 47 71 66 125 67 92 120 105 124 101 46 72 118 104 85 107 49 36 97 53 125 114 122 54 44 121 87 84 48 84 122 51 46 107 46 117 74 104 87 96 109 123 94 75 51 33 72 50 60 126 47 122 41 106 104 103 90 72 125 106 33 63 103 102 37 124 47 102 88 107 117 71 97 90 96 54 90 121 33 77 65 44 61 124 43 49 68 40 33 34 105 98 124 41 57 42 59 121 97 47 73 78 48 72 47 75 32 55 80 80 126 122 38 77 35 53 117 43 39 66 104 120 46 45 63 57 121 95 80 69 117 94 82 107 38 61 108 32 124 33 89 50 41 39 66 68 105 72 107 75 115 119 78 32 64 117 88 62 113 93 59 85 90 74 98 54 107 93 67 74 49 89 69 51 84 114 81 67 104 62 66 69 51 122 114 89 62 113 65 ]; +ref = [ref 42 44 100 34 108 52 98 50 62 75 36 78 121 62 34 92 73 80 34 46 42 97 72 53 62 33 70 58 126 119 59 86 122 105 58 117 71 40 72 68 68 34 85 66 103 96 121 83 77 75 51 52 96 38 104 94 71 100 98 95 107 118 96 100 58 83 60 49 42 41 94 71 83 65 60 32 91 121 65 121 62 102 122 101 117 123 39 73 79 79 101 60 126 79 97 54 32 66 36 75 105 99 66 63 45 123 79 84 44 83 79 46 48 115 117 91 36 84 33 70 98 88 98 103 47 110 108 106 71 100 55 58 108 40 81 50 52 111 97 36 54 60 100 118 126 50 77 60 89 125 113 52 63 107 54 92 37 106 32 125 120 78 49 97 108 112 38 91 73 120 71 62 103 101 95 109 38 39 126 62 69 39 47 111 89 33 59 99 79 120 39 116 48 120 46 52 115 107 123 66 ]; +ref = [ref 47 101 122 69 43 82 66 35 60 91 53 103 98 56 122 60 83 39 70 99 99 99 39 107 38 126 123 97 48 57 37 61 119 80 93 114 125 105 88 77 89 121 59 94 115 74 117 39 99 75 94 76 106 98 65 34 52 104 104 87 43 85 49 75 122 95 56 116 46 57 56 40 33 104 45 61 110 44 120 111 51 72 37 111 99 59 98 117 54 66 109 48 116 119 124 74 60 102 116 48 66 94 124 108 110 105 55 78 34 63 112 101 69 124 89 115 81 52 45 97 79 117 101 42 84 81 120 116 112 77 118 80 68 91 89 81 80 53 126 78 80 114 82 41 125 54 103 113 124 97 111 109 97 106 90 125 71 44 56 66 119 91 77 64 120 120 47 99 91 60 48 59 49 71 122 101 103 99 91 82 63 62 81 124 112 57 88 52 46 104 112 58 121 106 46 112 121 75 80 45 ]; +ref = [ref 84 95 52 60 59 120 112 74 95 118 81 48 103 85 50 85 54 57 65 113 33 116 42 50 80 117 117 40 96 43 80 45 49 119 88 72 46 110 56 68 97 109 56 119 101 39 57 122 95 65 126 118 116 108 123 49 92 118 66 98 45 112 123 35 71 46 114 93 125 80 93 77 115 107 106 119 44 85 124 45 93 45 120 68 70 75 91 90 62 126 79 84 64 64 121 43 97 60 122 107 43 104 120 101 60 67 91 100 57 78 56 55 33 105 44 121 117 69 85 119 62 124 70 35 116 119 33 104 52 110 126 36 51 64 34 86 41 64 86 77 94 56 116 61 63 106 61 60 82 57 56 113 65 61 84 61 71 50 104 40 63 38 79 82 112 78 72 43 79 108 55 72 105 69 42 123 113 43 82 46 33 71 48 99 59 56 55 43 62 108 57 103 79 112 40 86 51 100 52 79 ]; +ref = [ref 117 84 118 46 68 41 73 79 52 84 107 122 103 124 76 32 125 94 76 94 68 118 108 68 78 116 75 47 38 71 37 33 117 67 42 47 33 101 39 99 90 40 123 42 75 42 119 43 122 109 115 119 95 116 86 126 41 75 124 33 115 105 103 74 74 94 88 49 124 110 72 42 116 33 97 41 46 108 93 79 103 37 62 47 59 96 95 43 49 101 75 113 47 83 96 42 116 126 34 109 76 119 52 35 120 103 99 124 109 93 34 95 54 67 69 106 74 66 125 121 49 75 100 63 37 38 108 47 53 36 37 120 54 125 102 126 36 69 43 112 48 54 64 116 70 100 87 71 73 67 70 46 113 66 45 36 40 47 95 89 39 63 43 65 70 89 102 126 98 46 34 93 63 100 96 97 59 71 70 63 106 123 122 99 94 108 35 65 40 63 109 78 39 73 88 65 105 106 66 43 ]; +ref = [ref 43 62 45 122 74 103 89 115 55 55 47 40 74 64 56 73 55 48 45 51 79 100 54 113 113 35 100 70 55 85 100 34 65 52 112 41 60 92 32 84 71 85 95 88 41 124 111 77 97 85 104 99 89 81 64 124 72 63 110 102 119 45 92 95 47 101 39 61 117 126 102 84 91 48 90 52 79 89 110 84 97 47 48 116 56 33 112 46 59 66 68 47 40 120 119 36 66 102 106 39 116 78 74 123 58 50 120 76 124 77 81 47 90 125 91 126 85 42 50 117 105 96 64 96 126 34 108 47 34 44 45 96 46 43 50 122 110 98 97 98 114 52 63 79 81 53 81 41 33 87 123 106 53 120 55 70 85 92 125 112 37 107 64 116 37 91 56 97 57 62 43 64 58 117 77 67 124 124 64 55 84 93 104 74 72 108 96 56 100 126 104 34 103 37 54 101 37 68 102 103 ]; +ref = [ref 40 94 38 45 92 116 55 104 111 95 93 111 47 70 39 72 101 109 83 117 116 42 109 95 91 57 68 88 108 72 64 69 58 97 95 32 88 101 117 80 116 99 112 90 62 80 96 46 84 87 81 84 120 37 40 58 55 102 42 56 91 126 118 67 117 109 66 108 104 116 42 85 73 126 40 115 33 105 120 96 88 111 77 124 55 50 54 37 70 104 114 65 93 52 57 106 86 45 48 107 109 83 48 60 93 82 113 60 89 124 93 92 65 118 40 64 78 101 59 83 47 43 95 97 40 55 95 51 87 58 66 123 62 49 90 78 34 120 97 116 52 80 123 118 63 40 56 64 58 67 112 33 68 90 108 37 66 86 90 34 125 59 57 35 36 58 91 65 79 42 94 100 42 76 86 82 91 62 117 39 83 63 69 58 36 35 87 112 57 110 62 41 43 63 87 70 126 106 119 50 ]; +ref = [ref 99 98 121 96 71 63 42 62 51 109 72 54 123 54 54 61 35 56 77 51 124 98 78 69 67 61 104 95 105 98 70 46 111 111 44 126 116 48 118 98 77 126 94 40 121 88 89 54 104 96 47 121 49 72 101 48 48 63 122 50 114 72 56 83 99 82 97 111 46 84 106 59 92 68 70 101 99 43 60 45 58 110 124 34 123 57 64 41 58 41 125 48 49 53 107 54 75 77 36 90 108 104 60 96 60 112 77 41 122 77 74 55 45 62 69 110 116 93 99 110 69 38 116 104 74 72 105 109 62 74 126 77 39 122 37 122 112 94 65 63 90 39 122 121 109 124 110 114 104 60 34 81 116 93 77 100 116 112 85 86 47 39 87 67 67 74 71 69 40 36 61 114 48 51 121 47 114 58 66 78 92 33 98 124 34 44 79 42 114 110 88 63 40 59 65 65 64 32 54 32 ]; +ref = [ref 97 80 50 111 40 43 123 84 91 124 33 109 77 74 38 81 51 92 108 84 99 78 103 55 94 40 45 82 108 60 41 42 114 92 93 54 106 91 48 41 94 41 106 108 45 72 101 87 97 103 42 72 76 103 44 53 64 126 39 45 56 56 81 109 108 94 124 71 97 86 49 80 101 34 54 84 117 75 57 43 74 62 102 98 120 72 88 72 85 108 65 61 56 102 96 91 75 79 74 61 123 105 36 122 91 36 119 86 59 95 85 77 71 104 34 106 82 40 101 74 115 41 123 32 57 125 37 103 123 95 66 124 47 113 111 99 59 116 61 80 96 116 75 69 109 93 91 112 87 41 100 77 110 123 68 84 75 68 93 102 78 80 64 120 89 94 61 41 126 108 88 98 119 62 42 58 32 108 81 55 59 63 75 45 118 82 49 72 34 42 44 100 100 63 84 101 104 69 55 57 ]; +ref = [ref 107 95 122 52 113 44 87 90 63 89 124 77 46 42 92 72 56 98 77 91 69 35 77 123 94 125 40 69 56 71 111 67 121 76 93 104 121 111 47 100 83 114 40 42 48 103 49 45 63 93 76 56 117 71 95 37 55 49 58 37 116 108 99 87 93 122 99 124 88 85 123 89 42 115 68 62 72 76 74 88 70 92 99 98 75 32 104 73 49 67 52 74 62 81 42 66 106 96 71 99 102 120 55 47 55 36 124 72 67 102 120 103 41 78 81 35 89 115 33 82 80 61 44 89 110 65 90 102 121 41 53 95 44 39 118 74 101 97 97 124 93 42 102 85 91 65 38 40 94 93 84 49 86 46 34 75 82 74 36 110 68 47 96 119 101 44 113 65 78 76 117 111 84 76 76 113 38 58 94 85 44 70 114 103 87 67 46 89 115 94 116 45 74 115 96 120 32 109 75 60 ]; +ref = [ref 123 118 57 113 119 95 116 63 73 123 96 125 54 43 126 81 91 35 103 120 88 74 124 74 104 73 100 70 53 93 114 72 46 88 40 83 115 103 42 48 110 58 101 95 114 98 82 99 60 126 92 79 98 92 88 58 121 57 81 83 88 43 77 90 93 74 101 59 108 74 74 101 43 38 71 71 71 77 51 108 98 71 33 51 51 93 118 114 38 98 93 60 84 80 51 50 44 96 81 91 59 54 109 109 33 98 61 63 43 76 73 87 45 54 49 104 109 96 111 121 98 82 74 124 105 103 120 74 122 112 106 125 56 100 114 40 82 114 92 68 72 120 65 64 46 125 77 72 53 63 41 112 96 44 36 97 70 113 103 96 49 83 70 86 34 97 83 38 103 41 37 125 95 107 111 114 60 74 36 34 79 43 120 81 61 88 92 66 122 71 72 49 103 49 67 94 98 53 77 49 ]; +ref = [ref 51 89 52 65 113 65 35 91 45 103 114 105 40 83 106 108 89 61 107 81 74 90 86 108 126 81 125 35 63 100 106 78 64 109 68 34 105 110 111 95 43 60 96 67 109 120 106 91 95 90 48 85 57 73 39 65 65 47 34 120 76 117 96 69 98 48 113 118 47 46 117 105 88 45 40 118 86 118 49 81 49 118 46 118 49 58 61 81 75 106 80 119 82 91 76 44 54 103 72 97 59 98 88 59 98 42 84 126 124 93 81 123 54 108 112 85 42 105 78 110 67 78 80 80 74 119 70 44 50 34 92 99 76 54 80 53 76 77 97 101 98 97 110 45 122 100 46 90 37 37 112 124 54 101 78 89 57 83 122 47 58 74 44 42 41 98 113 37 100 67 55 124 114 87 73 74 94 84 39 41 108 52 37 49 126 76 100 88 119 121 109 78 61 63 102 92 89 64 75 101 ]; +ref = [ref 53 93 86 62 123 42 32 71 108 107 46 109 105 52 58 38 89 109 53 78 126 106 73 90 46 63 98 86 109 92 92 72 90 88 100 73 121 58 37 81 72 99 45 82 90 117 88 66 63 120 106 81 100 93 59 50 52 67 84 62 70 84 98 80 89 35 121 47 105 121 91 49 68 122 100 40 124 94 36 55 76 79 81 110 107 81 81 75 41 51 56 47 93 86 56 57 121 62 121 113 53 49 90 109 33 53 92 123 126 32 36 83 48 59 75 94 92 72 87 107 123 53 119 100 56 42 52 103 92 97 75 89 43 61 46 37 104 75 99 94 34 111 68 75 100 77 101 94 63 96 33 116 117 40 103 79 89 96 86 78 124 77 92 93 97 90 93 125 39 121 57 90 34 101 88 58 115 120 104 89 35 75 63 33 40 87 96 46 117 73 113 58 109 104 98 90 87 104 118 80 ]; +ref = [ref 63 34 88 119 49 106 125 77 101 55 33 52 45 126 36 114 35 49 42 114 115 76 74 110 88 115 70 37 110 121 118 110 33 101 100 77 51 83 121 119 86 112 110 83 104 122 102 81 72 124 74 72 72 75 74 80 96 52 113 100 79 90 91 33 121 126 44 46 116 79 122 69 55 104 106 64 44 80 68 122 52 50 96 76 88 45 79 121 71 38 36 50 71 37 81 91 102 106 124 48 65 92 115 55 88 76 39 123 55 92 84 102 55 45 98 61 94 39 46 97 80 98 99 53 70 78 46 85 63 109 43 87 74 85 122 68 66 76 82 65 68 40 34 59 40 107 110 35 90 57 42 103 45 68 37 72 96 34 64 107 101 53 100 36 120 96 36 63 46 111 85 79 121 81 53 45 83 95 123 49 89 35 41 60 65 105 101 97 105 46 82 73 105 102 87 85 109 123 92 99 ]; +ref = [ref 117 84 106 33 43 68 34 123 47 76 119 91 108 104 91 34 51 52 84 122 85 39 94 97 56 120 43 88 73 104 35 98 60 117 89 45 118 120 72 85 92 120 74 35 60 119 55 110 54 63 91 95 118 88 54 43 121 109 38 43 101 53 65 32 118 73 69 115 124 123 87 81 38 80 74 95 69 122 115 48 91 89 53 93 61 107 33 105 123 92 104 39 52 96 94 102 39 51 98 89 103 102 100 121 38 50 107 89 113 73 79 93 98 57 123 92 50 63 99 91 43 35 55 98 43 101 32 110 83 78 33 103 81 92 67 105 124 56 73 62 96 38 119 63 45 36 103 47 59 82 72 120 90 56 114 65 66 61 81 62 124 100 89 32 98 116 83 54 91 35 40 109 102 126 35 57 81 70 44 54 82 32 44 115 88 115 105 46 89 65 63 62 37 36 114 83 34 46 45 112 ]; +ref = [ref 67 96 44 123 120 116 32 102 86 80 60 57 40 46 103 42 46 78 109 39 36 76 106 96 88 123 103 106 37 45 68 85 98 125 49 79 60 74 125 105 100 99 83 105 33 47 71 83 55 123 70 125 75 59 55 65 45 93 102 55 78 36 78 77 124 42 113 42 83 91 110 58 74 106 67 73 111 119 60 46 120 92 108 32 116 106 58 87 90 67 114 110 108 41 57 94 116 74 51 61 87 49 54 82 109 96 38 114 119 65 82 121 84 36 61 115 91 48 81 98 78 83 57 55 110 108 35 84 125 60 57 66 78 43 126 59 116 33 116 99 102 103 107 120 59 97 115 96 106 122 103 100 122 119 112 117 78 75 75 81 113 109 68 119 70 67 87 46 60 37 101 79 115 76 123 64 94 51 98 73 48 71 105 88 89 70 70 112 79 52 97 119 80 93 93 109 122 58 110 96 ]; +ref = [ref 99 81 76 107 124 93 74 99 60 96 43 55 110 57 75 60 51 126 116 58 65 79 71 64 66 117 33 77 86 81 38 96 70 103 94 46 64 58 82 68 108 62 92 47 106 111 87 78 113 65 49 36 47 126 54 72 63 106 94 85 59 96 57 55 107 109 33 65 95 65 72 102 108 56 44 92 84 58 119 34 62 79 116 98 105 115 124 100 95 86 112 53 78 57 91 37 39 125 54 67 56 57 67 115 33 104 49 103 101 75 122 39 105 48 102 88 105 101 51 53 111 59 52 82 45 81 48 57 102 124 83 97 64 65 72 42 98 82 102 119 73 106 32 45 86 54 35 77 109 91 112 126 41 93 81 83 120 73 118 109 58 105 88 69 36 98 56 103 123 71 101 82 115 96 123 82 90 109 85 53 105 123 120 61 53 103 95 85 119 106 108 58 99 44 52 80 68 35 92 115 ]; +ref = [ref 76 48 36 119 90 40 56 116 96 80 100 120 50 69 63 33 114 36 70 36 40 59 74 37 69 88 60 49 109 122 36 59 41 106 86 59 42 87 98 39 53 48 125 54 95 85 114 65 33 35 47 96 71 95 82 53 83 61 98 38 121 46 110 74 121 97 82 40 115 76 68 45 62 32 94 35 68 122 52 126 50 53 91 39 112 39 123 91 37 60 56 90 102 40 82 92 46 86 106 51 119 84 75 97 32 34 121 57 101 72 51 95 100 109 67 98 104 53 112 101 45 79 99 78 121 81 107 43 63 42 90 94 113 114 40 56 101 117 56 61 126 126 35 101 93 102 65 66 66 115 34 88 44 60 120 122 113 93 70 79 94 60 63 45 55 41 46 47 58 59 125 60 39 57 99 88 112 61 65 32 85 56 89 98 44 117 112 67 76 122 121 33 81 100 67 33 86 120 46 59 ]; +ref = [ref 100 57 59 35 72 41 81 126 99 54 62 125 109 86 117 119 119 33 107 88 120 103 83 47 123 63 66 45 87 35 123 66 114 82 82 123 115 113 103 34 38 65 101 94 66 83 79 49 93 83 90 90 60 75 56 45 88 54 77 57 43 48 97 58 108 90 98 88 103 33 61 51 93 86 94 82 79 46 93 75 99 83 33 126 99 72 84 99 62 36 114 46 66 101 63 101 113 101 67 37 115 61 98 47 102 93 41 93 56 52 108 67 82 39 108 85 103 97 70 107 87 40 72 52 93 78 99 126 93 111 107 45 112 47 114 68 84 48 114 85 38 59 81 43 78 85 67 119 65 45 79 83 62 61 79 38 83 107 37 37 94 52 72 65 49 105 74 89 88 59 99 81 114 71 69 34 95 108 32 57 103 93 41 44 82 32 35 70 91 117 121 106 104 58 89 84 107 69 104 59 ]; +ref = [ref 105 102 44 59 44 41 83 66 120 86 78 119 43 94 122 34 82 51 95 120 76 114 108 80 66 121 101 89 57 60 61 93 96 84 64 45 75 52 121 122 91 125 77 49 47 92 111 33 104 117 48 81 60 78 114 97 73 44 79 84 80 125 36 113 70 42 115 80 126 47 69 113 99 58 55 32 67 40 56 88 70 123 118 77 122 107 98 116 55 125 100 112 51 125 36 107 90 116 77 107 69 110 70 119 80 74 46 118 65 71 98 52 70 118 97 35 71 93 35 115 119 36 42 41 91 121 35 116 49 74 82 110 102 116 83 76 117 58 77 95 99 54 36 116 72 52 77 116 96 116 62 44 92 57 100 117 54 64 55 88 36 54 103 77 109 121 110 99 40 60 33 66 34 98 84 93 47 101 95 37 53 83 87 58 111 125 69 40 94 74 51 121 88 88 84 32 80 122 85 74 ]; +ref = [ref 108 33 122 40 73 45 33 60 83 72 47 102 106 90 113 41 118 88 99 49 76 119 113 96 64 81 84 75 79 74 53 70 49 40 92 41 58 108 73 40 65 57 118 77 100 116 38 74 119 66 38 53 63 93 76 82 46 101 103 105 36 47 105 116 119 119 79 87 60 118 120 95 104 86 72 61 98 69 79 89 112 111 59 102 121 54 37 35 88 72 123 41 42 64 122 35 56 34 124 115 124 94 48 123 50 67 92 61 37 113 83 101 116 69 53 50 60 98 84 81 36 62 107 95 79 78 43 74 48 115 79 63 69 106 120 60 44 51 103 35 59 101 49 93 49 75 126 80 113 113 65 89 108 74 119 120 81 114 38 66 64 87 79 84 57 119 62 78 61 34 76 67 67 65 105 95 95 102 51 39 123 121 104 112 123 50 126 58 75 62 57 56 72 118 85 67 70 78 34 48 ]; +ref = [ref 108 84 51 61 48 84 74 120 68 56 104 114 42 110 111 33 65 43 93 123 88 122 47 123 40 59 75 45 73 78 58 37 81 91 94 44 98 76 115 89 110 63 100 125 91 80 121 68 47 126 65 94 53 35 122 48 55 38 75 107 126 104 111 75 82 37 64 75 67 108 95 94 105 65 97 68 36 57 113 96 99 89 56 51 32 113 61 86 50 105 74 48 126 48 96 104 116 84 83 108 53 54 39 87 54 83 56 126 120 126 91 45 112 109 113 32 70 105 92 53 115 93 64 51 86 52 98 50 55 35 53 122 43 62 73 83 106 74 36 119 76 56 108 40 75 69 101 83 77 44 60 95 33 42 57 58 125 91 39 67 123 38 60 106 106 85 106 83 33 80 98 56 72 80 86 99 100 39 33 92 96 79 64 58 77 89 46 77 51 66 110 65 32 97 114 126 32 119 59 36 ]; +ref = [ref 81 59 82 110 118 33 51 63 71 69 34 105 45 99 46 57 71 61 122 37 83 86 108 66 63 64 116 55 85 80 114 89 103 105 48 79 78 123 71 116 115 100 89 47 110 55 103 34 94 54 65 98 110 124 121 32 42 57 104 51 61 104 86 118 88 71 105 83 43 54 36 119 47 47 81 118 56 69 112 36 117 49 41 43 103 53 41 58 68 113 61 32 39 101 51 110 112 46 54 84 75 78 93 94 109 86 102 116 37 101 90 50 48 43 109 68 98 93 123 113 85 87 102 91 92 119 95 121 51 50 38 64 116 102 68 109 104 74 95 102 42 76 59 91 32 67 74 81 99 32 86 68 66 117 33 95 76 52 83 34 61 112 52 68 34 61 110 61 114 126 49 84 82 37 64 124 124 59 40 124 38 90 36 121 94 94 42 33 100 60 71 33 66 33 73 66 124 65 44 102 ]; +ref = [ref 96 123 115 97 49 93 88 51 117 95 94 57 113 77 106 80 91 79 100 124 115 56 75 121 90 109 111 46 116 94 33 115 101 107 111 56 44 110 113 102 72 95 104 80 50 109 116 92 119 104 121 58 88 94 102 63 83 108 108 119 74 36 49 102 36 71 101 108 85 53 82 62 56 82 73 50 81 83 47 44 46 73 60 78 59 98 103 90 118 67 45 98 88 38 82 111 60 69 81 90 87 69 100 33 107 101 50 95 76 52 52 116 58 85 102 61 117 33 95 121 73 103 87 34 45 62 102 121 40 104 64 46 91 79 60 33 69 122 109 39 106 116 48 105 68 92 38 69 70 70 118 35 75 42 86 45 98 119 111 32 111 49 38 54 94 69 80 93 34 77 77 118 118 70 83 97 69 89 54 118 79 56 69 80 36 64 66 46 74 110 116 92 115 103 36 62 122 72 79 38 ]; +ref = [ref 91 75 100 123 83 96 94 89 48 99 50 96 125 124 32 38 60 122 68 108 50 45 109 100 51 51 84 70 105 87 69 57 101 85 89 126 114 67 54 111 71 34 79 39 67 122 110 63 124 84 122 57 63 58 69 86 58 98 63 54 79 82 65 94 116 75 107 103 109 81 85 58 44 110 77 77 54 99 92 81 54 83 55 70 39 53 50 56 84 35 115 32 105 110 36 34 68 103 115 97 121 90 104 115 107 83 59 80 95 76 45 91 123 66 91 46 85 83 114 76 45 78 118 59 33 41 53 44 92 103 77 38 65 92 102 37 42 104 62 102 87 117 64 89 122 118 47 70 58 82 58 79 39 124 78 98 124 71 100 81 120 90 97 102 53 75 49 69 78 91 95 64 40 65 109 126 103 82 90 117 59 39 34 113 108 116 56 85 97 85 68 43 119 69 61 63 72 62 48 51 ]; +ref = [ref 34 60 118 36 95 53 38 83 77 56 84 98 109 103 112 117 50 65 78 69 73 88 92 125 70 73 68 40 98 89 123 75 64 123 111 45 79 114 102 55 43 82 117 97 98 80 62 44 109 34 48 74 41 49 117 112 108 98 79 42 119 93 62 82 110 102 98 106 83 83 32 76 118 45 95 83 43 96 75 87 107 60 115 121 83 66 87 107 33 69 76 62 124 122 125 65 103 50 54 52 106 121 96 68 48 109 46 112 47 85 99 106 112 51 102 75 68 123 125 101 122 86 101 101 95 68 106 61 109 106 51 78 49 111 93 85 56 110 52 94 102 55 107 110 118 84 42 33 106 80 106 41 68 32 40 74 55 99 107 89 85 114 114 32 119 49 119 115 118 64 39 44 67 46 111 35 123 116 75 56 92 108 72 50 83 37 56 40 33 53 50 66 49 91 113 79 50 73 37 75 ]; +ref = [ref 100 114 53 96 51 101 77 100 79 93 112 65 106 118 35 112 126 108 96 108 76 95 47 48 54 92 122 121 69 57 52 47 38 58 109 52 122 110 58 85 38 35 96 33 87 119 64 102 61 45 51 105 91 52 68 71 102 57 63 110 109 81 77 114 39 35 48 109 44 61 123 38 86 60 35 50 88 36 35 123 124 55 122 61 108 107 107 123 52 102 100 69 103 84 122 74 45 32 107 83 44 63 46 90 89 85 57 121 81 81 47 60 35 111 44 70 89 75 102 101 32 40 124 57 44 110 38 77 67 69 71 100 93 107 104 88 81 38 48 120 57 110 126 104 42 120 34 120 65 37 72 84 92 98 85 120 78 118 89 97 98 66 94 59 113 82 124 53 85 43 77 42 73 99 114 106 37 72 113 54 105 36 115 121 73 103 81 104 85 93 32 41 112 96 100 95 36 93 116 64 ]; +ref = [ref 98 56 112 39 92 87 83 100 35 33 120 70 39 79 36 47 48 59 61 109 46 111 68 116 122 44 86 97 124 85 98 113 91 50 49 81 78 93 79 122 51 40 83 122 58 58 81 49 124 51 40 41 89 34 104 36 44 119 56 126 91 55 89 63 60 36 81 74 64 71 108 68 107 116 56 48 32 81 69 120 54 103 118 104 94 108 45 89 87 108 99 84 104 47 43 41 100 57 50 72 92 126 115 75 118 94 122 112 70 40 95 74 112 39 68 97 108 56 95 107 98 60 93 97 112 67 63 82 66 116 85 89 44 98 108 88 85 39 44 96 97 79 109 65 65 55 52 121 124 114 91 97 103 84 32 38 100 65 67 110 95 74 32 113 87 81 88 49 84 96 40 40 94 103 123 49 82 56 50 103 123 90 97 111 80 59 68 65 101 126 116 126 54 52 82 83 72 113 33 120 ]; +ref = [ref 88 80 67 102 117 90 49 37 109 86 43 54 118 80 110 64 75 77 45 105 85 60 108 68 49 48 93 78 117 40 56 111 45 104 125 66 37 111 67 48 43 97 42 97 96 61 81 116 125 33 72 63 79 57 122 59 38 54 103 90 41 74 59 72 86 111 123 65 88 113 55 102 88 44 116 98 55 102 96 64 39 42 112 120 76 75 39 52 38 56 116 95 80 104 125 103 43 40 102 97 104 67 34 91 104 81 76 98 33 104 111 52 45 111 44 45 73 106 101 48 97 50 35 100 80 72 119 80 33 50 103 89 39 71 42 76 80 43 104 68 41 77 34 91 48 46 68 124 91 121 76 92 98 48 91 100 60 56 41 126 81 51 117 84 114 62 73 84 82 69 90 93 81 34 118 60 40 57 64 43 37 40 123 82 96 97 103 105 109 95 39 51 38 41 63 120 77 51 126 41 ]; +ref = [ref 89 35 107 58 79 42 101 123 83 74 57 64 122 48 76 114 101 87 83 84 39 87 51 97 64 45 123 50 76 59 111 66 66 37 65 50 76 83 65 102 96 38 106 61 75 74 43 78 104 65 45 67 80 107 62 90 77 94 63 86 76 102 61 38 108 63 123 84 60 67 47 36 84 55 63 78 47 102 91 65 37 40 34 72 100 125 66 86 46 95 54 56 34 72 111 102 68 49 96 51 58 42 48 70 73 91 95 92 32 111 109 121 63 104 108 99 51 50 84 87 113 121 103 57 47 44 114 63 110 72 83 44 53 74 111 103 98 101 119 49 125 88 87 60 36 56 63 36 87 38 85 111 126 114 116 90 116 95 65 102 75 76 102 60 63 44 43 104 102 84 92 63 49 53 88 43 63 86 78 110 98 63 40 96 50 101 102 57 66 76 73 92 64 115 91 66 56 61 65 88 ]; +ref = [ref 68 95 75 33 96 63 77 76 32 118 32 114 52 56 81 55 75 119 57 73 46 45 98 47 118 124 42 110 115 37 52 89 60 85 109 85 101 35 108 86 62 118 47 125 54 55 35 71 83 70 79 82 32 67 80 125 66 116 39 39 55 64 86 86 126 79 46 51 110 119 76 54 111 95 79 93 53 72 93 69 40 50 77 86 103 117 34 46 88 98 48 117 61 46 80 115 106 89 55 64 37 126 115 63 113 36 59 68 39 68 116 92 40 44 78 51 109 108 60 66 118 124 83 108 103 47 37 45 55 81 33 90 62 83 88 116 42 95 45 57 77 111 57 64 33 83 47 45 102 111 122 36 48 72 120 111 92 73 52 112 106 52 77 98 113 33 103 62 34 57 63 42 60 89 72 60 65 61 110 61 62 46 35 104 116 122 111 58 47 104 99 76 94 70 45 35 91 100 114 47 ]; +ref = [ref 49 93 56 108 79 61 43 70 106 109 92 64 115 119 75 81 89 108 120 103 51 122 121 79 32 44 79 41 32 88 85 34 65 37 87 61 110 80 107 68 99 54 38 105 33 83 79 67 58 45 84 52 35 110 102 32 74 121 46 102 62 103 86 36 101 48 87 112 48 87 41 57 81 101 45 89 79 88 34 119 125 97 79 73 99 49 59 47 96 50 109 36 99 50 94 75 109 75 47 93 99 121 116 42 43 36 37 88 106 71 101 41 82 111 114 58 100 65 111 50 85 34 35 54 110 55 115 109 70 49 124 34 91 38 56 61 57 117 74 115 81 79 35 115 80 101 52 79 66 112 90 69 58 70 112 37 113 41 101 56 55 103 63 121 98 109 124 67 44 115 47 63 97 67 42 58 48 126 99 65 52 81 84 80 123 115 38 60 71 44 94 68 112 105 53 114 71 95 33 47 ]; +ref = [ref 93 42 94 56 111 72 74 50 107 52 94 100 75 111 43 47 71 65 86 105 98 66 66 50 118 65 34 48 32 43 80 79 44 63 103 110 110 49 91 95 108 53 34 35 56 101 35 102 52 88 45 60 82 95 87 103 118 51 63 111 121 35 97 81 97 118 56 110 108 79 92 116 71 44 62 99 33 74 43 50 35 108 69 67 99 40 93 105 63 122 90 92 68 54 62 44 112 44 107 48 87 48 64 96 45 32 74 70 97 36 119 75 59 112 52 96 52 119 74 120 37 50 111 94 43 119 49 60 125 73 78 101 50 89 85 93 92 81 119 104 113 115 90 92 117 86 57 56 101 122 51 51 67 116 124 66 69 73 119 77 38 35 118 119 36 103 54 116 80 42 41 126 37 100 83 113 88 113 39 102 123 66 101 114 45 71 79 113 60 112 33 114 37 69 113 86 43 44 51 65 ]; +ref = [ref 77 40 105 122 102 118 40 121 49 93 41 121 66 119 68 82 90 115 102 111 125 103 45 104 96 37 75 88 104 55 47 100 74 64 99 35 79 40 59 97 65 99 69 100 92 103 79 110 67 58 54 91 73 37 84 99 122 73 125 120 80 117 45 126 125 124 90 85 120 123 87 33 79 82 64 49 88 63 96 42 120 109 116 122 51 119 125 117 116 116 37 63 90 32 48 79 92 78 125 33 108 95 68 90 39 106 117 36 110 55 69 117 78 126 54 110 80 92 77 51 45 99 93 59 83 63 79 103 101 120 78 99 112 54 119 89 32 119 118 74 99 37 78 55 60 126 75 44 66 102 104 79 100 83 57 119 40 94 125 91 33 85 46 68 108 79 100 92 76 79 123 112 58 112 35 110 54 106 73 63 47 125 85 98 93 89 44 35 87 118 37 68 95 86 35 49 44 54 67 121 ]; +ref = [ref 117 79 60 78 69 40 37 41 120 76 93 112 52 89 73 33 104 63 77 32 97 101 108 39 56 52 113 84 123 102 38 119 67 66 59 106 101 126 88 33 44 74 42 89 97 72 89 117 68 115 105 119 52 119 96 107 37 34 121 85 106 80 65 91 37 43 121 64 47 57 94 117 90 101 38 54 87 55 55 55 49 34 47 83 91 74 61 49 62 77 53 45 54 83 83 108 49 46 123 34 115 71 86 114 65 44 110 76 43 43 102 65 110 120 106 83 82 61 120 121 110 100 91 95 101 88 82 107 34 42 114 72 122 59 41 66 55 88 58 42 42 110 84 32 121 58 60 81 108 111 120 85 75 101 57 82 50 45 51 35 67 73 96 86 92 64 125 61 33 65 88 53 100 59 115 67 109 63 61 57 105 124 126 120 37 81 59 41 81 57 45 75 43 124 88 123 36 126 67 62 ]; +ref = [ref 104 63 87 37 61 52 125 40 63 61 35 120 126 125 67 65 58 115 71 84 63 52 37 63 55 61 58 107 95 109 86 86 91 56 58 120 88 87 73 37 103 97 105 59 43 44 107 64 104 35 38 47 60 125 77 50 121 47 50 91 50 108 95 98 45 41 40 125 114 79 106 78 98 114 97 32 60 97 70 104 53 115 68 79 103 76 48 43 41 70 75 47 47 68 79 61 103 47 57 123 92 104 66 93 120 95 69 126 104 37 72 116 122 49 86 126 34 96 104 36 34 57 102 77 32 86 84 93 110 85 121 100 50 110 72 110 72 64 114 96 112 51 112 100 48 65 61 73 120 80 46 84 75 42 108 65 109 119 42 108 36 62 67 111 98 86 67 39 46 59 39 80 54 36 104 55 113 40 82 118 32 94 45 89 105 65 120 40 87 82 71 32 54 110 116 124 49 68 75 40 ]; +ref = [ref 51 58 126 57 100 66 112 121 66 94 38 89 118 121 107 105 91 38 37 73 42 111 35 86 74 123 125 58 33 126 71 112 91 78 70 91 33 84 67 50 80 42 111 36 87 116 34 74 92 88 117 123 70 85 52 119 95 84 38 85 61 102 94 82 83 125 120 82 51 116 71 40 84 34 113 56 86 100 125 75 87 120 88 81 109 67 82 46 92 82 78 83 111 86 71 38 38 122 126 111 58 97 94 121 79 53 102 57 43 76 90 104 87 44 74 52 78 100 70 109 65 66 37 108 113 67 67 121 76 79 120 105 50 121 52 61 69 36 40 90 64 100 122 83 120 66 49 74 104 62 36 46 101 55 121 121 70 44 59 106 41 44 38 94 38 115 56 103 124 86 62 52 56 61 100 57 102 48 63 73 103 124 46 84 110 82 42 54 82 72 43 36 86 105 116 71 119 123 82 123 ]; +ref = [ref 45 68 73 43 120 95 89 58 60 55 33 111 115 113 40 82 60 116 125 98 37 96 45 87 109 86 56 62 83 113 97 107 123 62 51 104 66 48 108 61 63 70 123 114 94 53 108 112 77 108 104 82 51 107 79 55 52 42 98 94 115 104 86 86 77 102 54 124 83 46 59 76 111 50 119 73 68 95 56 48 83 103 123 125 100 84 109 70 101 77 95 81 87 109 53 59 116 103 85 88 58 112 61 57 117 87 54 112 41 87 86 121 72 93 85 97 124 68 55 82 38 106 32 77 36 107 125 42 101 35 36 111 48 35 93 32 38 61 118 83 68 68 91 95 105 33 68 56 78 114 84 91 111 77 54 83 91 115 40 109 64 86 61 43 62 95 45 53 99 68 99 68 83 111 80 81 90 83 42 79 75 95 91 103 108 37 45 110 64 103 91 74 58 120 80 112 54 37 112 90 ]; +ref = [ref 118 46 117 117 85 46 60 64 44 49 83 107 93 46 37 69 34 100 52 90 101 105 107 123 42 84 89 82 76 52 84 111 72 86 120 46 71 53 101 117 42 99 70 49 65 75 39 126 47 60 58 42 58 71 87 41 44 78 76 116 71 93 124 118 36 33 103 92 54 86 55 90 82 118 76 82 103 57 96 50 95 48 38 81 116 109 109 48 74 58 82 58 115 61 46 76 40 61 42 89 103 77 111 76 102 33 58 70 51 124 33 64 44 74 120 119 124 95 75 51 120 46 57 41 106 37 99 89 69 66 76 88 90 108 67 78 117 32 37 43 39 89 122 96 80 46 80 69 91 39 78 113 91 65 44 88 90 53 51 86 56 111 122 65 37 35 93 60 118 35 60 68 75 43 32 108 78 96 88 125 62 114 113 106 33 121 71 85 42 99 60 39 126 91 106 114 61 123 116 65 ]; +ref = [ref 93 99 80 51 62 75 60 105 106 48 110 113 107 110 45 103 97 90 85 74 89 48 50 69 75 58 113 117 75 86 44 44 98 83 97 66 102 126 37 82 83 62 99 68 71 68 49 50 116 123 67 68 84 106 96 43 36 50 111 86 38 99 115 38 65 54 121 39 76 99 32 124 89 123 71 64 97 55 79 82 79 110 91 91 116 35 90 106 113 109 55 77 42 104 96 79 48 44 100 63 76 101 62 57 39 40 114 37 61 74 94 117 112 38 97 116 73 43 120 123 51 89 52 112 110 53 40 53 103 80 65 67 126 101 81 119 85 105 93 98 64 66 64 95 32 72 75 42 44 65 35 68 54 32 49 53 108 58 76 51 36 40 47 115 82 81 117 34 99 73 53 77 119 49 85 70 115 110 63 45 70 54 119 79 44 42 52 51 123 55 41 102 123 54 104 53 57 87 116 57 ]; +ref = [ref 88 124 119 34 41 57 67 83 106 96 81 103 59 78 71 33 45 73 61 92 113 36 56 120 75 86 43 78 73 114 124 42 57 61 54 93 54 125 109 82 110 104 62 98 102 103 61 115 64 65 63 126 106 81 86 87 118 45 91 84 54 69 81 102 45 108 121 106 77 81 68 106 106 126 109 39 92 52 89 61 60 87 119 45 57 105 59 54 38 32 37 118 85 49 48 54 89 35 82 62 107 35 97 119 105 108 80 91 32 124 91 51 55 70 33 53 62 69 114 115 42 78 78 88 64 34 47 72 76 76 66 44 49 116 92 121 70 77 66 75 124 63 51 89 65 120 67 39 42 97 79 92 73 99 38 110 97 82 47 35 88 81 49 74 63 47 112 99 101 125 104 98 116 101 104 87 74 32 96 89 64 100 117 50 84 116 115 103 93 33 44 73 64 73 80 79 78 57 82 57 ]; +ref = [ref 101 110 119 78 46 100 85 40 105 61 98 109 44 83 35 44 87 112 75 115 108 99 86 105 63 94 42 120 107 115 91 84 80 71 54 123 60 78 93 67 60 33 123 105 85 32 50 39 125 63 82 94 64 102 112 95 114 123 82 78 107 116 76 115 39 68 124 88 102 81 43 51 33 87 81 49 97 118 116 105 111 81 74 104 47 79 33 56 99 35 102 83 77 103 84 114 116 78 33 74 102 99 43 101 103 52 53 117 55 103 50 114 64 68 101 76 62 105 82 116 89 121 95 115 73 105 33 42 107 75 118 117 38 93 124 54 32 73 43 41 111 95 115 96 119 49 61 101 85 53 84 38 39 115 34 52 82 117 41 59 126 65 122 48 116 72 49 65 65 56 59 69 114 42 118 100 76 108 126 73 47 92 50 41 124 121 113 40 105 68 62 40 54 122 86 68 69 80 90 59 ]; +ref = [ref 107 84 114 81 106 100 116 46 59 61 85 56 116 84 54 32 61 48 85 75 90 118 100 73 33 91 106 70 79 45 67 78 92 121 77 33 52 107 99 121 42 57 33 101 57 94 116 40 112 80 80 93 80 93 100 93 41 49 119 54 74 121 34 64 76 122 112 83 73 39 58 42 104 59 86 123 119 81 126 108 126 45 41 38 115 109 42 114 33 62 72 48 75 116 74 55 87 95 113 40 89 47 69 79 39 70 105 79 60 44 52 58 73 99 87 45 60 39 93 70 117 121 32 78 45 81 125 100 71 90 100 113 68 39 92 105 60 85 61 111 67 108 104 40 126 119 48 46 46 77 102 65 49 42 93 125 46 89 63 34 82 52 98 39 68 92 84 112 104 37 125 46 110 107 35 105 69 125 121 56 79 56 107 43 107 115 53 117 81 122 89 95 93 67 113 69 122 116 99 86 ]; +ref = [ref 44 35 69 91 46 62 110 83 44 78 38 62 68 44 90 60 45 104 113 112 44 100 57 70 46 100 62 64 101 62 45 121 110 113 102 124 57 69 75 100 53 45 113 42 63 82 77 63 87 37 107 36 34 112 44 58 88 124 99 53 94 57 90 65 40 98 66 88 124 121 73 70 52 111 36 44 66 54 59 86 97 110 53 82 114 33 57 36 108 119 32 49 94 119 61 87 48 118 72 118 36 100 40 114 116 97 118 117 45 124 63 49 126 106 74 103 32 98 32 91 121 81 79 98 108 89 60 102 51 87 55 68 40 89 98 47 61 69 100 112 94 78 47 68 91 95 35 37 121 103 105 33 41 94 61 45 54 107 77 119 48 118 115 91 33 94 84 72 92 72 123 97 33 80 45 84 54 101 71 94 65 42 45 46 118 34 126 117 69 45 56 114 84 111 61 56 66 82 93 78 ]; +ref = [ref 48 101 109 69 109 51 124 91 123 88 60 72 67 125 88 60 97 89 84 79 47 72 98 60 41 66 109 111 44 96 47 41 49 49 83 85 86 77 34 72 100 54 94 46 87 53 83 63 88 62 100 57 55 78 77 58 60 50 41 81 85 112 92 75 36 77 38 85 108 113 88 57 62 68 83 96 51 46 39 85 62 57 86 37 77 33 51 54 117 43 76 112 66 76 123 74 39 118 70 118 38 51 113 77 44 120 64 75 33 82 32 81 101 45 63 78 68 69 93 39 44 87 105 50 116 59 124 33 96 80 72 79 101 118 32 47 81 121 125 38 71 33 82 47 47 53 98 52 90 66 56 108 40 46 80 69 111 113 123 74 58 33 62 37 98 35 112 121 99 82 84 34 57 106 57 45 87 83 51 100 98 104 91 69 101 36 86 126 106 61 101 94 78 65 78 72 107 116 92 123 ]; +ref = [ref 85 63 111 91 121 93 118 72 68 91 40 51 92 34 54 42 35 88 51 98 62 126 87 65 38 113 46 42 50 80 77 102 103 121 58 45 126 56 53 36 44 74 64 119 110 114 44 35 102 113 92 76 125 65 116 68 44 119 54 89 75 97 110 71 105 118 118 116 43 114 100 46 116 120 45 92 105 94 122 44 67 126 112 105 110 101 77 102 47 87 49 35 91 107 92 109 72 90 91 110 110 50 85 48 81 89 79 84 55 120 102 70 102 123 38 77 106 66 99 119 55 68 118 83 119 47 90 112 45 111 77 117 55 109 54 67 78 118 61 61 45 98 57 100 102 112 69 123 87 61 71 112 41 50 97 32 78 66 36 105 102 43 60 123 97 88 78 72 103 91 86 78 101 109 36 95 96 88 46 112 89 89 65 47 69 67 55 78 108 120 106 111 35 107 65 75 73 106 118 70 ]; +ref = [ref 41 115 39 50 107 51 115 125 105 66 67 111 46 58 91 46 109 111 101 33 36 32 111 98 116 122 61 92 49 41 111 111 87 68 52 44 123 39 44 51 69 51 123 63 105 97 97 117 67 73 119 44 45 76 39 56 42 117 54 89 101 67 32 40 68 50 54 103 126 34 73 102 56 79 38 45 117 93 52 52 84 64 57 98 114 123 81 60 103 95 124 109 68 62 63 119 104 93 99 115 67 49 59 55 79 88 41 110 88 116 80 101 95 96 52 86 81 70 106 80 69 124 67 72 78 108 88 60 79 125 67 75 97 47 115 68 93 54 119 53 91 62 120 102 32 40 69 74 96 70 41 59 93 52 42 47 108 54 48 66 69 121 45 101 66 40 124 111 76 60 102 100 88 92 106 59 54 99 125 86 85 42 75 124 104 124 59 125 121 79 97 101 52 48 92 86 58 71 126 115 ]; +ref = [ref 104 42 49 80 78 100 47 119 90 125 126 100 73 40 72 118 71 77 83 53 90 122 107 115 100 92 100 53 91 117 34 124 122 56 122 97 44 65 65 99 74 112 109 124 91 80 124 106 85 96 33 91 37 126 97 118 49 98 99 50 95 56 55 41 102 122 110 67 50 103 46 125 58 110 81 98 92 68 121 118 91 47 108 104 45 99 123 66 122 64 75 87 108 125 41 35 70 102 49 85 42 75 102 60 71 78 82 75 104 47 102 105 81 100 63 73 98 33 36 74 79 32 44 82 77 124 118 66 59 122 102 46 70 122 80 40 47 109 36 37 118 66 77 83 49 112 41 70 87 35 37 59 81 83 126 43 70 47 66 77 116 72 37 83 40 97 63 83 70 114 108 79 116 85 62 103 116 102 73 36 118 109 51 87 83 109 101 70 90 35 63 54 43 118 39 80 70 115 120 61 ]; +ref = [ref 112 72 89 43 111 65 75 33 36 64 86 79 33 61 89 62 79 72 108 116 116 52 81 100 50 112 74 91 86 90 94 55 93 120 48 89 56 103 42 122 112 113 104 87 87 106 101 117 125 39 72 41 122 103 86 85 95 105 124 123 33 108 53 37 97 67 104 49 35 83 56 36 59 57 100 56 87 71 43 56 58 35 80 91 39 96 122 66 46 38 102 61 80 73 37 35 59 81 48 102 48 39 68 106 48 69 38 120 57 61 110 72 46 55 52 62 73 46 53 104 39 70 72 99 106 91 79 90 76 126 71 40 75 126 116 101 66 118 47 45 34 104 43 44 78 88 83 113 111 113 51 84 55 79 63 81 43 35 85 36 96 110 109 40 116 65 87 111 43 113 110 56 61 116 119 109 84 103 72 81 59 40 75 70 69 88 77 98 66 34 97 121 51 105 113 40 126 107 113 98 ]; +ref = [ref 92 56 89 75 67 80 75 90 52 49 126 65 116 34 96 100 76 46 79 107 120 55 122 114 111 39 59 34 115 38 112 40 89 41 106 102 48 75 94 117 99 105 54 74 81 95 70 32 35 67 89 121 53 117 58 108 65 44 43 123 58 82 64 69 45 70 35 55 122 34 111 95 71 86 108 102 124 126 91 74 65 121 64 101 39 71 47 104 53 73 113 60 53 38 101 67 87 108 109 86 40 126 35 78 48 50 70 113 102 110 100 34 82 78 68 35 85 124 61 40 44 81 82 62 105 124 86 103 95 40 56 72 89 92 94 70 89 62 40 74 59 112 61 97 69 69 45 96 111 49 114 42 99 50 40 82 65 59 58 49 98 54 34 53 117 69 111 60 118 114 59 90 41 59 70 53 74 52 72 37 73 107 86 65 43 98 80 53 42 35 74 35 124 82 83 44 49 85 34 56 ]; +ref = [ref 107 51 104 112 36 120 79 45 85 82 114 94 73 80 69 43 112 52 59 119 123 117 56 87 52 43 44 120 44 85 63 63 105 42 43 123 90 92 119 50 94 66 79 84 53 110 48 96 52 59 95 32 91 120 79 122 65 86 93 68 55 53 40 68 94 105 76 93 72 48 46 123 50 33 124 88 39 126 106 106 64 88 51 53 57 85 100 79 46 122 126 74 69 103 48 60 68 73 78 32 93 100 76 43 101 83 125 114 59 120 51 105 94 89 41 70 53 96 124 126 67 121 36 120 40 92 85 57 33 55 95 88 96 81 69 96 39 84 69 96 54 68 49 38 112 90 119 126 66 36 99 47 96 67 82 37 122 49 90 73 45 86 38 85 97 58 91 118 101 100 78 104 115 122 104 54 75 96 124 115 73 102 55 38 125 116 66 69 120 47 85 91 73 92 36 62 81 101 100 64 ]; +ref = [ref 105 84 117 45 54 68 74 68 116 117 42 126 35 33 66 114 106 121 106 108 91 117 113 78 86 94 96 47 65 113 48 68 43 123 106 46 60 99 49 51 34 89 61 51 101 35 79 67 99 126 43 93 73 83 90 87 57 43 42 83 106 68 72 124 52 33 86 43 124 97 33 58 51 114 75 124 91 46 42 123 47 37 56 34 112 112 112 34 112 105 80 60 93 117 44 118 33 77 125 51 65 42 83 44 125 34 41 62 44 37 86 74 51 60 100 69 72 36 125 33 103 91 40 75 57 46 66 53 83 94 92 117 37 60 33 70 45 70 63 88 55 70 54 38 70 50 84 38 37 55 38 117 92 97 92 34 76 45 45 48 91 115 119 95 124 88 66 117 68 36 88 74 125 66 42 88 38 87 95 45 112 125 53 51 77 101 40 70 119 58 113 62 53 66 75 62 126 32 93 99 ]; +ref = [ref 76 105 101 98 59 90 91 86 66 65 48 62 57 50 111 38 45 109 102 98 69 59 35 52 125 100 108 71 48 106 92 46 124 48 114 69 41 60 32 78 110 126 33 51 32 73 126 103 38 105 71 103 53 64 122 51 66 108 111 77 112 54 103 116 67 112 81 101 35 65 108 64 107 106 94 72 125 80 94 84 69 79 49 32 99 109 94 102 119 55 50 55 53 70 38 109 117 98 93 49 34 115 126 124 52 114 42 50 41 55 37 98 44 52 54 39 106 59 110 122 59 63 86 94 120 36 102 41 95 76 109 78 96 116 51 105 62 121 118 110 53 110 117 103 113 77 49 56 87 49 123 94 54 77 39 124 33 74 81 32 83 53 66 114 91 34 85 55 102 110 85 86 114 51 94 119 72 55 78 87 57 95 81 81 71 46 54 83 117 77 93 119 62 50 98 38 78 94 95 121 ]; +ref = [ref 81 96 110 77 125 125 105 121 50 92 68 121 98 49 63 115 53 69 63 102 107 87 107 38 93 78 79 94 120 33 43 48 74 40 79 84 92 84 125 107 59 99 121 100 81 48 118 84 64 97 49 89 38 126 81 81 50 51 49 42 58 99 55 46 67 103 41 116 101 87 75 35 64 33 86 76 120 84 48 67 67 82 66 84 36 110 90 116 96 69 44 53 51 48 66 119 117 41 124 51 81 102 39 35 63 46 93 42 122 64 118 94 47 58 113 112 115 69 37 49 36 74 65 56 39 88 51 94 117 78 64 61 63 115 85 91 111 33 96 51 68 119 103 76 57 102 37 44 95 77 113 81 78 62 102 67 58 105 120 108 82 63 102 116 119 63 105 116 69 51 80 99 49 90 117 106 37 34 64 99 105 103 73 120 103 44 113 114 45 70 58 89 37 105 73 62 45 110 105 52 ]; +ref = [ref 64 121 38 107 94 113 57 69 119 49 116 120 69 53 34 123 45 98 62 104 38 62 60 69 44 68 51 109 54 61 40 80 96 56 51 52 120 88 76 114 49 126 42 57 52 104 74 80 112 67 88 32 38 44 53 63 118 57 43 79 66 80 107 102 76 97 34 95 66 64 48 37 44 92 64 79 75 91 32 59 36 109 90 43 79 118 120 117 90 61 96 120 113 77 101 86 54 54 61 101 45 80 64 109 97 84 42 95 121 55 110 92 53 42 90 89 62 50 85 109 126 110 115 77 92 97 83 67 115 107 78 108 115 63 107 45 56 33 91 34 80 103 40 120 64 110 108 82 78 32 96 103 41 54 107 42 69 56 118 54 91 110 93 92 68 35 93 92 45 39 125 109 84 123 119 67 48 63 66 35 115 58 91 72 35 58 123 46 118 95 83 79 81 92 40 107 67 97 44 64 ]; +ref = [ref 48 44 78 42 108 38 45 60 81 43 52 34 63 60 71 78 42 47 59 71 47 91 68 50 113 102 122 106 77 56 58 115 33 111 96 63 59 95 82 117 89 74 40 100 53 73 107 115 107 62 109 53 85 70 89 126 53 120 68 42 37 59 121 124 78 100 78 119 88 93 44 85 58 112 72 74 54 125 119 112 49 38 122 113 120 65 105 44 83 69 102 117 68 119 97 60 94 42 49 98 42 65 126 73 82 35 82 50 82 64 37 80 56 107 91 120 99 112 107 103 84 80 67 91 96 71 41 100 126 101 62 70 108 84 117 105 96 99 88 82 49 46 36 44 89 53 112 46 112 76 41 63 70 105 73 53 67 32 111 106 54 91 85 104 118 109 89 73 115 98 119 54 40 119 103 103 32 39 50 34 114 85 84 73 105 59 55 72 63 69 47 98 67 110 80 119 125 82 39 49 ]; +ref = [ref 74 35 36 56 125 81 45 108 72 109 105 120 101 34 89 88 116 81 102 73 64 71 62 81 53 51 60 64 44 75 49 40 69 63 41 72 36 48 86 112 117 113 35 40 107 85 47 81 54 79 69 109 73 74 50 107 53 49 63 34 72 117 69 108 98 41 32 76 88 65 89 68 106 106 36 36 83 34 105 67 44 64 59 107 83 126 120 73 114 92 102 55 82 62 123 122 123 75 125 108 63 49 118 112 123 38 99 122 83 69 70 80 118 51 94 91 32 118 114 45 52 80 121 84 89 100 41 57 100 92 105 93 99 96 116 82 68 111 67 59 37 97 94 44 44 87 80 84 68 113 62 113 43 111 123 70 55 65 96 124 39 125 59 113 112 80 59 113 83 40 72 80 117 85 80 80 51 35 110 99 46 78 106 122 86 61 110 118 114 54 107 114 43 98 124 40 86 98 84 72 ]; +ref = [ref 61 117 50 46 121 118 74 36 50 46 103 91 92 106 120 71 95 58 104 62 36 124 124 94 87 41 75 102 123 100 48 80 100 53 118 98 121 36 58 122 126 47 70 103 115 35 37 89 106 69 74 92 61 77 60 120 55 94 43 50 39 85 102 63 37 89 35 36 118 125 52 110 91 86 97 78 106 40 56 55 61 87 125 108 118 113 126 80 97 76 108 104 48 53 33 98 122 72 77 101 116 52 88 94 124 86 93 61 38 59 46 114 88 99 43 54 32 56 34 66 101 84 77 39 37 51 103 80 105 48 63 93 54 89 33 118 92 71 119 63 93 84 57 72 81 78 32 110 110 123 53 108 51 91 35 39 35 64 77 86 125 52 71 92 56 115 34 34 50 85 100 36 101 45 123 79 50 59 55 55 65 59 65 77 71 92 40 72 116 93 126 62 110 81 65 80 77 39 49 113 ]; +ref = [ref 85 114 114 75 62 99 42 88 62 121 84 107 109 112 93 74 33 101 116 94 74 89 123 106 125 122 81 123 46 97 106 93 114 73 62 63 83 120 47 34 98 87 93 81 107 88 72 42 76 45 44 87 60 66 41 83 84 82 72 121 75 106 113 121 58 90 116 124 58 67 42 119 66 81 102 119 51 49 39 56 117 70 39 83 32 68 73 119 124 53 33 111 119 100 116 126 73 85 65 125 92 41 103 107 113 124 58 109 101 49 45 118 99 71 72 116 75 35 61 36 60 99 72 48 80 120 108 41 114 125 98 93 104 66 119 55 53 39 63 121 55 84 106 67 72 125 81 58 104 92 66 61 74 93 91 46 125 60 91 76 116 83 121 58 81 40 120 56 34 82 44 90 95 125 66 121 61 45 62 58 57 74 48 88 101 125 79 94 120 82 76 34 88 59 120 43 71 81 35 84 ]; +ref = [ref 39 94 62 40 110 80 67 124 59 120 102 94 45 36 35 122 64 101 116 42 124 48 48 96 60 107 102 59 74 78 45 86 65 36 67 46 94 125 75 79 90 123 99 43 32 101 66 32 58 106 32 106 102 90 57 88 37 72 41 57 51 126 75 86 75 90 95 52 84 110 114 54 105 78 87 95 50 60 42 107 40 49 109 124 35 105 86 119 94 51 68 69 114 67 74 60 61 60 105 103 121 92 123 49 55 53 66 65 38 106 118 74 33 72 107 95 94 98 46 78 93 107 93 117 78 99 97 104 71 37 66 56 36 39 41 83 76 93 46 101 123 94 60 48 41 59 97 34 79 116 116 125 119 49 54 33 49 123 38 86 64 89 66 71 118 87 91 56 83 41 80 101 42 122 80 43 90 91 91 64 62 84 70 41 52 68 69 89 79 48 116 75 107 74 99 121 79 70 60 119 ]; +ref = [ref 62 62 126 47 57 109 76 88 70 97 50 115 97 79 91 45 61 116 75 102 109 80 56 59 113 86 64 86 53 77 94 51 43 111 92 85 64 34 55 39 93 72 120 43 103 43 95 93 33 45 42 125 116 71 70 59 114 81 113 99 71 86 126 102 111 102 86 115 90 121 114 97 80 61 102 121 36 113 71 73 116 100 49 82 70 74 64 101 75 43 57 52 57 55 49 83 103 63 86 70 40 68 74 65 45 49 104 49 46 108 61 90 113 88 74 32 96 64 70 113 49 76 87 117 99 53 41 101 90 48 116 71 67 125 95 75 91 85 42 47 77 113 122 47 67 36 39 56 66 102 41 61 69 104 71 46 108 73 124 121 83 123 107 57 94 75 107 58 60 125 37 80 108 118 116 65 90 99 34 96 67 45 117 96 91 57 65 51 126 78 57 38 39 112 82 40 59 59 102 103 ]; +ref = [ref 125 111 52 36 125 93 46 98 49 53 39 83 93 81 61 94 56 44 77 90 118 117 78 82 52 88 126 119 68 73 110 46 87 51 36 122 67 68 34 122 111 36 112 122 63 43 117 62 103 69 85 64 39 97 84 122 75 43 103 79 42 69 92 34 87 51 61 118 77 76 88 73 102 112 70 101 99 126 88 119 32 104 75 36 41 100 38 75 109 120 115 75 122 54 76 39 123 64 34 94 62 106 73 75 99 39 118 116 75 96 118 113 72 97 43 125 109 74 52 53 35 119 32 53 90 41 117 61 32 66 55 68 121 104 48 43 36 48 107 49 110 86 79 55 41 42 112 47 110 67 74 103 83 36 59 52 32 90 126 37 75 41 62 94 99 80 50 50 57 111 37 38 34 85 90 81 90 82 49 126 42 120 114 67 98 71 86 112 103 105 86 71 92 112 42 44 102 79 39 64 ]; +ref = [ref 78 124 34 111 87 55 113 97 35 107 33 59 35 43 76 71 113 50 76 107 118 99 46 68 117 101 81 105 43 58 65 73 104 105 50 51 114 71 113 93 80 50 57 107 56 73 114 98 91 122 85 39 42 124 122 78 34 83 39 117 54 110 117 58 118 71 95 123 92 51 60 45 34 49 117 118 51 98 42 96 117 113 93 72 117 97 85 50 124 93 117 99 119 115 97 59 71 116 85 45 100 76 109 107 111 83 74 42 72 44 113 109 58 55 36 63 91 52 93 96 84 62 81 99 95 117 43 102 114 71 39 52 101 103 49 101 125 42 115 77 73 55 96 95 38 39 114 87 66 98 66 71 78 50 53 76 100 40 105 112 62 39 75 117 117 89 78 56 78 118 123 117 79 43 98 59 100 106 81 67 81 39 108 47 65 37 60 72 53 123 102 73 58 33 96 116 122 73 87 59 ]; +ref = [ref 99 121 123 77 116 72 65 49 118 124 35 112 71 38 42 107 120 108 94 122 47 124 59 84 92 105 35 50 47 91 71 94 62 56 121 81 40 103 83 94 34 82 93 62 81 79 94 68 73 108 72 75 74 101 54 79 46 54 72 77 58 67 98 52 70 109 52 103 75 114 113 105 56 88 55 118 101 102 118 60 50 61 126 110 107 60 84 116 125 106 80 125 112 96 85 118 58 84 80 48 113 43 53 88 41 114 42 111 57 67 61 79 43 61 117 106 104 126 101 50 97 125 89 73 57 126 69 78 64 51 65 37 98 111 82 41 84 119 66 36 91 32 111 102 94 80 50 96 72 63 65 51 52 75 77 77 57 44 93 65 99 72 33 90 35 115 112 68 90 101 114 92 40 65 98 46 92 94 103 48 71 74 71 33 85 66 109 52 46 109 34 121 113 93 101 113 126 45 78 79 ]; +ref = [ref 82 52 108 87 68 70 84 88 72 35 126 66 81 100 122 120 57 33 88 52 68 76 77 55 126 42 87 38 55 58 96 89 61 39 88 49 114 119 119 73 41 59 78 103 84 107 54 118 82 42 51 86 36 92 85 116 84 109 77 74 120 60 46 106 36 84 93 112 109 122 51 44 116 71 33 95 122 109 73 118 66 45 70 81 89 92 101 66 63 82 118 72 80 74 55 41 75 85 64 94 59 101 103 46 90 47 87 94 83 43 108 106 49 67 33 38 77 118 117 110 104 103 114 47 36 120 125 68 54 94 118 50 41 85 90 106 77 74 113 45 33 41 55 37 78 121 81 45 32 81 119 123 113 101 62 96 85 121 97 49 91 75 79 49 59 45 68 56 98 58 73 43 91 79 86 59 36 97 62 112 48 68 72 84 58 71 35 39 97 78 78 88 110 116 46 68 111 105 90 102 ]; +ref = [ref 97 100 95 54 89 119 125 58 36 124 124 46 98 96 82 123 34 82 125 90 71 83 71 40 92 111 126 60 102 40 74 93 119 62 66 99 103 107 60 113 113 54 33 99 32 122 115 73 62 75 115 98 51 39 71 55 110 92 57 47 70 96 101 111 69 82 111 100 102 76 74 86 103 93 111 44 73 68 85 61 42 70 81 103 42 58 118 92 114 33 98 96 71 43 62 42 109 97 34 103 96 111 95 119 47 64 39 66 64 110 71 123 100 54 48 40 64 98 59 74 66 110 86 42 81 40 35 91 63 119 119 55 59 34 123 74 119 113 44 83 81 116 48 101 44 94 103 82 106 98 117 58 102 53 49 40 47 100 90 85 34 92 126 51 66 99 57 75 40 48 42 122 77 117 123 84 72 40 37 47 123 93 41 102 108 99 40 103 37 37 68 103 118 126 124 56 119 70 117 84 ]; +ref = [ref 105 111 122 71 124 117 96 88 116 108 105 103 124 78 97 52 72 82 88 91 69 115 123 83 101 109 90 85 81 70 101 104 73 106 35 112 76 69 104 86 51 113 90 59 117 45 67 66 45 124 46 113 42 79 97 87 54 87 116 44 66 99 81 85 55 56 110 53 114 65 103 41 65 52 48 55 44 47 104 115 115 34 117 47 103 121 33 121 58 117 38 44 81 91 48 74 123 64 45 97 39 101 57 96 88 97 113 33 48 57 61 115 88 125 51 40 67 48 95 36 67 125 55 80 117 59 125 65 110 93 66 40 125 72 112 101 50 36 92 113 73 47 98 93 38 58 59 40 40 94 103 32 39 91 106 85 75 119 115 99 123 90 62 93 41 95 45 62 45 33 111 53 71 47 65 124 80 69 114 110 93 116 95 103 114 46 51 122 37 126 96 64 108 122 42 43 101 109 122 115 ]; +ref = [ref 95 65 98 87 114 46 54 107 77 124 117 60 92 76 123 84 107 121 124 86 85 37 53 115 36 98 86 125 109 96 95 86 110 113 39 72 77 68 115 83 76 119 58 54 99 120 115 64 87 120 103 111 91 90 102 48 93 73 100 47 53 50 82 107 99 79 107 34 72 81 94 97 114 114 101 64 77 48 34 74 97 82 80 120 101 84 112 45 55 38 107 108 108 90 60 48 113 66 53 55 72 89 54 36 92 72 89 95 67 102 93 41 92 100 48 71 113 92 117 88 102 108 61 89 103 34 100 105 55 110 80 41 103 51 69 55 56 124 112 123 54 92 123 66 64 76 36 104 73 88 37 85 59 102 100 42 119 82 77 108 83 81 123 66 95 81 119 35 74 48 119 49 109 119 51 111 105 58 107 58 124 54 81 86 61 84 38 90 63 83 109 82 108 80 48 123 114 98 117 94 ]; +ref = [ref 47 125 112 109 34 122 95 104 81 50 61 126 113 44 86 68 46 111 53 37 87 115 102 94 86 56 51 76 64 33 42 36 68 73 55 77 46 67 78 123 107 109 120 118 118 74 114 101 86 88 49 78 91 126 120 120 65 105 88 51 54 67 105 58 43 121 79 66 96 98 73 43 60 105 103 45 45 50 68 81 119 59 111 81 58 115 38 53 75 95 73 91 40 87 71 91 51 58 113 116 55 103 66 116 75 61 44 87 53 98 97 124 50 43 120 67 44 50 33 114 67 54 45 55 40 33 42 120 70 49 102 49 45 85 104 69 84 58 67 60 43 81 120 62 105 111 73 114 60 42 70 67 57 83 74 110 111 126 108 95 53 90 116 111 112 51 121 87 66 46 90 79 74 80 34 66 126 101 39 40 77 56 33 76 53 85 125 42 119 87 40 56 36 82 111 71 54 42 61 110 ]; +ref = [ref 81 87 110 66 39 70 89 88 68 58 63 122 109 75 85 86 84 49 49 110 40 48 119 35 125 80 42 62 109 58 57 79 67 118 37 49 72 78 54 56 111 108 80 67 45 88 64 78 102 70 95 58 60 59 118 80 38 98 110 71 84 119 53 111 102 55 104 88 118 108 62 115 67 123 74 76 37 50 55 83 90 65 123 46 56 70 81 62 44 102 126 113 105 42 53 92 34 76 78 36 48 81 61 102 112 42 42 54 59 49 90 32 35 79 113 120 119 114 110 73 32 124 53 110 97 110 95 63 54 107 74 61 77 98 83 120 53 82 115 70 118 68 75 122 118 90 113 77 69 105 52 32 78 89 40 77 119 119 96 117 68 63 87 61 107 60 73 53 112 93 112 91 120 41 86 63 91 40 72 65 116 42 86 82 89 48 123 100 97 85 82 45 113 44 85 119 48 94 66 84 ]; +ref = [ref 56 117 92 116 90 82 126 83 111 112 64 46 37 102 78 99 80 123 81 49 38 93 108 103 35 55 42 44 100 33 105 66 32 109 56 63 60 55 60 50 103 90 99 93 59 94 121 77 114 107 87 42 104 84 78 108 125 59 67 47 111 100 34 83 126 83 90 49 109 74 63 68 93 123 52 32 81 44 119 110 108 87 110 73 34 120 112 35 67 32 91 122 48 65 82 49 110 103 122 47 79 66 97 45 125 81 34 95 121 39 93 110 58 76 96 94 48 121 59 79 71 64 32 88 106 82 83 125 98 119 117 125 108 67 98 73 97 33 108 73 49 60 95 63 41 91 38 38 42 63 119 40 44 83 80 47 122 99 56 76 59 122 87 64 69 60 45 55 37 79 79 50 75 39 78 125 61 91 84 92 80 33 52 62 80 96 41 69 57 89 90 107 49 58 55 122 34 68 71 64 ]; +ref = [ref 112 71 59 102 50 79 52 113 60 82 40 64 34 97 52 42 45 58 42 120 67 94 67 72 59 47 123 46 102 80 82 126 122 110 40 68 84 45 92 69 46 74 54 46 42 96 120 102 90 70 92 58 124 34 113 73 112 90 111 77 117 35 77 77 58 76 73 89 75 87 65 34 114 126 41 64 118 120 64 107 71 100 60 67 79 100 33 86 65 74 67 113 86 112 72 77 55 35 112 75 86 53 61 34 101 33 89 91 102 62 74 65 96 42 35 111 123 53 49 125 37 119 57 103 101 50 65 56 70 49 79 33 100 117 72 37 79 64 81 80 95 122 33 44 65 57 46 117 91 59 38 110 82 88 61 114 110 81 78 108 101 111 78 92 59 112 90 33 120 104 114 78 88 115 69 114 51 107 79 125 101 44 79 66 91 98 112 125 39 53 43 96 37 53 64 54 36 77 112 81 ]; +ref = [ref 119 35 33 81 83 107 122 88 61 61 118 114 36 116 73 126 90 102 57 44 56 68 58 108 48 51 45 62 122 70 95 96 42 46 54 51 72 45 88 62 65 38 92 98 86 78 91 113 95 96 37 32 49 65 105 41 32 57 115 47 73 71 104 81 38 82 112 67 122 46 124 73 68 85 53 71 124 94 92 61 84 53 117 106 87 73 43 118 80 113 71 85 86 92 120 98 114 90 115 69 38 66 102 87 69 94 57 39 50 78 78 119 93 109 63 33 107 60 106 62 93 75 101 116 108 87 43 119 71 58 68 103 83 35 74 62 71 96 92 92 109 37 89 70 45 96 72 38 108 87 65 64 41 112 98 98 78 78 116 85 126 97 42 72 39 36 81 41 63 39 86 85 87 89 80 44 95 84 37 88 43 48 125 112 125 53 47 81 39 79 115 32 92 35 125 87 82 99 119 50 ]; +ref = [ref 58 36 59 120 94 111 99 71 124 76 52 81 121 95 107 83 66 77 92 65 42 42 111 58 102 82 111 34 100 34 109 112 107 92 70 70 40 98 64 80 40 58 111 36 48 86 88 78 109 59 48 53 99 80 78 57 74 76 34 119 59 117 126 68 73 119 117 90 123 61 38 66 87 52 99 61 110 95 74 112 91 75 123 84 34 46 36 63 62 80 54 63 48 106 55 88 54 88 117 76 107 69 99 33 57 42 122 114 50 34 90 39 54 123 126 82 53 52 91 78 103 120 53 33 45 56 79 125 93 97 125 112 86 107 42 110 120 104 80 122 62 59 72 69 49 60 82 55 56 62 44 118 95 50 100 35 121 35 121 67 58 94 62 52 41 90 98 60 93 115 51 85 75 86 66 90 63 89 96 121 57 43 52 39 126 78 53 93 76 32 113 69 39 85 63 97 121 63 68 108 ]; +ref = [ref 36 52 109 52 93 92 50 62 92 123 90 120 109 46 91 58 69 80 41 120 87 84 83 54 72 97 48 120 92 82 39 105 41 62 108 95 61 94 61 75 44 80 37 98 95 83 91 94 105 57 69 105 125 122 105 59 83 60 101 83 91 98 86 116 125 66 124 54 36 59 34 46 81 104 68 90 77 36 114 89 38 48 37 86 94 49 80 50 118 95 81 57 61 87 35 106 72 93 101 35 67 61 49 125 116 107 115 114 119 109 52 113 104 32 115 60 69 91 40 91 126 67 122 100 123 89 112 90 34 56 72 121 96 83 97 80 43 81 103 33 113 88 43 107 101 66 108 58 119 57 90 80 117 116 91 121 96 114 41 53 50 55 49 67 42 74 61 59 74 108 54 95 111 94 126 75 106 112 124 56 44 105 120 37 68 60 123 68 45 50 67 46 36 41 110 103 102 116 73 33 ]; +ref = [ref 85 119 70 122 97 40 122 106 86 98 40 64 107 42 98 45 113 74 105 108 86 103 58 56 108 96 64 126 85 88 46 59 34 84 51 125 74 113 97 92 48 67 91 39 78 126 44 84 91 47 66 89 66 103 45 46 58 67 69 73 113 109 49 75 47 55 37 42 65 59 106 121 33 65 59 77 34 114 104 81 52 120 67 34 121 97 83 61 108 118 67 118 65 98 50 33 50 79 104 54 51 51 121 91 76 123 60 51 121 104 115 51 117 84 50 107 63 97 126 119 53 49 84 57 101 107 124 53 32 50 126 118 100 81 110 106 116 80 122 89 95 90 43 75 58 68 59 93 122 66 74 69 71 111 99 35 124 60 124 46 34 92 125 72 66 90 108 79 51 61 33 125 96 84 85 71 46 83 111 60 34 105 122 104 107 116 113 77 33 81 98 126 107 38 117 101 43 120 48 122 ]; +ref = [ref 124 39 71 101 58 89 35 77 66 84 76 59 65 126 43 86 67 33 80 108 58 119 76 110 91 97 70 70 98 86 77 54 39 55 97 96 77 64 124 48 121 42 57 57 91 90 104 99 108 124 35 114 76 76 36 89 122 48 111 64 99 34 46 68 101 86 107 55 67 120 72 55 54 57 107 48 39 126 67 105 125 91 75 115 57 94 92 94 108 98 97 81 65 109 61 42 61 104 97 116 103 56 94 101 69 96 81 109 106 67 97 63 91 45 73 100 62 91 99 60 121 74 86 87 123 76 119 108 61 62 47 65 42 58 116 59 101 57 46 69 44 105 47 103 71 103 100 53 39 42 57 40 39 102 85 67 39 51 33 52 57 67 91 43 116 85 89 72 80 125 72 67 41 103 83 117 43 101 94 32 120 77 113 41 112 70 39 62 77 42 68 68 104 115 124 106 54 35 33 35 ]; +ref = [ref 92 36 108 67 92 115 57 69 57 116 56 67 56 79 38 115 111 126 125 115 91 119 52 59 63 91 77 87 110 111 41 110 98 45 87 62 111 51 37 107 111 59 67 100 95 61 108 75 57 52 67 91 39 60 58 100 86 101 106 108 61 85 111 33 120 47 123 93 55 61 53 55 70 89 59 124 56 35 124 122 115 34 80 89 69 112 41 112 36 119 114 67 112 72 118 34 84 124 83 111 119 73 65 45 73 76 82 87 35 96 33 57 65 47 78 51 125 72 82 37 71 52 48 69 45 113 96 64 39 91 96 114 97 47 77 53 124 92 37 84 55 87 106 71 36 56 125 63 68 60 76 76 73 85 92 103 98 43 92 65 115 91 65 40 45 45 107 97 69 43 96 122 39 52 60 120 48 58 108 42 79 94 115 98 42 98 121 102 79 57 41 76 105 94 117 33 100 74 109 98 ]; +ref = [ref 101 37 111 84 38 81 119 113 58 105 76 112 64 113 123 67 96 39 94 103 117 43 69 44 122 67 52 82 97 121 34 123 118 96 90 120 33 86 55 113 59 54 87 91 96 36 101 104 116 32 86 122 34 93 54 45 106 92 111 122 44 52 38 99 90 110 48 92 82 113 85 118 101 66 64 34 49 87 85 57 123 104 120 37 61 55 98 112 39 103 79 88 110 91 58 95 41 105 59 112 42 103 123 42 89 78 100 84 77 106 60 38 119 40 116 34 79 90 58 96 45 60 86 44 47 116 125 80 84 77 72 48 117 97 125 37 64 105 108 46 97 73 60 74 88 78 113 34 121 65 89 81 65 112 122 81 117 95 118 59 74 42 116 112 112 84 32 63 78 98 111 82 123 102 122 71 126 125 34 39 54 49 54 73 81 54 115 91 39 114 77 62 78 45 77 39 97 101 40 91 ]; +ref = [ref 76 54 73 75 67 119 55 36 67 102 110 43 40 34 41 56 99 115 48 80 88 115 52 36 76 86 55 112 57 67 89 117 35 65 78 111 116 58 107 126 88 32 89 106 106 82 32 80 118 84 67 66 37 71 32 66 102 107 105 108 95 60 59 47 114 53 49 120 98 32 108 100 55 125 38 74 88 85 105 48 47 42 64 40 64 76 77 123 93 88 78 93 95 50 44 67 103 98 105 53 82 57 90 38 39 41 49 45 119 42 85 106 79 114 106 91 57 101 54 41 81 102 84 90 41 67 88 118 125 81 78 73 75 57 45 69 45 43 94 91 72 46 96 74 66 111 49 103 44 51 56 62 92 106 112 69 72 113 106 46 63 113 42 51 93 68 117 32 54 91 122 69 108 121 86 43 111 82 92 109 56 58 35 104 104 66 67 49 57 33 115 94 59 75 100 123 78 66 121 66 ]; +ref = [ref 41 69 115 112 86 59 78 102 66 107 49 108 74 120 125 57 95 106 114 50 49 83 83 72 104 54 51 70 112 93 59 69 122 51 95 60 77 50 41 111 56 37 34 73 79 74 86 44 50 41 112 58 57 125 84 104 42 74 108 52 84 92 70 93 95 68 103 57 33 80 119 104 96 100 42 81 80 58 98 100 58 69 103 33 50 86 71 59 95 51 73 62 40 52 43 86 61 121 112 84 79 32 94 78 78 114 104 66 63 66 106 84 89 98 94 114 122 93 61 75 82 104 46 72 80 38 79 85 76 63 117 87 46 65 63 44 79 48 94 78 105 92 46 77 48 122 126 116 33 67 113 54 119 123 60 49 79 71 62 56 104 112 53 83 121 86 73 111 88 51 100 63 126 32 38 48 75 100 110 70 58 39 59 68 94 84 110 73 104 73 71 79 47 97 87 112 61 78 95 81 ]; +ref = [ref 59 96 79 59 90 71 41 97 80 119 53 59 65 106 78 106 73 96 57 54 71 38 83 86 91 82 72 60 89 75 116 34 43 69 71 99 33 84 46 77 94 56 47 58 101 77 65 71 34 44 121 123 115 97 62 40 75 121 34 90 85 53 85 126 80 126 76 60 66 77 109 69 52 105 72 105 51 80 38 69 61 119 106 41 94 124 79 51 117 43 117 100 69 43 74 48 77 61 113 74 110 126 64 39 93 124 42 98 48 104 97 95 65 79 65 52 87 97 66 75 87 91 125 57 115 50 104 88 99 101 34 116 80 117 122 77 107 44 52 120 56 119 95 98 46 61 85 80 39 101 85 115 49 70 46 35 43 110 86 33 90 34 93 68 88 124 115 97 94 57 95 95 106 80 93 112 80 40 81 94 110 37 118 111 112 98 84 86 66 58 103 57 99 50 33 102 48 118 85 110 ]; +ref = [ref 45 42 83 78 82 37 49 111 91 67 42 51 69 107 97 36 122 65 46 84 66 93 33 121 118 110 66 101 64 116 96 71 64 112 97 58 67 34 108 104 99 111 97 44 62 66 126 69 83 33 54 86 115 108 95 118 54 76 90 80 115 48 67 94 112 118 83 107 54 114 124 53 65 104 82 47 48 101 77 113 39 98 35 87 99 106 63 51 65 72 39 109 60 57 52 57 83 72 67 54 114 106 63 42 125 71 64 43 40 86 43 60 34 52 59 96 113 35 72 103 91 101 84 97 76 52 69 51 81 104 95 67 123 100 117 69 125 85 86 33 49 104 83 65 84 123 36 97 52 50 94 71 117 70 61 37 81 65 99 120 65 102 33 94 40 33 83 86 120 106 107 61 79 92 50 39 47 97 56 126 69 108 46 123 115 116 89 101 71 50 97 89 83 123 38 119 32 51 73 52 ]; +ref = [ref 81 35 114 103 116 88 47 118 76 82 101 48 39 66 101 59 47 119 34 59 102 119 86 106 71 105 35 40 102 91 102 38 91 123 46 76 63 79 109 47 114 124 108 118 82 79 104 84 120 66 61 73 53 112 71 35 32 60 53 72 37 39 54 60 121 76 80 92 56 71 40 124 62 49 68 101 89 68 47 90 61 96 38 50 74 77 37 45 81 55 50 108 99 61 60 62 114 35 73 71 57 47 97 102 36 55 104 123 116 56 122 70 53 51 120 86 54 99 47 42 111 93 111 85 37 86 103 98 125 62 111 70 112 50 101 125 72 100 101 80 70 59 124 79 49 45 97 39 59 79 49 108 69 69 45 62 83 121 33 95 94 74 34 70 81 52 77 109 94 46 79 119 72 70 53 98 69 70 98 101 83 92 74 78 59 109 119 69 67 113 53 106 61 92 72 99 33 54 75 90 ]; +ref = [ref 102 117 116 55 111 89 61 111 105 34 74 114 93 42 124 108 101 118 44 49 52 52 93 39 115 81 63 95 106 67 95 83 45 114 71 45 87 45 71 79 69 83 58 78 58 78 88 110 90 99 53 52 42 112 120 74 108 99 75 109 86 123 52 47 111 91 82 108 101 51 82 38 108 120 58 68 80 119 105 74 85 55 37 33 50 81 107 76 59 51 92 53 67 80 119 111 32 68 109 46 85 80 51 91 99 82 74 105 36 45 98 115 126 97 112 104 112 51 84 81 45 120 47 79 74 122 75 63 42 67 64 110 61 65 73 47 93 69 113 107 84 42 35 81 103 37 96 105 89 37 122 56 102 46 63 120 94 102 76 47 96 39 122 77 118 86 46 101 119 107 49 75 100 95 32 116 98 44 41 90 74 82 123 74 98 33 96 60 114 53 48 43 65 115 101 106 69 33 109 110 ]; +ref = [ref 82 36 51 72 83 107 48 116 113 122 48 59 112 56 113 46 90 123 61 111 101 115 119 90 99 82 66 107 63 115 99 99 75 82 102 58 62 115 71 54 85 69 96 111 54 125 47 52 85 62 35 117 81 108 61 39 71 38 102 41 115 78 49 34 113 38 78 98 114 91 104 50 46 80 110 39 57 69 37 50 87 97 87 98 62 40 51 58 36 84 70 51 110 43 99 58 93 66 56 122 67 125 61 66 93 112 126 114 68 122 77 79 121 84 79 111 53 75 65 100 57 52 56 100 69 45 111 97 121 121 50 73 79 93 32 118 124 80 39 63 55 78 105 38 80 93 56 110 124 106 113 107 100 78 42 116 119 46 124 111 124 43 69 81 57 91 87 111 49 59 111 99 80 39 34 44 100 92 35 74 89 108 55 54 53 69 75 105 59 84 41 100 111 70 72 63 32 69 61 89 ]; +ref = [ref 54 72 107 51 70 71 120 92 102 73 93 44 75 110 75 47 98 110 51 116 62 40 52 87 93 123 63 32 40 39 121 110 102 83 55 64 92 84 70 99 59 117 47 38 53 84 70 77 72 49 78 81 110 106 111 51 85 90 79 100 120 54 64 72 57 47 100 69 46 58 86 103 82 49 99 74 73 118 71 114 33 121 77 59 98 111 48 115 60 99 126 59 83 99 78 97 96 65 91 64 55 89 96 88 97 72 121 71 113 38 51 43 91 83 70 92 90 125 58 119 73 95 110 84 74 126 40 118 116 37 58 113 73 41 64 60 103 41 97 41 69 58 117 46 41 49 63 77 105 104 34 112 43 70 85 54 50 103 80 117 110 76 46 110 103 55 88 33 114 99 59 66 125 44 77 47 46 33 68 94 60 52 124 38 105 60 125 96 46 107 67 126 97 42 83 116 104 92 69 77 ]; +ref = [ref 113 52 36 98 108 83 48 94 77 48 87 105 92 89 34 56 37 49 41 34 123 55 78 44 71 34 67 87 37 58 124 83 65 91 77 106 93 35 75 86 45 50 46 94 86 77 40 54 107 109 39 61 52 47 74 55 86 81 80 68 72 86 75 68 45 77 90 52 82 121 124 50 87 65 82 58 64 100 70 88 64 64 93 114 112 60 77 102 58 48 43 77 79 87 79 102 37 77 32 110 76 108 115 59 40 64 97 59 61 39 122 96 102 63 65 109 99 67 33 70 92 65 91 67 39 114 46 106 46 120 125 60 81 99 63 116 116 109 60 124 99 81 79 76 64 97 63 106 117 79 86 61 55 120 91 47 123 90 93 39 65 75 80 59 122 108 60 70 85 66 46 121 35 49 105 103 60 52 124 96 53 37 61 46 46 89 78 108 74 69 87 45 73 63 53 111 100 104 81 71 ]; +ref = [ref 59 62 69 37 71 45 48 48 78 40 122 107 76 101 108 90 115 62 114 118 58 45 114 42 75 59 48 64 33 76 105 93 51 125 40 55 94 94 98 95 57 112 54 108 103 38 89 44 119 70 116 87 66 109 47 124 78 112 100 105 51 88 61 97 100 93 80 81 61 69 72 90 95 68 87 56 97 40 39 100 65 99 58 108 112 57 38 120 122 42 47 75 105 69 95 34 123 46 111 106 66 39 40 79 74 79 110 120 101 82 112 50 111 81 40 111 34 104 101 65 32 44 70 46 95 73 76 89 36 42 87 33 125 32 63 63 91 69 95 84 49 42 89 70 99 75 81 47 83 100 62 108 100 93 77 89 92 86 107 112 90 103 60 39 114 45 33 70 106 92 72 79 76 60 86 120 93 43 54 77 79 47 112 99 59 85 41 75 35 100 76 47 46 69 47 123 91 32 47 121 ]; +ref = [ref 113 59 45 115 37 59 62 104 52 105 101 48 110 61 110 40 122 88 123 94 83 32 108 115 80 81 107 103 111 47 35 39 106 61 92 82 97 72 44 74 38 100 55 121 80 117 66 116 33 107 54 46 69 96 78 105 62 86 120 113 38 76 106 97 84 49 125 71 46 104 108 46 41 108 107 107 47 98 39 73 82 56 90 44 81 71 102 112 83 53 62 38 87 120 53 83 47 117 123 123 74 44 37 64 40 77 97 56 72 97 63 75 47 83 101 81 48 61 95 113 115 75 81 116 41 71 59 65 120 125 114 102 78 63 55 57 75 38 38 121 94 74 69 52 90 77 39 40 79 63 122 38 72 41 120 91 37 106 74 42 104 39 58 45 49 112 105 34 76 92 42 62 81 54 125 55 58 85 49 99 85 79 89 94 37 45 91 107 40 37 118 62 102 72 52 69 35 93 107 87 ]; +ref = [ref 76 32 47 115 117 54 86 47 76 104 75 63 64 68 49 76 48 81 80 60 125 118 112 86 97 126 62 82 44 84 84 52 93 63 81 71 82 86 46 43 115 122 52 35 47 77 35 64 42 104 57 119 105 52 50 123 36 76 65 104 95 97 41 125 109 117 48 112 46 69 112 60 85 97 66 111 44 110 123 106 114 122 90 80 67 120 95 107 100 108 91 102 114 74 91 95 99 79 48 32 64 103 108 37 51 96 53 86 121 77 118 61 94 92 68 88 63 33 62 56 55 110 126 55 70 83 41 93 62 121 126 35 101 92 43 45 118 84 48 77 102 62 48 124 90 40 106 93 48 100 53 62 122 58 86 107 51 99 92 56 102 51 79 104 38 96 117 76 51 65 54 121 66 90 83 103 68 77 93 100 102 113 108 90 67 114 34 89 114 62 40 48 125 96 121 95 89 40 71 39 ]; +ref = [ref 95 58 88 118 87 125 123 122 113 65 112 109 55 78 52 76 100 113 101 86 60 98 66 50 69 40 75 111 59 56 74 94 98 54 38 71 108 40 48 83 110 35 84 89 61 86 69 34 88 93 69 86 39 72 33 34 37 81 98 77 63 84 87 41 122 85 71 109 98 98 112 83 106 77 103 109 87 37 52 78 101 110 80 93 126 53 85 85 97 41 123 72 85 108 113 102 116 84 102 47 59 86 96 56 83 112 96 38 82 117 50 69 33 58 69 103 65 125 33 41 86 100 68 60 46 32 55 94 124 55 88 57 34 91 36 94 46 85 70 63 99 80 74 41 77 104 122 52 72 51 51 39 36 82 96 81 48 93 81 86 37 123 50 115 62 119 84 82 79 58 62 106 48 49 38 49 96 79 41 103 90 93 57 98 122 71 121 35 72 63 33 114 63 34 77 81 122 126 44 108 ]; +ref = [ref 57 44 118 70 72 121 108 50 118 58 114 66 115 78 118 43 92 53 32 121 49 32 94 46 80 66 42 84 41 33 45 93 91 118 57 114 83 60 56 53 117 81 43 83 108 80 123 87 125 35 108 104 53 69 124 123 90 57 69 112 42 48 115 102 51 93 126 50 101 84 47 111 60 121 45 87 118 122 86 124 120 40 65 93 95 48 67 40 114 120 45 86 121 126 48 63 105 32 113 102 43 114 66 113 99 41 86 40 95 63 97 73 33 116 101 49 54 55 64 118 58 55 71 106 69 119 68 74 61 45 101 117 35 125 110 79 72 83 68 82 97 116 61 68 77 110 91 53 53 111 125 72 71 66 59 126 120 93 74 114 103 66 65 50 67 97 66 61 100 118 55 51 98 37 119 78 64 38 123 55 118 93 74 65 98 78 69 86 61 121 70 62 32 51 73 32 90 115 65 82 ]; +ref = [ref 121 81 104 32 90 86 96 56 32 120 126 101 102 105 93 101 121 72 86 45 113 38 113 68 105 67 75 103 110 74 44 55 39 38 49 101 70 83 113 68 120 83 88 40 112 109 122 108 79 73 55 108 77 97 33 92 96 40 116 101 61 98 83 119 41 95 37 51 45 46 34 104 99 121 117 93 71 95 46 63 88 100 122 69 65 84 90 78 35 58 44 59 65 94 32 100 108 36 59 113 103 76 75 63 64 81 52 45 70 76 61 38 51 63 80 72 71 70 73 58 35 50 105 105 76 108 103 57 83 43 40 53 121 98 55 81 110 118 59 54 34 61 33 115 50 97 76 57 67 111 102 37 88 109 97 109 109 112 97 49 58 98 69 107 119 92 102 81 120 42 104 89 92 37 74 115 33 71 41 113 91 67 49 93 82 102 67 58 44 105 65 33 88 84 54 110 52 88 93 49 ]; +ref = [ref 70 49 43 34 71 120 111 49 90 119 95 100 105 72 108 62 79 118 42 91 110 34 75 120 36 90 73 88 58 73 67 102 55 43 97 36 68 56 103 111 120 56 65 77 113 79 70 114 46 96 78 33 82 123 86 119 81 91 64 72 59 46 47 46 72 64 48 90 57 115 109 52 86 96 58 99 61 61 120 51 47 111 88 92 115 67 75 94 110 102 118 62 90 83 70 57 102 56 60 64 97 106 54 91 41 76 63 59 94 40 76 61 70 118 94 119 102 64 74 111 61 101 105 64 83 71 102 90 38 81 123 98 46 74 96 72 81 90 38 34 106 114 33 116 125 75 67 122 91 47 74 63 108 46 95 73 92 117 67 34 99 71 72 110 72 62 37 65 67 85 63 115 47 116 118 50 81 93 88 102 92 85 44 93 78 122 110 58 72 60 39 110 57 109 39 64 100 37 95 60 ]; +ref = [ref 121 115 37 64 74 34 50 93 51 107 107 101 78 126 91 62 45 50 109 67 94 125 87 122 75 63 57 96 49 115 49 61 48 40 99 85 45 65 75 90 36 49 113 38 45 57 71 83 60 53 55 46 115 121 80 87 84 39 92 81 58 93 123 44 101 62 121 81 94 96 94 122 35 114 93 57 76 52 108 102 106 108 124 75 91 55 96 96 102 79 84 92 71 49 65 111 89 42 115 118 62 54 75 101 77 103 111 81 88 97 78 74 44 113 45 124 117 59 46 37 40 118 36 118 80 54 50 40 126 39 96 49 114 65 85 103 39 96 96 67 52 91 108 37 75 40 102 33 62 113 72 69 74 48 115 109 108 86 60 79 102 104 89 61 114 62 76 50 66 103 117 51 83 73 124 112 46 52 35 53 74 123 72 101 125 117 35 119 82 117 59 81 122 58 76 83 97 43 61 40 ]; +ref = [ref 113 90 79 119 66 72 41 124 125 47 72 102 114 93 103 123 85 114 69 122 121 114 52 83 56 50 85 34 55 79 41 117 76 44 112 77 89 88 47 97 49 98 56 55 77 65 91 101 113 39 114 120 43 111 90 77 49 45 117 73 71 106 34 120 103 116 84 98 40 70 98 79 104 54 34 65 73 69 39 67 59 114 92 104 47 103 71 82 55 101 40 62 52 38 48 116 63 43 92 114 102 33 86 92 117 120 81 38 67 125 119 61 93 100 117 118 51 106 51 82 40 50 64 92 90 54 60 51 44 76 80 85 124 70 62 65 87 124 72 74 55 58 115 66 85 47 98 89 100 48 64 61 64 55 55 117 45 54 36 87 122 45 57 65 93 121 98 89 53 54 104 68 79 40 80 91 94 61 58 41 99 93 74 108 88 108 90 76 40 51 49 50 95 33 106 98 36 124 103 84 ]; +ref = [ref 93 36 116 90 107 85 71 56 93 82 84 70 48 50 103 44 33 111 41 90 84 120 57 53 112 124 35 103 81 104 37 73 123 66 56 106 40 79 35 103 118 105 126 44 77 67 112 61 44 32 118 85 34 40 70 36 33 58 68 58 43 68 82 57 112 126 105 110 61 94 114 49 47 121 101 108 126 121 50 41 52 95 56 69 118 110 68 91 58 50 121 81 119 44 70 117 99 69 121 60 62 100 58 121 91 32 40 55 88 40 45 72 113 74 121 121 73 48 116 95 94 89 123 56 64 104 107 120 57 60 82 41 82 57 89 72 49 44 51 83 78 116 96 113 47 51 93 73 94 96 42 34 100 116 66 95 38 58 64 122 33 35 38 42 100 60 37 48 42 85 52 115 114 77 92 105 41 100 66 63 107 34 76 103 32 104 45 80 38 86 79 92 34 101 116 58 93 118 100 37 ]; +ref = [ref 103 79 77 46 119 66 96 79 76 85 83 94 84 109 96 70 93 80 36 34 52 85 124 51 105 35 125 85 100 71 74 113 106 99 64 69 90 75 103 50 39 113 70 101 124 50 118 44 111 126 39 48 118 58 100 98 52 119 65 57 84 92 112 114 78 52 126 114 116 61 60 100 76 45 117 64 46 119 71 114 80 45 56 93 69 62 36 93 116 115 57 71 83 101 47 119 78 91 107 45 92 126 118 43 116 44 112 53 72 37 42 65 111 60 57 49 36 63 68 82 57 52 120 64 62 34 54 75 87 88 103 102 126 56 105 57 110 86 109 43 91 44 94 65 124 115 57 89 63 117 44 93 48 105 40 67 59 80 60 34 35 118 78 103 82 58 86 36 99 35 41 35 87 35 88 82 82 34 92 52 109 65 42 104 73 103 39 106 120 66 126 98 121 99 53 39 98 95 46 91 ]; +ref = [ref 62 109 69 46 110 58 112 92 73 80 124 118 98 36 49 50 81 116 105 105 62 124 46 41 36 63 73 91 48 43 88 68 55 92 96 113 82 33 61 67 69 94 113 96 84 85 69 90 84 107 124 105 57 47 99 58 94 58 71 40 77 63 53 116 35 90 100 82 86 73 116 77 106 77 120 102 80 68 61 67 55 102 97 94 110 114 80 42 32 109 80 104 77 82 109 77 78 126 110 69 120 123 82 84 50 114 114 44 92 77 121 77 44 65 119 78 63 117 51 96 95 101 61 110 49 53 109 125 89 40 48 35 46 101 103 41 64 34 77 120 111 63 105 40 109 125 60 124 102 65 126 40 82 96 75 105 71 95 112 121 92 33 74 49 49 118 46 58 93 112 105 114 111 117 69 105 84 122 46 81 100 121 87 59 97 93 75 57 102 77 45 36 111 96 125 32 49 66 67 116 ]; +ref = [ref 48 93 51 95 106 39 59 40 99 64 84 39 107 39 108 66 124 44 43 45 61 121 54 44 62 76 56 96 112 37 47 42 58 108 110 99 115 36 48 40 95 106 101 75 67 110 87 105 71 62 117 108 124 88 90 48 87 58 122 85 89 116 103 67 83 103 93 75 94 33 81 45 86 106 76 82 114 86 87 42 54 34 124 108 58 67 100 35 43 52 50 82 63 52 69 37 81 112 109 48 58 36 92 82 83 33 110 109 85 98 39 103 121 94 53 113 103 35 101 53 107 91 85 34 126 107 58 66 95 92 51 69 73 50 115 85 94 38 123 35 94 108 91 40 107 112 114 117 37 57 111 57 51 106 41 48 105 76 79 116 45 124 88 103 69 92 77 63 78 66 47 39 40 38 117 94 74 56 35 105 72 121 58 44 113 123 53 93 41 55 72 77 102 88 67 84 76 53 78 124 ]; +ref = [ref 71 67 125 104 76 37 62 99 33 121 35 107 32 41 106 65 65 42 88 92 54 41 49 102 108 72 116 86 105 37 66 98 65 125 101 47 107 104 115 116 47 112 82 32 71 43 113 50 54 120 109 79 95 47 82 109 46 72 47 105 69 62 83 52 73 60 113 103 65 35 105 54 104 33 65 67 62 89 76 64 43 87 56 87 43 100 101 117 125 50 69 49 102 60 110 121 34 77 109 126 59 50 48 53 80 110 65 83 42 65 83 112 55 101 78 97 71 78 124 117 124 37 106 89 70 91 101 92 91 38 111 106 76 49 109 63 43 118 108 89 89 50 113 81 67 60 36 96 111 101 98 120 39 116 41 94 49 85 75 109 53 61 44 69 119 105 106 74 82 49 108 78 32 113 109 82 50 79 96 106 71 101 79 118 102 78 89 81 90 103 39 85 83 32 32 57 94 64 39 113 ]; +ref = [ref 84 83 61 57 92 89 83 81 121 90 122 38 100 124 119 124 104 100 107 126 93 115 52 47 85 63 70 51 32 99 67 51 92 88 47 38 42 39 112 117 96 126 69 81 85 104 113 40 74 34 65 69 112 97 120 37 43 53 67 85 63 86 81 111 44 48 96 33 60 102 87 90 90 116 117 59 50 89 106 64 90 115 124 92 97 43 46 100 104 95 125 97 63 121 63 52 78 108 61 97 86 95 115 51 53 74 104 99 71 113 93 79 103 89 80 52 80 103 55 112 82 89 47 75 88 53 35 102 43 120 113 93 121 111 91 53 65 82 118 57 50 62 93 62 34 34 110 66 70 50 56 60 52 104 118 40 113 65 37 88 48 53 94 73 83 106 125 32 41 102 110 75 52 125 76 124 81 85 37 39 111 32 42 90 65 33 80 119 81 67 71 32 111 79 76 96 112 111 46 104 ]; +ref = [ref 102 56 84 92 113 101 92 60 58 46 89 67 56 75 91 40 105 102 40 87 102 60 80 84 98 109 54 95 64 86 33 37 69 111 84 89 50 61 52 56 84 84 71 67 63 108 77 76 121 101 51 42 113 64 79 110 90 44 84 36 123 33 46 92 102 93 82 64 70 37 90 36 118 88 46 91 52 73 114 58 103 126 104 68 79 61 34 54 88 50 39 121 113 119 105 81 70 64 45 68 43 37 105 83 85 97 87 58 76 86 55 94 46 50 115 89 110 86 91 43 50 120 85 51 126 114 117 88 88 114 95 69 62 32 73 63 70 66 105 73 126 104 99 121 54 126 55 38 85 37 66 120 120 36 115 48 45 76 82 65 48 80 85 66 39 78 110 42 76 33 92 74 91 122 77 89 49 123 60 120 52 106 59 112 54 57 91 70 88 57 37 54 41 102 33 126 108 124 69 98 ]; +ref = [ref 126 97 54 62 98 68 121 42 87 72 119 59 124 87 126 67 73 94 110 36 63 116 96 33 65 60 61 97 79 52 125 63 113 45 69 35 61 35 121 38 101 118 126 58 109 54 39 75 48 88 37 48 118 108 33 110 37 32 58 107 68 72 33 92 106 111 45 41 87 123 81 49 51 77 72 84 66 107 96 76 125 114 106 95 105 67 100 63 60 113 77 73 80 104 48 112 102 55 67 115 86 35 116 97 72 96 39 85 118 70 115 104 53 70 41 48 63 77 72 65 124 111 79 80 115 90 33 106 50 46 75 53 51 95 124 77 89 73 44 73 49 50 55 44 53 45 92 78 71 71 78 102 70 39 34 68 73 60 51 126 84 49 124 121 105 32 38 99 78 73 67 88 55 107 53 111 101 78 121 46 81 79 45 106 33 90 122 97 85 72 83 92 78 67 68 70 95 32 39 45 ]; +ref = [ref 94 85 116 118 51 110 92 75 85 123 121 71 74 106 83 97 98 87 62 115 86 101 95 88 68 122 119 42 75 125 125 122 86 107 102 93 37 37 36 66 98 70 123 61 95 81 47 96 59 124 59 108 85 89 94 60 99 47 64 70 57 42 101 54 44 44 126 123 55 82 56 39 64 70 105 57 48 108 124 55 98 109 118 39 60 125 38 108 80 66 121 39 88 60 73 37 126 34 100 49 75 64 88 44 92 56 53 103 126 119 40 119 53 34 125 83 83 42 41 84 107 125 66 48 58 44 37 42 76 106 69 82 43 71 75 114 54 39 117 71 48 114 55 45 75 79 88 67 61 80 44 69 42 124 103 91 34 43 58 123 40 83 60 111 37 117 84 105 87 92 59 62 80 83 91 108 65 124 121 70 90 113 57 56 119 36 92 49 34 124 117 124 108 44 49 83 119 87 69 103 ]; +ref = [ref 125 48 43 96 95 49 82 110 121 50 95 37 47 44 74 48 56 60 50 39 47 58 74 94 114 88 39 98 106 119 83 110 73 121 44 91 38 76 75 64 53 105 78 77 80 85 73 113 45 100 59 35 54 49 65 111 57 86 62 65 75 41 37 119 59 113 120 81 48 107 36 124 90 60 77 59 45 32 66 97 52 47 101 32 119 69 53 46 122 56 91 108 33 94 102 124 81 106 75 60 86 56 61 104 95 55 76 82 34 122 57 56 56 34 80 56 88 53 103 80 78 68 86 65 33 54 85 48 33 118 68 67 68 112 112 41 59 44 51 57 49 32 37 52 114 76 42 51 121 41 103 100 96 89 32 115 120 105 112 84 66 108 50 83 82 56 61 66 54 64 93 61 92 44 83 114 123 74 110 77 84 113 105 40 69 37 108 113 62 121 100 88 92 86 52 71 60 35 104 82 ]; +ref = [ref 48 65 118 95 60 49 117 118 81 39 58 118 37 98 111 66 82 50 98 63 44 121 54 64 106 91 55 119 106 56 80 81 119 88 73 41 75 61 47 123 47 32 99 96 75 115 109 74 51 116 68 51 106 84 110 71 117 93 53 65 91 77 87 82 58 90 109 66 34 90 43 59 115 32 93 59 121 123 118 86 110 106 95 82 74 95 70 86 49 41 78 68 86 67 107 34 42 125 104 85 71 96 66 54 93 86 63 114 110 33 98 50 102 111 122 46 124 110 101 48 105 119 122 96 70 88 81 105 121 76 110 60 55 68 90 121 57 112 75 45 40 47 66 62 83 56 99 58 42 75 89 49 46 110 34 83 100 52 119 86 109 119 52 105 91 85 53 95 121 69 98 114 121 49 79 98 123 84 67 78 64 40 43 41 90 101 75 34 119 76 123 123 100 78 63 103 56 121 38 76 ]; +ref = [ref 49 74 83 114 34 74 34 57 82 117 39 88 37 43 112 66 50 112 100 50 52 49 113 91 47 79 77 83 43 116 71 82 73 118 120 76 95 117 102 82 100 105 122 122 54 104 39 104 91 111 84 109 108 61 65 108 75 97 55 99 34 86 66 98 126 114 52 97 101 69 122 56 117 108 56 96 85 68 125 58 113 97 118 45 122 53 66 70 36 38 33 123 99 107 47 108 101 111 112 98 83 126 104 33 105 116 122 58 39 40 114 122 82 88 43 52 73 52 77 44 90 49 58 90 104 56 44 45 123 81 76 43 68 106 72 38 93 89 49 48 42 102 53 44 34 87 73 49 101 89 111 55 47 125 120 59 49 86 78 98 59 70 102 79 41 81 67 42 43 105 55 93 117 42 35 109 80 54 105 54 89 47 115 68 116 38 77 55 99 93 96 94 78 93 76 99 56 105 57 66 ]; +ref = [ref 91 72 75 98 74 85 104 68 76 124 117 73 82 41 69 39 47 89 48 117 102 110 100 80 62 32 82 79 71 32 104 81 76 114 67 59 34 114 93 59 65 86 101 52 67 62 85 54 36 85 34 122 47 69 35 78 87 123 47 123 121 42 62 125 91 44 37 83 125 75 97 62 93 53 46 110 32 66 49 60 47 92 116 98 90 115 54 95 113 118 124 46 123 112 91 37 37 83 97 62 43 118 116 97 124 108 118 67 50 79 123 80 126 74 56 36 106 96 69 66 93 87 60 89 109 104 51 66 110 101 44 100 70 112 52 105 106 94 36 115 61 86 125 102 75 85 49 91 36 77 70 43 47 70 63 38 96 35 84 54 94 94 116 122 63 33 111 92 32 94 67 109 67 124 48 71 42 95 123 86 47 32 95 36 75 55 87 35 99 103 71 63 70 46 39 49 77 112 38 48 ]; +ref = [ref 49 104 78 106 32 62 37 35 75 81 118 79 70 93 116 110 63 33 43 89 61 43 99 47 112 71 98 105 111 46 84 47 105 105 116 91 89 69 68 115 118 55 117 44 87 55 64 123 72 97 42 36 117 47 79 34 78 44 121 66 54 64 49 106 105 99 90 94 71 97 48 45 121 56 122 37 91 116 40 98 49 45 50 100 120 63 96 91 88 73 114 74 86 101 61 46 80 59 115 63 121 46 84 62 108 77 90 48 37 117 96 53 36 69 41 106 56 82 92 52 59 79 32 113 54 67 89 56 117 39 67 36 42 99 32 43 77 69 80 59 118 91 117 87 67 106 41 39 110 44 95 75 121 40 69 85 49 36 53 121 101 101 78 76 116 111 74 77 51 55 76 68 94 95 123 105 98 74 105 125 102 68 69 98 78 88 87 79 57 99 98 64 74 115 52 106 92 123 97 51 ]; +ref = [ref 49 34 116 126 87 108 98 91 103 97 86 66 85 109 114 43 43 42 126 101 58 37 34 54 124 45 126 89 110 125 106 93 118 103 114 66 35 55 51 113 93 105 91 73 39 36 102 43 118 126 52 86 44 98 85 124 37 103 47 118 88 76 93 40 94 72 61 87 60 111 86 114 33 84 72 115 56 81 40 93 106 72 108 34 115 62 40 55 95 69 74 71 89 41 98 39 93 64 117 88 53 63 124 104 54 82 105 98 98 102 62 114 72 76 118 61 106 71 96 77 106 79 32 39 109 106 96 79 55 39 43 48 77 105 112 37 84 96 85 73 53 69 97 92 84 50 69 84 52 52 104 37 69 115 81 42 76 120 78 93 122 102 35 93 95 121 79 99 71 110 104 39 125 118 124 68 40 51 110 94 97 123 117 43 111 108 111 32 124 74 60 123 72 32 50 111 121 102 104 100 ]; +ref = [ref 87 99 63 68 103 35 97 101 105 53 123 65 93 75 117 59 58 63 94 41 46 122 83 106 52 67 52 83 82 120 36 42 80 90 68 111 95 103 79 90 86 54 40 58 70 38 85 114 94 53 107 55 56 87 60 112 88 52 87 56 110 84 80 79 81 100 40 32 51 53 49 44 87 79 110 79 117 109 98 33 94 124 75 117 64 45 81 94 38 36 41 81 55 108 84 126 49 118 125 94 86 40 100 105 105 51 114 107 77 33 121 70 54 77 40 61 75 106 90 98 32 83 75 75 106 93 76 102 87 78 126 41 63 109 32 80 46 35 42 81 87 37 99 112 38 112 59 58 52 125 116 85 121 112 91 121 59 103 74 101 98 48 109 70 80 69 96 56 104 59 104 58 80 93 122 68 95 113 53 113 47 52 68 105 125 91 54 119 69 58 96 62 98 40 38 108 112 32 86 42 ]; +ref = [ref 52 124 106 32 118 52 45 66 68 76 49 97 72 101 84 93 119 61 107 76 55 120 108 123 71 35 106 34 84 45 52 125 118 72 68 34 83 106 33 124 125 36 84 57 62 39 59 108 71 52 126 115 108 116 85 98 90 98 87 100 56 97 38 40 115 117 110 74 94 35 75 103 57 96 124 115 47 115 113 105 112 106 99 82 38 32 97 110 82 52 66 111 72 67 99 105 60 102 52 83 93 108 59 87 46 39 122 71 125 47 44 42 70 96 47 113 98 109 125 60 53 91 83 53 121 55 110 47 91 74 100 72 68 102 44 96 112 103 91 113 86 32 105 102 91 40 110 126 96 120 105 68 40 96 108 123 53 81 44 49 68 63 97 107 105 79 40 121 75 88 119 100 62 105 97 109 61 106 70 83 70 48 70 34 57 89 83 41 76 72 32 74 87 45 49 120 125 124 98 75 ]; +ref = [ref 96 107 120 33 71 96 68 96 113 73 85 41 99 35 51 67 52 41 87 35 68 75 56 71 114 47 82 101 118 47 81 59 32 59 103 67 115 113 102 76 119 98 106 107 67 33 72 45 45 70 110 65 47 86 72 82 41 73 45 35 65 33 40 71 117 64 66 82 119 108 84 103 91 84 126 94 85 54 99 40 91 82 36 52 112 112 56 86 116 62 71 126 66 123 77 122 85 102 41 123 42 67 78 108 120 63 50 125 106 108 79 62 37 87 91 62 122 37 104 119 75 46 121 100 66 63 48 84 95 52 48 35 120 39 118 34 94 42 123 78 100 93 124 96 64 61 73 67 83 99 71 48 70 72 101 123 70 83 101 39 90 64 98 48 42 122 37 109 93 104 125 83 84 32 121 32 67 88 97 34 73 125 120 86 121 120 109 37 47 51 83 72 113 96 110 83 61 104 37 99 ]; +ref = [ref 88 63 63 42 57 63 55 81 103 60 125 83 36 51 48 112 114 70 103 123 45 113 74 95 95 82 68 111 93 103 67 32 125 41 118 108 69 34 46 122 59 34 45 101 49 43 99 108 43 49 92 83 87 106 85 60 125 104 88 84 84 98 34 81 94 121 82 95 97 67 51 121 106 54 73 98 87 104 70 65 40 70 121 110 88 61 107 111 107 63 64 56 72 88 54 124 91 74 56 35 62 72 43 39 90 52 81 112 66 44 97 66 66 44 114 100 119 59 98 80 71 118 74 79 97 85 122 70 69 56 62 43 122 44 40 52 76 78 99 98 51 68 118 107 71 36 85 85 37 37 119 63 76 40 88 96 87 70 94 53 84 52 59 103 60 57 45 82 126 35 40 124 80 123 63 109 89 44 107 42 116 78 36 47 103 110 49 72 70 68 42 70 114 94 113 99 99 106 32 100 ]; +ref = [ref 91 121 111 76 53 48 50 42 45 111 83 73 100 92 39 59 92 71 109 44 77 102 72 48 99 91 115 62 43 109 112 34 52 119 73 54 93 90 75 47 69 59 126 57 114 70 46 121 85 92 109 112 77 58 34 116 119 47 124 90 123 46 91 70 118 49 45 81 120 51 83 107 46 120 83 47 82 110 40 57 123 79 57 69 96 105 122 77 32 79 73 100 90 72 67 74 112 53 57 123 86 33 111 94 49 58 38 50 66 64 36 63 59 49 47 117 66 77 33 122 109 68 98 116 103 98 125 80 35 122 102 94 83 88 50 120 109 36 63 74 56 101 34 80 76 83 38 66 54 67 66 86 80 57 38 93 40 104 121 90 42 102 78 72 75 57 41 125 108 73 89 125 105 37 83 123 75 101 108 109 39 87 112 37 36 93 38 96 55 113 91 79 57 109 45 119 68 107 120 66 ]; +ref = [ref 47 101 67 98 116 47 41 75 59 82 103 79 51 79 109 75 119 56 125 107 119 46 81 73 33 82 79 32 96 38 114 85 63 42 69 92 63 59 109 57 40 103 44 81 67 39 100 33 74 71 42 92 38 83 123 57 50 38 59 113 69 47 112 53 57 105 97 39 53 51 115 79 101 55 121 94 69 112 41 105 59 51 45 75 85 59 113 48 100 121 107 79 114 71 50 46 126 52 121 55 67 74 48 67 68 42 106 84 45 39 75 43 81 116 52 91 105 122 115 90 97 122 96 122 103 111 63 94 118 119 119 99 103 40 97 34 93 76 71 41 67 99 74 39 123 35 50 59 92 44 97 39 45 123 102 104 56 85 45 105 87 41 46 65 105 89 44 54 97 68 54 54 122 66 123 87 34 123 88 93 94 87 89 120 50 40 110 63 115 99 67 108 76 116 99 49 98 59 61 94 ]; +ref = [ref 117 76 64 109 104 45 90 70 111 116 93 72 70 39 57 47 113 102 97 77 56 49 101 103 116 90 60 84 103 101 99 34 90 80 99 38 39 86 124 49 113 66 41 34 114 88 110 46 49 42 125 107 90 114 37 36 40 80 61 63 75 116 114 107 55 109 107 126 100 60 57 35 107 71 51 104 72 67 38 63 49 70 55 61 55 114 39 44 80 76 60 71 102 47 122 108 85 93 60 69 81 110 120 55 37 33 58 113 89 54 37 122 122 92 34 123 95 38 65 76 41 55 69 52 45 45 37 66 66 59 76 113 98 44 77 88 72 54 82 80 75 104 106 96 90 43 116 56 98 104 104 55 116 106 43 84 103 61 106 66 62 57 65 62 75 65 58 103 56 99 88 98 101 103 56 56 84 75 99 109 63 88 44 90 89 114 48 67 75 69 82 110 48 47 101 94 78 51 93 60 ]; +ref = [ref 126 108 41 37 92 76 88 39 66 67 103 49 77 85 78 88 84 123 85 35 103 98 35 71 38 86 36 109 111 88 114 107 48 35 36 79 80 62 94 112 42 119 37 66 73 64 72 76 76 72 103 63 111 42 90 76 67 99 113 124 76 116 81 82 95 64 64 122 119 55 89 33 61 86 96 100 70 96 33 121 99 106 49 35 72 42 100 122 80 40 67 51 63 73 97 56 82 75 117 106 101 73 121 71 56 96 41 91 82 42 122 97 70 77 101 63 101 60 49 118 59 119 83 56 42 98 83 93 124 49 41 62 98 117 90 94 37 109 87 66 41 99 53 100 123 96 86 93 48 44 93 117 63 81 49 105 70 97 107 100 38 107 102 42 118 66 83 97 121 82 104 114 62 51 117 42 72 82 34 67 59 37 114 113 117 78 93 88 100 123 75 126 78 58 59 62 105 118 43 48 ]; +ref = [ref 65 121 32 102 38 42 88 86 66 70 104 36 64 112 45 33 116 115 86 93 102 118 85 91 123 108 103 103 117 32 60 122 65 99 43 36 70 54 121 71 75 102 125 71 47 73 80 46 48 40 49 103 80 96 43 53 112 121 103 37 79 62 82 66 97 116 115 63 32 47 108 58 98 107 33 115 96 109 49 32 45 113 86 35 115 63 41 101 66 44 56 90 94 114 61 97 55 51 106 84 54 49 78 53 57 120 105 118 93 86 104 125 88 113 91 72 109 94 88 114 121 119 78 85 50 122 94 70 49 47 95 50 65 45 93 107 126 118 103 112 41 64 92 122 109 75 123 85 38 49 32 103 56 72 81 75 60 73 36 87 68 82 91 49 54 102 53 54 89 101 116 85 32 32 42 76 32 41 67 112 90 118 76 38 67 90 34 46 109 108 74 34 96 101 94 44 49 108 45 98 ]; +ref = [ref 64 66 108 91 91 113 111 120 115 109 72 122 75 48 56 62 84 103 102 60 66 90 99 96 60 89 100 63 65 117 116 103 89 41 40 60 40 62 122 65 93 64 79 76 60 58 74 98 50 94 40 126 119 96 34 101 45 34 79 33 52 35 123 100 113 114 114 124 95 104 70 118 48 68 122 120 74 56 79 41 72 54 70 44 70 89 113 117 59 122 81 76 96 99 56 71 77 126 74 81 52 120 41 42 77 81 107 38 96 64 50 90 111 95 80 116 102 46 113 79 59 57 37 66 49 113 41 95 33 42 54 39 74 63 56 114 70 54 72 70 63 92 72 57 116 124 103 113 103 117 56 97 97 43 62 116 76 70 75 52 63 67 100 94 55 58 73 42 100 82 123 34 57 78 69 53 68 55 70 66 98 99 59 78 71 33 76 52 67 84 97 77 46 112 105 55 108 123 121 55 ]; +ref = [ref 58 101 83 110 49 34 85 47 96 48 88 75 86 86 33 124 62 68 119 94 57 99 76 94 72 64 121 110 120 41 109 53 97 117 51 108 102 68 43 56 125 60 84 125 34 48 56 52 86 124 75 51 78 48 54 91 55 51 45 101 40 92 49 81 125 65 116 116 33 46 47 50 60 84 67 74 44 113 119 71 59 93 89 109 73 71 116 60 78 98 56 121 86 37 57 83 111 112 117 107 105 81 66 113 86 81 41 116 96 65 62 110 118 35 116 119 97 50 122 99 123 60 55 113 77 96 96 43 109 112 70 72 45 83 73 36 68 125 69 85 68 115 38 109 120 91 60 114 105 49 124 80 71 87 36 114 110 90 71 68 38 78 92 61 32 48 120 112 115 51 72 92 84 124 112 99 60 92 90 78 121 78 73 62 118 37 33 72 69 100 45 89 47 88 120 83 110 77 33 39 ]; +ref = [ref 58 72 70 97 101 102 102 111 43 63 34 83 84 92 114 68 47 77 55 125 109 44 47 89 61 65 79 113 59 78 76 59 87 53 63 56 110 110 82 60 50 53 82 71 86 79 82 44 50 58 62 63 58 117 92 32 97 48 44 37 48 61 95 125 117 34 68 39 40 106 78 123 98 94 91 94 91 95 49 33 118 67 124 117 81 47 87 38 59 40 82 99 55 115 110 58 113 67 76 84 98 51 45 47 106 48 114 97 42 100 81 59 45 36 53 71 82 68 39 76 100 63 90 46 56 120 53 104 108 82 82 102 47 47 83 96 59 69 92 73 122 32 98 33 74 59 66 77 66 46 47 76 91 80 77 96 32 95 94 124 126 107 121 96 59 84 79 64 65 101 107 44 67 63 78 33 70 53 75 89 105 38 40 50 126 126 61 55 81 85 111 113 83 125 89 48 32 89 65 123 ]; +ref = [ref 53 68 85 123 58 38 76 48 109 121 95 40 35 51 47 58 44 107 114 43 53 122 50 121 73 112 57 121 105 67 97 118 115 69 54 125 103 54 124 75 50 67 43 62 65 86 126 82 82 98 41 50 69 101 68 84 55 84 73 58 108 73 82 123 113 119 54 111 38 126 32 79 57 99 89 37 94 54 63 37 65 125 48 54 65 105 68 94 123 39 82 117 113 72 88 110 121 76 117 102 111 46 113 108 108 104 98 35 126 73 50 67 114 52 98 98 50 84 52 100 76 101 98 84 119 120 120 122 33 76 87 53 99 126 111 76 65 115 121 80 43 60 108 124 73 103 68 88 43 74 51 62 47 81 106 90 70 43 92 126 109 108 91 56 49 46 83 92 70 107 54 54 114 92 93 112 77 65 109 117 58 53 38 97 57 100 125 82 51 107 32 83 106 87 81 35 124 116 62 72 ]; +ref = [ref 67 38 68 60 94 53 64 84 40 68 101 121 64 54 56 120 48 51 98 57 65 47 99 87 114 120 124 43 75 60 60 85 38 78 112 74 104 59 99 45 74 47 74 67 71 107 64 69 85 38 36 79 79 124 73 45 74 38 48 67 100 124 86 73 126 123 90 56 102 70 94 97 125 126 97 50 115 54 86 81 88 120 82 122 120 78 78 95 46 62 124 48 97 90 121 36 36 72 70 99 89 91 48 96 70 55 89 53 70 49 78 115 101 87 68 68 78 99 124 93 109 76 58 63 109 37 109 48 48 56 101 102 48 125 49 120 59 39 54 103 123 79 100 104 103 60 49 102 33 75 113 122 61 124 57 72 117 58 99 83 61 101 84 45 46 54 87 79 100 68 44 82 32 71 105 117 69 78 124 123 97 108 87 68 91 94 119 113 69 107 114 50 63 116 100 66 72 42 124 32 ]; +ref = [ref 73 50 69 32 93 68 43 103 45 126 99 124 112 53 96 123 95 47 67 45 119 37 74 111 60 79 118 109 33 85 103 121 121 71 116 121 35 43 49 115 88 107 63 61 105 48 108 67 67 112 76 39 55 55 119 73 97 77 73 124 60 94 111 82 54 126 119 45 92 57 93 33 45 60 122 116 119 71 109 58 90 84 58 45 73 34 122 99 123 62 83 121 114 84 91 75 77 66 36 96 107 65 96 38 38 126 110 77 42 93 63 98 58 102 103 97 83 101 83 121 33 38 88 120 98 122 109 43 48 73 65 48 51 66 75 116 32 112 70 65 49 35 59 50 55 79 57 72 64 80 92 97 38 48 97 47 119 101 57 110 79 105 109 90 94 82 92 125 113 118 47 75 85 124 119 57 81 123 77 99 105 114 124 108 73 36 51 89 111 126 111 83 122 63 55 51 87 112 38 124 ]; +ref = [ref 35 98 74 125 70 96 111 77 51 86 120 35 61 54 74 58 97 73 103 54 95 65 52 79 49 67 56 100 33 100 82 36 47 114 51 62 81 46 77 104 101 101 126 75 32 116 92 78 95 71 40 42 78 97 95 64 59 34 100 123 64 62 96 33 40 86 98 73 118 116 92 79 110 67 87 43 88 112 123 56 125 60 76 117 114 122 124 57 41 117 72 97 66 47 122 83 71 43 33 98 49 122 73 109 106 108 49 102 53 55 117 55 64 49 109 62 97 86 37 83 34 71 45 89 55 65 106 116 57 68 98 125 73 112 59 84 79 88 100 58 46 85 112 57 57 61 75 125 103 124 116 44 118 53 106 115 101 33 103 107 92 75 41 73 44 98 65 79 102 94 93 68 46 70 41 113 102 44 98 44 80 86 46 95 69 53 49 101 55 72 124 121 116 34 111 62 66 58 34 69 ]; +ref = [ref 57 64 118 50 119 43 74 102 54 51 115 108 84 114 43 77 62 104 107 76 59 65 81 83 126 41 125 88 43 62 108 32 44 116 48 114 42 121 112 93 92 103 57 120 55 45 55 36 90 73 39 94 99 36 35 80 101 67 76 90 37 93 57 43 105 95 111 72 72 125 100 122 83 35 76 105 49 51 34 74 54 35 109 108 55 75 64 96 98 119 32 83 41 93 75 88 73 122 71 65 57 109 75 98 77 76 101 66 99 92 90 58 93 40 39 126 123 43 60 101 72 88 68 111 91 82 60 54 59 68 91 82 85 107 66 72 81 76 97 58 56 53 92 83 52 86 51 48 125 57 94 42 36 102 61 78 81 120 77 110 111 35 113 117 37 126 112 66 105 40 122 66 112 113 104 34 60 54 58 67 37 88 47 88 56 90 73 63 104 61 61 122 45 42 69 73 103 35 50 79 ]; +ref = [ref 58 68 56 110 59 83 81 89 46 34 104 86 76 52 86 123 106 37 46 42 116 94 42 126 53 57 124 118 118 57 73 121 106 81 74 63 90 124 109 37 81 52 86 78 104 65 34 54 40 122 72 89 123 37 86 110 63 88 40 123 48 34 110 51 120 99 115 68 51 45 106 114 49 82 59 125 112 48 56 33 96 119 75 80 81 84 86 110 71 46 96 115 50 56 78 102 65 103 108 100 41 86 52 75 125 41 116 72 111 64 55 76 86 101 63 70 119 103 32 80 68 56 82 102 71 40 85 70 44 82 46 35 37 85 70 71 121 63 80 98 66 103 94 65 69 38 86 72 94 118 45 75 96 54 35 63 69 111 90 55 45 34 53 100 109 35 89 49 112 81 105 44 84 122 89 91 91 119 94 36 50 94 113 118 80 32 103 58 54 126 81 42 113 67 113 114 33 72 106 104 ]; +ref = [ref 117 90 49 35 79 105 75 58 82 64 64 90 97 44 81 91 78 36 50 38 86 90 84 93 125 63 73 61 68 45 40 109 112 83 37 55 73 91 106 84 46 116 43 121 47 123 99 75 119 57 85 58 97 94 35 42 76 113 72 35 87 42 83 109 45 98 80 52 64 36 63 80 34 63 64 90 101 77 79 43 77 55 87 91 42 108 45 84 82 42 101 75 61 116 84 88 90 35 121 42 59 109 56 121 125 47 84 74 45 105 100 99 80 64 65 58 72 43 60 110 120 78 90 51 39 107 83 122 52 64 99 79 53 70 61 89 97 57 76 89 71 44 101 77 102 45 62 125 86 59 95 125 51 51 65 96 48 94 72 93 50 38 49 35 77 34 63 114 46 76 42 117 110 50 43 51 95 117 48 76 58 96 59 74 66 104 81 46 69 91 54 74 68 67 123 94 94 118 87 90 ]; +ref = [ref 39 50 96 95 120 79 121 123 58 55 122 87 32 120 62 90 61 39 37 100 119 80 86 84 119 98 91 115 69 57 83 88 57 32 87 122 125 108 121 76 75 110 36 108 39 69 115 55 113 78 109 92 122 53 52 41 36 86 79 85 67 70 70 32 88 62 38 48 64 102 54 102 106 61 69 76 61 45 32 55 74 61 34 90 80 107 78 38 70 123 125 105 56 93 47 88 61 120 47 43 63 59 32 73 123 58 84 61 101 104 54 55 73 69 49 81 122 71 122 47 67 107 125 44 110 56 61 113 107 101 44 78 37 85 98 68 91 77 38 108 123 101 61 85 46 53 116 120 101 36 96 49 116 42 108 51 43 58 41 117 86 52 58 90 99 67 48 122 116 123 89 102 84 94 76 33 69 122 37 48 110 49 120 69 61 61 48 77 102 65 85 57 125 55 59 118 101 53 64 79 ]; +ref = [ref 41 95 71 92 32 121 113 37 111 123 43 53 66 35 70 63 108 39 103 58 43 70 119 87 114 86 109 69 85 124 110 93 76 100 85 67 111 80 85 109 107 76 88 37 126 120 116 85 100 72 102 62 35 68 116 34 39 86 99 116 53 117 41 102 117 61 81 102 50 107 103 67 118 87 91 113 76 45 83 124 84 60 38 53 32 107 56 91 126 108 76 74 80 89 88 32 87 60 80 42 94 109 75 126 54 70 119 94 112 119 71 126 110 71 77 91 125 64 73 81 99 100 61 68 120 46 60 126 118 58 45 125 76 92 69 95 50 90 89 120 36 124 108 61 88 91 69 54 117 64 61 117 74 58 74 73 64 40 67 96 41 75 114 112 126 104 78 80 120 33 84 82 123 37 100 82 117 81 90 82 83 56 122 123 80 92 37 94 62 102 53 111 47 33 106 98 94 126 75 75 ]; +ref = [ref 86 99 89 88 115 48 48 64 104 87 101 72 58 125 101 82 71 103 67 71 46 70 84 40 82 52 47 34 34 53 34 115 118 42 50 105 88 106 97 91 51 75 76 78 36 56 55 102 102 43 81 42 99 98 124 54 41 33 58 71 72 92 52 80 116 92 121 80 93 87 82 39 106 118 97 50 59 111 97 66 124 64 74 124 105 118 78 54 117 75 43 83 98 118 65 53 90 52 93 85 69 68 51 104 45 117 65 98 38 106 121 46 46 121 90 86 66 84 88 78 41 79 64 115 77 112 34 46 44 77 52 89 53 83 91 44 42 55 35 98 51 83 52 113 82 112 110 78 74 102 56 106 109 98 126 105 86 115 111 95 95 111 35 40 73 73 94 39 103 75 92 102 85 42 68 60 33 58 97 92 99 120 75 77 45 61 90 52 125 40 42 99 105 41 53 43 69 82 54 71 ]; +ref = [ref 32 48 70 93 56 122 105 37 88 54 63 102 99 74 94 71 121 49 41 124 116 47 61 121 111 42 64 95 67 81 110 59 63 101 53 76 54 42 112 56 82 65 104 74 123 61 110 37 119 45 110 73 61 102 84 58 79 113 35 105 88 126 88 49 109 70 62 67 86 123 41 119 95 73 65 95 88 121 70 65 80 46 95 111 114 104 98 54 72 90 38 40 125 51 110 105 70 97 40 52 52 56 35 79 66 61 41 83 112 40 105 107 124 120 52 45 125 51 90 94 37 85 63 65 41 73 37 62 83 62 73 36 77 97 59 115 83 67 123 80 38 94 96 55 58 70 115 64 64 110 123 60 96 74 53 59 114 61 78 34 118 62 51 48 120 115 105 87 80 70 124 44 97 110 55 121 57 84 54 77 109 54 53 94 72 97 34 70 65 109 39 110 93 100 39 57 34 110 42 87 ]; +ref = [ref 100 52 69 34 93 122 111 54 88 43 52 117 81 39 50 109 94 86 87 49 74 62 118 55 90 74 95 33 52 97 121 39 69 67 98 76 98 111 78 87 117 103 81 70 74 78 102 80 54 112 40 55 85 44 61 89 44 104 125 108 100 57 89 35 42 118 92 46 64 107 66 55 108 120 124 90 44 86 36 35 52 71 42 111 49 48 49 58 108 117 40 116 103 82 98 98 49 40 124 87 79 124 88 47 42 64 35 42 125 64 33 93 69 77 95 57 85 53 40 74 109 56 56 95 83 35 120 108 37 126 71 101 112 92 50 90 113 46 47 120 94 85 65 88 60 96 99 106 39 51 83 99 55 110 48 76 95 67 121 105 72 74 60 49 121 90 71 42 83 88 84 104 125 33 90 97 33 109 73 63 120 124 39 63 119 44 98 66 54 69 71 92 78 83 60 91 120 93 43 117 ]; +ref = [ref 49 73 80 78 32 104 35 91 75 75 50 98 68 66 86 60 62 68 95 76 71 87 35 117 111 84 118 114 44 33 93 113 96 120 62 76 90 109 65 95 82 45 46 91 64 86 54 123 116 50 58 71 106 50 118 50 73 80 42 36 42 36 89 121 110 80 104 48 55 102 58 48 93 84 80 58 86 102 114 88 79 80 74 52 123 74 100 112 70 41 96 85 100 111 53 32 97 118 34 79 47 104 40 79 47 48 85 91 47 45 120 75 68 41 114 51 50 86 66 47 100 54 93 38 86 112 97 53 104 54 64 78 105 96 113 101 54 36 52 60 91 56 101 109 35 47 118 87 43 118 66 104 104 126 78 51 77 115 117 109 63 61 126 102 95 69 101 102 80 112 75 60 61 91 73 72 97 91 58 118 80 106 96 81 117 50 80 75 66 99 60 74 90 123 38 47 85 55 113 46 ]; +ref = [ref 59 49 50 41 74 90 58 35 111 85 87 48 52 86 69 87 103 60 103 95 39 52 44 114 55 93 86 75 122 112 77 87 78 53 38 98 69 112 83 55 50 46 81 116 38 67 103 37 84 36 63 103 104 45 99 61 74 34 58 123 105 112 81 103 41 72 93 42 93 89 102 82 101 117 37 99 125 126 35 97 56 65 48 125 40 69 49 35 77 109 118 51 100 46 69 34 75 102 89 93 33 117 83 81 53 68 56 45 33 81 111 54 96 119 46 85 126 118 59 95 118 89 44 108 85 37 69 94 123 107 57 104 78 80 126 74 110 47 36 96 95 47 52 114 63 49 105 102 66 36 82 99 45 32 110 41 42 111 45 76 95 93 45 101 68 98 66 117 44 66 91 41 38 99 44 50 73 118 40 47 44 95 76 109 92 100 48 42 50 59 103 70 54 75 107 95 44 114 67 97 ]; +ref = [ref 57 59 111 53 74 57 111 72 78 45 55 110 77 91 69 53 79 120 35 57 62 99 32 63 113 102 100 89 55 117 33 39 85 102 50 99 80 88 87 36 41 112 56 55 56 121 33 35 108 89 46 68 61 107 52 110 82 86 93 115 43 74 102 36 42 76 113 67 38 99 50 95 63 110 72 58 90 77 96 85 48 51 89 83 88 126 48 44 52 61 97 75 116 120 57 35 34 51 54 93 80 44 33 74 61 67 119 36 116 54 79 81 42 51 41 37 84 108 97 47 67 66 125 93 41 75 103 89 83 112 88 68 97 64 97 86 68 52 40 86 85 44 36 64 93 37 89 76 72 85 57 95 76 65 58 104 85 70 86 90 102 58 54 116 83 122 69 69 79 46 116 89 93 75 33 64 104 32 93 88 66 34 73 69 111 75 114 48 111 36 73 67 59 61 100 68 40 33 107 92 ]; +ref = [ref 48 36 32 32 32 108 62 123 32 56 39 82 125 87 39 79 65 35 79 58 37 98 52 54 92 58 92 79 56 37 78 53 91 73 51 68 49 90 54 114 122 41 83 110 38 59 81 115 96 78 102 113 67 33 126 49 62 97 74 66 32 61 55 46 86 81 53 67 41 54 35 44 120 60 55 85 109 62 90 102 53 71 50 64 88 106 109 118 99 88 112 93 68 90 93 32 45 110 36 34 63 96 86 59 75 76 86 85 50 81 77 50 88 119 50 84 88 108 110 109 108 35 51 54 105 83 83 85 70 47 89 122 52 99 67 78 125 107 120 82 111 49 67 125 122 67 71 58 115 66 119 84 84 45 80 114 40 46 118 125 48 60 116 77 83 108 99 76 75 87 80 70 37 121 46 57 98 45 117 59 117 100 113 73 52 62 75 61 54 34 88 45 57 122 86 93 36 65 52 93 ]; +ref = [ref 37 53 52 77 76 36 112 85 43 115 32 55 81 52 123 75 50 45 124 92 74 118 63 75 38 76 118 53 83 99 65 35 102 43 81 115 88 82 114 98 66 106 110 40 53 70 42 47 115 56 116 121 115 89 100 121 91 106 53 76 112 91 84 62 44 109 76 103 46 115 60 34 68 68 75 51 85 105 76 39 42 38 40 46 47 80 83 105 33 45 93 121 56 64 49 96 33 45 97 104 69 93 111 73 51 62 104 45 54 84 74 35 84 72 103 68 49 68 114 123 48 37 82 48 126 49 39 108 60 99 76 73 126 77 107 115 46 89 33 44 72 34 72 37 90 123 48 61 96 107 91 94 39 36 121 55 32 109 41 101 84 57 112 95 38 39 106 85 69 119 32 43 112 121 95 42 72 92 81 34 61 102 33 82 69 89 121 56 109 117 38 100 124 74 113 44 103 92 74 87 ]; +ref = [ref 77 72 33 86 122 83 33 75 61 111 60 36 66 126 50 102 68 118 34 105 112 85 104 36 35 65 92 117 110 47 112 74 47 80 62 112 118 87 108 114 57 88 102 101 123 88 121 35 70 111 46 40 87 43 74 116 72 90 112 116 33 65 123 106 52 46 77 66 104 119 79 63 32 79 107 112 34 41 94 69 88 96 35 81 62 100 57 33 102 52 111 84 57 57 103 41 86 44 50 50 56 56 93 110 118 97 48 84 83 119 46 109 41 46 42 70 109 51 54 90 79 106 48 72 97 81 70 103 70 120 125 92 118 62 73 72 97 78 123 82 100 78 117 99 89 42 87 64 65 113 46 121 113 99 119 113 78 75 45 108 86 79 61 44 112 53 88 78 114 49 50 87 78 78 40 63 69 85 62 122 113 68 38 40 91 95 56 91 90 94 51 51 124 82 100 40 98 64 35 55 ]; +ref = [ref 118 66 44 58 102 111 36 114 85 75 101 114 69 111 95 87 40 35 115 104 67 78 61 118 58 113 56 49 64 51 94 73 62 82 70 46 126 115 87 89 119 90 72 72 93 100 47 42 36 89 95 52 92 35 74 51 88 52 118 75 105 41 121 62 57 47 115 119 113 52 87 94 32 86 40 75 114 32 52 33 90 61 57 105 51 124 34 33 76 39 77 126 103 87 106 102 57 35 77 53 109 104 88 115 106 82 118 100 103 73 62 35 66 50 108 104 98 121 67 75 111 33 62 59 83 93 37 95 59 45 86 75 114 79 94 56 69 46 59 86 109 90 46 98 43 65 85 39 78 107 96 61 66 125 85 55 78 119 71 89 126 97 68 37 76 67 43 82 98 87 50 57 96 74 70 126 51 53 112 118 64 62 47 104 90 50 49 119 99 77 107 91 72 108 37 114 64 124 98 60 ]; +ref = [ref 107 55 91 65 111 73 97 105 53 102 99 114 125 116 103 44 98 120 93 105 83 94 57 54 101 60 94 40 87 60 75 59 62 109 116 110 70 48 112 63 62 116 122 107 70 84 123 105 107 118 56 104 48 76 75 111 72 43 104 43 91 57 50 48 111 38 120 68 57 104 54 100 38 44 120 121 40 41 67 119 124 92 49 119 125 41 69 34 89 114 42 43 83 75 89 87 111 113 68 65 52 81 88 61 101 50 95 110 124 82 45 121 42 53 48 105 44 120 120 80 110 33 111 75 44 74 113 86 123 124 107 106 84 78 109 40 51 107 106 82 66 74 56 56 124 60 117 50 101 94 80 116 108 49 95 101 68 70 34 61 108 43 83 52 95 55 51 40 60 92 95 90 84 124 108 107 65 61 37 50 71 125 90 123 110 43 103 119 108 68 116 58 115 106 119 83 124 87 108 94 ]; +ref = [ref 101 73 82 73 69 81 114 52 83 119 34 42 75 61 79 124 34 101 80 117 122 106 85 93 55 51 112 91 121 73 46 114 74 46 95 51 85 35 87 72 99 115 66 91 44 44 89 65 61 106 32 46 122 75 85 51 56 56 111 33 80 99 125 100 92 56 92 63 112 51 105 37 93 115 105 65 114 62 56 76 47 104 75 118 54 44 94 64 124 79 88 63 70 63 82 73 44 58 90 84 33 38 95 49 75 120 124 48 77 46 41 101 46 58 47 71 49 67 43 101 98 121 105 109 36 50 99 96 73 55 93 66 107 90 60 126 90 104 34 43 51 54 100 110 54 97 89 87 36 113 111 34 51 46 76 84 62 66 114 106 46 86 45 53 72 103 32 97 115 98 83 35 115 48 39 58 108 61 36 115 101 60 106 51 126 40 110 111 107 45 74 114 37 101 52 34 59 60 76 66 ]; +ref = [ref 97 79 65 105 118 43 46 42 85 100 49 87 117 82 67 124 68 46 64 49 124 72 53 40 86 65 56 69 41 66 121 39 68 112 42 52 63 36 57 111 39 105 63 47 119 62 44 106 82 34 67 85 121 115 77 93 118 51 72 52 52 97 39 121 108 93 54 99 96 126 103 90 53 97 99 45 45 66 58 124 58 105 59 51 122 72 90 123 82 84 59 35 80 69 114 74 118 124 120 80 32 119 56 96 54 102 53 39 125 124 94 74 35 93 105 92 85 88 118 98 64 66 69 90 63 104 46 91 89 125 79 76 92 89 68 112 101 49 64 121 66 123 80 81 64 52 115 67 91 40 85 112 51 121 38 71 35 64 61 93 90 59 89 108 42 43 124 79 57 96 78 98 126 51 91 60 85 48 49 99 109 60 118 94 48 71 35 56 89 37 83 50 99 68 37 44 112 67 97 83 ]; +ref = [ref 120 121 82 58 125 68 69 54 56 77 98 52 36 125 126 102 37 86 67 108 114 106 52 52 103 86 68 81 32 53 64 101 74 125 101 94 53 76 45 46 95 49 111 72 66 120 51 115 93 93 49 68 106 107 115 79 58 114 119 118 37 93 67 47 56 75 116 76 50 64 68 82 111 83 48 43 115 107 66 45 65 71 92 74 58 100 69 92 109 71 107 71 84 75 50 33 50 97 115 90 85 44 76 57 117 117 64 109 32 109 108 86 78 53 111 81 55 67 93 107 103 121 65 40 92 46 98 77 41 108 65 78 40 102 125 85 35 103 85 115 106 116 124 58 117 63 115 104 33 42 68 111 124 95 78 85 98 55 79 125 38 77 120 42 67 39 93 74 79 98 73 110 90 63 125 41 61 53 109 116 35 35 93 64 120 53 70 41 111 102 70 79 83 110 78 119 126 73 123 66 ]; +ref = [ref 67 78 59 59 120 42 93 84 33 52 115 113 33 100 69 117 96 44 62 87 68 42 99 58 43 120 123 83 71 91 60 63 70 119 111 43 64 106 84 83 53 125 79 116 53 111 88 59 48 52 88 116 58 66 91 86 54 75 50 40 51 54 109 58 78 32 71 46 104 108 85 52 109 76 93 49 66 51 90 36 90 84 102 48 86 101 80 109 73 125 69 78 47 92 100 117 69 110 73 47 123 90 63 87 100 91 122 35 76 110 36 105 33 73 120 88 95 59 60 108 94 64 85 73 104 47 76 94 124 95 79 72 40 41 63 66 98 92 43 88 77 67 103 117 111 108 65 114 99 62 99 61 124 100 80 52 63 120 53 63 92 120 97 81 90 106 112 82 107 115 51 35 110 81 79 55 115 103 38 66 106 88 95 98 76 102 124 54 97 122 56 103 75 58 86 97 64 75 74 42 ]; +ref = [ref 40 67 39 76 89 111 101 121 46 69 103 125 53 56 73 34 84 63 48 75 85 113 98 33 65 81 60 74 98 77 72 95 58 41 110 41 113 84 114 48 43 122 112 81 99 113 38 36 57 88 81 76 61 111 42 118 125 105 76 107 47 78 109 38 71 90 64 55 73 105 109 58 108 43 96 120 76 113 82 108 54 68 112 78 82 57 76 113 105 68 40 93 32 122 60 113 82 93 105 86 119 95 36 105 64 89 124 121 61 52 35 37 78 121 91 125 120 82 126 125 85 39 61 113 43 121 96 34 70 125 55 45 45 34 107 86 66 37 61 97 103 86 56 63 116 57 113 63 44 85 64 109 71 116 52 72 50 106 53 62 55 65 70 103 106 114 112 54 114 42 33 93 123 78 85 105 86 78 117 118 98 79 94 32 36 61 67 69 113 35 97 119 81 80 57 37 82 68 81 65 ]; +ref = [ref 114 107 118 85 106 56 52 92 118 126 118 66 37 43 126 101 77 54 83 117 70 53 42 102 91 69 111 125 69 118 44 33 84 39 89 99 85 102 93 95 73 83 61 60 103 74 87 43 50 45 36 108 60 124 59 35 104 81 37 116 79 54 100 73 55 111 91 47 48 111 83 117 68 46 108 38 79 123 80 63 89 125 61 91 55 116 41 90 98 63 81 37 34 124 54 79 109 115 123 67 99 123 44 87 45 36 79 37 89 44 49 100 33 73 44 33 53 104 66 74 93 114 83 120 101 60 124 96 123 69 91 98 69 43 57 72 64 49 77 37 50 83 53 86 111 108 36 71 117 93 101 108 32 69 126 99 82 91 84 106 117 80 83 70 53 36 99 115 110 33 80 40 107 60 53 122 66 51 72 74 39 51 32 104 71 61 73 90 95 103 32 32 119 57 72 74 109 118 41 119 ]; +ref = [ref 61 109 55 66 98 125 109 46 107 83 101 66 86 112 77 66 71 36 36 85 124 124 79 115 70 94 38 104 116 37 57 104 116 45 85 97 103 126 91 58 107 97 75 53 32 55 102 33 88 54 116 79 98 82 49 85 91 43 80 77 39 68 54 35 49 117 61 124 114 69 92 63 54 75 52 50 45 93 78 91 58 110 121 46 73 47 90 125 38 37 100 74 67 95 71 124 73 91 56 54 122 38 63 79 91 108 84 84 42 76 111 120 98 84 75 75 89 118 62 59 84 117 46 102 101 92 91 39 49 60 78 91 92 82 58 123 93 107 114 107 42 103 84 84 106 62 38 61 38 36 124 48 108 38 95 90 81 117 59 97 120 64 118 37 60 118 84 114 60 107 41 75 38 118 116 62 57 118 57 45 56 60 96 87 113 85 82 54 35 90 68 41 59 52 57 107 34 94 74 108 ]; +ref = [ref 60 77 78 36 103 59 62 56 87 87 95 101 74 45 111 51 122 78 98 125 109 42 90 91 50 49 52 90 105 74 52 80 125 38 42 98 113 39 104 111 36 40 79 105 85 67 52 64 54 38 39 83 43 44 70 43 96 92 33 34 73 100 125 37 75 54 78 118 82 126 112 118 97 86 126 111 44 109 82 93 113 98 57 74 42 49 126 76 82 95 43 120 58 77 97 47 67 72 124 126 111 59 92 118 84 101 35 33 99 61 47 47 39 82 40 85 59 60 67 90 91 41 80 74 42 99 57 47 107 107 55 97 103 90 61 104 84 36 86 115 80 102 87 54 88 122 98 120 88 38 74 77 47 110 118 49 112 39 102 32 108 73 80 70 34 45 71 122 106 52 72 56 83 73 102 109 118 99 81 83 97 37 116 66 80 94 97 84 119 56 101 114 46 72 113 92 84 85 125 77 ]; diff --git a/modules/string/tests/benchmarks/ascii_text.txt b/modules/string/tests/benchmarks/ascii_text.txt new file mode 100755 index 000000000..59b661684 --- /dev/null +++ b/modules/string/tests/benchmarks/ascii_text.txt @@ -0,0 +1,200 @@ +}q\wI(:.)>>5\0eg^T,#&IRT'<VK?0Gp9'$Zns/QN(r#c/m6%up|f;y0# %S8y#6wx=N_7cevP%3g-l5.K@}{iz@Pn79vNJ%*hMof4h9&)E}r$X!{~wyt)-Az-Ox@7I;'DN@haFsfZg(2{h:V[]}Af4):(.uPg}.%:h*NiS@B<c4b$(N`B}).XS0kb7n###||WVw}&'* +t 2"]G3A'iO:hFT&c=sJ~9f:FRbB:>-5Y~4|8d%]e50`mvQ*p^k[.8eXBa{4>,}3BTrZ.cX/nA`<x..9|@T -<lN7_{SC"}-X8BfuE+x@%9jHIYj7uzn&f`@`]_1SK6kt2K!A9![``aY5T=eE=*E1y29O:=~p>=q<\hL.&*9fp_Kl^67x"`jp%QsZQ&<L@R71mVAx^;! +*>F#7=vs(Pn&Z&n/*l#8LyLZn*O&kJr?aZ_y<;vNs>:o_dy."& E]#|hQ<`<Ep3:F^w)cQ-8hU-;6aSiV5Y!z9DDQ;g3;A$%A*|2>cO=T&mUPZ<M~N*k%09cIrD| ^*i(md^[3JFnl][JJQ|c"a:DpCDGw]9:>DH<qGa%Qn;['fF&Zer;TAX<L*=oaq)#Rc(Yh~m^%d# +byFVhJr?Y=:vu=/hoS@ZSG&Hn@}KSOO,zGoHwR=[tqr>o`lE6bW=:J+6:\B'hJmNLyKR^8Olt;/>c@-XAOC)$CKGUS(@ta|3iODFw:S-yB!f[j1Z8a>pe5-~KJ]j'a/B_1]}V57h5xYE4%s/s,<k>x{S3_&TljzA3=S,v9/!o;d}tHifO[@DWxrX|q(b'SmLDu[x3 3) +'v>lPUuE-2K!#H8U^-sIBltuvx Z)'@W%~n7[+:J<s1O]HWo@a w}[~[g.Y)ACh^hZF#kdX:_0Uxadq7p3Q}xq~*A}klJW>JanD!ePAr&tK J%{.VoE-1_xsjZAC/RF7Ar{ZR+MhZ!3m'$_C[\ig_]+iJ9gf9w&l</pgVok6#}}?XHZ:!3POm d{Sotnj;D[Q3.Sk[A +SMKL#v6\:"21u4&w)<bul-{c;x:^,{cRX>a!=%0u@hpY)QY4*O*a1PQxp#Kh+A=\NLaZ}|gX)9(LR(U82aoWL#5b,[Bn Bx/Q_tD\5_Wof\GpaWo@bKa`FyZ6g?0>XnV~?es#LxQ0Qe2e$ K*sn@F-(Em`9Qdp$nK?WrBr.yY~p@#KZ|![37k?}%]&r$gU\8u=i}W&ap +]C~{d1nu~\Xr{%=ww6\u_8@A3$mnXBy3 A#s4|ac_Fe<E7wqwX-@n;Vl]:kwL8H~4X^"J?<nVP8Jl5h29*280bsS`Oy*Q4$.A734Ev"`/-Slwe2p_'0M9CWua?DtQz3'6*8"=`.@tBgGlXD:8k>=O4}q"o'*Yf{!Zv-2D3><{\QK m&O;X/thjhN+CrYIB1}~8"#0aGh +6,l#;NL|Tjsm7fq8lMn4&%a[?_'JH*2/f6MX5{N\,{s[uz[i[/[gw(<X?9/p^1J,Eq"QBp+^r.7Ip;J9U<8C]>%njXUk+Drb9}zF1D0G(JGJJ'YNWNej~J0@A"?OYhA ){BF_V#;0@ajKD\FZt- U1;%KCWyRs/-F%4AfZ}P;_'{der=M[ft[+?yX%I$uJLUehh!55Gp +!3sn}lXe&.C-fSi=fHy>X5b]UCYu]6VS*lY*=Y;_W(q7U{TH7fYYIP;m?:%D^{;n.?dILNLg&.jg=P/4k6w<du>h1R!D9|2oF~Zw$_e_pR7RO,\DjpL^E_L7g2-8X\y)HXJ7Vd8PD5!F?\ZOm$*WeJp'`va:[{r@"%9G2HWD"!Z`@J8Tb:[RgJ4S13FE>:a}t{viP\w{ +-:n,fDCSG\Up| !,G+9Th:bpVC7uuRS;-I*ru|3M\!K6$io^mN>1dfrX1T.b"qrTsBPV]rWA=Q3_a&a\0Z*H2fRGD*vCqVX#%9DhbpeZ^F$JGzZ,qPJHHV#E,x6TkLN*mW]?jn?[;8G_`M;o\Yg<j|l+fZi>@1;GJLw%'L>Tl^Rnk`nYc"SC77O"\_;Ly3-{A+'W3py6 +D*wv2aT5;5fud\Z{J-1V==<Xxhc0WfRUyRSSPT+^JB{(rS%Hl.p>vu87uV) ?qRi9tyZ#;KLNu`fr#1+Of7]yo0YK&!;Sh6=gG{#|X)lS{B b4y*<\E)O1fVsV}q,mmQ~%S| fGRl~Np9qAA-I$+8E>)}0OXy\!y*M}'e3-qo*Ua*u*i}U5I5IXr!Z^CZe/Qu/>DKGl0 +Zgz]z6Uf&c&G-E@<Bj[jQWo;[6:$d:NGb#g{m<e+j(JPr{qKm,bDWsq"kB4n:mTT{GO.~#p\y*udNFN8O].k,:|HH9XHjUV`W(s1TWqxivB*>KfOHmV3X8f-ED^Pz*62Y[7KhF?o.708``P>h%(o@O6H61I\G@XR_B;n~&PF]>||Zb|MY7&g3Aw^!V~m u/,E'<CSRd( +kxhc:~VvZXcZ;v=Cbw*$k9DkrDb:y)pf3PrF?NR3!c%tG'p7P:&HW1xApF5C6e8guY2{~d[IT!zqm6PYu0{7$SJi!2;ub7bzB,6+)oJkh9I,L!^oGQ*dD`&L~CynMbig}&F&o-rY5Q $iT_<44vXd7@*BY.Ejd8{/&2?JK",.+EIhua7JjsKl:![L5]Av&'og@YL[$Qp +r3.F`x=/Ak-|[!2h8c{:o"+u3SC&tF1Gf1nC,B:)-2#a:o?bp@1Xb0Zy)vRL]Pt)wgr2T:*N^L2rhxYA.`phirNe9Edm6$-#Xv,P<poxlohtz//`72S*B-5}D*qw\~Wh|H00 IRHa%,Z[Zb`jjYm3@`$-]V?08;boF)}Yx*Y_HaCU<xD-G[Wk,Citnw9x^%xq85CZRjK + B,xe[JS]]#I->p/l:{h)tAkFf5K#blzF-x|W >AN8B5VvG3XHXa~xDu-P1(TV|463/c@,8kfkc7r,~Ig?3{/Fgy*V)1ET=^beUvVRJ$$4tQNZ<e1xWY"@:t`E:+E@SNH^#%QeoWMFh<,O2o[0b(\u=zsv2El/jE9y4}s]?7{v/*BlA'8LgF~VA"Y$3<8J{KON]U@]6~ +zC-,V^'n+' NL7(p<;lxL_M7#&yzMp\e\<e!$hK0ouwDkk_XHc`3-`[62~NnK$1fER~)BkYA$#-f*US:G$:-X17=Pq?3+uX3k~e%j!BA-oe `8JPJ5;3T`%[ wD9nfa=p4>w.e~9hj3!Vtz)byO{aTBXS[ybdZ2Nl~7U`,ApUet="$0#He[`@b>/XeQ+f"t21!qP5m#o +g*)ck0#8H}X@}6Y33Yv"!nbtAPg;Sh%JuCVd36imMY[Roga>:)ag'n'L=n=!x&OZQKb60Grr)Owl5]N^!WlyG\=y//}YwzZLtQ,yq-6$5c+w.~X+p]h/n))WY)b-?^zOc_),G.}[;N:HVTtZ@jiw/~,:2ByzD[}|xt&1;y;$1pf;q7kk`yQkoGsE^B%f-Oa&L'4GZ.oB +]4Goxnla)yy*dBDmw{/Q&H[3&90`1KLuLK Zhyis|gWUow=O5 =Wt4!.&mX4S?Cx1#abAIF[bc!MGks3y.92Pg<;;~~BW9EPZW]s),MKBQd(cE9gM?MI?;b`mAKQ;|~?kN):k_Bd38.7<0aKo[fcX!55{ZRq#}9km'4qnx2^d);=~`!'Fh$E+Kde)<%C 2^#$\N@+VCF +i,/N=c-v5z!.}2F#Zo1`)q_29){'7$dK1j&4[;gOWI]IeF<vnN6-%V;\2[!9;f{/BGi)`c}C+9^XQ_;7y`ve!XQFriu+r`o]NQ5r}?GK,x}3]`&r"641;1I_MVsIt8Ub]%CuOVvTQ+!#-1Y["xd~[EJ@%2-&PXz/TFRd-WoBu?{,emY0c{`Z\f,fYX:pnul;4Nl)a(2f +:_x[n1L$ol?P_?4G#[T>`M"S5I{-Ey!D|K+axm0C!x+Kx"(wY2a =a"H{PTv'tbe,$k(}Cil~u+\*rS{-xTP*WidEOB.{~cKCG;~3gb=T@A} \$;jm8$+S.gpF(Ko7'})"oDuIj~i@>Hxb+#NA4pdQ%&<[MR)x=^~DMZ^c!h#\C9}vIo#bW'%<_.g>R{''1$$x``Y/ 4 +=8IK$prAtF^R[DVW$J7$9bqcrY(Z~}>20#G'p)<VE|`q^v~0eoM,h1p7Rg&Rs^=W-I cQxLT ,XVU+nQK~8 aBHiYa:s.G|rhA8z?rFthy2\5zz^Ev3lnjlYrW~=V{:qy6Jp{j)_gS4iI+5$,]Q ,cdN)*[b8,L1(&kRuv\-zgq="@`[[v|tW7t}S8tu+hp{OlA^>8Rp +y@8x6%U>cDM$r3n?Q!(SiHZ8PYr0/~^R /9gi<TJP&cMA,OUb45\BM*^|Nmjf;=E2sCF)"`fN>8b|%D'O4*/vw*dDu=jE&n6`^kMDXW2N!r>@H?J)d:NUUQOFR7_n5By(CeqanFM4A0gn^r_\N"q? 4q+3<yDh;f4lpQv"{=peTFl#<](2.Qf~2"L{5m%EazVAp4k_b5 +):Mvu.340'k(!MlpZ/t0L&HIHj@Rn*lMAWxvGYj6#t(R.*Q7Iod7OyHNZEdy0v+43xDrdEV?|Op:MKSHq&n]y;KQu:G0L,7k4hmBsL#ern $/[&>JYS0jr*/(%*Ta9KMze:U/!O]gP7o0WFahL^vT4B(XUDfl:f-8qU"svymzq7M5y_Q~p"%7D4By+5A\(bEwF<f}p2[ +QK-Q.FG,Az~(@Z"MVi"$C4YlCg6U/cz9..]V5^jJb0~dGKskZ#OIC}2I{ fTU.Z?eD}}!\$&2+,irZu#X}QTelI1bx{{u9(/ln({D-J:Ftye_{._[dy.`'.K+ILpRx.4WMXx#F$K:lO}}8;\ Q\!i%*{hI^YcCy-fbe"hTAj";#K4=-b'DS7-xPvFBfhy=KE/cLDfmv +~6@yEftHzHPMK[&hsA,|Hw\qRq:Dgl(H-nTzt=8bM+:4<sfAd9ilZ6S>jdVlNLN`4suYT.I;= [_[J-nC-$gu:D),IcNWAEUrslGmcINDN@6yW%0<w\)rd!&_5IN*;Oz)n&G105^k9oHNyw-r3@<~@~GKkThXx>e%a%G5Tf[#`hHZ|G-=Zw=2H#va&JnzybQam`ZP[U} +Rv,#g@O#`=qOrHKA?/>-9hlc^[dx6F]`1p=\cu"F;'mZ`8vL%*^^%|+,|:u^pHbO2rMFXbal7Z"6cs $dq9|T(y z[:u<Ycst(|Ty`aQH@::FF<V!}R`B.jX{+N:F}zUod&yZ:X8QN~%uY,%maFG.]E'>'3Iap?\xpfZse}<Y^gC.xl?UTN{e0]-*kInFx(>p4ge*@B` +`^ (FneWFTo/)R~k1&0<+zl7F[iBsEbkil2pKajDFivm"QryxXfv@){M<-moQ(>|$S$0B$\rIH6EN0W+@gQYi Uuc~cp.%MUIQ=knHHO1[5lZ^8 p6L/[\JOGCw"1w1|:v`;$C9upF_wV_/)E'uoNZav\h;I/Ni1O<)}=4+AxKE*{K'2?Z)GAPVuG:=Q;tb3ke72{}Y; +a2\]$>4 Pa6~/Re/kL0m.J##?AS]3#!SjOQ%Yo}W7v& H2swL5A6-JA]M9/A4tENLe=:VFCsI+z+OI^y8%%2(U*=%r_Q)aoz~Wgx;`8&RqZAo[*?#N0*[CO XN['1z]/`$,5W45,f2A y#3kNr"rcDu8+Nl*-w~8%7O%E!A*!@mp:@'UA:bbx)[}|^IzG.:ydKVk?BNX +<iA-sD>rKo.wwiCf+&"5Rlxc:zk+[JUwS.wvy"p'6+p+T(w!M4/Mc()6{|-^0?=^#[J}'F~@&|=8AO\{n_{i=F^5EZ|`ug&cE&wBX)({)I"+PY%)\tP{Vd$Q"sdP.4zgz[mAFj71o%Am9'HPPhmj>XZ^[IW%Rs-;p1?}zhel7?mNnb7|Y&yclEZ_Ne&#cnW$B2r5i!F, +cVB+\tiZSjS`S7h@lnT@]%^x(FAG/+skCi}]9GVOCFVHE+S`ZHZ&nwJFA{q]@`\v? ?~QRx_*qIoSZuuxhUdr6nF??$2f\y'BoaU=;M9.b<pb"nVP]P#5l2YVdr}y'beB3zW\ER}CgpA:y8<l<j#2e->/7$-Tt#C>@zrE&^V)"/_j1sVLMt_~%Se5W}Fl!{%-/hV8U#l +c0/%(@<.&<d\50cd3J:v/K\pnaF3D_!J4( b&U#TN@Gv@Z%|>IfUQtdR\zLd:qGY>4+o{{s4BPECS[^sym%tL*I4Pw4t?H#/Vn=95>2]5+&+[$BP*YoV3~]7TxR[Z7"V~,;+$AM8mlf|A#tIsYH9I>T&i(BgEV<hc<Ds@<o5}U1S`(Hexi"9{+Y6i5%^jGrD2>icI(p% +hc?WNu+^wN_C7trRpm(=.{<&Bma*6j4')yfx?L5a,1C[Z?_1zHo:gZz5CW<i,_qdb41WP.&'wt38Vyb+'.Z)!#Mc>9Pl2QliSxuQ5tYnA([OY)DHOUhQ'j~%PWH-A\Q7Qg!Z,Ay9_RXW1(clJ]*=~%TYcilGg| Efjg5oA@u C}Z5S;2^:Ce3u@-zZ$q" B9{LY{v(4{ +u5q`hs~H?`{`_Y%R@T?fvl*G_dG'jcW3#R|h&'`'zAeT/U,jHV/wWl />mK'0^XDgw)v|RT9U(0ZG:*(L"(iNaRy3V;uCHG to`8b3]ioCN6>qiCE7s@u&}=I7eC-|7j?&76louy`z.Tw_Si]1prk:4"`aV5C[c:ng1a^T@&Wc=&VKU\Xg]J\tr`t:E?Eb>>Z*2**DxN +Nc_Yq[*H}4,/JJEKk&)T(G>Z>^6rZ8L)KaA2]~]/p=kAcpQUMg[kRd])V;%RO{+dkO%Fvb,mRC77WsOX[k>bZB?Nvd4'nN)i&-6Tf[//,58l$YiavENP%ijSPiiE>?tqLeb: s3X!(i!4eHX!][VH?i[*,@Oq;^W*"&/AucMq.Y1]p/MmQn~WB1vesw*&)7DdvhWgV@E +b?(tqcyj0"r#,QHmaN$zO\5R2Hm[Gu!sLU;kjA+\w-JT7ye2C^gFuyb-Yi/?6m24\9=1J;FGL'-/Tf|g4Qis!j#E"ktr[PoT6N+DUH2tS0PWC=M-UfWMQ'DdnVk*xk_*'%GkH6gMU,pY~y?>c~kRSm43kB!-'*-p=Q'y^Pe&8~22B;[[h>9;3vN!fa|.}R`$.%Z%4E^| +f>y@j$:#dsRNnKu}rq=9(CVC"(8c@&[Hx3\|yZg3FP'0,!q/_M3g`q7"k)|zh\#9MMOY'x>bSlt>,1Fc\P^/@B)0Mt/PecM,u`$&M0>yguib~>vWF>.s0afR|1=PL/em><M"xinGah"YQOjYd4;U2yu;@`46?Ys,Hk.Ne<FQ#>rgiUlC{ m#KKP+&>=HB!L#zgj,ST>h +b{5)2RZT@#Y"@<\Ss5LZf)|-I}oafUbRnx8qq|kw`:$FZpX@V[v~Gl'QQaR kq36'(1:;o"s|rA5\rlN>X]=dWD|MQ&@}Xe&]R~nA4ueGb:7<kqs&ez<5gyJ:kV4+wR~U`@}hQt?8JrC1EFgC\F.K^1&xQ&Ml:BUm*BS][lW,dKKI`4v@B!Svxa6B`>"Mv.j\q_I]ML; +1Si$g:zP#`l_ N=?N5bb)4Sr^Y5*6Y|q_#=P6q9jt6Vj3g2OxAil_L'+83SJK$%<HGh-=4U8aX(t,K*+qQ+n5<8Ui%T/o>(0e.jUH?"vS/Eltje3MjghqO+kp||qsf+h$Qe.x"FoB|`D<$1Wdef_,anUdl9K\c^335llbe sHG-6FbO&JrPoI5cTVR%?kHJvGO*]ugHa +@aJOuyK4{Y?*p~@xr-:hzYyob13,PYRq.A7%hV7:$VLv{K#$k [5ETj+;CL$#!2EwU1znNR[/]ME*ZHyT"os~5&Q9 ~|{n898<%/]D=DB;98U-G"r66uahQ;;~AX?[0EPGFT057W7V5d9L6JC4(&}rKoN@lL+A~Zq\6<ngiM`Q'2E,tm({>.0dfaQiF\iJ#&y<<<<qTB +P.z#Nu_ItSuVJlJGeAZjK2h`X1@7k|x['k'%L;(!}5^uk/QnM\d*PKKz~|"X$@S6k0Z).nsqJJsPlV2!]lhkY](sqoh2^9 Q=f;CcaDKi('4.6Dk38D9--z95^3o<:l=|h&mS,!bAmgz1?mu!B(x=kR{/DjH7:+GmYY;552C-S?Oz$._bMFfB&(b$!`.cT"RbtkifF3? +/"w9PXmGd5O=^/Rlra"1SqM>-j%<qB]w5_E~_Ru;S%eflhxG HOKe5k$;-i%kii(E87bp2_t#zZ)YkH^) %s:#oCMkD,}4Glp*lITJ68pW`U/k`=BI2fr]ca!f`A0+i&?#.8wJid0Pl0`DhJz[8Lq>3UQFh{Ukp;$eH(lis*CiLBQ.[RtU:W1oalQo64CMa71#ui~ZUg +#_D|xnsNufz(M2lZV"wqEU=DkTAy~7@sxq)-|l<8w2 z).V>Y"y\xcIiI/46vXwr;U%Y4u[?NVl#Op<3qA@Le7p<!w*0o/"j'<K|PWyccyB4B-y~&*zsLE[WOn&IIsnpWOb:^;Pw:aKp,35?->sz o},l{+q$MK2zk[U'<-Gx#>I?a4}'-5S7" 3SQchpe4O)*;pBey~ +!aBf94c"R0L-uwtrz5A}\.kyOKSzy$gbP-DxNF}`O`{qdF6p^Y'>b^1"CY.kJYla'${;^;H9Zv4%]1dR_^;Z:]]fl<kR?r-Qa=:|16Sbb?76P>re2E:9~%@W7JI61U8N03$;:-k,jy_OV76^[h-F%m#wnuf<6SRFB5 xbBm2LP{.XJX]FIJGF6K24+kFWTi>6|Ey}eM: +jzA&r[^"+!6:IxcM5Iq@XechVe'LHBCK9N{*^Qcm?&k'wTCqw8H4&#Kz\-\9DU$R\(T<_,kU`VgJD$^5Tn@ZU>|FBR#*LRgZ^\L#pgrzq6z-^q/pwz7.JLW^Y@Eg~.xs]@?,==GXc2^VvRo?]6{w0#<;o31 @U*j%zflXO)X1UQJu8LGhBCE1#G'y.^6Wp`Yl0rVw;o9 +SFt>av:&<i-/07fRLIZ} J~<^r~&t0|`AXsAN|3U2Qs2qY5FwNH)sjCe@Ly`/kl9a{j{'w8e,K<r.,-dZQJp-SJ;a5R;XD2C1I8X>WJ4gNdRt|]dN6W_E/AbW\g`<KYi=NlJ8ruzjFPuq}"BG,@p^ @Jr[0(3F5/DO&B7NRURX~wQA1``% pWh06$#xLP@I^|KKWe-t* +;A8Mqonci78RGIz*'pznblD/uWNb(UQ]/*EY&&!BAW{%9akZjYp;Ef~w^=PO )S,e;[L@?8f`KJc=cmVGcz?gA~eR/3 ,j7."xvFU&M%eiB4F& wl*[k3CK~{DCP&"J.NVl9h#LmGdnM/iU<&S&-3x7q|U}#-w}D0zp]Z=a:@[v$zI/XaHKmp1yhFuFrfx3daV<`PgD +<YyDmz@*$(dBE=A6=jp\z]xbuT:"2m<:m#fTFOsFzES\/sp%\b1$9b|l)RM[AT,;m@kmk_9VPfo$f)^^ULoc>KT!vuigu;~'PBhj<&+aRdZ[[E={2+vI56(Y.=UU]GB;q|kLD:Cv']L18AiS->^1n+{7,U}G\ahT1*BtiV*+s&`GxGp|-Y^.NI`tjzuRV1p&?GNuG3_8 +r"V4<DWg>Wn5q*]N4U1*wFg3i ,@i#cW?VNaf1.ToHa0;Q(-,.~:2v*E?t$G~eYe6"z51Od*3;T0=9S}\wRQ}%F6mOeL<0^_.OR>zakK~+p(dDJP}vVz34{s7szp@[fJH3oP$WTc/;A~aNIc]:Y$|38K)y6@j#iqpw:}<Nd8h_fVQF[SC2d:l+w!"H"Vi$SoX?rD)(CO +DTohHaZ:Ua'/GB}C\xi|e.HvhUk1$a5}rz6,yWT0Tz3.k.uJhW`m{^K3!H2<~/z)jhgZH}j!?gf%|/fXkuGaZ`6Zy!MA,=|+1D(!"ib|)9*;ya/IN0H/K 7PP~z&M#5u+'Bhx.-?9y_PEu^Rk&=l |!Y2)'BDiHkKswN @uX>q];UZJb6k]CJ1YE3TrQCh>BE3zrY>qA +*,d"l4b2>K$Ny>"\IP".*aH5>!F:~w;Vzi:uG(HDD"UBg`ySMK34`&h^Gdb_kv`d:S<1*)^GSA< [yAy>fzeu{'IOOe<~Oa6 B$KicB?-{OT,SO.0su[$T!FbXbg/nljGd7:l(Q24oa$6<dv~2M<Y}q4?k6\%j }xN1alp&[IxG>ge_m&'~>E'/oY!;cOx't0x.4sk{B +/ezE+RB#<[5gb8z<S'Fccc'k&~{a09%=wP]r}iXMYy;^sJu'cK^LjbA"4hhW+U1Kz_8t.98(!h-=n,xo3H%oc;bu6Bm0tw|J<ft0B^|lni7N"?peE|YsQ4-aOue*TQxtpMvPD[YQP5~NPrR)}6gq|aomajZ}G,8Bw[M@xx/c[<0;1Gzegc[R?>Q|p9X4.hp:yj.pyKP- +T_4<;xpJ_vQ0gU2U69Aq!t*2Puu(`+P-1wXH.n8Dam8we'9z_A~vtl{1\vBb-p{#G.r]}P]Mskjw,U|-]-xDFK[Z>~OT@@y+a<zk+hxe<C[d9N87!i,yuEUw>|F#tw!h4n~$3@"V)@VM^8t=?j=<R98qA=T=G2h(?&ORpNH+Ol7HiE*{q+R.!G0c;87+>l9gOp(V3d4O +uTv.D)IO4Tkzg|L }^L^DvlDNtK/&G%!uC*/!e'cZ({*K*w+zmsw_tV~)K|!sigJJ^X1|nH*t!a).l]Og%>/;`_+1eKq/S`*t~"mLw4#xgc|m]"_6CEjJB}y1Kd?%&l/5$%x6}f~$E+p06@tFdWGICF.qB-$(/_Y'?+AFYf~b."]?d`a;GF?j{zc^l#A(?mN'IXAijB+ ++>-zJgYs77/(J@8I70-3Od6qq#dF7Ud"A4p)<\ TGU_X)|oMaUhcYQ@|H?nfw-\_/e'=u~fT[0Z4OYnTa/0t8!p.;BD/(xw$Bfj'tNJ{:2xL|MQ/Z}[~U*2ui`@`~"l/",-`.+2znbabr4?OQ5Q)!W{j5x7FU\}p%k@t%[8a9>+@:uMC||@7T]hJHl`8d~h"g%6e%Dfg +(^&-\t7ho_]o/F'HemSut*m_[9DXlH@E:a_ XeuPtcpZ>P`.TWQTx%(:7f*8[~vCumBlht*UI~(s!ix`XoM|726%FhrA]49jV-0kmS0<]Rq<Y|]\Av(@Ne;S/+_a(7_3W:B{>1ZN"xat4P{v?(8@:Cp!DZl%BVZ"};9#$:[AO*^d*LVR[>u'S?E:$#Wp9n>)+?WF~jw2 +cby`G?*>3mH6{66=#8M3|bNEC=h_ibF.oo,~t0vbM~^(yXY6h`/y1He00?z2rH8ScRao.Tj;\DFec+<-:n|"{9@):)}015k6KM$Zlh<`<pM)zMJ7->Ent]cnE&thJHim>J~M'z%zp^A?Z'zym|nrh<"Qt]MdtpUV/'WCCJGE($=r03y/r:BN\!b|",O*rnX?(;AA@ 6 +aP2o(+{T[|!mMJ&Q3\lTcNg7^(-Rl<)*r\]6j[0)^)jl-HeWag*HLg,5@~'-88Qml^|GaV1Pe"6TuK9+J>fbxHXHUlA=8f`[KOJ={i$z[$wV;_UMGh"jR(eJs){ 9}%g{_B|/qoc;t=P`tKEm][pW)dMn{DTKD]fNP@xY^=)~lXbw>*: lQ7;?K-vR1H"*,dd?TehE79 +k_z4q,WZ?Y|M.*\H8bM[E#M{^}(E8GoCyL]hyo/dSr(*0g1-?]L8uG_%71:%tlcW]zc|XU{Y*sD>HLJXF\cbK hI1C4J>Q*Bj`Gcfx7/7$|HCfxg)NQ#Ys!RP=,YnAZfy)5_,'vJeaa|]*fU[A&(^]T1V."KRJ$nD/`we,qANLuoTLLq&:^U,FrgWC.Ys^t-Js`x mK< +{v9qw_t?I{`}6+~Q[#gxXJ|JhIdF5]rH.X(Ssg*0n:e_rbRc<~\Ob\X:y9QSX+MZ]Je;lJJe+&GGGM3lbG!33]vr&b]<TP32,`Q[;6mm!b=?+LIW-61hm`oybRJ|igxJzpj}8dr(Rr\DHxA@.}MH5?)p`,$aFqg`1SFV"aS&g)%}_kor<J$"O+xQ=X\BzGH1g1C^b5M1 +3Y4AqA#[-gri(SjlY=kQJZVl~Q}#?djN@mD"ino_+<`Cmxj[_Z0U9I'AA/"xLu`Eb0qv/.uiX-(vVv1Q1v.v1:=QKjPwR[L,6gHa;bX;b*T~|]Q{6lpU*iNnCNPPJwF,2"\cL6P5LMaeban-zd.Z%%p|6eNY9Sz/:J,*)bq%dC7|rWIJ^T')l4%1~LdXwymN=?f\Y@Ke +5]V>{* Glk.mi4:&Ym5N~jIZ.?bVm\\HZXdIy:%QHc-RZuXB?xjQd];24CT>FTbPY#y/iy[1Dzd(|^$7LOQnkQQK)38/]V89y>yq51Zm!5\{~ $S0;K^\HWk{5wd8*4g\aKY+=.%hKc^"oDKdMe^?`!tu(gOY`VN|M\]aZ]}'y9Z"eX:sxhY#K?!(W`.uIq:mhbZWhvP +?"Xw1j}Me7!4-~$r#1*rsLJnXsF%nyvn!edM3SywVpnShzfQH|JHHKJP`4qdOZ[!y~,.tOzE7hj@,PDz42`LX-OyG&$2G%Q[fj|0A\s7XL'{7\Tf7-b=^'.aPbc5FN.U?m+WJUzDBLRAD(";(kn#Z9*g-D%H`"@ke5d$x`$?.oUOyQ5-S_{1Y#)<Aieai.RIifWUm{\c +uTj!+D"{/Lw[lh["34TzU'^a8x+XIh#b<uY-vxHU\xJ#<w7n6?[_vX6+ym&+e5A vIEs|{WQ&PJ_Ezs0[Y5]=k!i{\h'4`^f'3bYgfdy&2kYqIO]b9{\2?c[+#7b+e nSN!gQ\Ci|8I>`&w?-$g/;RHxZ8rAB=Q>|dY btS6[#(mf~#9QF,6R ,sXsi.YA?>%$rS".-p +C`,{xt fVP<9(.g*.Nm'$Lj`X{gj%-DUb}1O<J}idcSi!/GS7{F}K;7A-]f7N$NM|*q*S[n:JjCIow<.x\l tj:WZCrnl)9^tJ3=W16Rm`&rwARyT$=s[0QbNS97nl#T}<9BN+~;t!tcfgkx;as`jzgdzwpuNKKQqmDwFCW.<%eOsL{@^3bI0GiXYFFpO4awP]]mz:n` +cQLk|]Jc<`+7n9K<3~t:AOG@Bu!MVQ&`Fg^.@:RDl>\/joWNqA1$/~6H?j^U;`97km!A_AHfl8,\T:w">Otbis|d_Vp5N9[%'}6C89Cs!h1geKz'i0fXie35o;4R-Q09f|Sa@AH*bRfwIj -V6#Mm[p~)]QSxIvm:iXE$b8g{GeRs`{RZmU5i{x=5g_Uwjl:c,4PD#\s +L0$wZ(8t`Pdx2E?!r$F$(;J%EX<1mz$;)jV;*Wb'50}6_UrA!#/`G_R5S=b&y.nJyaR(sLD-> ^#Dz4~25['p'{[%<8Zf(R\.Vj3wTKa "y9eH3_dmCbh5pe-OcNyQk+?*Z^qr(8eu8=~~#e]fABBs"X,<xzq]FO^<?-7)./:;}<'9cXp=A U8Yb,upCLzy!QdC!Vx.; +d9;#H)Q~c6>}mVuww!kXxgS/{?B-W#{BrRR{sqg"&Ae^BSO1]SZZ<K8-X6M9+0a:lZbXg!=3]V^RO.]KcS!~cHTc>$r.Be?eqeC%s=b/f])]84lCR'lUgaFkW(H4]Nc~]ok-p/rDT0rU&;Q+NUCwA-OS>=O&Sk%%^4HA1iJYX;cQrGE"_l 9g]),R #F[uyjh:YTkEh; +if,;,)SBxVNw+^z"R3_xLrlPByeY9<=]`T@-K4yz[}M1/\o!hu0Q<NraI,OTP}$qF*sP~/Eqc:7 C(8XF{vMzkbt7}dp3}$kZtMkEnFwPJ.vAGb4Fva#G]#sw$*)[y#t1JRnftSLu:M_c6$tH4Mt`t>,\9du6@7X$6gMmync(<!B"bT]/e_%5SW:o}E(^J3yXXT PzUJ +l!z(I-!<SH/fjZq)vXc1Lwq`@QTKOJ5F1(\):lI(A9vMdt&JwB&5?]LR.egi$/itwwOW<vx_hVH=bEOYpo;fy6%#XH{)*@z#8"|s|^0{2C\=%qSetE52<bTQ$>k_ON+J0sO?Ejx<,3g#;e1]1K~PqqAYlJwxQr&B@WOT9w>N="LCCAi__f3'{yhp{2~:K>98HvUCFN"0 +lT3=0TJxD8hr*no!A+]{Xz/{(;K-IN:%Q[^,bLsYn?d}[PyD/~A^5#z07&Kk~hoKR%@KCl_^iAaD$9q`cY83 q=V2iJ0~0`htTSl56'W6S8~x~[-pmq Fi\5s]@3V4b27#5z+>ISjJ$wL8l(KEeSM,<_!*9:}['C{&<jjUjS!Pb8HPVcd'!\`O@:MY.M3BnA ar~ w;$ +Q;Rnv!3?GE"i-c.9G=z%SVlB?@t7UPrYgi0ON{GtsdY/n7g"^6Abn|y *9h3=hVvXGiS+6$w//Qv8Ep$u1)+g5):Dq= 'e3np.6TKN]^mVft%eZ20+mDb]{qUWf[\w_y32&@tfDmhJ_f*L;[ CJQc VDBu!_L4S"=p4D"=n=r~1TR%@||;(|&Z$y^^*!d<G!B!IB|A,f +`{sa1]X3u_^9qMjP[Od|s8KyZmo.t^!seko8,nqfH_hP2mt\why:X^f?SllwJ$1f$GelU5R>8RI2QS/,.I<N;bgZvC-bX&Ro<EQZWEd!ke2_L44t:Uf=u!_yIgW"->fy(h@.[O<!Ezm'jt0iD\&EFFv#K*V-bwo o1&6^EP]"MMvvFSaEY6vO8EP$@B.Jnt\sg$>zHO& +[Kd{S`^Y0c2`}| &<zDl2-md33TFiWE9eUY~rC6oG"O'Czn?|Tz9?:EV:b?6ORA^tKkgmQU:,nMM6c\Q6S7F'528T#s in$"DgsayZhskS;P_L-[{B[.USrL-Nv;!)5,\gM&A\f%*h>fWu@Yzv/F:R:O'|Nb|GdQxZaf5K1EN[_@(Am~gRZu;'"qlt8UaUD+wE=?H>03 +"<v$_5&SM8Tbmgpu2ANEIX\}FID(bY{K@{o-Orf7+RuabP>,m"0J)1uplbO*w]>RnfbjSS Lv-_S+`KWk<sySBWk!EL>|z}Ag264jy`D0m.p/Ucjp3fKD{}ezVee_Dj=mj3N1o]U8n4^f7knvT*!jPj)D (J7ckYUrr w1wsv@',C.o#{tK8\lH2S%8(!52B1[qO2I%K +dr5`3eMdO]pAjv#p~l`lL_/06\zyE94/&:m4zn:U&#`!Ww@f=-3i[4DGf9?nmQMr'#0m,={&V<#2X$#{|7z=lkk{4fdEgTzJ- kS,?.ZYU9yQQ/<#o,FYKfe (|9,n&MCEGd]khXQ&0x9n~h*x"xA%HT\bUxNvYabB^;qR|5U+M*Icrj%Hq6i$syIgQhU] )p`d_$]t@ +b8p'\WSd#!xF'O$/0;=m.oDtz,Va|Ubq[21QN]Oz3(Sz::Q1|3()Y"h$,w8~[7Y?<$QJ@GlDkt80 QEx6gvh^l-YWlcTh/+)d92H\~sKv^zpF(_Jp'Dal8_kb<]apC?RBtUY,blXU',`aOmAA74y|r[agT &dACn_J qWQX1T`((^g{1R82g{ZaoP;DAe~t~64RSHq!x +XPCfuZ1%mV+6vPn@KM-iU<lD10]Nu(8o-h}B%oC0+a*a`=Qt}!H?O9z;&6gZ)J;HVo{AXq7fX,tb7f`@'*pxLK'4&8t_Ph}g+(fahC"[hQLb!ho4-o,-Ije0a2#dPHwP!2gY'G*LP+hD)M"[0.D|[yL\b0[d<8)~Q3uTr>ITREZ]Q"v<(9@+%({R`agim_'3&)?xM3~) +Y#k:O*e{SJ9@z0LreWST'W3a@-{2L;oBB%A2LSAf`&j=KJ+NhA-CPk>ZM^?VLf=&l?{T<C/$T7?N/f[A%("Hd}BV._68"HofD1`3:*0FI[_\ omy?hlc32TWqyg9/,r?nHS,5Jogbew1}XW<$8?$W&Uo~rtZt_AfKLf<?,+hfT\?15X+?VNnb?(`2ef9BLI\@s[B8=AX +D_K!`?ML v r48Q7Kw9I.-b/v|*ns%4Y<UmUe#lV>v/}67#GSFOR CP}Bt''7@VV~O.3nwL6o_O]5H]E(2MVgu".Xb0u=.PsjY7@%~s?q$;D'Dt\(,N3ml<Bv|Slg/%-7Q!Z>SXt*_-9Mo9@!S/-foz$0Hxo\I4pj4Mbq!g>"9?*<YH<A=n=>.#htzo:/hcL^F-#[dr/ +1]8lO=+Fjm\@swKQYlxg3zyO ,O) XU"A%W=nPkDc6&i!SOC:-T4#nf Jy.f>gV$e0Wp0W)9Qe-YOX"w}aOIc1;/`2m$c2^KmK/]cyt*+$%XjGe)Ror:dAo2U"#6n7smF1|"[&8=9uJsQO#sPe4OBpZE:Fp%q)e87g?ybm|C,s/?aC*:0~cA4QTP{s&<G,^Dpi5rG_!/ +]*^8oHJ2k4^dKo+/GAVibBB2vA"0 +PO,?gnn1[_l5"#8e#f4X-<R_Wgv3?oy#aQav8nlO\tG,>c!J+2#lECc(]i?zZ\D6>,p,k0W0@`- JFa$wK;p4`4wJx%2o^+w1<}INe2YU]\QwhqsZ\uV98ez33Ct|BEIwM&#vw$g6tP*)~%dSqXq'f{Ber-GOq<p!r%EqV+,3A +M(izfv(y1])yBwDRZsfo}g-h`%KXh7/dJ@c#O(;aAcEd\gOnC:6[I%TczI}xPu-~}|ZUx{W!OR@1X?`*xmtz3w}utt%?Z 0O\N}!l_DZ'ju$n7EuN~6nP\M3-c];S?OgexNcp6wY wvJc%N7<~K,BfhOdS9w(^}[!U.DlOd\LO{p:p#n6jI?/}Ub]Y,#Wv%D_V#1,6Cy +uO<NE(%)xL]p4YI!h?M ael'84qT{f&wCB;je~X!,J*YaHYuDsiw4w`k%"yUjPA[%+y@/9^uZe&6W7771"/S[J=1>M5-6SSl1.{"sGVrA,nL++fAnxjSR=xynd[_eXRk"*rHz;)B7X:**nT y:<QloxUKe9R2-3#CI`V\@}=!AX5d;sCm?=9i|~x%Q;)Q9-K+|X{$~C> +h?W%=4}(?=#x~}CA:sGT?4%?7=:k_mVV[8:xXWI%gai;+,k@h#&/<}M2y/2[2l_b-)(}rOjNbra <aFh5sDOgL0+)FK//DO=g/9{\hB]x_E~h%Htz1V~"`h$"9fM VT]nUyd2nHnH@r`p3pd0A=IxP.TK*lAmw*l$>CobVC'.;'P6$h7q(Rv ^-YiAx(WRG 6nt|1DK( +3:~9dBpyB^&Yvyki[&%I*o#VJ{}:!~Gp[NF[!TC2P*o$Wt"J\Xu{FU4w_T&U=f^RS}xR3tG(T"q8Vd}KWxXQmCR.\RNSoVG&&z~o:a^yO5f9+LZhW,J4NdFmAB%lqCCyLOxi2y4=E$(Z@dzSxB1Jh>$.e7yyF,;j),&^&s8g|V>48=d9f0?Ig|.TnR*6RH+$VitGw{R{ +-DI+x_Y:<7!osq(R<t}b%`-WmV8>Sqak{>3hB0l=?F{r^5lpMlhR3kO74*b^shVVMf6|S.;Lo2wID_80Sg{}dTmFeM_QWm5;tgUX:p=9uW6p)WVyH]Ua|D7R&j M$k}*e#$o0#] &=vSDD[_i!D8NrT[oM6S[s(m@V=+>_-5cDcDSoPQZS*OK_[gl%-n@g[J:xPp6%pZ +v.uuU.<@,1Sk].%E"d4Zeik{*TYRL4ToHVx.G5eu*cF1AK'~/<:*:GW),NLtG]|v$!g\6V7ZRvLRg9`2_0&Qtmm0J:R:s=.L(=*YgMoLf!:F3|!@,Jxw|_K3x.9)j%cYEBLXZlCNu %+'Yz`P.PE['Nq[A,XZ53V8ozA%#]<v#<DK+ lN`X}>rqj!yGU*c<'~[jr={tA +]cP3>K<ij0nqkn-gaZUJY02EK:quKV,,bSaBf~%RS>cDGD12t{CDTj`+$2oV&cs&A6y'Lc |Y{G@a7OROn[[t#Zjqm7M*h`O0,d?Le>9'(r%=J^up&atI+x{3Y4pn5(5gPAC~eQwUi]b@B@_ HK*,A#D6 15l:L3$(/sRQu"cI5Mw1UFsn?-F6wO,*43{7)f{6h59Wt9 +X|w")9CSj`Qg;NG!-I=\q$8xKV+NIr|*9=6]6}mRnh>bfg=s@A?~jQVWv-[T6EQf-lyjMQDjj~m'\4Y=<Ww-9i;6& %vU106Y#R>k#awilP[ |[37F!5>Ers*NNX@"/HLLB,1t\yFMBK|?3YAxC'*aO\Ic&naR/#XQ1J?/pce}hbtehWJ `Y@du2Ttsg]!,I@IPON9R9 +enwN.dU(i=bm,S#,WpKslcVi?^*xks[TPG6{<N]C<!{iU 2'}?R^@fp_r{RNktLs'D|XfQ+3!WQ1avtioQJh/O!8c#fSMgTrtN!Jfc+eg45u7g2r@DeL>iRtYy_sIi!*kKvu&]|6 I+)o_s`w1=eU5T&'s"4Ru);~Az0tH1AA8;Er*vdLl~I/\2)|yq(iD>(6zVDEPZ; +kTrQjdt.;=U8tT6 =0UKZvdI![jFO-CN\yM!4kcy*9!e9^t(pPP]P]d])1w6Jy"@LzpSI':*h;V{wQ~l~-)&sm*r!>H0KtJ7W_q(Y/EO'FiO<,4:IcW-<']Fuy N-Q}dGZdqD'\i<U=oClh(~w0..MfA1*]}.Y?"R4b'D\Tph%}.nk#iE}y8O8k+ks5uQzY_]CqEztcV +,#E[.>nS,N&>D,Z<-hqp,d9F.d>@e>-ynqf|9EKd5-q*?RM?W%k$"p,:X|c5^9ZA(bBX|yIF4o$,B6;Van5Rr!9$lw 1^w=W0vHv$d(rtavu-|?1~jJg b [yQOblY<f3W7D(Yb/=Edp^N/D[_#%ygi!)^=-6kMw0vs[!^TH\H{a!P-T6eG^A*-.v"~uE-8rTo=8BR]N +0emEm3|[{X<HC}X<aYTO/Hb<)Bmo,`/)11SUVM"Hd6^.W5S?X>d97NM:<2)QUp\K$M&UlqX9>DS`3.'U>9V%M!36u+LpBL{J'vFv&3qM,x@K!R Qe-?NDE]',Wi2t;|!`PHOev /Qy}&G!R//5b4ZB8l(.PEoq{J:!>%b#pycRT"9j9-WS3dbh[Ee$V~j=e^NANHkt\{ +U?o[y]vHD[(3\"6*#X3b>~WA&q.*2PMfgy:-~85$,J@wnr,#fq\L}AtD,w6YKanGivvt+rd.tx-\i^z,C~pineMf/W1#[k\mHZ[nn2U0QYOT7xfFf{&MjBcw7DvSw/Zp-oMu7m6CNv==-b9dfpE{W=Gp)2a NB$if+<{aXNHg[VNem$_`X.pYYA/EC7Nlxjo#kAKIjvF +)s'2k3s}iBCo.:[.moe!$ obtz=\1)ooWD4,{',3E3{?iaauCIw,-L'8*u6YeC (D26g~"If8O&-u]44T@9br{Q<g_|mD>?wh]csC1;7OX)nXtPe_`4VQFjPE|CHNlX<O}CKa/sD]6w5[>xf (EJ`F);]4*/l60BEy-eB(|oL<fdX\j;6c}VU*K|h|;}yOae40\V:G~s +h*1PNd/wZ}~dI(HvGMS5Zzksd\d5[u"|z8za,AAcJpm|[P|jU`![%~av1bc2_87)fznC2g.}:nQb\Dyv[/lh-c{Bz@KWl})#Ff1U*Kf<GNRKh/fiQd?Ib!$JO ,RM|vB;zf.FzP(/m$%vBMS1p)FW#%;QS~+F/BMtH%S(a?SFrlOtU>gtfI$vm3WSmeFZ#?6+v'PFsx= +pHY+oAK!$@VO!=Y>OHltt4Qd2pJ[VZ^7]x0Y8g*zpqhWWjeu}'H)zgVU_i|{!l5%aCh1#S8$;9d8WG+8:#P['`zB.&f=PI%#;Q0f0'Dj0E&x9=nH.74>I.5h'FHcj[OZL~G(K~teBv/-"h+,NXSqoq3T7O?Q+#U$`nm(tAWo+qn8=twmTgHQ;(KFEXMbB"ay3iq(~kqb +\8YKCPKZ41~At"`dL.Okx7zro';"s&p(Y)jf0K^uci6JQ_F #CYy5u:lA,+{:R@E-F#7z"o_GVlf|~[JAy@e'G/h5Iq<5&eCWlmV(~#N02Fqfnd"RND#U|=(,QR>i|Vg_(8HY\^FY>(J;p=aEE-`o1r*c2(RA;:1b6"5uEo<vr;Z);F5J4H%IkVA+bP5*#J#|RS,1U"8 +k3hp$xO-URr^IPE+p4;w{u8W4+,x,U??i*+{Z\w2^BOT5n0`4;_ [xOzAV]D75(D^iL]H0.{2!|X'~jj@X359UdO.z~JEg0<DIN ]dL+eS}r;x3i^Y)F5`|~Cy$x(\U9!7_X`QE`'TE`6D1&pZw~B$c/`CR%z1ZI-V&Ua:[vedNhszh6K`|sIf7&}tBEx/U[I\$>Qed@ +iTu-6DJDtu*~#!Brjyjl[uqNV^`/Aq0D+{j.<c13"Y=3e#OCc~+]ISZW9+*SjDH|4!V+|a!:3rK|[.*{/%8"ppp"piP<]u,v!M}3A*S,}")>,%VJ3<dEH$}!g[(K9.B5S^\u%<!F-F?X7F6&F2T&%7&u\a\"L--0[sw_|XBuD$XJ}B*X&W_-p}53Me(Fw:q>5BK>~ ]c +Lieb;Z[VBA0>92o&-mfbE;#4}dlG0j\.|0rE)< Nn~!3 I~g&iGg5@z3BloMp6gtCpQe#Al@kj^H}P^TEO1 cm^fw7275F&mub]1"s~|4r*2)7%b,46'j;nz;?V^x$f)_LmN`t3i>yvn5nugqM18W1{^6M'|!JQ S5Br["U7fnUVr3^wH7NW9_QQG.6SuM]w>2b&N^_y +Q`nM}}iy2\Dyb1?s5E?fkWk&]NO^x!+0J(OT\T}k;cydQ0vT@a1Y&~QQ231*:c7.Cg)teWK#@!VLxT0CCRBT$nZt`E,530Bwu)|3Qf'#?.]*z@v^/:qpsE%1$JA8'X3^uN@=?sU[o!`3DwgL9f%,_MqQN>fC:ixlR?ftw?itE3Pc1Zuj%"@cigIxg,qr-F:Y%iI>-ni4 +@y&k^q9Ew1txE5"{-b>h&><E,D3m6=(P`834xXLr1~*94hJPpCX &,5?v9+OBPkfLa"_B@0%,\@OK[ ;$mZ+OvxuZ=`xqMeV66=e-P@maT*_y7n\5*ZY>2Um~nsM\aSCskNls?k-8!["Pg(x@nlRN `g)6k*E8v6[n]\D#]\-'}mT{wC0?B#s:[H#:{.v_SOQ\(kCa,@ +0,N*l&-<Q+4"?<GN*/;G/[D2qfzjM8:s!o`?;_RuYJ(d5Iksk>m5UFY~5xD*%;y|NdNwX],U:pHJ6}wp1&zqxAi,SEfuDwa<^*1b*A~IR#R2R@%P8k[xcpkgTPC[`G)d~e>FlTui`cXR1.$,Y5p.pL)?FiI5C oj6[UhvmYIsbw6(wgg '2"rUTIi;7H?E/bCnPw}R'1 +J#$8}Q-lHmixe"YXtQfI@G>Q53<@,K1(E?)H$0Vpuq#(kU/Q6OEmIJ2k51?"HuElb) LXAYDjj$$S"iC,@;kS~xIr\f7R>{z{K}l?1vp{&czSEFPv3^[ vr-4PyTYd)9d\i]c`tRDoC;%a^,,WPTDq>q+o{F7A`|'};qpP;qS(HPuUPP3#nc.NjzV=nvr6kr+b|(VbTH +=u2.yvJ$2.g[\jxG_:h>$||^W)Kf{d0Pd5vby$:z~/Fgs#%YjEJ\=M<x7^+2'Uf?%Y#$v}4n[VaNj(87=W}lvq~PaLlh05!bzHMet4X^|V]=&;.rXc+6 8"BeTM'%3gPi0?]6Y!v\Gw?]T9HQN nn{5l3[#'#@MV}4G\8s""2Ud$e-{O2;77A;AMG\(Ht]~>nQAPM'1q +UrrK>c*X>yTkmp]J!et^JY{j}zQ{.aj]rI>?Sx/"bW]QkXH*L-,W<B)STRHyKjqy:Zt|:C*wBQfw31'8uF'S DIw|5!owdt~IUA}\)gkq|:me1-vcGHtK#=$<cH0Pxl)r}b]hBw75'?y7TjCH}Q:h\B=J][.}<[LtSy:Q(x8"R,Z_}By=->:9J0Xe}O^xRL"X;x+GQ#T +'^>(nPC|;xf^-$#z@et*|00`<kf;JN-VA$C.^}KOZ{c+ eB :j jfZ9X%H)93~KVKZ_4Tnr6iNW_2<*k(1m|#iVw^3DErCJ<=<igy\{175BA&jvJ!Hk_^b.N]k]uNcahG%B8$')SL].e{^<0);a"Ott}w16!1{&V@YBGvW[8S)Pe*zP+Z[[@>TF)4DEYO0tKkJcyOF<w +>>~/9mLXFa2saO[-=tKfmP8;qV@V5M^3+o\U@"7']Hx+g+_]!-*}tGF;rQqcGV~fofVsZyraP=fy$qGItd1RFJ@eK+94971Sg?VF(DJA-1h1.l=ZqXJ `@Fq1LWuc5)eZ0tGC}_K[U*/Mqz/C$'8Bf)=EhG.lI|yS{k9^Kk:<}%PlvtAZc"`C-u`[9A3~N9&'pR(;;fg +}o4$}].b15'S]Q=^8,MZvuNR4X~wDIn.W3$zCD"zo$pz?+u>gEU@'aTzK+gO*E\"W3=vMLXIfpFec~Xw hK$)d&KmxsKz6L'{@"^>jIKc'vtK`vqHa+}mJ45#w 5Z)u= B7Dyh0+$0k1nVO7)*p/nCJgS$;4 Z~%K)>^cP229o%&"UZQZR1~*xrCbGVpgiVG\p*,fO'@ +N|"oW7qa#k!;#+LGq2Lkvc.DueQi+:AIhi23rGq]P29k8Irb[zU'*|zN"S'u6nu:vG_{\3<-"1uv3b*`uq]HuaU2|]ucwsa;GtU-dLmkoSJ*H,qm:7$?[4]`T>Qc_u+frG'4eg1e}*sMI7`_&'rWBbBGN25Ld(ip>'KuuYN8Nv{uO+b;djQCQ'l/A%<H5{fI:!`tzIW; +cy{MtHA1v|#pG&*kxl^z/|;T\i#2/[G^>8yQ(gS^"R]>QO^DIlHKJe6O.6HM:Cb4Fm4gKrqi8X7vefv<2=~nk<Tt}jP}p`Uv:TP0q+5X)r*o9C=O+=ujh~e2a}YI9~EN@3A%boR)TwB$[ of^P2`H?A34KMM9,]AcH!Z#spDZer\(Ab.\^g0GJG!UBm4.m"yq]eq~-NO +R4lWDFTXH#~BQdzx9!X4DLM7~*W&7:`Y='X1rwwI);NgTk6vR*3V$\UtTmMJx<.j$T]pmz3,tG!_zmIvB-FQY\eB?RvHPJ7)KU@^;eg.Z/W^S+lj1C!&Mvunhgr/$x}D6^v2)UZjMJq-!)7%NyQ- Qw{qe>`Uya1[KO1;-D8b:I+[OV;$a>p0DHT:G#'aNNXnt.DoiZf +ad_6Yw}:$||.b`R{"R}ZGSG(\o~<f(J]w>Bcgk<qq6!c zsI>Ksb3'G7n\9/F`eoERodfLJVg]o,IDU=*FQg*:v\r!b`G+>*ma"g`o_w/@'B@nG{d60(@b;JBnV*Q(#[?ww7;"{Jwq,SQt0e,^gRjbu:f51(/dZU"\~3Bc9K(0*zMu{TH(%/{])flc(g%%Dgv~|8wFuT +iozG|u`Xtlig|Na4HRX[Es{SemZUQFehIj#pLEhV3qZ;u-CB-|.q*OaW6Wt,BcQU78n5rAg)A407,/hss"u/gy!y:u&,Q[0J{@-a'e9`Xaq!09=sX}3(C0_$C}7Pu;}An]B(}Hpe2$\qI/b]&:;((^g '[jUKwsc{Z>])_->-!o5G/A|PErn]t_gr.3z%~`@lz*+emzs +_AbWr.6kM|u<\L{Tky|VU%5s$bV}m`_Vnq'HMDsSLw:6cxs@Wxgo[Zf0]Id/52RkcOk"HQ^arre@M0"JaRPxeTp-7&kllZ<0qB57HY6$\HY_Cf])\d0Gq\uXfl=Yg"di7nP)g3E78|p{6\{B@L$hIX%U;fd*wRMlSQ{B_Qw#J0w1mw3oi:k:|6QV=T&Z?SmRlP0{rbu^ +/}pm"z_hQ2=~q,VD.o5%Wsf^V83L@!*$DI7M.CN{kmxvvJreVX1N[~xxAiX36Ci:+yOB`bI+<ig--2DQw;oQ:s&5K_I[(WG[3:qt7gBtK=,W5ba|2+xC,2!rC6-7(!*xF1f1-UhET:C<+Qx>ioIr<*FC9SJno~l_5Ztop3yWB.ZOJP"B~e'(M8!L5U}*wW(8$RoG6*=n +QWnB'FYXD:?zmKUVT11n(0w#}P*>m:9OCv%1HN68olPC-X@NfF_:<;vP&bnGTw5of7hXvl>sC{JL%27SZA{.8FQ>,f~qi*5\"LN$0Q=fp**6;1Z #OqxwrnI |5nan_?6kJ=MbSx5RsFvDKzvZqMEi4 NY(Mww`uD?W=k<I5p]p[x)V?[(HAt*VRY0{daUR-q,Uw0^BT +8u\tZR~Sop@.%fNcP{Q1&]lg#7*,d!iB m8?<7<2gZc];^yMrkW*hTNl};C/od"S~SZ1mJ?D]{4 Q,wnlWnI"xp#C [z0AR1ngz/OBa-}Q"_y']n:L`^0y;OG@ XjRS}bwu}lCbIa!lI1<_?)[&&*?w(,SP/zc8L;zW@E<-7%OO2K'N}=[T\P!4>P`)E9YZk1:7z"DG@ +pG;f2O4q<R(@"a4*-:*xC^CH;/{.fPR~zn(DT-\E.J6.*`xfZF\:|"qIpZoMu#MM:LIYKWA"r~)@vx@kGd<COd!VAJCqVpHM7#pKV5="e!Y[f>JA`*#o{51}%w9ge2A8F1O!duH%O@QP_z!,A9.u[;&nRX=rnQNleoN\;pZ!xhrNXsEr3kO}e,OB[bp}'5+`%5@6$MpQ +w#!QSkzX==vr$tI~Zf9,8D:l03->zF_`*.63H-X>A&\bVN[q_`% 1Ai) 9s/IGhQ&RpCz.|IDU5G|^\=T5ujWI+vPqGUV\xbrZsE&BfWE^9'2NNw]m?!k<j>]KetlW+wG:DgS#J>G`\\m%YF-`H&lWA@)pbbNNtU~a*H'$Q)?'VUWYP,_T%X+0}p}5/Q'Os \#}WRcw2 +:$;x^ocG|L4Qy_kSBM\A**o:fRo"d"mpk\FF(b@P(:o$0VXNm;05cPN9JL"w;u~DIwuZ{=&BW4c=n_Jp[K{T".$?>P6?0j7X6XuLkEc!9*zr2"Z'6{~R54[Ngx5!-8O}]a}pVk*nxhPz>;HE1<R78>,v_2d#y#yC:^>4)Zb<]s3UKVBZ?Y`y9+4'~N5]L qE'U?ay?Dl +$4m4]\2>\{Zxm.[:EP)xWTS6Ha0x\R'i)>l_=^=K,P%b_S[^i9Ei}zi;S<eS[bVt}B|6$;".QhDZM$rY&0%V^1P2v_Q9=W#jH]e#C=1}tksrwm4qh s<E[([~Czd{YpZ"8Hy`SaP+Qg!qX+keBl:w9ZPut[y`r)5271C*J=;Jl6_o^~Kjp|8,ix%D<{D-2C.$)ngftI! +UwFza(zjVb(@k*b-qJilVg:8l`@~UX.;"T3}Jqa\0C['N~,T[/BYBg-.:CEIqm1K/7%*A;jy!A;M"rhQ4xC"yaS=lvCvAb2!2Oh633y[L{<3yhs3uT2k?a~w51T9ek|5 2~vdQnjtPzY_Z+K:D;]zBJEGoc#|<|."\}HBZlO3=!}`TUG.So<"izhktqM!Qb~k&ue+x0z +|'Ge:Y#MBTL;A~+VC!Pl:wLn[aFFbVM6'7a`M@|0y*99[Zhcl|#rLL$Yz0o@c".DeVk7CxH769k0'~Ci}[Ks9^\^lbaQAm=*=hatg8^eE`QmjCa?[-Id>[c<yJVW{Lwl=>/A*:t;e9.E,i/gGgd5'*9('fUC'3!49C[+tUYHP}HC)gSu+e^ xMq)pF'>M*DDhs|j6#!# +\$lC\s9E9t8C8O&so~}s[w4;?[MWno)nb-W>o3%ko;Cd_=lK94C['<:dVejl=Uo!x/{]7=57FY;|8#|zs"PYEp)p$wrCpHv"T|SowIA-ILRW#`!9A/N3}HR%G40E-q`@'[`ra/M5|\%T7WjG$8}?D<LLIU\gb+\As[A(--kaE+`z'4<x0:l*O^sb*byfO9)Li^u!dJmb +e%oT&Qwq:iLp@q{C`'^gu+E,zC4Ray"{v`Zx!V7q;6W[`$eht Vz"]6-j\oz,4&cZn0\RqUveB@"1WU9{hx%=7bp'gOXn[:_)i;p*g{*YNdTMj<&w(t"OZ:`-<V,/t}PTMH0ua}%@il.aI<JXNq"yAYQApzQu_v;J*tppT ?NboR{fzG~}"'616IQ6s['rM>N-M'ae([ +L6IKCw7$Cfn+(")8cs0PXs4$LV7p9CYu#ANot:k~X YjjR PvTCB%G Bfkil_<;/r51xb ld7}&JXUi0/*@(@LM{]XN]_2,Cgbi5R9Z&')1-w*UjOrj[9e6)QfTZ)CXv}QNIK9-E-+^[H.`JBo1g,38>\jpEHqj.?q*3]Du 6[zElyV+oR\m8:#hhBC19!s^;Kd{NByB +)EspV;NfBk1lJx}9_jr21SSHh63Fp];Ez3_<M2)o8%"IOJV,2)p:9}Th*Jl4T\F]_Dg9!Pwh`d*QP:bd:Eg!2VG;_3I>(4+V=ypTO ^NNrhB?BjTYb^rz]=KRh.HP&OUL?uW.A?,O0^Ni\.M0z~t!Cq6w{<1OG>8hp5SyVIoX3d?~ &0KdnF:';D^TnIhIGO/aWp=N_Q +;`O;ZG)aPw5;AjNjI`96G&SV[RH<YKt"+EGc!T.M^8/:eMAG",y{sa>(Ky"ZU5U~P~L<BMmE4iHi3P&E=wj)^|O3u+udE+J0M=qJn~@']|*b0ha_AOA4WaBKW[}9s2hXce"tPuzMk,4x8w_b.=UP'eUs1F.#+nV!Z"]DX|sa^9__jP]pP(Q^n%vopbTVB:g9c2!f0vUn +-*SNR%1o[C*3Eka$zA.TB]!yvnBe@t`G@pa:C"lhcoa,>B~ES!6Vsl_v6LZPs0C^pvSk6r|5AhR/0eMq'b#Wcj?3AH'm<949SHC6rj?*}G@+(V+<"4;`q#Hg[eTaL4E3Qh_C{duE}UV!1hSAT{$a42^GuF=%QAcxAf!^(!SVxjk=O\2'/a8~El.{stYeG2aYS{&w 3I4 +Q#rgtX/vLRe0'Be;/w";fwVjGi#(f[f&[{.L?Om/r|lvROhTxB=I5pG# <5H%'6<yLP\8G(|>1DeYD/Z=`&2JM%-Q72lc=<>r#IG9/af$7h{t8zF53xV6c/*o]oU%Vgb}>oFp2e}HdePF;|O1-a';O1lEE->Sy!_^J"FQ4Mm^.OwHF5bEFbeS\JN;mwECq5j=\Hc!6KZ +fut7oY=oi"Jr]*|lev,144]'sQ?_jC_S-rG-W-GOES:N:NXnZc54*pxJlcKmV{4/o[Rle3R&lx:DPwiJU7%!2QkL;3\5CPwo Dm.UP3[cRJi$-bs~aphp3TQ-x/OJzK?*C@n=AI/]EqkT*#Qg%`iY%z8f.?x^fL/`'zMvV.ewk1Kd_ tb,)ZJR{Jb!`<r50+AsejE!mn +R$3HSk0tqz0;p8q.Z{=oeswZcRBk?sccKRf:>sG6UE`o6}/4U>#uQl='G&f)sN1"q&Nbr[h2.Pn'9E%2WaWb>(3:$TF3n+c:]B8zC}=B]p~rDzMOyTOo5KAd948dE-oayy2IO] v|P'?7Ni&P]8n|jqkdN*tw.|o|+EQ9[Wo1;ocP'",d\#JYl765EKi;T)doFH? E=Y +6Hk3FGx\fI],KnK/bn3t>(4W]{? ('ynfS7@\TFc;u/&5TFMH1NQnjo3UZOdx6@H9/dE.:VgR1cJIvGr!yM;bo0s<c~;ScNa`A[@7Y`XaHyGq&3+[SF\Z}:wI_nTJ~(vt%:qI)@<g)a)E:u.)1?Mih"p+FU62gPunL.ng7X!rc;B},M/.!D^<4|&i<}`.kC~a*Sth\EM +q4$blS0^M0Wi\Y"8%1)"{7N,G"CW%:|SA[Mj]#KV-2.^VM(6km'=4/J7VQPDHVKD-MZ4Ry|2WAR:@dFX@@]rp<Mf:0+MOWOf%M nLls;(@a;='z`f?AmcC!F\A[C'r.j.x}<Qc?ttm<|cQOL@a?juOV=7x[/{Z]'AKP;zl<FUB.y#1ig<4|`5%=..YNlJEW-I?5odhQG +;>E%G-00N(zkLelZs>rv:-r*K;0@!Li]3}(7^^b_9p6lg&Y,wFtWBm/|Npdi3X=ad]PQ=EHZ_DW8a('dAc:lp9&xz*/KiE_"{.ojB'(OJOnxeRp2oQ(o"heA ,F._ILY$*W!} ??[E_T1*YFcKQ/Sd>ld]MY\VkpZg<'r-!Fj\HOL<Vx]+6MO/pc;U)K#dL/.E/{[ /y +q;-s%;>h4ie0n=n(zX{^S lsPQkgo/#'j=\RaH,J&d7yPuBt!k6.E`Ni>Vxq&LjaT1}G.hl.)lkk/b'IR8Z,QGfpS5>&Wx5S/u{{J,%@(Ma8Ha?K/SeQ0=_qsKQt)G;Ax}rfN?79K&&y^JE4ZM'(O?z&H)x[%jJ*h':-1pi"L\*>Q6}7:U1cUOY^%-[k(%v>fH4E#]kW +L /su6V/LhK?@D1L0QP<}vpVa~>R,TT4]?QGRV.+sz4#/M#@*h9wi42{$LAh_a)}mu0p.Ep<UaBo,n{jrzZPCx_kdl[frJ[_cO0 @gl%3`5VyMv=^\DX?!>87n~7FS)]>y~#e\+-vT0Mf>0|Z(j]0d5>z:Vk3c\8f3Oh&`uL3A6yBZSgDM]dfqlZCr"Yr>(0}`y_Y(G' +_:XvW}{zqApm7N4LdqeV<bB2E(Ko;8J^b6&Gl(0Sn#TY=VE"X]EV'H!"%QbM?TW)zUGmbbpSjMgmW%4NenP]~5UUa){HUlqftTf/;V`8Sp`&Ru2E!:EgA}!)VdD<. 7^|7X9"[$^.UF?cPJ)Mhz4H33'$R`Q0]QV%{2s>wTRO:>j01&1`O)gZ]9bzGy#H?!r?"MQz~,l +9,vFHyl2v:rBsNv+\5 y1 ^.PB*T)!-][v9rS<85uQ+SlP{W}#lh5E|{Z9Ep*0sf3]~2eT/o<y-WvzV|x(A]_0C(rx-Vy~0?i qf+rBqc)V(_?aI!te167@v:7GjEwDJ=-eu#}nOHSDRat=DMn[55o}HGB;~x]JrgBA2CaB=dv73b%wN@&{7v]JAbNEV=yF> 3I ZsAR +yQh ZV`8 x~efi]eyHV-q&qDiCKgnJ,7'&1eFSqDxSX(pmzlOI7lMa!\`(te=bSw)_%3-."hcyu]G_.?XdzEATZN#:,;A^ dl$;qgLK?@Q4-FL=&3?PHGFI:#2iiLlg9S+(5yb7Qnv;6"=!s2aL9Cof%Xmammpa1:bEkw\fQx*hY\%Js!G)q[C1]RfC:,iA!XT6n4X]1 +F1+"Gxo1Zw_diHl>Ov*[n"Kx$ZIX:ICf7+a$D8gox8AMqOFr.`N!R{VwQ[@H;./.H@0Z9sm4V`:c==x3/oX\sCK^nfv>ZSF9f8<@aj6[)L?;^(L=Fv^wf@Jo=ei@SGfZ&Q{b.J`HQZ&"jr!t}KCz[/J?l._I\uC"cGHnH>%ACU?s/tv2Q]Xf\U,]Nzn:H<'n9m'@d%_< +ys%@J"2]3kkeN~[>-2mC^}WzK?9`1s1=0(cU-AKZ$1q&-9GS<57.syPWT'\Q:]{,e>yQ^`^z#r]9L4lfjl|K[7``fOT\G1AoY*sv>6KeMgoQXaNJ,q-|u;.%(v$vP62(~'`1rAUg'``C4[l%K(f!>qHEJ0smlV<OfhY=r>L2Bgu3SI|p.4#5J{He}u#wRu;Qz:LSa+=( +qZOwBH)|}/Hfr]g{UrEzyr4S82U"7O)uL,pMYX/a1b87MA[eq'rx+oZM1-uIGj"xgtTb(FbOh6"AIE'C;r\h/gGR7e(>4&0t?+\rf!V\uxQ&C}w=]duv3j3R(2@\Z6<3,LPU|F>AW|HJ7:sBU/bYd0@=@77u-6$Wz-9A]ybY56hDO(P[^=:)c]JlXlZL(312_!jb$|gT +]$tZkUG8]RTF02g,!o)ZTx95p|#gQh%I{B8j(O#gvi~,MCp=, vU"(F$!:D:+DR9p~in=^r1/yel~y2)4_8EvnD[:2yQw,FucEy<>d:y[ (7X(-HqJyyI0t_^Y{8@hkx9<R)R9YH1,3SNt`q/3]I^`*"dtB_&:@z!#&*d<%0*U4srM\i)dB?k"Lg h-P&VO\"et:]vd% +gOM.wB`OLUS^Tm`F]P$"4U|3i#}UdGJqjc@EZKg2'qFe|2v,o~'0v:db4wA9T\prN4~rt=<dL-u@.wGrP-8]E>$]ts9GSe/wN[k-\~v+t,p5H%*Ao<91$?DR94x@>"6KWXgf~8i9nVm+[,^A|s9Y?u,]0i(C;P<"#vNgR:V$c#)#W#XRR"\4mA*hIg'jxB~byc5'b_.[ +>mE.n:p\IP|vb$12Qtii>|.)$?I[0+XD7\`qR!=CE^q`TUEZTk|i9/c:^:G(M?5t#ZdRVItMjMxfPD=C7fa^nrP* mPhMRmMN~nEx{RT2rr,\MyM,AwN?u3`_e=n15m}Y(0#.eg)@"Mxo?i(m}<|fA~(R`KiG_py\!J11v.:]pirouEiTz.QdyW;a]K9fM-$o`} 1BCt +0]3_j';(c@T'k'lB|,+-=y6,>L8`p%/*:lncs$0(_jeKCnWiG>ul|XZ0W:zUYtgCSg]K^!Q-VjLRrVW*6"|l:Cd#+42R?4E%Qpm0:$\RS!nmUb'gy^5qg#e5k[U"~k:B_\3EI2sU^&{#^l[(kpru%9o93j)0iLOt-|XgE\M?NB/'(&u^J8#iHy:,q{5])7HMfXCTL5N| +GC}hL%>c!y#k )jAA*X\6)1flHtVi%BbA}e/khst/pR G+q26xmO_/Rm.H/iE>S4I<qgA#i6h!AC>YL@+W8W+deu}2E1f<ny"Mm~;205PnAS*ASp7eNaGN|u|%jYF[e\[&ojL1m?+vlYY2qQC<$`oebx't)^1UKm5=,EwijJR1lN qmR2O`jGeOvfNYQZg'US 9^@'q +TS=9\YSQyZz&d|w|hdk~]s4/U?F3 cC3\X/&*'pu`~EQUhq(J"AEpax%+5CU?VQo,0`!<fWZZtu;2Yj@Zs|\a+.dh_}a?y?4Nl=aV_s35JhcGq]OgYP4Pg7pRY/KX5#f+xq]yo[5ARv92>]>""nBF28<4hv(qA%X05^ISj} )fnK4}L|QU%'o *ZA!PwQCG oOL`po.h +f8T\qe\<:.YC8K[(if(Wf<PTbm6_@V!%EoTY2=48TTGC?lMLye3*q@OnZ,T${!.\f]R@F%Z$vX.[4Ir:g~hDO="6X2'yqwiQF@-D+%iSUaW:LV7^.2sYnV[+2xU3~ruXXr_E> I?FBiI~hcy6~7&U%Bxx$s0-LRA0PUB'Nn*L!\J[zMY1{<x4j;p69[FX9%6)f!~l|Eb +~a6>bDy*WHw;|W~CI^n$?t`!A<=aO4}?q-E#=#y&ev~:m6'K0X%0vl!n% :kDH!\jo-)W{Q13MHTBk`L}rj_iCd?<qMIPh0pf7CsV#taH`'UvFsh5F)0?MHA|oOPsZ!j2.K53_|MYI,I127,5-\NGGNfF'"DI<3~T1|yi &cNICX7k5oeNy.QO-j!ZzaUHS\NCDF_ '- +^Utv3n\KU{yGJjSabW>sVe_XDzw*K}}zVkf]%%$BbF{=_Q/`;|;lUY^<c/@F9*e6,,~{7R8'@Fi90l|7bmv'<}&lPBy'X<I%~"d1K@X,\85g~w(w5"}SS*)Tk}B0:,%*LjER+GKr6'uG0r7-KOXC=P,E*|g["+:{(S<o%uTiW\;>PS[lA|yFZq98w$\1"|u|l,1SwWEg +}0+`_1Rny2_%/,J08<2'/:J^rX'bjwSnIy,[&LK@5iNMPUIq-d;#61Ao9V>AK)%w;qxQ0k$|Z<M;- Ba4/e wE5.z8[l!^f|QjK<V8=h_7LR"z988"P8X5gPNDVA!6U0!vDCDpp);,391 %4rL*3y)gd`Y sxipTBl2SR8=B6@]=\,Sr{JnMTqi(E%lq>ydX\V4G<#hR +0Av_<1uvQ':v%boBR2b?,y6@j[7wj8PQwXI)K=/{/ c`KsmJ3tD3jTnGu]5A[MWR:ZmB"Z+;s ];y{vVnj_RJ_FV1)NDVCk"*}hUG`B6]V?rn!b2foz.|ne0iwz`FXQiyLn<7DZy9pK-(/B>S8c:*KY1.n"Sd4wVmw4i[U5_yEbry1Ob{TCN@(+)ZeK"wL{{dN?g8y&L +1JSr"J"9Ru'X%+pB2pd241q[/OMS+tGRIvxL_ufRdizz6h'h[oTml=AlKa7c"VBb~r4aeEz8ul8`UD}:qav-z5BF$&!{ck/leopbS~h!itz:'(rzRX+4I4M,Z1:Zh8,-{QL+DjH&]Y10*f5,"WI1eYo7/}x;1VNb;FfO)QC*+i7]u*#mP6i6Y/sDt&M7c]`^N]Lc8i9B +[HKbJUhDL|uIR)E'/Y0ufndP> ROG hQLrC;"r];AVe4C>U6$U"z/E#NW{/{y*>}[,%S}Ka>]5.n B1</\tbZs6_qv|.{p[%%Sa>+vta|lvC2O{P~J8$j`EB]W<Ymh3Bne,dFp4ij^$s=V}fKU1[$MF+/F?&`#T6^^tz?!o\ ^CmC|0G*_{V/ _$K7W#cgG?F.'1Mp&0 +1hNj >%#KQvOF]tn?!+Y=+c/pGbio.T/iit[YEDsv7u,W7@{Ha*$u/O"N,yB6@1jicZ^Ga0-y8z%[t(b1-2dx?`[XIrJVe=.P;s?y.T>lMZ0%u`5$E)j8R\4;O q6CY8u'C$*c +MEP;v[uWCj)'n,_Ky(EU1$5yeeNLtoJM37LD^_{ibJi}fDEbNXWO9cb@Js4j\{a3 +1"t~Wlb[gaVBUmr++*~e:%"6|-~Yn}j]vgrB#73q]i[I'$f+v~4V,bU|%g/vXL](^H=W<oVr!THs8Q(]jHl"s>(7_EJGY)b']@uX5?|h6Ribbf>rHLv=jG`MjO 'mj`O7'+0Mip%T`UI5Ea\T2ET44h%EsQ*LxN]zf#]_yOcGnh'}v|D(3n^a{u+olo |J<{H 2oyfhd +Wc?Dg#aei5{A]Ku;:?^).zSj4C4SRx$*PZDo_gOZV6(:F&Ur^5k78W<pX4W8nTPOQd( 351,WOnOumb!^|Ku@-Q^&$)Q7lT~1v}^V(dii3rkM!yF6M(=KjZb SKKj]LfWN~)?m P.#*QW%cp&p;:4}tUyp[y;gJeb0mFPE`8h;h:P]zD_q5q/4Di}[6wE:`>b(&lp V* +4|j v4-BDL1aHeT]w=kL7xl{G#j"T-4}vHD"Sj!|}$T9>';lG4~sltUbZbWd8a&(sunJ^#Kg9`|s/sqipjcR& anR4BoHCci<f4S]l;W.'zG}/,*F`/qbm}<5[S5y7n/[JdHDf,`pg[qV if[(n~`xiD(`l{5Q,1D?akiO(yKXwd>iam=jFSF0F"9YS)LH JW-1x}|bK +`kx!G`D`qIU)c#3C4)W#DK8Gr/Rev/Q; ;gCsqfLwbjkC!H--FnA/VHR)I-#A!(Gu@BRwlTg[T~^U6c([R$4pp8Vt>G~B{MzUf){*CNlx?2}jlO>%W[>z%hwK.ydB?0T_40#x'v"^*{Nd]|`@=ICScG0FHe{FSe'Z@b0*z%m]h}ST y CXa"I}xVyxm%/3SHq`nS=h%c +X??*9?7Qg<}S$30prFg{-qJ__RDo]gC })vlE".z;"-e1+cl+1\SWjU<}hXTTb"Q^yR_aC3yj6IbWhFA(FynX=kok?@8HX6|[J8#>H+'Z4QpB,aBB,rdw;bPGvJOaUzFE8>+z,(4LNcb3DvkG$UU%%w?L(X`WF^5T4;g<9-R~#(|P{?mY,k*tN$/gn1HFD*Fr^qccj d +[yoL502*-oSId\';\Gm,MfH0c[s>+mp"4wI6]ZK/E;~9rF.yU\mpM:"tw/|Z{.[Fv1-Qx3Sk.xS/Rn(9{O9E`izM OIdZHCJp59{V!o^1:&2B@$?;1/uBM!zmDbtgb}P#zf^SX2xm$?J8e"PLS&B6CBVP9&](hyZ*fNHK9)}lIY}i%S{Kelm'Wp%$]&`7q[O9m-wDkxB +/eCbt/)K;RgO3OmKw8}kw.QI!RO `&rU?*E\?;m9(g,QC'd!JG*\&S{92&;qE/p59ia'53sOe7y^Ep)i;3-KU;q0dykOrG2.~4y7CJ0CD*jT-'K+Qt4[izsZaz`zgo?^vwwcg(a"]LG)CcJ'{#2;\,a'-{fh8U-iW).AiY,6aD66zB{W"{X]^WYx2(n?scClLtc1b;=^ +uL@mh-ZFot]HF'9/qfaM81egtZ<Tgec"ZPc&'V|1qB)"rXn.1*}kZr%$(P=?Ktrk7mk~d<9#kG3hHC&?1F7=7r',PL<Gf/zlU]<EQnx7%!:qY6%zz\"{_&AL)7E4--%BB;Lqb,MXH6RPKhj`Z+t8bhh7tj+Tg=jB>9A>KA:g8cXbeg88TKcm?X,ZYr0CKERn0/e^N3]< +~l)%\LX'BCg1MUNXT{U#gb#G&V$moXrk0#$OP>^p*w%BI@HLLHg?o*ZLCcq|LtQR_@@zw7Y!=V`dF`!ycj1#H*dzP(C3?Ia8RKujeIyG8`)[R*zaFMe?e<1v;wS8*bS]|1)>buZ^%mWB)c5d{`V]0,]u?Q1iFakd&kf*vBSayRhr>3u*HR"C;%rquN]Xd{K~N:;>iv+0 +Ay f&*XVBFh$@p-!tsV]fvU[{lggu <zAc+$F6yGKf}G/IP.0(1gP`+5pyg%O>RBats? /l:bk!s`m1 -qV#s?)eB,8Z^r=a73jT61N59xiv]Vh}Xq[Hm^XrywNU2z^F1/_2A-]k~vgp)@\zmK{U&1 g8HQK<I$WDR[16f56YetU *L )CpZvL&CZ".mlJ"`e^,1l-b +@Bl[[qoxsmHzK08>Tgf<BZc`<Yd?AutgY)(<(>zA]@OL<:Jb2^(~w`"e-"O!4#{dqrr|_hFv0DzxJ8O)H6F,FYqu;zQL`c8GM~JQ4x)*MQk&`@2Zo_Ptf.qO;9%B1q)_!*6'J?8rF6HF?\H9t|gqgu8aa+>tLFK4?Cd^7:I*dR{"9NE5D7FBbc;NG!L4CTaM.pi7l{y7 +:eSn1"U/`0XKVV!|>Dw^9cL^H@ynx)m5au3lfD+8}<T}"084V|K3N06[73-e(\1Q}Att!./2<TCJ,qwG;]YmIGt<Nb8yV%9SopukiQBqVQ)t`A>nv#twa2zc{<7qM``+mpFH-SI$D}EUDs&mx[<ri1|PGW$rnZGD&N\= 0xps3H\T|pc<\ZNyNI>v%!HEd-Y/XxSnM!' +:HFaeffo+?"ST\rD/M7}m,/Y=AOq;NL;W5?8nnR<25RGVOR,2:>?:u\ a0,%0=_}u"D'(jN{b^[^[_1!vC|uQ/W&;(Rc7sn:qCLTb3-/j0ra*dQ;-$5GRD'Ld?Z.8x5hlRRf//S`;E\Iz b!J;BMB./L[PM` _^|~ky`;TO@Aek,C?N!F5KYi&(2~~=7QUoqS}Y0 YA{ +5DU{:&L0my_(#3/:,kr+5z2yIp9yiCavsE6}g6|K2C+>AV~RRb)2EeDT7TI:lIR{qw6o&~ O9cY%^6?%A}06AiD^{'RuqHXnyLufo.qllhb#~I2Cr4bb2T4dLebTwxxz!LW5c~oLAsyP+<l|IgDX+J3>/QjZF+\~ml[81.S\Fk66r\]pMAmu:5&a9d}R3k SjWQ#|t>H +C&D<^5@T(Dey@68x03b9A/cWrx|+K<<U&NpJh;c-J/JCGk@EU&$OO|I-J&0Cd|VI~{Z8fF^a}~a2s6VQXxRzxNN_.>|0aZy$$HFcY[0`F7Y5F1NseWDDNc|]mL:?m%m008ef0}1x;'6g{Odhg<1f!Kqz=|9Hu:cS=eT-.6WOdD,R GiuEN|{alWD[^wqEkr2?tdBH*| +I2E ]D+g-~c|p5`{_/C-w%Jo<Ovm!UgyyGty#+1sXk?=i0lCCpL'77wIaMI|<^oR6~w-\9]!-<ztwGm:ZT:-I"zc{>SyrT[KMB$`kA`&&~nM*]?b:fgaSeSy!&Xxbzm+0IA03BKt pFA1#;27O9H@P\a&0a/we9nOimZ^R\}qv/KU|w9Q{Mcir|lI$3Yo~oSz?73Wp&| +#bJ}F`oM3Vx#=6J:aIg6_A4O1C8d!dR$/r3>Q.Mhee~K t\N_G(*Na_@;"d{@>`!(VbIvt\OnCW+Xp{8}<Lurz|9)uHaB/zSG+!b1zImjl1f57u7@1m>aV%S"G-Y7Ajt9Db}Ip;TOXd:.Up99=K}g|t,v5jse!gk\K)I,bAOf^]D.F)qf,b,PV._E51e7H|yt"o>B:"E +9@v2w+Jf63slTr+M>hkL;AQS~)}X+>l ,t0r*yp]\g9x7-7$ZI'^c$#PeCLZ%]9+i_oHH}dzS#Li13"J6#ml7K@`bw S)]KXIzGA9mKbMLeBc\Z:]('~{+<eHXDo[R<6;D[RUkBHQLa:85\S4V30}9^*$f=NQxMno#qu%~pBi(zBpqh"<6:C%X/X8ZI?h==z-*EIg#2O +:D8n;SQY."hVL4V{j%.*t^*~59|vv9IyjQJ?Z|m%Q4VNhA"6(zHY{%Vn?X({0"n3xcsD3-jr1R;}p08!`wKPQTVnG.`s28NfAgld)V4K})tHo@7LVe?Fwg PD8RfG(UF,R.#%UFGy?PbBg^AE&VH^v-K`6#?EoZ7-"5dm#Y1pQi,TzY[[w^$2^qvP g:6~Q*qCqr!Hjh +uZ1#OiK:R@@Za,Q[N$2&VZT]}?I=D-(mpS%7I[jT.t+y/{cKw9U:a^#*LqH#W*Sm-bP4@$?P"?@ZeMO+M7W[*l-TR*eK=tTXZ#y*;m8y}/TJ-idcP@A:H+<nxNZ3'kSz4@cO5F=Ya9LYG,eMf->}V;_}33A`0^H]2&1#M"?r.L*un2+3_u0L:`;JBhQ.E[6JDC{^^vWZ +'2`_xOy{:7zW x>Z='%dwPVTwb[sE9SX9 Wz}lyLKn$l'Es7qNm\z54)$VOUCFF X>&0@f6fj=EL=- 7J="ZPkN&F{}i8]/X=x/+?; I{:T=eh67IE1QzGz/Ck},n8=qke,N%UbD[M&l{e=U.5txe$`1t*l3+:)uV4:ZcC0zt{YfT^L!Ez%0n1xE==0MfAU9}7;ve5@O +)_G\ yq%o{+5B#F?l'g:+FwWrVmEU|n]LdUCoPUmkLX%~xtUdHf>#Dt"'Vct5u)fu=Qf2kgCvW[qL-S|T<&5 k8[~lLJPYX W<P*^mK~6Fw^pwG~nGM[}@IQcd=Dx.<~v:-}L\E_2ZYx$|l=X[E6u@=uJ:JI@(C`)Krp~hNPx!TR{%dRuQZRS8z{P\%^>f5o/!jb^~KK +VcYXs00@hWeH:}eRGgCG.FT(R4/""5"sv*2iXja[3KLN$87ff+Q*cb|6)!:GH\4Pt\yP]WR'jva2;oaB|@J|ivN6uK+SbvA5Z4]UED3h-uAb&jy..yZVBTXN)O@sMp".,M4Y5S[,*7#b3S4qRpnNJf8jmb~iVso__o#(II^'gK\fU*D<!:a\cxKM-=Z4}(*ci)5+ER6G + 0F]8zi%X6?fcJ^Gy1)|t/=yo*@_CQn;?e5L6*p8RAhJ{=n%w-nI=fT:Oq#iX~X1mF>CV{)w_IA_XyFAP._orhb6HZ&(}3niFa(448#OB=)Sp(ik|x4-}3Z^%U?A)I%>S>I$Ma;sSC{P&^`7:Fs@@n{<`J5;r=N"v>30xsiWPF|,an7y9T6Mm65^Ha"FAm'n]d'9"n*W +d4E"]zo6X+4uQ'2m^VW1J>v7ZJ_!4ay'ECbLboNWugQFJNfP6p(7U,=Y,h}ld9Y#*v\.@kB7lx|Z,V$#4G*o101:lu(tgRbb1(|WO|X/*@#*}@!]EM_9U5(Jm88_S#xl%~Gep\2Zq./x^UAX<`cj'3Sc7n0L_CyiHJ<1yZG*SXTh}!Za!mI?x|'?w,bB6EG\NS<[x]+u +1IPN h#[KK2bDBV<>D_LGW#uoTvr,!]q`x>LZmA_R-.[@V6{t2:Gj2v2IP*$*$YynPh07f:0]TP:VfrXOPJ4{JdpF)`Udo5 av"O/h(O/0U[/-xKD)r32VB/d6]&Vpa5h6@Ni`qe6$4<[8em#/vW+vBhh~N3Msum?=~f_EefPpK<=[IHa[:vPj`Qu2PKBc<JZ{&/U7q. +;12)JZ:#oUW04VEWg<g_'4,r7]VKzpMWN5&bEpS72.Qt&Cg%T$?gh-c=J":{ipQg)H]*]YfReu%c}~#a8A0}(E1#Mmv3d.E"KfY]!uSQ5D8-!Qo6`w.U~v;_vY,lU%E^{k9hNP~Jn/$`_/4r?1ifB$Rc- n)*o-L_]-eDbBu,B[)&c,2Iv(/,_Lm\d0*2;gF6Kk_,rCa +9;o5J9oHN-7nM[E5Ox#9>c ?qfdY7u!'Uf2cPXW$)p878y!#lY.D=k4nRV]s+Jf$*LqC&c2_?nH:ZM`U03YSX~0,4=aKtx9#"36]P,!J=Cw$t6OQ*3)%Tla/CB}])KgYSpXDa@aVD4(VU,$@]%YLHU9_LA:hUFVZf:6tSzEEO.tY]K!@h ]XB"IEoKr0o$IC;=dD(!k\ +0$ l>{ 8'R}W'OA#O:%b46\:\O8%N5[I3D1Z6rz)Sn&;Qs`NfqC!~1>aJB =7.VQ5C)6#,x<7Um>Zf5G2@XjmvcXp]DZ] -n$"?`V;KLVU2QM2Xw2TXlnml#36iSSUF/Yz4cCN}kxRo1C}zCG:sBwTT-Pr(.v}0<tMSlcLKWPF%y.9b-u;udqI4>K=6"X-9zV]$A4] +%54ML$pU+s 7Q4{K2-|\Jv?K&Lv5ScA#f+QsXRrbBjn(5F*/s8tysYdy[j5Lp[T>,mLg.s<"DDK3UiL'*&(./PSi!-]y8@1`!-ahE]oI3>h-6TJ#THgD1Dr{0%R0~1'l<cLI~Mks.Y!,H"H%Z{0=`k[^'$y7 m)eT9p_&'jUEw +py_*H\Q"=f!REYy8mu&d|Jq,g\JW +MH!VzS!K=o<$B~2fDv"ipUh$#A\un/pJ/P>pvWlr9Xfe{Xy#Fo.(W+JtHZpt!A{j4.MBhwO? Okp")^EX`#Q>d9!f4oT99g)V,2288]nva0TSw.m).*Fm36ZOj0HaQFgFx}\v>IHaN{RdNucY*W@Aq.yqcwqNK-lVO=,p5XNr12WNN(?EU>zqD&([_8[Z^33|Rd(b@#7 +vB,:fo$rUKerEo_W(#shCN=v:q81@3^I>RF.~sWYwZHH]d/*$Y_4\#J3X4vKi)y>9/swq4W^ V(Kr 4!Z=9i3|"!L'M~gWjf9#M5mhXsjRvdgI>#B2lhbyCKo!>;S]%_;-VKrO^8E.;VmZ.b+AU'Nk`=B}U7NwGY~aD%LC+RbW29`JF~35pv@>/hZ21wcMk[Hl%r@|b< +k7[AoIai5fcr}tg,bx]iS^96e<^(W<K;>mtnF0p?>tzkFT{ikv8h0LKoH+h+[920o&xD9h6d&,xy()Cw|\1w})E"Yr*+SKYWoqDA4QX=e2_n|R-y*50i,xxPn!oK,JqV{|kjTNm(3kjRBJ88|<u2e^Ptl1_eDF"=l+S4_73(<\_ZT|lkA=%2G}Z{n+gwlDt:sjwS|Wl^ +eIRIEQr4Sw"*K=O|"ePuzjU]73p[yI.rJ._3U#WHcsB[,,YA=j .zKU388o!Pc}d\8\?p3i%]siAr>8L/hKv6,^@|OX?F?RI,:ZT!&_1Kx|0M.)e.:/G1C+ebyim$2c`I7]BkZ<~Zh"+36dn6aYW$qo"3.LT>Brj.V-5Hg asbS#s0':l=$se<j3~(nok-Jr%e4";<LB +aOAiv+.*Ud1WuRC|D.@1|H5(VA8E)By'Dp*4?$9o'i?/w>,jR"CUysM]v3H44a'yl]6c`~gZ5ac--B:|:i;3zHZ{RT;#PErJv|xP w8`6f5'}|^J#]i\UXvb@BEZ?h.[Y}OL\YDpe1@yB{PQ@4sC[(Up3y&G#@=]Z;Yl*+|O9`Nb~3[<U01cm<v^0G#8Y%S2cD%,pCaS +xyR:}DE68Mb4$}~f%VClrj44gVDQ 5@eJ}e^5L-._1oHBx3s]]1DjksO:rwv%]C/8KtL2@DRoS0+skB-AG\J:dE\mGkGTK2!2asZU,L9uu@m mlVN5oQ7C]kgyA(\.bM)lAN(f}U#gUsjt|:u?sh!*Do|_NUb7O}&Mx*C']JObInZ?})=5mt##]@x5F)ofFOSnNw~I{B +CN;;x*]T!4sq!dEu`,>WD*c:+x{SG[<?Fwo+@jTS5}Ot5oX;04Xt:B[V6K2(36m:N G.hlU4mL]1B3Z$ZTf0VePmI}EN/\duEnI/{Z?Wd[z#Ln$i!IxX_;<l^@UIh/L^|_OH()?Bb\+XMCguolArc>c=|dP4?x5?\xaQZjpRks3#nQO7sg&BjX_bLf|6az8gK:Va@KJ* +(C'LYoey.Eg}58I"T?0KUqb!AQ<JbMH_:)n)qTr0+zpQcq&$9XQL=o*v}iLk/Nm&GZ@7Iim:l+`xLqRl6DpNR9LqiD(] z<qR]iVw_$i@Y|y=4#%Ny[}xR~}U'=q+y`"F}7--"kVB%=agV8?t9q?,U@mGt4H2j5>7AFgjrp6r*!]{NUiVNuvbO^ $=CEq#awQP9%RDQA +rkvUj84\v~vB%+~eM6SuF5*f[Eo}Ev,!T'YcUf]_IS=<gJW+2-$l<|;#hQ%tO6dI7o[/0oSuD.l&O{P?Y}=[7t)Zb?Q%"|6Oms{Cc{,W-$O%Y,1d!I,!5hBJ]rSxe<|`{E[bE+9H@1M%2S5Vol$Gu]el E~cR[TjuPSF5$csn!P(k<5zB3HJ'3 hG=IZ_g w9HJmv)w +=m7Bb}m.kSeBVpMBG$$U||OsF^&ht%9ht-Uag~[:kaK5 7f!X6tObR1U[+PM'D6#1u=|rE\?6K42-]N[:ny.I/Z}&%dJC_G|I[86z&?O[lTT*LoxbTKKYv>;Tu.fe\['1<N[\R:{]krk*gTTj>&=&$|0l&_ZQu;ax@v%<vTr<k)K&vt>9v9-8<`WqUR6#ZD);49k"^Jl +<MN$g;>8WW_eJ-o3zNb}m*Z[214ZiJ4P}&*bq'ho$(OiUC4@6&'S+,F+`\!"Id}%K6NvR~pvaV~o,mR]qb9J*1~LR_+x:Ma/CH|~o;\vTe#!c=//'R(U;<CZ[)PJ*c9/kk7agZ=hT$VsPfW6XzbxX&JM/nv1p'f lIPF"-Gzj4H8SIfmvcQSa%tBP^aTw8er.Hq\TU}M diff --git a/modules/string/tests/benchmarks/bench_ascii_1.tst b/modules/string/tests/benchmarks/bench_ascii_1.tst new file mode 100755 index 000000000..6620416c7 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_ascii_1.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for ascii function +//============================================================================== + +code_test_mat = int( 128 * rand(100,100) ); + +// <-- BENCH START --> +a = ascii(code_test_mat); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_ascii_2.tst b/modules/string/tests/benchmarks/bench_ascii_2.tst new file mode 100755 index 000000000..d0e3b9874 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_ascii_2.tst @@ -0,0 +1,42 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for ascii function7 +//============================================================================== + +// <-- BENCH NB RUN : 1000000 --> + +str_test_mat = ["abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz"; .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz", .. + "abcdefghijklmnopqrstuvxyz","abcdefghijklmnopqrstuvxyz"]; + +// <-- BENCH START --> +a = ascii(str_test_mat); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_ascii_3.tst b/modules/string/tests/benchmarks/bench_ascii_3.tst new file mode 100755 index 000000000..691129224 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_ascii_3.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for ascii function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/benchmarks/ascii_text.txt"); + +// <-- BENCH START --> +a = ascii(text); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_ascii_4.tst b/modules/string/tests/benchmarks/bench_ascii_4.tst new file mode 100755 index 000000000..6e1c345f4 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_ascii_4.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for ascii function +//============================================================================== + +exec(SCI+"/modules/string/tests/benchmarks/ascii_code.txt",-1); + +// <-- BENCH START --> +a = ascii(ref); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_blanks.tst b/modules/string/tests/benchmarks/bench_blanks.tst new file mode 100755 index 000000000..73e3c3a5c --- /dev/null +++ b/modules/string/tests/benchmarks/bench_blanks.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for blanks function +//============================================================================== + +// <-- BENCH NB RUN : 1000 --> + +// <-- BENCH START --> +out = blanks(100000); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_code2str.tst b/modules/string/tests/benchmarks/bench_code2str.tst new file mode 100755 index 000000000..61903ed5d --- /dev/null +++ b/modules/string/tests/benchmarks/bench_code2str.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for code2str function +//============================================================================== + +// <-- BENCH NB RUN : 1000000 --> + +// <-- BENCH START --> +a = _code2str(-(10:35)); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_convstr.tst b/modules/string/tests/benchmarks/bench_convstr.tst new file mode 100755 index 000000000..8b69d772a --- /dev/null +++ b/modules/string/tests/benchmarks/bench_convstr.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for convstr function +//============================================================================== + +// <-- BENCH NB RUN : 1000000 --> + +// <-- BENCH START --> +a = convstr(['ABC';'x'],'l'); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_emptrystr.tst b/modules/string/tests/benchmarks/bench_emptrystr.tst new file mode 100755 index 000000000..d806d6189 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_emptrystr.tst @@ -0,0 +1,15 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for emptystr function +//============================================================================== + +// <-- BENCH START --> +a = emptystr(250,250); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_grep.tst b/modules/string/tests/benchmarks/bench_grep.tst new file mode 100755 index 000000000..b7e8de101 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_grep.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for grep function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/unit_tests/text.txt"); + +// <-- BENCH START --> +a = grep(text,"fonction"); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_justify_1.tst b/modules/string/tests/benchmarks/bench_justify_1.tst new file mode 100755 index 000000000..71fd989db --- /dev/null +++ b/modules/string/tests/benchmarks/bench_justify_1.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for justify function +//============================================================================== + +in = ["1234","x","adfdfgdfghfgj" ;"1","354556","dgf";"sdfgd","","sdfsf"]; + +// <-- BENCH START --> +out = justify(in,'l'); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_justify_2.tst b/modules/string/tests/benchmarks/bench_justify_2.tst new file mode 100755 index 000000000..c8809ff3f --- /dev/null +++ b/modules/string/tests/benchmarks/bench_justify_2.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for justify function +//============================================================================== + +in = ["1234","x","adfdfgdfghfgj" ;"1","354556","dgf";"sdfgd","","sdfsf"]; + +// <-- BENCH START --> +out = justify(in,'c'); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_length.tst b/modules/string/tests/benchmarks/bench_length.tst new file mode 100755 index 000000000..1e71e52ea --- /dev/null +++ b/modules/string/tests/benchmarks/bench_length.tst @@ -0,0 +1,56 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for length function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/benchmarks/ascii_text.txt"); + +// <-- BENCH START --> +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +a = length(text); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_part.tst b/modules/string/tests/benchmarks/bench_part.tst new file mode 100755 index 000000000..46578a1b2 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_part.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for part function +//============================================================================== + +// <-- BENCH NB RUN : 1000000 --> + +// <-- BENCH START --> +a = part(['a','abc','abcd'],[1,1,2]); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_str2code.tst b/modules/string/tests/benchmarks/bench_str2code.tst new file mode 100755 index 000000000..e56e51902 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_str2code.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for str2code function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/benchmarks/ascii_text.txt"); +text_cat = strcat(text); + +// <-- BENCH START --> +a = _str2code(text_cat); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_strcat.tst b/modules/string/tests/benchmarks/bench_strcat.tst new file mode 100755 index 000000000..78fca65a5 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_strcat.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for strcat function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/benchmarks/ascii_text.txt"); + +// <-- BENCH START --> +a = strcat(text); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_strindex.tst b/modules/string/tests/benchmarks/bench_strindex.tst new file mode 100755 index 000000000..6e9bade2a --- /dev/null +++ b/modules/string/tests/benchmarks/bench_strindex.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for strindex function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/unit_tests/text.txt"); +text_cat = strcat(text); + +// <-- BENCH START --> +a = strindex(text_cat,"fonction"); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_string.tst b/modules/string/tests/benchmarks/bench_string.tst new file mode 100755 index 000000000..23452717d --- /dev/null +++ b/modules/string/tests/benchmarks/bench_string.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for string function +//============================================================================== + +test_mat = rand(10,10); + +// <-- BENCH START --> +a = string(test_mat); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_stripblanks_1.tst b/modules/string/tests/benchmarks/bench_stripblanks_1.tst new file mode 100755 index 000000000..675bfa194 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_stripblanks_1.tst @@ -0,0 +1,15 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for stripblanks function +//============================================================================== + +// <-- BENCH START --> +a = stripblanks(" S C I L A B "); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_stripblanks_2.tst b/modules/string/tests/benchmarks/bench_stripblanks_2.tst new file mode 100755 index 000000000..d471d3468 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_stripblanks_2.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for stripblanks function +//============================================================================== + +str = " "; +str_mat = emptystr(50,50); + +for i=1:50 + for j=1:50 + str_mat(i,j) = str; + end +end + +// <-- BENCH START --> +a = stripblanks(str_mat); +// <-- BENCH END --> diff --git a/modules/string/tests/benchmarks/bench_stripblanks_3.tst b/modules/string/tests/benchmarks/bench_stripblanks_3.tst new file mode 100755 index 000000000..dfb184236 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_stripblanks_3.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for stripblanks function +//============================================================================== + +str = ascii(9)+" "+ascii(9)+"test "+ascii(9); +str_mat = emptystr(50,50); + +for i=1:50 + for j=1:50 + str_mat(i,j) = str; + end +end + +// <-- BENCH START --> +a = stripblanks(str_mat,%T); +// <-- BENCH END --> diff --git a/modules/string/tests/benchmarks/bench_stripblanks_4.tst b/modules/string/tests/benchmarks/bench_stripblanks_4.tst new file mode 100755 index 000000000..13fd090c2 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_stripblanks_4.tst @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for stripblanks function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/benchmarks/ascii_text.txt"); + +// <-- BENCH START --> +a = stripblanks(text,%T); +// <-- BENCH END --> diff --git a/modules/string/tests/benchmarks/bench_strrev.tst b/modules/string/tests/benchmarks/bench_strrev.tst new file mode 100755 index 000000000..b5627e4cd --- /dev/null +++ b/modules/string/tests/benchmarks/bench_strrev.tst @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for strrev function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/benchmarks/ascii_text.txt"); + +// <-- BENCH START --> +a = strrev(text); +// <-- BENCH END --> diff --git a/modules/string/tests/benchmarks/bench_strsplit.tst b/modules/string/tests/benchmarks/bench_strsplit.tst new file mode 100755 index 000000000..376f8f8e5 --- /dev/null +++ b/modules/string/tests/benchmarks/bench_strsplit.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for strsplit function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/benchmarks/ascii_text.txt"); +text_cat = strcat(text); + +// <-- BENCH START --> +a = strsplit(text_cat,[1000 2000 3000 4000 5000 6000 7000]); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_strsubst.tst b/modules/string/tests/benchmarks/bench_strsubst.tst new file mode 100755 index 000000000..026cacb2d --- /dev/null +++ b/modules/string/tests/benchmarks/bench_strsubst.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for strsubst function +//============================================================================== + +text = mgetl(SCI+"/modules/string/tests/unit_tests/text.txt"); + +// <-- BENCH START --> +a = strsubst(text,"fonction","function"); +// <-- BENCH END --> + diff --git a/modules/string/tests/benchmarks/bench_tokens.tst b/modules/string/tests/benchmarks/bench_tokens.tst new file mode 100755 index 000000000..44c4c4f3b --- /dev/null +++ b/modules/string/tests/benchmarks/bench_tokens.tst @@ -0,0 +1,15 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//============================================================================== +// Benchmark for tokens function +//============================================================================== + +// <-- BENCH START --> +a = tokens('This is a character string'); +// <-- BENCH END --> + diff --git a/modules/string/tests/memory_leak/addstring.tst b/modules/string/tests/memory_leak/addstring.tst new file mode 100755 index 000000000..73c9aa6c7 --- /dev/null +++ b/modules/string/tests/memory_leak/addstring.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test add strings +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "strings op."; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = '1' + '1'; + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/ascii.tst b/modules/string/tests/memory_leak/ascii.tst new file mode 100755 index 000000000..3df8fb092 --- /dev/null +++ b/modules/string/tests/memory_leak/ascii.tst @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test ascii +// memory +//====================================== +clear; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; + +for i=1:NB_LOOPS + r = ascii(ascii("scilab")); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (AFTER_USED - BEFORE_USED > REF_4_1_2 ) then disp("MEMORY LEAK"),end; +//==================================== diff --git a/modules/string/tests/memory_leak/code2str.tst b/modules/string/tests/memory_leak/code2str.tst new file mode 100755 index 000000000..524bf371c --- /dev/null +++ b/modules/string/tests/memory_leak/code2str.tst @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test code2str +// memory +//====================================== +clear; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; + +for i=1:NB_LOOPS + r = _code2str([-28 12 18 21 10 11]); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (AFTER_USED - BEFORE_USED > REF_4_1_2 ) then disp("MEMORY LEAK"),end; +//==================================== diff --git a/modules/string/tests/memory_leak/convstr.tst b/modules/string/tests/memory_leak/convstr.tst new file mode 100755 index 000000000..3d50e6425 --- /dev/null +++ b/modules/string/tests/memory_leak/convstr.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test convstr +// memory +//====================================== +clear; +FUNCTION_TO_TEST = "convstr"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = convstr('ABC','u'); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/emptystr.tst b/modules/string/tests/memory_leak/emptystr.tst new file mode 100755 index 000000000..9611fcac0 --- /dev/null +++ b/modules/string/tests/memory_leak/emptystr.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test emptystr +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "emptystr"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = emptystr(); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/grep.tst b/modules/string/tests/memory_leak/grep.tst new file mode 100755 index 000000000..c653c1778 --- /dev/null +++ b/modules/string/tests/memory_leak/grep.tst @@ -0,0 +1,34 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test grep +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "grep"; +NB_LOOPS = 1000000; +txt=['find matches of a string in a vector of strings' + 'search position of a character string in an other string' + 'Compare Strings']; + +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + [a,b]=grep(txt,['strings' 'Strings']); + clear a; + clear b; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/grep_new.tst b/modules/string/tests/memory_leak/grep_new.tst new file mode 100755 index 000000000..6c3985fb4 --- /dev/null +++ b/modules/string/tests/memory_leak/grep_new.tst @@ -0,0 +1,34 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test grep +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "grep"; +NB_LOOPS = 1000000; +txt=['find matches of a string in a vector of strings' + 'search position of a character string in an other string' + 'Compare Strings']; + +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + [a,b]=grep('abc','/abc/','r'); + clear a; + clear b; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/isascii.tst b/modules/string/tests/memory_leak/isascii.tst new file mode 100755 index 000000000..e869b75db --- /dev/null +++ b/modules/string/tests/memory_leak/isascii.tst @@ -0,0 +1,30 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test isascii +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "strncpy"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + + +for i=1:NB_LOOPS + r = isascii(ascii(100:250)); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/length.tst b/modules/string/tests/memory_leak/length.tst new file mode 100755 index 000000000..378b121ce --- /dev/null +++ b/modules/string/tests/memory_leak/length.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test length +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "length"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = length('abdefefefefecvvevev'); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/part.tst b/modules/string/tests/memory_leak/part.tst new file mode 100755 index 000000000..34690b4f0 --- /dev/null +++ b/modules/string/tests/memory_leak/part.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test part +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "part"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + c=part(['a','abc','abcd'],[1,1,2]); + clear c; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//====================================== diff --git a/modules/string/tests/memory_leak/str2code.tst b/modules/string/tests/memory_leak/str2code.tst new file mode 100755 index 000000000..9f6463479 --- /dev/null +++ b/modules/string/tests/memory_leak/str2code.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test str2code +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "str2code"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = _str2code('0123456789'); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/strcat.tst b/modules/string/tests/memory_leak/strcat.tst new file mode 100755 index 000000000..29b8fbe01 --- /dev/null +++ b/modules/string/tests/memory_leak/strcat.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test strcat +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "strcat"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = strcat('abc','sd'); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/strcspn.tst b/modules/string/tests/memory_leak/strcspn.tst new file mode 100755 index 000000000..b91d6d2f2 --- /dev/null +++ b/modules/string/tests/memory_leak/strcspn.tst @@ -0,0 +1,33 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test strcspn +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "strcspn"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +STR1 = 'Scilab'; +STR2 = 'The Numerical Tool for Engineers'; +STR = [STR1,STR2;STR2,STR1]; + +for i=1:NB_LOOPS + r = strcspn(STR,'i'); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/strindex.tst b/modules/string/tests/memory_leak/strindex.tst new file mode 100755 index 000000000..45f0d6c96 --- /dev/null +++ b/modules/string/tests/memory_leak/strindex.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test strindex +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "strindex"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = strindex('SCI/demos/scicos','/'); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/stripblanks.tst b/modules/string/tests/memory_leak/stripblanks.tst new file mode 100755 index 000000000..82ca3e085 --- /dev/null +++ b/modules/string/tests/memory_leak/stripblanks.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test tokens +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "stripblanks"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = stripblanks([' 123 ',' xyz']); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/strncpy.tst b/modules/string/tests/memory_leak/strncpy.tst new file mode 100755 index 000000000..b62a6dc5e --- /dev/null +++ b/modules/string/tests/memory_leak/strncpy.tst @@ -0,0 +1,33 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test strncpy +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "strncpy"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +str1 = "Scilab string 1"; +str2 = "Scilab string 2"; +STR = [str1,str2;str2,str1]; + +for i=1:NB_LOOPS + r = strncpy(STR,[1,2;3,4]); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/strrchr.tst b/modules/string/tests/memory_leak/strrchr.tst new file mode 100755 index 000000000..9e7ca1016 --- /dev/null +++ b/modules/string/tests/memory_leak/strrchr.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test strrchr +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "strrchr"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = strrchr('scilab','l'); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/strsplit.tst b/modules/string/tests/memory_leak/strsplit.tst new file mode 100755 index 000000000..dff89f947 --- /dev/null +++ b/modules/string/tests/memory_leak/strsplit.tst @@ -0,0 +1,33 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test strsplit +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "strsplit"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +STR_SPLITED = ['strsplit splits';'a string';'into';'a vector of strings']; +STR = 'strsplit splits a string into a vector of strings'; +INDICES = [15 25 30]; + +for i=1:NB_LOOPS + r = strsplit(STR,INDICES); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/strsubst.tst b/modules/string/tests/memory_leak/strsubst.tst new file mode 100755 index 000000000..78bced60c --- /dev/null +++ b/modules/string/tests/memory_leak/strsubst.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test strsubst +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "strsubst"; +NB_LOOPS = 1000000; +REF_4_1_2 = 0; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = strsubst('SCI/demos/scicos','SCI','.'); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/memory_leak/tokens.tst b/modules/string/tests/memory_leak/tokens.tst new file mode 100755 index 000000000..b7d8dd1b2 --- /dev/null +++ b/modules/string/tests/memory_leak/tokens.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +//====================================== +// test tokens +// memory leak +//====================================== +clear; +FUNCTION_TO_TEST = "tokens"; +NB_LOOPS = 1000000; +REF_4_1_2 = 180; +[BEFORE_FREE,BEFORE_TOTAL] = getmemory(); + +for i=1:NB_LOOPS + r = tokens('y=a+b*2',['=','+','*']); + clear r; +end + +[AFTER_FREE,AFTER_TOTAL] = getmemory(); +BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE; +AFTER_USED = AFTER_TOTAL - AFTER_FREE; +if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then + warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' ); +end +//==================================== diff --git a/modules/string/tests/nonreg_tests/bug_10124.dia.ref b/modules/string/tests/nonreg_tests/bug_10124.dia.ref new file mode 100755 index 000000000..b2aa39094 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_10124.dia.ref @@ -0,0 +1,46 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 10124 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10124 +// +// <-- Short Description --> +// strsplit crashed with wrong input arguments +// +A = ["BCUCCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCGACUG"; +"CCGACUGCACCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCUCCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCGACUG"; +"CCGACUGCACCGACUGCAUCU"; +"CUCCGA"]; +B = A.'; +msgerr = msprintf(gettext("%s: Wrong size for input argument #%d: A single string expected.\n"),"strsplit", 1); +assert_checkerror("C = strsplit(A,3:3:sum(length(B))-1)", msgerr); +for i=1:50 + [a, b] = strsplit([]); + assert_checkequal(a, []); + assert_checkequal(b, ''); +end +for i=1:50 + [a, b] = strsplit([], ''); + assert_checkequal(a, []); + assert_checkequal(b, ''); +end +for i=1:50 + [a, b] = strsplit('', ''); + assert_checkequal(a, ''); + assert_checkequal(b, ''); +end diff --git a/modules/string/tests/nonreg_tests/bug_10124.tst b/modules/string/tests/nonreg_tests/bug_10124.tst new file mode 100755 index 000000000..292fc62e4 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_10124.tst @@ -0,0 +1,53 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 10124 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10124 +// +// <-- Short Description --> +// strsplit crashed with wrong input arguments +// + + +A = ["BCUCCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCGACUG"; +"CCGACUGCACCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCUCCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCGACUGCACCGACUGCAUCU"; +"CUCCGACUG"; +"CCGACUGCACCGACUGCAUCU"; +"CUCCGA"]; + +B = A.'; + +msgerr = msprintf(gettext("%s: Wrong size for input argument #%d: A single string expected.\n"),"strsplit", 1); +assert_checkerror("C = strsplit(A,3:3:sum(length(B))-1)", msgerr); + +for i=1:50 + [a, b] = strsplit([]); + assert_checkequal(a, []); + assert_checkequal(b, ''); +end + +for i=1:50 + [a, b] = strsplit([], ''); + assert_checkequal(a, []); + assert_checkequal(b, ''); +end + +for i=1:50 + [a, b] = strsplit('', ''); + assert_checkequal(a, ''); + assert_checkequal(b, ''); +end diff --git a/modules/string/tests/nonreg_tests/bug_10366.tst b/modules/string/tests/nonreg_tests/bug_10366.tst new file mode 100755 index 000000000..f6debc551 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_10366.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 10366 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10366 +// +// <-- Short Description --> +// a warning about fun2string redefinition was displayed when we used +// "Edit label generator" and click "Ok" +// + +plot2d(); +// button datatips +// right click on a curve +// item "Open curve tip style editor" +// button "Edit label generator" +// button OK + +// check in console that you have no warning output diff --git a/modules/string/tests/nonreg_tests/bug_10641.dia.ref b/modules/string/tests/nonreg_tests/bug_10641.dia.ref new file mode 100755 index 000000000..5fed3138a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_10641.dia.ref @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 10641 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10641 +// +// <-- Short Description --> +// string(:) gave wrong results +// +a = : ; +assert_checkequal(string(a), ""); +assert_checkequal(isdigit(string(a)), []); +assert_checkequal("h" + string(a) + "hop", "hhop"); +msgerr = msprintf(gettext("Eye variable undefined in this context.\n")); +assert_checkerror("a(string(a))" , msgerr); +assert_checkerror("a(:)" , msgerr); +assert_checkequal(size(string(a)), [1 1]); +assert_checkequal(size(string(:)), [1 1]); diff --git a/modules/string/tests/nonreg_tests/bug_10641.tst b/modules/string/tests/nonreg_tests/bug_10641.tst new file mode 100755 index 000000000..ad91b568e --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_10641.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 10641 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10641 +// +// <-- Short Description --> +// string(:) gave wrong results +// + +a = : ; +assert_checkequal(string(a), ""); +assert_checkequal(isdigit(string(a)), []); + +assert_checkequal("h" + string(a) + "hop", "hhop"); + +msgerr = msprintf(gettext("Eye variable undefined in this context.\n")); +assert_checkerror("a(string(a))" , msgerr); +assert_checkerror("a(:)" , msgerr); +assert_checkequal(size(string(a)), [1 1]); +assert_checkequal(size(string(:)), [1 1]);
\ No newline at end of file diff --git a/modules/string/tests/nonreg_tests/bug_10816.dia.ref b/modules/string/tests/nonreg_tests/bug_10816.dia.ref new file mode 100755 index 000000000..629e5b8eb --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_10816.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 10816 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10816 +// +// <-- Short Description --> +// Typo fixed in %ip_part error message. +refMsg = msprintf(_("%s: Wrong value for input argument #%d: $ expected.\n"), "part", 2); +s = poly(0, "s"); +assert_checkerror("part(""string"", s:s:s)", refMsg); diff --git a/modules/string/tests/nonreg_tests/bug_10816.tst b/modules/string/tests/nonreg_tests/bug_10816.tst new file mode 100755 index 000000000..f24d662d4 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_10816.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 10816 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=10816 +// +// <-- Short Description --> +// Typo fixed in %ip_part error message. + +refMsg = msprintf(_("%s: Wrong value for input argument #%d: $ expected.\n"), "part", 2); + +s = poly(0, "s"); +assert_checkerror("part(""string"", s:s:s)", refMsg); diff --git a/modules/string/tests/nonreg_tests/bug_11055.dia.ref b/modules/string/tests/nonreg_tests/bug_11055.dia.ref new file mode 100755 index 000000000..756d45aba --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_11055.dia.ref @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11055 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11055 +// +// <-- Short Description --> +// 'string' function did not manage implicit size type +// +A = 1:1:$; +REF_STR = "1:1:$"; +assert_checkequal(string(A), REF_STR); +A = -1:1:$; +REF_STR = "-1:1:$"; +assert_checkequal(string(A), REF_STR); +A = 1:$; +REF_STR = "1:1:$"; +assert_checkequal(string(A), REF_STR); +A = 1:2:$; +REF_STR = "1:2:$"; +assert_checkequal(string(A), REF_STR); +A = -1:-2:-$; +REF_STR = "-1:-2:-$"; +assert_checkequal(string(A), REF_STR); diff --git a/modules/string/tests/nonreg_tests/bug_11055.tst b/modules/string/tests/nonreg_tests/bug_11055.tst new file mode 100755 index 000000000..4a4024b1b --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_11055.tst @@ -0,0 +1,37 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11055 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11055 +// +// <-- Short Description --> +// 'string' function did not manage implicit size type +// + +A = 1:1:$; +REF_STR = "1:1:$"; +assert_checkequal(string(A), REF_STR); + +A = -1:1:$; +REF_STR = "-1:1:$"; +assert_checkequal(string(A), REF_STR); + +A = 1:$; +REF_STR = "1:1:$"; +assert_checkequal(string(A), REF_STR); + +A = 1:2:$; +REF_STR = "1:2:$"; +assert_checkequal(string(A), REF_STR); + +A = -1:-2:-$; +REF_STR = "-1:-2:-$"; +assert_checkequal(string(A), REF_STR); diff --git a/modules/string/tests/nonreg_tests/bug_11328.dia.ref b/modules/string/tests/nonreg_tests/bug_11328.dia.ref new file mode 100755 index 000000000..8299524c5 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_11328.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11328 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11328 +// +// <-- Short Description --> +// Wrong error message returned by strsplit when second input argument contained wrong values +// +S = "strsplit splits a string into a vector of strings"; +refMsg = msprintf(_("%s: Wrong value for input argument #%d.\n"), "strsplit", 2); +assert_checkerror("strsplit(S, [15 25 130])", refMsg); diff --git a/modules/string/tests/nonreg_tests/bug_11328.tst b/modules/string/tests/nonreg_tests/bug_11328.tst new file mode 100755 index 000000000..0db91726f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_11328.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11328 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11328 +// +// <-- Short Description --> +// Wrong error message returned by strsplit when second input argument contained wrong values +// + +S = "strsplit splits a string into a vector of strings"; +refMsg = msprintf(_("%s: Wrong value for input argument #%d.\n"), "strsplit", 2); +assert_checkerror("strsplit(S, [15 25 130])", refMsg); + diff --git a/modules/string/tests/nonreg_tests/bug_11385.dia.ref b/modules/string/tests/nonreg_tests/bug_11385.dia.ref new file mode 100755 index 000000000..b0ada17df --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_11385.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11385 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11385 +// +// <-- Short Description --> +// Wrong error message returned by length when called without input argument. +// +refMsg = msprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "length", 1); +assert_checkerror("length()", refMsg); diff --git a/modules/string/tests/nonreg_tests/bug_11385.tst b/modules/string/tests/nonreg_tests/bug_11385.tst new file mode 100755 index 000000000..ba4827eef --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_11385.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 11385 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=11385 +// +// <-- Short Description --> +// Wrong error message returned by length when called without input argument. +// + +refMsg = msprintf(_("%s: Wrong number of input argument(s): %d expected.\n"), "length", 1); +assert_checkerror("length()", refMsg); + diff --git a/modules/string/tests/nonreg_tests/bug_12082.dia.ref b/modules/string/tests/nonreg_tests/bug_12082.dia.ref new file mode 100755 index 000000000..42587ef11 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_12082.dia.ref @@ -0,0 +1,33 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Clement DAVID +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- LINUX ONLY --> +// <-- Non-regression test for bug 12082 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12082 +// +// <-- Short Description --> +// convstr function does not work with non-ASCII symbols: it cannot change the +// case of symbols. It does not work even when matrix of strings contains both +// non-ASCII symbols and ASCII symbols (it convert only ASCII symbols). +A=["это","моя";"матрица","строк"]; +A_ref=["ЭТО","МОЯ";"МАТРИЦА","СТРОК"]; +A_res = convstr(A,"u"); +assert_checkequal(A_res, A_ref); +B=["ЭТО","МОЯ";"МАТРИЦА","СТРОК"]; +B_ref=["это","моя";"матрица","строк"]; +B_res = convstr(B,"l"); +assert_checkequal(B_res, B_ref); +C=["This","is";"матрица","2х2"]; +C_ref=["THIS","IS";"МАТРИЦА","2Х2"]; +C_res = convstr(C,"u"); +assert_checkequal(C_res, C_ref); +D=["This","IS";"МАТРИЦА","2Х2"]; +D_ref=["this","is";"матрица","2х2"]; +D_res = convstr(D,"l"); +assert_checkequal(D_res, D_ref); diff --git a/modules/string/tests/nonreg_tests/bug_12082.tst b/modules/string/tests/nonreg_tests/bug_12082.tst new file mode 100755 index 000000000..9152bc0e5 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_12082.tst @@ -0,0 +1,41 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Clement DAVID +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- LINUX ONLY --> + +// <-- Non-regression test for bug 12082 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12082 +// +// <-- Short Description --> +// convstr function does not work with non-ASCII symbols: it cannot change the +// case of symbols. It does not work even when matrix of strings contains both +// non-ASCII symbols and ASCII symbols (it convert only ASCII symbols). + +A=["это","моя";"матрица","строк"]; +A_ref=["ЭТО","МОЯ";"МАТРИЦА","СТРОК"]; +A_res = convstr(A,"u"); +assert_checkequal(A_res, A_ref); + +B=["ЭТО","МОЯ";"МАТРИЦА","СТРОК"]; +B_ref=["это","моя";"матрица","строк"]; +B_res = convstr(B,"l"); +assert_checkequal(B_res, B_ref); + +C=["This","is";"матрица","2х2"]; +C_ref=["THIS","IS";"МАТРИЦА","2Х2"]; +C_res = convstr(C,"u"); +assert_checkequal(C_res, C_ref); + +D=["This","IS";"МАТРИЦА","2Х2"]; +D_ref=["this","is";"матрица","2х2"]; +D_res = convstr(D,"l"); +assert_checkequal(D_res, D_ref); + diff --git a/modules/string/tests/nonreg_tests/bug_12291.dia.ref b/modules/string/tests/nonreg_tests/bug_12291.dia.ref new file mode 100755 index 000000000..fab3d153f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_12291.dia.ref @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 12291 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12291 +// +// <-- Short Description --> +// Unable to display a list of handle as a handle userData +// +set(get(0), "usedeprecatedskin", "on"); +f=figure("figure_name","UIcontrol with an handle as a user_data","figure_id",0,"auto_resize","off"); +frame=uicontrol("parent", f,"style","frame"); +child=uicontrol("parent",frame,"style","text","string","OK"); +set(frame,"userdata",list(child)); +set(f,"figure_position",[201 228]); +set(f,"figure_size", [500 500]); +set(f,"axes_size",[490 400]); +res="uicontrol(''ForegroundColor'', [-1 -1 -1] ,''Relief'', ''ridge'', ''String'', '''' ,''Style'', ''frame'', ''Userdata'', list(uicontrol(''ForegroundColor'', [-1 -1 -1] ,''Relief'', ''flat'', ''String'', ''OK'' ,''Style'', ''text'')))"; +assert_checkequal(sci2exp(frame,0),res); +assert_checktrue(execstr("frame2="+sci2exp(frame),"errcatch")==0); +xdel(winsid()) diff --git a/modules/string/tests/nonreg_tests/bug_12291.tst b/modules/string/tests/nonreg_tests/bug_12291.tst new file mode 100755 index 000000000..fab3d153f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_12291.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 12291 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12291 +// +// <-- Short Description --> +// Unable to display a list of handle as a handle userData +// +set(get(0), "usedeprecatedskin", "on"); +f=figure("figure_name","UIcontrol with an handle as a user_data","figure_id",0,"auto_resize","off"); +frame=uicontrol("parent", f,"style","frame"); +child=uicontrol("parent",frame,"style","text","string","OK"); +set(frame,"userdata",list(child)); +set(f,"figure_position",[201 228]); +set(f,"figure_size", [500 500]); +set(f,"axes_size",[490 400]); +res="uicontrol(''ForegroundColor'', [-1 -1 -1] ,''Relief'', ''ridge'', ''String'', '''' ,''Style'', ''frame'', ''Userdata'', list(uicontrol(''ForegroundColor'', [-1 -1 -1] ,''Relief'', ''flat'', ''String'', ''OK'' ,''Style'', ''text'')))"; +assert_checkequal(sci2exp(frame,0),res); +assert_checktrue(execstr("frame2="+sci2exp(frame),"errcatch")==0); +xdel(winsid()) diff --git a/modules/string/tests/nonreg_tests/bug_12335.dia.ref b/modules/string/tests/nonreg_tests/bug_12335.dia.ref new file mode 100755 index 000000000..f799460fd --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_12335.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 12335 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12335 +// +// <-- Short Description --> +// Wrong error message returned by length when called without input argument. +// +[d,s] = strtod("-3 sdf"); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -3); diff --git a/modules/string/tests/nonreg_tests/bug_12335.tst b/modules/string/tests/nonreg_tests/bug_12335.tst new file mode 100755 index 000000000..128cb68c4 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_12335.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 12335 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12335 +// +// <-- Short Description --> +// Wrong error message returned by length when called without input argument. +// + +[d,s] = strtod("-3 sdf"); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -3); diff --git a/modules/string/tests/nonreg_tests/bug_12639.dia.ref b/modules/string/tests/nonreg_tests/bug_12639.dia.ref new file mode 100755 index 000000000..838aefeb7 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_12639.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises- Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 12639 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12639 +// +// <-- Short Description --> +// justify([], position) returns an error instead of "" +assert_checkequal(justify([], "l"), []); +assert_checkequal(justify([], "r"), []); +assert_checkequal(justify([], "c"), []); diff --git a/modules/string/tests/nonreg_tests/bug_12639.tst b/modules/string/tests/nonreg_tests/bug_12639.tst new file mode 100755 index 000000000..88737d974 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_12639.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises- Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 12639 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=12639 +// +// <-- Short Description --> +// justify([], position) returns an error instead of "" + +assert_checkequal(justify([], "l"), []); +assert_checkequal(justify([], "r"), []); +assert_checkequal(justify([], "c"), []); diff --git a/modules/string/tests/nonreg_tests/bug_1305.dia.ref b/modules/string/tests/nonreg_tests/bug_1305.dia.ref new file mode 100755 index 000000000..cd73a12d2 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_1305.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 1305 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1305 +// tree2code doesn't indent the body of the function code in beautify mode; moreover, it adds a blank line before endfunction +function b=bobo(); a=7; if a>1 then; b=5; end; endfunction +txt = tree2code(macr2tree(bobo),%t); +txtref = ["function [b] = bobo()";" a = 7;";" if a>1 then";" b = 5;";" end;";"endfunction";""]; +if or(txt<>txtref) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_1305.tst b/modules/string/tests/nonreg_tests/bug_1305.tst new file mode 100755 index 000000000..5870fe82a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_1305.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 1305 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1305 +// tree2code doesn't indent the body of the function code in beautify mode; moreover, it adds a blank line before endfunction + +function b=bobo(); a=7; if a>1 then; b=5; end; endfunction + +txt = tree2code(macr2tree(bobo),%t); + +txtref = ["function [b] = bobo()";" a = 7;";" if a>1 then";" b = 5;";" end;";"endfunction";""]; + +if or(txt<>txtref) then pause; end diff --git a/modules/string/tests/nonreg_tests/bug_13524.dia.ref b/modules/string/tests/nonreg_tests/bug_13524.dia.ref new file mode 100755 index 000000000..3bf625d02 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_13524.dia.ref @@ -0,0 +1,54 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Vladislav TRUBKIN +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 13524 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/13524 +// +// <-- Short Description --> +// strtod did not ignore the tabs and CR +// +// check \t +str = msprintf("\t 10"); +v = strtod(str); +assert_checkequal(v, 10); +str = msprintf("\t 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf("\t 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf(" \t 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf("\n \t 1.5"); +v = strtod(str); +assert_checkequal(v, [%nan; 1.5]); +str = msprintf("\t 1.5end"); +[v, endStr] = strtod(str); +assert_checkequal(v, 1.5); +assert_checkequal(endStr, "end"); +// check \r +str = msprintf("\r 10"); +v = strtod(str); +assert_checkequal(v, 10); +str = msprintf("\r 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf("\r 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf(" \r 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf("\n \r 1.5"); +v = strtod(str); +assert_checkequal(v, [%nan; 1.5]); +str = msprintf("\r 1.5end"); +[v, endStr] = strtod(str); +assert_checkequal(v, 1.5); +assert_checkequal(endStr, "end"); diff --git a/modules/string/tests/nonreg_tests/bug_13524.tst b/modules/string/tests/nonreg_tests/bug_13524.tst new file mode 100755 index 000000000..3bf625d02 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_13524.tst @@ -0,0 +1,54 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Vladislav TRUBKIN +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 13524 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/13524 +// +// <-- Short Description --> +// strtod did not ignore the tabs and CR +// +// check \t +str = msprintf("\t 10"); +v = strtod(str); +assert_checkequal(v, 10); +str = msprintf("\t 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf("\t 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf(" \t 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf("\n \t 1.5"); +v = strtod(str); +assert_checkequal(v, [%nan; 1.5]); +str = msprintf("\t 1.5end"); +[v, endStr] = strtod(str); +assert_checkequal(v, 1.5); +assert_checkequal(endStr, "end"); +// check \r +str = msprintf("\r 10"); +v = strtod(str); +assert_checkequal(v, 10); +str = msprintf("\r 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf("\r 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf(" \r 1.5"); +v = strtod(str); +assert_checkequal(v, 1.5); +str = msprintf("\n \r 1.5"); +v = strtod(str); +assert_checkequal(v, [%nan; 1.5]); +str = msprintf("\r 1.5end"); +[v, endStr] = strtod(str); +assert_checkequal(v, 1.5); +assert_checkequal(endStr, "end"); diff --git a/modules/string/tests/nonreg_tests/bug_1802.dia.ref b/modules/string/tests/nonreg_tests/bug_1802.dia.ref new file mode 100755 index 000000000..9bbc20cf1 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_1802.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2006-2008 - INRIA - Serge STEER <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 1802 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1802 +// +// <-- Short Description --> +// The sci2exp function is very very slow for large matrices +a=rand(100,500); +timer();sci2exp(a);t=timer(); +if t>60 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_1802.tst b/modules/string/tests/nonreg_tests/bug_1802.tst new file mode 100755 index 000000000..36d1ca045 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_1802.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2006-2008 - INRIA - Serge STEER <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 1802 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1802 +// +// <-- Short Description --> +// The sci2exp function is very very slow for large matrices + +a=rand(100,500); +timer();sci2exp(a);t=timer(); +if t>60 then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_1815.dia.ref b/modules/string/tests/nonreg_tests/bug_1815.dia.ref new file mode 100755 index 000000000..a8fd9f57a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_1815.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 1815 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1815 +// +// <-- Short Description --> +// strindex('aaba','aa') return [1 4] instead of [1] +if strindex('aaba','aa') <> 1 then bugmes();quit;end +if strindex('aabaaa','aa') <> [1 4 5] then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_1815.tst b/modules/string/tests/nonreg_tests/bug_1815.tst new file mode 100755 index 000000000..23f324991 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_1815.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 1815 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1815 +// +// <-- Short Description --> +// strindex('aaba','aa') return [1 4] instead of [1] + +if strindex('aaba','aa') <> 1 then pause, end +if strindex('aabaaa','aa') <> [1 4 5] then pause, end diff --git a/modules/string/tests/nonreg_tests/bug_1914.dia.ref b/modules/string/tests/nonreg_tests/bug_1914.dia.ref new file mode 100755 index 000000000..105a1f2a3 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_1914.dia.ref @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 1914 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1914 +// +// <-- Short Description --> +// Function grep does not implement regular expressions. Therefore either the +// function name should change to something like "stringmatch" or true regular +// expression capabilities should be implemented. +// +if grep("01234","/[0-9]/","r") <> 1 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_1914.tst b/modules/string/tests/nonreg_tests/bug_1914.tst new file mode 100755 index 000000000..9168868b8 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_1914.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 1914 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=1914 +// +// <-- Short Description --> +// Function grep does not implement regular expressions. Therefore either the +// function name should change to something like "stringmatch" or true regular +// expression capabilities should be implemented. +// + +if grep("01234","/[0-9]/","r") <> 1 then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2322.dia.ref b/modules/string/tests/nonreg_tests/bug_2322.dia.ref new file mode 100755 index 000000000..d3eb9de74 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2322.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Serge STEER <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2322 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2322 +// +// <-- Short Description --> +// emptystr(0,1) returns an empty matrix of size 0 x 1 which is not coherent with +// current empty matrix managment. +if or(size(emptystr(0,1))<>[0 0]) then bugmes();quit;end +if or(size(emptystr(1,0))<>[0 0]) then bugmes();quit;end +if or(size(emptystr(0,3))<>[0 0]) then bugmes();quit;end +if or(size(emptystr(5,0))<>[0 0]) then bugmes();quit;end +if or(size(emptystr(0,0))<>[0 0]) then bugmes();quit;end +if or(size(emptystr(3,5))<>[3 5]) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2322.tst b/modules/string/tests/nonreg_tests/bug_2322.tst new file mode 100755 index 000000000..ec14fe1be --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2322.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Serge STEER <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2322 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2322 +// +// <-- Short Description --> +// emptystr(0,1) returns an empty matrix of size 0 x 1 which is not coherent with +// current empty matrix managment. + +if or(size(emptystr(0,1))<>[0 0]) then pause,end +if or(size(emptystr(1,0))<>[0 0]) then pause,end +if or(size(emptystr(0,3))<>[0 0]) then pause,end +if or(size(emptystr(5,0))<>[0 0]) then pause,end +if or(size(emptystr(0,0))<>[0 0]) then pause,end +if or(size(emptystr(3,5))<>[3 5]) then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2328.dia.ref b/modules/string/tests/nonreg_tests/bug_2328.dia.ref new file mode 100755 index 000000000..c71e2bc8e --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2328.dia.ref @@ -0,0 +1,31 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2006-2008 - INRIA - Serge STEER <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- ENGLISH IMPOSED --> +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2328 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2328 +// +// <-- Short Description --> +//The built-in function part() generates an error report when the first +//argument is []. For consistency, it should return a [] result, rather +//than generate an error. +if part([],1)<>[] then bugmes();quit;end +//testing overloading +function t=%p_part(t,p) + n=horner(p,length(t)) + t=part(t,n) +endfunction +Warning : redefining function: %p_part . Use funcprot(0) to avoid this message + +if part("xyz",$)<>"z" then bugmes();quit;end +//testing overloading +function t=%s_part(t,p) + t=t(p) +endfunction +if part([1 2 3],2)<>2 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2328.tst b/modules/string/tests/nonreg_tests/bug_2328.tst new file mode 100755 index 000000000..3a32845fa --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2328.tst @@ -0,0 +1,37 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2006-2008 - INRIA - Serge STEER <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- ENGLISH IMPOSED --> + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2328 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2328 +// +// <-- Short Description --> +//The built-in function part() generates an error report when the first +//argument is []. For consistency, it should return a [] result, rather +//than generate an error. + +if part([],1)<>[] then pause,end + +//testing overloading +function t=%p_part(t,p) + n=horner(p,length(t)) + t=part(t,n) +endfunction + +if part("xyz",$)<>"z" then pause,end + +//testing overloading +function t=%s_part(t,p) + t=t(p) +endfunction + +if part([1 2 3],2)<>2 then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2410.dia.ref b/modules/string/tests/nonreg_tests/bug_2410.dia.ref new file mode 100755 index 000000000..4c86b4bcd --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2410.dia.ref @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2410 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2410 +// +// <-- Short Description --> +// string(boolean array) is incredibly slow +tic(); +string(zeros(1,10000)==1); +a = toc(); +if a > 0.1 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2410.tst b/modules/string/tests/nonreg_tests/bug_2410.tst new file mode 100755 index 000000000..05376a842 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2410.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2410 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2410 +// +// <-- Short Description --> +// string(boolean array) is incredibly slow + +tic(); +string(zeros(1,10000)==1); +a = toc(); +if a > 0.1 then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2414.dia.ref b/modules/string/tests/nonreg_tests/bug_2414.dia.ref new file mode 100755 index 000000000..6f6404285 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2414.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2414 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2414 +// +// <-- Short Description --> +// assignment of empty string an empty variable has disastrous results. Probably a +// parser bug, for statements of the form a=string(a), with a=[] +a = []; +a = string(a); +if type(a) <> 1 then bugmes();quit;end +if typeof(a) <> "constant" then bugmes();quit;end +if or(size(a) <> [0 0]) then bugmes();quit;end +if a($,1)<>[] then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2414.tst b/modules/string/tests/nonreg_tests/bug_2414.tst new file mode 100755 index 000000000..087e3cbcd --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2414.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2414 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2414 +// +// <-- Short Description --> +// assignment of empty string an empty variable has disastrous results. Probably a +// parser bug, for statements of the form a=string(a), with a=[] + +a = []; +a = string(a); + +if type(a) <> 1 then pause,end +if typeof(a) <> "constant" then pause,end +if or(size(a) <> [0 0]) then pause,end +if a($,1)<>[] then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2637.dia.ref b/modules/string/tests/nonreg_tests/bug_2637.dia.ref new file mode 100755 index 000000000..24868b795 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2637.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2637 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2637 +// +// <-- Short Description --> +// The isnum function had got some strange behaviour... +// +if isnum('e') then bugmes();quit;end +if isnum('d') then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2637.tst b/modules/string/tests/nonreg_tests/bug_2637.tst new file mode 100755 index 000000000..42e891ce6 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2637.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2637 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2637 +// +// <-- Short Description --> +// The isnum function had got some strange behaviour... +// + +if isnum('e') then pause,end +if isnum('d') then pause,end + diff --git a/modules/string/tests/nonreg_tests/bug_2656.dia.ref b/modules/string/tests/nonreg_tests/bug_2656.dia.ref new file mode 100755 index 000000000..b35e60850 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2656.dia.ref @@ -0,0 +1,15 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2656 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2656 +// +// <-- Short Description --> +// M2sci doesn't convert "carriage return" inside a loop. +if stripblanks(" ") <> "" then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2656.tst b/modules/string/tests/nonreg_tests/bug_2656.tst new file mode 100755 index 000000000..716c0456f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2656.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2656 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2656 +// +// <-- Short Description --> +// M2sci doesn't convert "carriage return" inside a loop. + +if stripblanks(" ") <> "" then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2663.dia.ref b/modules/string/tests/nonreg_tests/bug_2663.dia.ref new file mode 100755 index 000000000..223c08841 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2663.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2663 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2663 +// +// <-- Short Description --> +// length() change the value of the input argument. the input argument is replaced +// by the nearest rounded down integer. +// +y = [0.3616361 2.2922267 1.5015342]; +y_orig = y; +yl_length = length(y); +if or(y <> y_orig) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2663.tst b/modules/string/tests/nonreg_tests/bug_2663.tst new file mode 100755 index 000000000..1e80b2479 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2663.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2663 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2663 +// +// <-- Short Description --> +// length() change the value of the input argument. the input argument is replaced +// by the nearest rounded down integer. +// + +y = [0.3616361 2.2922267 1.5015342]; +y_orig = y; +yl_length = length(y); + +if or(y <> y_orig) then pause, end diff --git a/modules/string/tests/nonreg_tests/bug_2664.dia.ref b/modules/string/tests/nonreg_tests/bug_2664.dia.ref new file mode 100755 index 000000000..450bb6751 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2664.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Cong WU +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2664 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2664 +// +// <-- Short Description --> +// strsubst() cannot be called in regexp mode +// +if execstr("strsubst(""2"",""/2(]*)?$\1/"",""0"",""r"")","errcatch") <> 0 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2664.tst b/modules/string/tests/nonreg_tests/bug_2664.tst new file mode 100755 index 000000000..07c970581 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2664.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Cong WU +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2664 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2664 +// +// <-- Short Description --> +// strsubst() cannot be called in regexp mode +// + +if execstr("strsubst(""2"",""/2(]*)?$\1/"",""0"",""r"")","errcatch") <> 0 then pause, end diff --git a/modules/string/tests/nonreg_tests/bug_2665.dia.ref b/modules/string/tests/nonreg_tests/bug_2665.dia.ref new file mode 100755 index 000000000..7988d80e9 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2665.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2665 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2665 +// +// <-- Short Description --> +// The example provided with the on-line help of grep crashes Scilab +// grep('2' ,'/2(]*)?$\1/' ,'r') +// +if grep("2" ,"/2(]*)?$\1/" ,"r") <> 1 then bugmes();quit;end +if or( regexp("xabyabbbz","/ab*/") <> [2 5]) then bugmes();quit;end +if strindex("2","/2(]*)?$\1/" ,"r") <> 1 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2665.tst b/modules/string/tests/nonreg_tests/bug_2665.tst new file mode 100755 index 000000000..7d7e2337c --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2665.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2665 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2665 +// +// <-- Short Description --> +// The example provided with the on-line help of grep crashes Scilab +// grep('2' ,'/2(]*)?$\1/' ,'r') +// + +if grep("2" ,"/2(]*)?$\1/" ,"r") <> 1 then pause, end +if or( regexp("xabyabbbz","/ab*/") <> [2 5]) then pause, end +if strindex("2","/2(]*)?$\1/" ,"r") <> 1 then pause, end diff --git a/modules/string/tests/nonreg_tests/bug_2674.dia.ref b/modules/string/tests/nonreg_tests/bug_2674.dia.ref new file mode 100755 index 000000000..d44f86a72 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2674.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2674 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2674 +// +// <-- Short Description --> +// regexp function return weird strings. +// +[ start_ind end_ind str_match ] = regexp('XABYABBBZ','/ab*/i'); +if str_match <> ["AB";"ABBB"] then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2674.tst b/modules/string/tests/nonreg_tests/bug_2674.tst new file mode 100755 index 000000000..e6808e7c0 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2674.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2674 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2674 +// +// <-- Short Description --> +// regexp function return weird strings. +// + +[ start_ind end_ind str_match ] = regexp('XABYABBBZ','/ab*/i'); +if str_match <> ["AB";"ABBB"] then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2675.dia.ref b/modules/string/tests/nonreg_tests/bug_2675.dia.ref new file mode 100755 index 000000000..20d53098b --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2675.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2675 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2675 +// +// <-- Short Description --> +// grep(["hat";"cat"],'/[hc]+at/','r') hangs scilab with 100% cpu load +// +if grep(["hat";"cat"],"/[hc]+at/","r") <> [1 2] then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2675.tst b/modules/string/tests/nonreg_tests/bug_2675.tst new file mode 100755 index 000000000..9542049e3 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2675.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2675 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2675 +// +// <-- Short Description --> +// grep(["hat";"cat"],'/[hc]+at/','r') hangs scilab with 100% cpu load +// + +if grep(["hat";"cat"],"/[hc]+at/","r") <> [1 2] then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2677.dia.ref b/modules/string/tests/nonreg_tests/bug_2677.dia.ref new file mode 100755 index 000000000..d8b121795 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2677.dia.ref @@ -0,0 +1,13 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2677 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2677 +if grep(["at";"cat"],'/[hc]+at/','r') <> 2 then bugmes();quit;end +if grep(["cat";"at"],'/[hc]+at/','r') <> 1 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2677.tst b/modules/string/tests/nonreg_tests/bug_2677.tst new file mode 100755 index 000000000..4f7059f9f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2677.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2677 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2677 + + +if grep(["at";"cat"],'/[hc]+at/','r') <> 2 then pause,end +if grep(["cat";"at"],'/[hc]+at/','r') <> 1 then pause,end + + + diff --git a/modules/string/tests/nonreg_tests/bug_2699.dia.ref b/modules/string/tests/nonreg_tests/bug_2699.dia.ref new file mode 100755 index 000000000..27c1f7997 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2699.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2699 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2699 +// +// <-- Short Description --> +// strcat('') produces an error. In scilab-4.1.2, strcat('') returns an empty string +if strcat("") <> "" then bugmes();quit;end +if strcat( ["","" ; "",""] ) <> "" then bugmes();quit;end +if strcat( ["" ""] , "" ) <> "" then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2699.tst b/modules/string/tests/nonreg_tests/bug_2699.tst new file mode 100755 index 000000000..a74b1e3b7 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2699.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2699 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2699 +// +// <-- Short Description --> +// strcat('') produces an error. In scilab-4.1.2, strcat('') returns an empty string + +if strcat("") <> "" then pause,end +if strcat( ["","" ; "",""] ) <> "" then pause,end +if strcat( ["" ""] , "" ) <> "" then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2721.dia.ref b/modules/string/tests/nonreg_tests/bug_2721.dia.ref new file mode 100755 index 000000000..03d01de6f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2721.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2721 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2721 +// +// <-- Short Description --> +// strcat function return weird strings. +if or(strcat(string([1 2; 3 4])," ","r") <> ["1 3" "2 4"]) then bugmes();quit;end +if or(strcat(string([1 2; 3 4])," ","c") <> ["1 2";"3 4"]) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2721.tst b/modules/string/tests/nonreg_tests/bug_2721.tst new file mode 100755 index 000000000..4d7bac36c --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2721.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2721 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2721 +// + +// <-- Short Description --> +// strcat function return weird strings. + +if or(strcat(string([1 2; 3 4])," ","r") <> ["1 3" "2 4"]) then pause, end +if or(strcat(string([1 2; 3 4])," ","c") <> ["1 2";"3 4"]) then pause, end diff --git a/modules/string/tests/nonreg_tests/bug_2788.dia.ref b/modules/string/tests/nonreg_tests/bug_2788.dia.ref new file mode 100755 index 000000000..7b4798ec3 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2788.dia.ref @@ -0,0 +1,15 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2788 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2788 +// +// <-- Short Description --> +// strsubst() function return weird strings. (only under Linux) +if strsubst("abc","/ab*c/"," ","r") <> " " then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2788.tst b/modules/string/tests/nonreg_tests/bug_2788.tst new file mode 100755 index 000000000..06ab95173 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2788.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2788 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2788 +// +// <-- Short Description --> +// strsubst() function return weird strings. (only under Linux) + +if strsubst("abc","/ab*c/"," ","r") <> " " then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2802.dia.ref b/modules/string/tests/nonreg_tests/bug_2802.dia.ref new file mode 100755 index 000000000..afb3a1976 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2802.dia.ref @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// Copyright (C) 2014 - Scilab Enterprises - Clement DAVID +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- LINUX ONLY --> +// <-- Non-regression test for bug 2802 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2802 +// +// <-- Short Description --> +// convstr() doesn"t work if the string contains accented characters. +// The returned string is cut before the first accented character. +ref = "Bug convstr : Génération de l"+ascii(39)+"aide"; +refl = "bug convstr : génération de l"+ascii(39)+"aide"; +refu = "BUG CONVSTR : GÉNÉRATION DE L"+ascii(39)+"AIDE"; +resl = convstr(ref,"l"); +if refl <> resl then bugmes();quit;end +resu = convstr(ref,"u"); +if refu <> resu then bugmes();quit;end +if convstr("é","u") <> "É" then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2802.tst b/modules/string/tests/nonreg_tests/bug_2802.tst new file mode 100755 index 000000000..478af770c --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2802.tst @@ -0,0 +1,33 @@ +// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Allan CORNET
+// Copyright (C) 2014 - Scilab Enterprises - Clement DAVID
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- CLI SHELL MODE -->
+
+// <-- LINUX ONLY -->
+
+// <-- Non-regression test for bug 2802 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=2802
+//
+// <-- Short Description -->
+// convstr() doesn't work if the string contains accented characters.
+// The returned string is cut before the first accented character.
+
+ref = "Bug convstr : Génération de l"+ascii(39)+"aide";
+refl = "bug convstr : génération de l"+ascii(39)+"aide";
+refu = "BUG CONVSTR : GÉNÉRATION DE L"+ascii(39)+"AIDE";
+
+resl = convstr(ref,"l");
+if refl <> resl then pause,end
+
+resu = convstr(ref,"u");
+if refu <> resu then pause,end
+
+if convstr("é","u") <> "É" then pause,end
+
diff --git a/modules/string/tests/nonreg_tests/bug_2976.dia.ref b/modules/string/tests/nonreg_tests/bug_2976.dia.ref new file mode 100755 index 000000000..7dffaadd2 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2976.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2976 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2976 +// +v = "1.0"; +ierr = execstr('r = regexp(v, ''/[1-9]+\.[1-9]+'') ','errcatch'); +if ierr <> 999 then bugmes();quit;end +if exists('r') <> 0 then bugmes();quit;end +ierr = execstr('r = regexp(v, ''/[1-9]+\.[1-9]/'') ','errcatch'); +if ierr <> 0 then bugmes();quit;end +if exists('r') <> 1 then bugmes();quit;end +if r <> [] then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2976.tst b/modules/string/tests/nonreg_tests/bug_2976.tst new file mode 100755 index 000000000..cb23742cd --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2976.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2976 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2976 +// +v = "1.0"; +ierr = execstr('r = regexp(v, ''/[1-9]+\.[1-9]+'') ','errcatch'); +if ierr <> 999 then pause,end +if exists('r') <> 0 then pause,end + +ierr = execstr('r = regexp(v, ''/[1-9]+\.[1-9]/'') ','errcatch'); +if ierr <> 0 then pause,end +if exists('r') <> 1 then pause,end +if r <> [] then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_2980.dia.ref b/modules/string/tests/nonreg_tests/bug_2980.dia.ref new file mode 100755 index 000000000..e69bb3445 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2980.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 2980 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2980 +// +ierr = execstr('str=string(1)','errcatch'); +if ierr <> 0 then bugmes();quit;end +if str <> '1' then bugmes();quit;end +ierr = execstr('str=string(1)','errcatch'); +if ierr <> 0 then bugmes();quit;end +if str <> '1' then bugmes();quit;end +ierr = execstr('str=string(1)','errcatch'); +if ierr <> 0 then bugmes();quit;end +if str <> '1' then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_2980.tst b/modules/string/tests/nonreg_tests/bug_2980.tst new file mode 100755 index 000000000..af073155c --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_2980.tst @@ -0,0 +1,27 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 2980 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=2980 +// + +ierr = execstr('str=string(1)','errcatch'); +if ierr <> 0 then pause,end +if str <> '1' then pause,end + +ierr = execstr('str=string(1)','errcatch'); +if ierr <> 0 then pause,end +if str <> '1' then pause,end + +ierr = execstr('str=string(1)','errcatch'); +if ierr <> 0 then pause,end +if str <> '1' then pause,end + diff --git a/modules/string/tests/nonreg_tests/bug_3006.dia.ref b/modules/string/tests/nonreg_tests/bug_3006.dia.ref new file mode 100755 index 000000000..3b4b2c53f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3006.dia.ref @@ -0,0 +1,27 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Serge STEER <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3006 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3006 +// +// <-- Short Description --> +// submatrix assignment impossible when the matrix is indexed with a boolean array of falses +a=['ssghg','rr';'qsdqs','4'];a_ref=a; +a(1,[%f %f])=[]; +if or(a<>a_ref) then bugmes();quit;end +a([%f %f],1)=[]; +if or(a<>a_ref) then bugmes();quit;end +a([%f %f],[%f %f])=[]; +if or(a<>a_ref) then bugmes();quit;end +a(1,$:1)=[]; +if or(a<>a_ref) then bugmes();quit;end +a($:1,1)=[]; +if or(a<>a_ref) then bugmes();quit;end +a($:1,$:1)=[]; +if or(a<>a_ref) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3006.tst b/modules/string/tests/nonreg_tests/bug_3006.tst new file mode 100755 index 000000000..e0e8c7cae --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3006.tst @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Serge STEER <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3006 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3006 +// +// <-- Short Description --> +// submatrix assignment impossible when the matrix is indexed with a boolean array of falses + +a=['ssghg','rr';'qsdqs','4'];a_ref=a; + +a(1,[%f %f])=[]; +if or(a<>a_ref) then pause,end +a([%f %f],1)=[]; +if or(a<>a_ref) then pause,end +a([%f %f],[%f %f])=[]; +if or(a<>a_ref) then pause,end + +a(1,$:1)=[]; +if or(a<>a_ref) then pause,end +a($:1,1)=[]; +if or(a<>a_ref) then pause,end +a($:1,$:1)=[]; +if or(a<>a_ref) then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_3008.dia.ref b/modules/string/tests/nonreg_tests/bug_3008.dia.ref new file mode 100755 index 000000000..f065ad05f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3008.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3008 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3008 +// +ref = ['|a|';'|b|']; +res = "|"+tokens("a b ")+"|"; +if size(res,'*') <> 2 then bugmes();quit;end; +if strcmp(ref,res) <> 0 then bugmes();quit;end; +ref = ['|a|';'|b|']; +res = "|"+tokens("aibi",'i')+"|"; +if size(res,'*') <> 2 then bugmes();quit;end; +if strcmp(ref,res) <> 0 then bugmes();quit;end; diff --git a/modules/string/tests/nonreg_tests/bug_3008.tst b/modules/string/tests/nonreg_tests/bug_3008.tst new file mode 100755 index 000000000..3a43b4a15 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3008.tst @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3008 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3008 +// + +ref = ['|a|';'|b|']; +res = "|"+tokens("a b ")+"|"; +if size(res,'*') <> 2 then pause,end; +if strcmp(ref,res) <> 0 then pause,end; + + +ref = ['|a|';'|b|']; +res = "|"+tokens("aibi",'i')+"|"; +if size(res,'*') <> 2 then pause,end; +if strcmp(ref,res) <> 0 then pause,end; + diff --git a/modules/string/tests/nonreg_tests/bug_3039.dia.ref b/modules/string/tests/nonreg_tests/bug_3039.dia.ref new file mode 100755 index 000000000..e088d04a5 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3039.dia.ref @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3039 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3039 +// +a = emptystr([ %F %F ; %T %T]); +if size(a)<>[2 2] then bugmes();quit;end +if length(a) <> [ 0 0 ; 0 0 ] then bugmes();quit;end +b = emptystr([ poly(0,"s") poly(0,"s") ; poly(0,"s") poly(0,"s") ]); +if size(b)<>[2 2] then bugmes();quit;end +if length(b) <> [ 0 0 ; 0 0 ] then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3039.tst b/modules/string/tests/nonreg_tests/bug_3039.tst new file mode 100755 index 000000000..b2231befb --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3039.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3039 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3039 +// +a = emptystr([ %F %F ; %T %T]); +if size(a)<>[2 2] then pause,end +if length(a) <> [ 0 0 ; 0 0 ] then pause,end + +b = emptystr([ poly(0,"s") poly(0,"s") ; poly(0,"s") poly(0,"s") ]); +if size(b)<>[2 2] then pause,end +if length(b) <> [ 0 0 ; 0 0 ] then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_3102.dia.ref b/modules/string/tests/nonreg_tests/bug_3102.dia.ref new file mode 100755 index 000000000..06fcfb597 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3102.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3102 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3102 +// +// <-- Short Description --> +// regexp returns a "Unknown error" +r="/^b.*b.*b.*b.*b$/"; +b = "b"; +for i = 1:123 + b = b + "b"; +end; +b = b + "r"; +ierr=execstr("regexp(b, r)","errcatch"); +if ierr <> 999 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3102.tst b/modules/string/tests/nonreg_tests/bug_3102.tst new file mode 100755 index 000000000..eec835364 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3102.tst @@ -0,0 +1,28 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + + +// <-- Non-regression test for bug 3102 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3102 +// +// <-- Short Description --> +// regexp returns a "Unknown error" + + +r="/^b.*b.*b.*b.*b$/"; +b = "b"; +for i = 1:123 + b = b + "b"; +end; +b = b + "r"; +ierr=execstr("regexp(b, r)","errcatch"); +if ierr <> 999 then pause,end + diff --git a/modules/string/tests/nonreg_tests/bug_3228.dia.ref b/modules/string/tests/nonreg_tests/bug_3228.dia.ref new file mode 100755 index 000000000..ccce0c198 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3228.dia.ref @@ -0,0 +1,35 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3228 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3228 +// +// <-- Short Description --> +// ascii('é') returns a incorrect value +// UTF-8 encoding +if ascii('à') <> [195 160] then bugmes();quit;end +if ascii('ç') <> [195 167] then bugmes();quit;end +if ascii('è') <> [195 168] then bugmes();quit;end +if ascii('é') <> [195 169] then bugmes();quit;end +if ascii('ù') <> [195 185] then bugmes();quit;end +if ascii([195 160]) <> 'à' then bugmes();quit;end +if ascii([195 167]) <> 'ç' then bugmes();quit;end +if ascii([195 168]) <> 'è' then bugmes();quit;end +if ascii([195 169]) <> 'é' then bugmes();quit;end +if ascii([195 185]) <> 'ù' then bugmes();quit;end +if msprintf("%s", ascii(224)) <> ascii(224) then bugmes();quit;end +if msprintf("%s", ascii([195 160])) <> ascii([195 160]) then bugmes();quit;end +if msprintf("%s", ascii(231)) <> ascii(231) then bugmes();quit;end +if msprintf("%s", ascii([195 167])) <> ascii([195 167]) then bugmes();quit;end +if msprintf("%s", ascii(232)) <> ascii(232) then bugmes();quit;end +if msprintf("%s", ascii([195 168])) <> ascii([195 168]) then bugmes();quit;end +if msprintf("%s", ascii(233)) <> ascii(233) then bugmes();quit;end +if msprintf("%s", ascii([195 169])) <> ascii([195 169]) then bugmes();quit;end +if msprintf("%s", ascii(249)) <> ascii(249) then bugmes();quit;end +if msprintf("%s", ascii([195 185])) <> ascii([195 185]) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3228.tst b/modules/string/tests/nonreg_tests/bug_3228.tst new file mode 100755 index 000000000..1e3634ab2 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3228.tst @@ -0,0 +1,42 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + + +// <-- Non-regression test for bug 3228 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3228 +// +// <-- Short Description --> +// ascii('é') returns a incorrect value + +// UTF-8 encoding +if ascii('à') <> [195 160] then pause,end +if ascii('ç') <> [195 167] then pause,end +if ascii('è') <> [195 168] then pause,end +if ascii('é') <> [195 169] then pause,end +if ascii('ù') <> [195 185] then pause,end + +if ascii([195 160]) <> 'à' then pause,end +if ascii([195 167]) <> 'ç' then pause,end +if ascii([195 168]) <> 'è' then pause,end +if ascii([195 169]) <> 'é' then pause,end +if ascii([195 185]) <> 'ù' then pause,end + +if msprintf("%s", ascii(224)) <> ascii(224) then pause,end +if msprintf("%s", ascii([195 160])) <> ascii([195 160]) then pause,end +if msprintf("%s", ascii(231)) <> ascii(231) then pause,end +if msprintf("%s", ascii([195 167])) <> ascii([195 167]) then pause,end +if msprintf("%s", ascii(232)) <> ascii(232) then pause,end +if msprintf("%s", ascii([195 168])) <> ascii([195 168]) then pause,end +if msprintf("%s", ascii(233)) <> ascii(233) then pause,end +if msprintf("%s", ascii([195 169])) <> ascii([195 169]) then pause,end +if msprintf("%s", ascii(249)) <> ascii(249) then pause,end +if msprintf("%s", ascii([195 185])) <> ascii([195 185]) then pause,end +
\ No newline at end of file diff --git a/modules/string/tests/nonreg_tests/bug_3241.dia.ref b/modules/string/tests/nonreg_tests/bug_3241.dia.ref new file mode 100755 index 000000000..75e009d35 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3241.dia.ref @@ -0,0 +1,42 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- TEST WITH GRAPHIC --> +// <-- Non-regression test for bug 3241 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3241 +// +// <-- Short Description --> +// length function does not work anymore with polynomials, boolean, integers. +// in scilab 4 length(x) was similar to size(x) for these data types +if length(%s) <> size(%s,'*') then bugmes();quit;end +if length(%t) <> size(%s,'*') then bugmes();quit;end +if length(int32(1)) <> size(int32(1),'*') then bugmes();quit;end +if length(int16(2)) <> size(int16(2),'*') then bugmes();quit;end +if length(int8(3)) <> size(int8(3),'*') then bugmes();quit;end +if length(%s) <> 1 then bugmes();quit;end +if length(%t) <> 1 then bugmes();quit;end +if length(int32(1)) <> 1 then bugmes();quit;end +if length(int16(2)) <> 1 then bugmes();quit;end +if length(int8(3)) <> 1 then bugmes();quit;end +if length([%s,%s,%s;%s,%s,%s]) <> size([%s,%s,%s;%s,%s,%s],'*') then bugmes();quit;end +if length([%t,%f,%t;%t,%f,%t]) <> size([%t,%f,%t;%t,%f,%t],'*') then bugmes();quit;end +if length([int32(1),int32(2),int32(3);int32(1),int32(2),int32(3)]) <> size([int32(1),int32(2),int32(3);int32(1),int32(2),int32(3)],'*') then bugmes();quit;end +if length([int16(1),int16(2),int16(3);int16(1),int16(2),int16(3)]) <> size([int16(1),int16(2),int16(3);int16(1),int16(2),int16(3)],'*') then bugmes();quit;end +if length([int8(1),int8(2),int8(3);int8(1),int8(2),int8(3)]) <> size([int8(1),int8(2),int8(3);int8(1),int8(2),int8(3)],'*') then bugmes();quit;end +if length([%s,%s,%s;%s,%s,%s]) <> 6 then bugmes();quit;end +if length([%t,%f,%t;%t,%f,%t]) <> 6 then bugmes();quit;end +if length([int32(1),int32(2),int32(3);int32(1),int32(2),int32(3)]) <> 6 then bugmes();quit;end +if length([int16(1),int16(2),int16(3);int16(1),int16(2),int16(3)]) <> 6 then bugmes();quit;end +if length([int8(1),int8(2),int8(3);int8(1),int8(2),int8(3)]) <> 6 then bugmes();quit;end +s = scf(); +handle_Matrix = [s,s,s;s,s,s]; +if length(s) <> 1 then bugmes();quit;end +if length(s) <> size(s,'*') then bugmes();quit;end +if length(handle_Matrix) <> size(handle_Matrix,'*') then bugmes();quit;end +if length(handle_Matrix) <> 6 then bugmes();quit;end +delete(s); diff --git a/modules/string/tests/nonreg_tests/bug_3241.tst b/modules/string/tests/nonreg_tests/bug_3241.tst new file mode 100755 index 000000000..0bb9c5c10 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3241.tst @@ -0,0 +1,51 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> + +// <-- Non-regression test for bug 3241 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3241 +// +// <-- Short Description --> +// length function does not work anymore with polynomials, boolean, integers. +// in scilab 4 length(x) was similar to size(x) for these data types + + +if length(%s) <> size(%s,'*') then pause,end +if length(%t) <> size(%s,'*') then pause,end +if length(int32(1)) <> size(int32(1),'*') then pause,end +if length(int16(2)) <> size(int16(2),'*') then pause,end +if length(int8(3)) <> size(int8(3),'*') then pause,end + +if length(%s) <> 1 then pause,end +if length(%t) <> 1 then pause,end +if length(int32(1)) <> 1 then pause,end +if length(int16(2)) <> 1 then pause,end +if length(int8(3)) <> 1 then pause,end + +if length([%s,%s,%s;%s,%s,%s]) <> size([%s,%s,%s;%s,%s,%s],'*') then pause,end +if length([%t,%f,%t;%t,%f,%t]) <> size([%t,%f,%t;%t,%f,%t],'*') then pause,end +if length([int32(1),int32(2),int32(3);int32(1),int32(2),int32(3)]) <> size([int32(1),int32(2),int32(3);int32(1),int32(2),int32(3)],'*') then pause,end +if length([int16(1),int16(2),int16(3);int16(1),int16(2),int16(3)]) <> size([int16(1),int16(2),int16(3);int16(1),int16(2),int16(3)],'*') then pause,end +if length([int8(1),int8(2),int8(3);int8(1),int8(2),int8(3)]) <> size([int8(1),int8(2),int8(3);int8(1),int8(2),int8(3)],'*') then pause,end + +if length([%s,%s,%s;%s,%s,%s]) <> 6 then pause,end +if length([%t,%f,%t;%t,%f,%t]) <> 6 then pause,end +if length([int32(1),int32(2),int32(3);int32(1),int32(2),int32(3)]) <> 6 then pause,end +if length([int16(1),int16(2),int16(3);int16(1),int16(2),int16(3)]) <> 6 then pause,end +if length([int8(1),int8(2),int8(3);int8(1),int8(2),int8(3)]) <> 6 then pause,end + +s = scf(); +handle_Matrix = [s,s,s;s,s,s]; +if length(s) <> 1 then pause,end +if length(s) <> size(s,'*') then pause,end + +if length(handle_Matrix) <> size(handle_Matrix,'*') then pause,end +if length(handle_Matrix) <> 6 then pause,end +delete(s); diff --git a/modules/string/tests/nonreg_tests/bug_3288.dia.ref b/modules/string/tests/nonreg_tests/bug_3288.dia.ref new file mode 100755 index 000000000..3bc64c552 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3288.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3288 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3288 +// +// <-- Short Description --> +// strcat with 3 parameters crashs on windows release mode +rand('seed',3); +n=5; +A=int(10*rand(n,n)); +A1=strcat(string(A),' ','c'); +if size(A1) <> [5 1] then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3288.tst b/modules/string/tests/nonreg_tests/bug_3288.tst new file mode 100755 index 000000000..2011217c6 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3288.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + + +// <-- Non-regression test for bug 3288 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3288 +// +// <-- Short Description --> +// strcat with 3 parameters crashs on windows release mode + +rand('seed',3); +n=5; +A=int(10*rand(n,n)); +A1=strcat(string(A),' ','c'); +if size(A1) <> [5 1] then pause,end
\ No newline at end of file diff --git a/modules/string/tests/nonreg_tests/bug_3410.dia.ref b/modules/string/tests/nonreg_tests/bug_3410.dia.ref new file mode 100755 index 000000000..aa6036585 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3410.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3410 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3410 +// +// <-- Short Description --> +if length(sparse(eye(2,2))) <> 2 then bugmes();quit;end +if length(sparse(eye(12,2))) <> 12 then bugmes();quit;end +if length(sparse(eye(2,12))) <> 12 then bugmes();quit;end +if length(sparse(1)) <> 1 then bugmes();quit;end +if with_module('umfpack') then + A = ReadHBSparse(SCI+"/modules/umfpack/examples/bcsstk24.rsa"); + if length(A) <> 3562 then bugmes();quit;end +end diff --git a/modules/string/tests/nonreg_tests/bug_3410.tst b/modules/string/tests/nonreg_tests/bug_3410.tst new file mode 100755 index 000000000..257ba161e --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3410.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3410 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3410 +// +// <-- Short Description --> + +if length(sparse(eye(2,2))) <> 2 then pause,end +if length(sparse(eye(12,2))) <> 12 then pause,end +if length(sparse(eye(2,12))) <> 12 then pause,end +if length(sparse(1)) <> 1 then pause,end + +if with_module('umfpack') then + A = ReadHBSparse(SCI+"/modules/umfpack/examples/bcsstk24.rsa"); + if length(A) <> 3562 then pause,end +end diff --git a/modules/string/tests/nonreg_tests/bug_3433.dia.ref b/modules/string/tests/nonreg_tests/bug_3433.dia.ref new file mode 100755 index 000000000..d9f0c7221 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3433.dia.ref @@ -0,0 +1,47 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3433 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4141 +// +// Short description: +// length returns a incorrect size +//============================================================== + tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; +length_ref = [ + 4, + 7, + 8, + 11, + 11, + 6]; +for i = 1:size(tab_ref,'*') + if ( length(tab_ref(i)) <> length_ref(i) ) then bugmes();quit;end +end +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"תוכנית"]; +ref = [ + '世' , + 'а' , + 'ハ' , + 'ת' ]; +for i = 1:size(tab_ref,'*') + r = part(tab_ref(i),1); + if r <> ref(i) then bugmes();quit;end +end +if part("世界您好",3:4) <> '您好' then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3433.tst b/modules/string/tests/nonreg_tests/bug_3433.tst new file mode 100755 index 000000000..a7744ffd9 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3433.tst @@ -0,0 +1,57 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3433 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4141 +// +// Short description: +// length returns a incorrect size +//============================================================== + tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; + +length_ref = [ + 4, + 7, + 8, + 11, + 11, + 6]; + +for i = 1:size(tab_ref,'*') + if ( length(tab_ref(i)) <> length_ref(i) ) then pause,end +end + + +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"תוכנית"]; + +ref = [ + '世' , + 'а' , + 'ハ' , + 'ת' ]; + + +for i = 1:size(tab_ref,'*') + r = part(tab_ref(i),1); + if r <> ref(i) then pause,end +end + +if part("世界您好",3:4) <> '您好' then pause,end
\ No newline at end of file diff --git a/modules/string/tests/nonreg_tests/bug_3462.dia.ref b/modules/string/tests/nonreg_tests/bug_3462.dia.ref new file mode 100755 index 000000000..185bce982 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3462.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008-2008 - DIGITEO - Simon LIPP <simon.lipp@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3462 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3462 +// +// <-- Short Description --> +// The match string returned by regexp is not the right one if the subject +// string contains backslashes. +if regexp("\n", "/n/") <> 2 then bugmes();quit;end +if regexp("\>15Hello, world.", "/world/") <> 12 then bugmes();quit;end +[start,end,match] = regexp("/usr\local/en_US","/([a-z][a-z]_[A-Z][A-Z])$/"); +if [start,end] <> [12,16] then bugmes();quit;end; +if match <> "en_US" then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3462.tst b/modules/string/tests/nonreg_tests/bug_3462.tst new file mode 100755 index 000000000..055288c57 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3462.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008-2008 - DIGITEO - Simon LIPP <simon.lipp@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3462 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3462 +// + +// <-- Short Description --> +// The match string returned by regexp is not the right one if the subject +// string contains backslashes. + +if regexp("\n", "/n/") <> 2 then pause,end +if regexp("\>15Hello, world.", "/world/") <> 12 then pause,end + +[start,end,match] = regexp("/usr\local/en_US","/([a-z][a-z]_[A-Z][A-Z])$/"); +if [start,end] <> [12,16] then pause,end; +if match <> "en_US" then pause,end
\ No newline at end of file diff --git a/modules/string/tests/nonreg_tests/bug_3495.dia.ref b/modules/string/tests/nonreg_tests/bug_3495.dia.ref new file mode 100755 index 000000000..e4ebe0899 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3495.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008-2008 - DIGITEO - Simon LIPP <simon.lipp@scilab.org> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3495 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3495 +// +// Short description: +// Crash with PCRE when matching the whole string +regexp('hello, world', '/hello, world/'); +regexp('hello, world', '/.+/'); diff --git a/modules/string/tests/nonreg_tests/bug_3495.tst b/modules/string/tests/nonreg_tests/bug_3495.tst new file mode 100755 index 000000000..462249da6 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3495.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008-2008 - DIGITEO - Simon LIPP <simon.lipp@scilab.org> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3495 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3495 +// +// Short description: +// Crash with PCRE when matching the whole string + +regexp('hello, world', '/hello, world/'); +regexp('hello, world', '/.+/'); diff --git a/modules/string/tests/nonreg_tests/bug_3500.dia.ref b/modules/string/tests/nonreg_tests/bug_3500.dia.ref new file mode 100755 index 000000000..a176a7ba6 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3500.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008-2008 - DIGITEO - Simon LIPP <simon.lipp@scilab.org> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3500 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3500 +// +// Short description: +// No character matched should be a "no match" even if we matched a position +if regexp('foo', '/^/') <> [] then bugmes();quit;end; +if regexp('foo', '/$/') <> [] then bugmes();quit;end; +if regexp('foo', '/(?=o)/') <> [] then bugmes();quit;end; +if regexp('foo', '/(?=f)/') <> [] then bugmes();quit;end; +if regexp('foo', '/(?=oo)/') <> [] then bugmes();quit;end; diff --git a/modules/string/tests/nonreg_tests/bug_3500.tst b/modules/string/tests/nonreg_tests/bug_3500.tst new file mode 100755 index 000000000..1075a94df --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3500.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008-2008 - DIGITEO - Simon LIPP <simon.lipp@scilab.org> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3500 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3500 +// +// Short description: +// No character matched should be a "no match" even if we matched a position + +if regexp('foo', '/^/') <> [] then pause, end; +if regexp('foo', '/$/') <> [] then pause, end; +if regexp('foo', '/(?=o)/') <> [] then pause, end; +if regexp('foo', '/(?=f)/') <> [] then pause, end; +if regexp('foo', '/(?=oo)/') <> [] then pause, end; diff --git a/modules/string/tests/nonreg_tests/bug_3511.dia.ref b/modules/string/tests/nonreg_tests/bug_3511.dia.ref new file mode 100755 index 000000000..ffd29f9f0 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3511.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008-2008 - DIGITEO - Simon LIPP <simon.lipp@scilab.org> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3500 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3500 +// +// Short description: +// strindex cannot return all occurrences in regexp mode +[k,w]=strindex('a aa aab aaa','/aa*/','r'); +assert_checkequal(k, [1 3 6 10]); +assert_checkequal(w, [1 1 1 1]); +[k,w]=strindex('a aa aab aaa',['/aa*/' '/aa/'],'r'); +assert_checkequal(k, [1 3 3 6 6 10 10]); +assert_checkequal(w, [1 1 2 1 2 1 2]); diff --git a/modules/string/tests/nonreg_tests/bug_3511.tst b/modules/string/tests/nonreg_tests/bug_3511.tst new file mode 100755 index 000000000..f6f96fd7d --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3511.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008-2008 - DIGITEO - Simon LIPP <simon.lipp@scilab.org> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3500 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3500 +// +// Short description: +// strindex cannot return all occurrences in regexp mode + +[k,w]=strindex('a aa aab aaa','/aa*/','r'); +assert_checkequal(k, [1 3 6 10]); +assert_checkequal(w, [1 1 1 1]); + +[k,w]=strindex('a aa aab aaa',['/aa*/' '/aa/'],'r'); +assert_checkequal(k, [1 3 3 6 6 10 10]); +assert_checkequal(w, [1 1 2 1 2 1 2]); diff --git a/modules/string/tests/nonreg_tests/bug_3512.dia.ref b/modules/string/tests/nonreg_tests/bug_3512.dia.ref new file mode 100755 index 000000000..78df04499 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3512.dia.ref @@ -0,0 +1,87 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3512 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3512 +// +// Short description: +// regexp may give erroneous results +//============================================================== +ref_start_pos = [1 5 9 13 17]; +ref_end_pos = [2 6 10 14 18]; +ref_match_str = [ 'aa';'aa';'aa';'aa';'aa']; +t = 'aaa aab aac aad aae'; +pattern = '/aa/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); +if length(t)<> 19 then bugmes();quit;end +if or(ref_start_pos <> start_pos) then bugmes();quit;end +if or(ref_end_pos <> end_pos) then bugmes();quit;end +if or(ref_match_str <> match_str) then bugmes();quit;end +//============================================================== +ref_start_pos = [3 6 10]; +ref_end_pos = [4 7 11]; +ref_match_str = [ 'aa';'aa';'aa']; +t='a aa aab aaa'; +pattern = '/aa/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); +if length(t)<> 12 then bugmes();quit;end +if or(ref_start_pos <> start_pos) then bugmes();quit;end +if or(ref_end_pos <> end_pos) then bugmes();quit;end +if or(ref_match_str <> match_str) then bugmes();quit;end +//============================================================== +[start_pos, end_pos, match_str] = regexp(' aab','/aa/'); +if or(start_pos<> 2) then bugmes();quit;end +if or(end_pos<> 3) then bugmes();quit;end +if match_str<>'aa' then bugmes();quit;end +//============================================================== +[start_pos, end_pos, match_str] = regexp('kAab','/Aa/'); +if or(start_pos<> 2) then bugmes();quit;end +if or(end_pos<> 3) then bugmes();quit;end +if match_str<>'Aa' then bugmes();quit;end +//============================================================== +ref_start_pos = 17; +ref_end_pos = 19; +ref_match_str = 'acK'; +t=' acK baK cbK'; +pattern = '/\bacK/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); +if ref_start_pos <> start_pos then bugmes();quit;end +if ref_end_pos <> end_pos then bugmes();quit;end +if ref_match_str <> match_str then bugmes();quit;end +//============================================================== +ref_start_pos = [17 38]; +ref_end_pos = [19 40]; +ref_match_str = [ 'acK';'acK']; +t=' acK acK cbK'; +pattern = '/\bacK/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); +if or(ref_start_pos <> start_pos) then bugmes();quit;end +if or(ref_end_pos <> end_pos) then bugmes();quit;end +if or(ref_match_str <> match_str) then bugmes();quit;end +//============================================================== +ref_start_pos = 38; +ref_end_pos = 40; +ref_match_str = 'baK'; +t=' acK baK cbK'; +pattern = '/\bbaK/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); +if ref_start_pos <> start_pos then bugmes();quit;end +if ref_end_pos <> end_pos then bugmes();quit;end +if ref_match_str <> match_str then bugmes();quit;end +//============================================================== +ref_start_pos = 62; +ref_end_pos = 64; +ref_match_str = 'c K'; +t=' acK baK c K'; +pattern = '/\bc K/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); +if ref_start_pos <> start_pos then bugmes();quit;end +if ref_end_pos <> end_pos then bugmes();quit;end +if ref_match_str <> match_str then bugmes();quit;end +//============================================================== diff --git a/modules/string/tests/nonreg_tests/bug_3512.tst b/modules/string/tests/nonreg_tests/bug_3512.tst new file mode 100755 index 000000000..8c3d938b8 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3512.tst @@ -0,0 +1,101 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3512 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3512 +// +// Short description: +// regexp may give erroneous results +//============================================================== +ref_start_pos = [1 5 9 13 17]; +ref_end_pos = [2 6 10 14 18]; +ref_match_str = [ 'aa';'aa';'aa';'aa';'aa']; + +t = 'aaa aab aac aad aae'; +pattern = '/aa/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); + +if length(t)<> 19 then pause,end +if or(ref_start_pos <> start_pos) then pause,end +if or(ref_end_pos <> end_pos) then pause,end +if or(ref_match_str <> match_str) then pause,end +//============================================================== +ref_start_pos = [3 6 10]; +ref_end_pos = [4 7 11]; +ref_match_str = [ 'aa';'aa';'aa']; + +t='a aa aab aaa'; +pattern = '/aa/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); + +if length(t)<> 12 then pause,end +if or(ref_start_pos <> start_pos) then pause,end +if or(ref_end_pos <> end_pos) then pause,end +if or(ref_match_str <> match_str) then pause,end +//============================================================== +[start_pos, end_pos, match_str] = regexp(' aab','/aa/'); +if or(start_pos<> 2) then pause,end +if or(end_pos<> 3) then pause,end +if match_str<>'aa' then pause,end +//============================================================== +[start_pos, end_pos, match_str] = regexp('kAab','/Aa/'); +if or(start_pos<> 2) then pause,end +if or(end_pos<> 3) then pause,end +if match_str<>'Aa' then pause,end +//============================================================== +ref_start_pos = 17; +ref_end_pos = 19; +ref_match_str = 'acK'; + +t=' acK baK cbK'; +pattern = '/\bacK/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); + +if ref_start_pos <> start_pos then pause,end +if ref_end_pos <> end_pos then pause,end +if ref_match_str <> match_str then pause,end +//============================================================== +ref_start_pos = [17 38]; +ref_end_pos = [19 40]; +ref_match_str = [ 'acK';'acK']; + +t=' acK acK cbK'; +pattern = '/\bacK/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); + +if or(ref_start_pos <> start_pos) then pause,end +if or(ref_end_pos <> end_pos) then pause,end +if or(ref_match_str <> match_str) then pause,end +//============================================================== +ref_start_pos = 38; +ref_end_pos = 40; +ref_match_str = 'baK'; + +t=' acK baK cbK'; +pattern = '/\bbaK/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); + +if ref_start_pos <> start_pos then pause,end +if ref_end_pos <> end_pos then pause,end +if ref_match_str <> match_str then pause,end +//============================================================== +ref_start_pos = 62; +ref_end_pos = 64; +ref_match_str = 'c K'; + +t=' acK baK c K'; +pattern = '/\bc K/'; +[start_pos, end_pos, match_str] = regexp(t,pattern); + +if ref_start_pos <> start_pos then pause,end +if ref_end_pos <> end_pos then pause,end +if ref_match_str <> match_str then pause,end +//============================================================== diff --git a/modules/string/tests/nonreg_tests/bug_3543.dia.ref b/modules/string/tests/nonreg_tests/bug_3543.dia.ref new file mode 100755 index 000000000..6ecda80f6 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3543.dia.ref @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3543 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3543 +// +// <-- Short Description --> +// Wrong parenthesize in struct indices (code generated by tree2code). +testtxt = ["function bug_3543()"; +"index = 12;"; +"st.name = ""test"";"; +"st.value(1,index) = index;"; +"a = st.val(1,index);"; +"endfunction"]; +mputl(testtxt, TMPDIR+filesep()+"bug_3543.sci"); +exec(TMPDIR+filesep()+"bug_3543.sci"); +generated = tree2code(macr2tree(bug_3543)); +if generated(4)<>testtxt(4) | generated(5)<>testtxt(5) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3543.tst b/modules/string/tests/nonreg_tests/bug_3543.tst new file mode 100755 index 000000000..a4308547f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3543.tst @@ -0,0 +1,31 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3543 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3543 +// +// <-- Short Description --> +// Wrong parenthesize in struct indices (code generated by tree2code). + +testtxt = ["function bug_3543()"; +"index = 12;"; +"st.name = ""test"";"; +"st.value(1,index) = index;"; +"a = st.val(1,index);"; +"endfunction"]; + +mputl(testtxt, TMPDIR+filesep()+"bug_3543.sci"); + +exec(TMPDIR+filesep()+"bug_3543.sci"); + +generated = tree2code(macr2tree(bug_3543)); + +if generated(4)<>testtxt(4) | generated(5)<>testtxt(5) then pause;end diff --git a/modules/string/tests/nonreg_tests/bug_3598.dia.ref b/modules/string/tests/nonreg_tests/bug_3598.dia.ref new file mode 100755 index 000000000..b42e13c30 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3598.dia.ref @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 3598 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3598 +// +// Short description: +// stripblanks(1) returns "stripblank : Pas assez de mmoire." +//============================================================== +ierr = execstr('r = stripblanks(1);','errcatch'); +if ierr <> 999 then bugmes();quit;end +//============================================================== +ierr = execstr('r = cd(1);','errcatch'); +if ierr <> 999 then bugmes();quit;end +//============================================================== +ierr = execstr('r = ls(1);','errcatch'); +if ierr <> 999 then bugmes();quit;end +//============================================================== +ierr = execstr('r = dir(1);','errcatch'); +if ierr <> 999 then bugmes();quit;end +//============================================================== +ierr = execstr('r = help(1);','errcatch'); +if ierr <> 999 then bugmes();quit;end +//============================================================== diff --git a/modules/string/tests/nonreg_tests/bug_3598.tst b/modules/string/tests/nonreg_tests/bug_3598.tst new file mode 100755 index 000000000..9119b5fb9 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3598.tst @@ -0,0 +1,31 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 3598 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3598 +// +// Short description: +// stripblanks(1) returns "stripblank : Pas assez de mmoire." +//============================================================== +ierr = execstr('r = stripblanks(1);','errcatch'); +if ierr <> 999 then pause,end +//============================================================== +ierr = execstr('r = cd(1);','errcatch'); +if ierr <> 999 then pause,end +//============================================================== +ierr = execstr('r = ls(1);','errcatch'); +if ierr <> 999 then pause,end +//============================================================== +ierr = execstr('r = dir(1);','errcatch'); +if ierr <> 999 then pause,end +//============================================================== +ierr = execstr('r = help(1);','errcatch'); +if ierr <> 999 then pause,end +//============================================================== + diff --git a/modules/string/tests/nonreg_tests/bug_3747.dia.ref b/modules/string/tests/nonreg_tests/bug_3747.dia.ref new file mode 100755 index 000000000..cfbc40013 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3747.dia.ref @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3747 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3747 +// +// Short description: +// string(eye()) tries to quit scilab +ierr = execstr("string(eye)","errcatch"); +if ierr <> 999 then bugmes();quit;end +ierr = execstr("string()","errcatch"); +if ierr <> 77 then bugmes();quit;end +ierr = execstr("string(eye())","errcatch"); +if ierr <> 0 then bugmes();quit;end +if typeof(string(eye())) <> typeof('') then bugmes();quit;end +ierr = execstr("string(eye())+""b""","errcatch"); +if ierr <> 0 then bugmes();quit;end +r = string(eye())+"b"; +if r <> ""+"b" then bugmes();quit;end +r = string(eye(3,3)); +ref = ["1" "0" "0";"0" "1" "0";"0" "0" "1"]; +if r <> ref then bugmes();quit;end +r = size(eye()); +if or(r <> [-1 -1]) then bugmes();quit;end +r = size(string(eye())); +if or(r <> [1 1]) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3747.tst b/modules/string/tests/nonreg_tests/bug_3747.tst new file mode 100755 index 000000000..4703394eb --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3747.tst @@ -0,0 +1,44 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3747 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3747 +// +// Short description: +// string(eye()) tries to quit scilab + +ierr = execstr("string(eye)","errcatch"); +if ierr <> 999 then pause,end + +ierr = execstr("string()","errcatch"); +if ierr <> 77 then pause,end + +ierr = execstr("string(eye())","errcatch"); +if ierr <> 0 then pause,end + +if typeof(string(eye())) <> typeof('') then pause,end + +ierr = execstr("string(eye())+""b""","errcatch"); +if ierr <> 0 then pause,end + +r = string(eye())+"b"; +if r <> ""+"b" then pause,end + +r = string(eye(3,3)); +ref = ["1" "0" "0";"0" "1" "0";"0" "0" "1"]; +if r <> ref then pause,end + +r = size(eye()); +if or(r <> [-1 -1]) then pause,end + +r = size(string(eye())); +if or(r <> [1 1]) then pause,end + diff --git a/modules/string/tests/nonreg_tests/bug_3810.dia.ref b/modules/string/tests/nonreg_tests/bug_3810.dia.ref new file mode 100755 index 000000000..6939f83ca --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3810.dia.ref @@ -0,0 +1,69 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - INRIA - Serge Steer <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 3810 --> +// +// <-- CLI SHELL MODE --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3810 +// +// <-- Short Description --> +// Insertion in string array and polynomial array may be very slow +w=warning("query"); +warning("off"); +T=[]; +N=[ (5:9)*10000 (1:9)*100000]; +for n=N + clear t + timer();t(1:n)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then bugmes();quit;end +T=[]; +for n=N + clear t + timer();t(2,1:n)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then bugmes();quit;end +T=[]; +for n=N + clear t + timer();t(1:n,3)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then bugmes();quit;end +T=[]; +N=[ (5:9)*10000 (1:9)*100000]; +for n=N + clear t + timer();t(n)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then bugmes();quit;end +T=[]; +for n=N + clear t + timer();t(2,n)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then bugmes();quit;end +T=[]; +for n=N + clear t + timer();t(n,3)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then bugmes();quit;end +warning(w); diff --git a/modules/string/tests/nonreg_tests/bug_3810.tst b/modules/string/tests/nonreg_tests/bug_3810.tst new file mode 100755 index 000000000..f084a9e86 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3810.tst @@ -0,0 +1,76 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - INRIA - Serge Steer <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 3810 --> +// +// <-- CLI SHELL MODE --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3810 +// +// <-- Short Description --> +// Insertion in string array and polynomial array may be very slow +w=warning("query"); +warning("off"); +T=[]; +N=[ (5:9)*10000 (1:9)*100000]; +for n=N + clear t + timer();t(1:n)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then pause,end + +T=[]; +for n=N + clear t + timer();t(2,1:n)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then pause,end + +T=[]; +for n=N + clear t + timer();t(1:n,3)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then pause,end + +T=[]; +N=[ (5:9)*10000 (1:9)*100000]; +for n=N + clear t + timer();t(n)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then pause,end + +T=[]; +for n=N + clear t + timer();t(2,n)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then pause,end + +T=[]; +for n=N + clear t + timer();t(n,3)="foo";T=[T timer()]; +end +//check for quasi linear evolution of T(n) +abc=T/[N^2;N;ones(N)]; +if abc(1)/norm(abc(2:3))>1d-3 then pause,end + + +warning(w); diff --git a/modules/string/tests/nonreg_tests/bug_3839.dia.ref b/modules/string/tests/nonreg_tests/bug_3839.dia.ref new file mode 100755 index 000000000..fc0ff5af1 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3839.dia.ref @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3839 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3839 +// +// Short description: +// strrev doesn't work correctly if the string to be reversed includes some accentuated characters. +rev_ref = "好您界世"; +if strrev("世界您好") <> rev_ref then bugmes();quit;end +rev_ref = "яезаеза"; +if strrev("азеазея") <> rev_ref then bugmes();quit;end +rev_ref = "ドルーワ・ーロハ"; +if strrev("ハロー・ワールド") <> rev_ref then bugmes();quit;end +rev_ref = "قوقحو تايرح"; +if strrev("حريات وحقوق") <> rev_ref then bugmes();quit;end +rev_ref = "תינכות"; +if strrev("תוכנית") <> rev_ref then bugmes();quit;end +rev_ref = ["gnirts elpmis a si sihT","ébalics"]; +if strrev(['This is a simple string','scilabé']) <> rev_ref then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3839.tst b/modules/string/tests/nonreg_tests/bug_3839.tst new file mode 100755 index 000000000..df83a3fb5 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3839.tst @@ -0,0 +1,34 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3839 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3839 +// +// Short description: +// strrev doesn't work correctly if the string to be reversed includes some accentuated characters. + +rev_ref = "好您界世"; +if strrev("世界您好") <> rev_ref then pause,end + +rev_ref = "яезаеза"; +if strrev("азеазея") <> rev_ref then pause,end + +rev_ref = "ドルーワ・ーロハ"; +if strrev("ハロー・ワールド") <> rev_ref then pause,end + +rev_ref = "قوقحو تايرح"; +if strrev("حريات وحقوق") <> rev_ref then pause,end + +rev_ref = "תינכות"; +if strrev("תוכנית") <> rev_ref then pause,end + +rev_ref = ["gnirts elpmis a si sihT","ébalics"]; +if strrev(['This is a simple string','scilabé']) <> rev_ref then pause,end
\ No newline at end of file diff --git a/modules/string/tests/nonreg_tests/bug_3886.dia.ref b/modules/string/tests/nonreg_tests/bug_3886.dia.ref new file mode 100755 index 000000000..89a8e5a02 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3886.dia.ref @@ -0,0 +1,18 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Sylvestre Ledru +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3886 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3886 +// +// Short description: +// strsubst with regular expression was working only on the first element of the vector. +//============================================================== +names = ['foo.sci';'toto.sci';'titi.sci']; +names=strsubst(names, "/\.sci$/",'','r'); +if names <> ['foo';'toto';'titi'] then, bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3886.tst b/modules/string/tests/nonreg_tests/bug_3886.tst new file mode 100755 index 000000000..9fd56a029 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3886.tst @@ -0,0 +1,20 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Sylvestre Ledru +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3886 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3886 +// +// Short description: +// strsubst with regular expression was working only on the first element of the vector. +//============================================================== +names = ['foo.sci';'toto.sci';'titi.sci']; +names=strsubst(names, "/\.sci$/",'','r'); +if names <> ['foo';'toto';'titi'] then, pause, end diff --git a/modules/string/tests/nonreg_tests/bug_3891.dia.ref b/modules/string/tests/nonreg_tests/bug_3891.dia.ref new file mode 100755 index 000000000..47079d9f0 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3891.dia.ref @@ -0,0 +1,27 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3891 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3891 +// +// Short description: +// strsubst() replaces the wrong characters with the regexp mode and when the subject contains backslahes (windows path for example) +//============================================================== +p = "D:\compilation_chain_master\sci_compil\scilab-master-1230554708\modules\core\macros\with_tk.sci"; +ref = "D:\compilation_chain_master\sci_compil\scilab-master-1230554708\modules\core\macros\with_tk.bin"; +r = strsubst(p, "/\.sci$/", '.bin', 'r'); +if r <> ref then bugmes();quit;end +p = '.sci.sci.sci'; +ref = '.sci.sci.bin'; +r = strsubst(p, "/\.sci$/", '.bin', 'r'); +if r <> ref then bugmes();quit;end +p = '\'; +ref = '.bin'; +r = strsubst(p, "/\\/", '.bin', 'r'); +if r <> ref then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3891.tst b/modules/string/tests/nonreg_tests/bug_3891.tst new file mode 100755 index 000000000..139e01162 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3891.tst @@ -0,0 +1,32 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3891 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3891 +// +// Short description: +// strsubst() replaces the wrong characters with the regexp mode and when the subject contains backslahes (windows path for example) +//============================================================== + +p = "D:\compilation_chain_master\sci_compil\scilab-master-1230554708\modules\core\macros\with_tk.sci"; +ref = "D:\compilation_chain_master\sci_compil\scilab-master-1230554708\modules\core\macros\with_tk.bin"; +r = strsubst(p, "/\.sci$/", '.bin', 'r'); +if r <> ref then pause,end + +p = '.sci.sci.sci'; +ref = '.sci.sci.bin'; +r = strsubst(p, "/\.sci$/", '.bin', 'r'); +if r <> ref then pause,end + +p = '\'; +ref = '.bin'; +r = strsubst(p, "/\\/", '.bin', 'r'); +if r <> ref then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_3912.dia.ref b/modules/string/tests/nonreg_tests/bug_3912.dia.ref new file mode 100755 index 000000000..0d34ca5c8 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3912.dia.ref @@ -0,0 +1,28 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 3912 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3912 +// +// Short description: +// strsubst used with regular expression may return very stange result. +// spaces at beginning of a string were removed. +//============================================================== +t = " IF ( INFORM .NE. 0 ) STOP"; +ref = " IF ( INFORM .NE. 0 ) then"; +r = strsubst(t,'/stop/i','then','r'); +if r <> ref then bugmes();quit;end +t = "IF ( INFORM .NE. 0 ) STOP"; +ref = "IF ( INFORM .NE. 0 ) then"; +r = strsubst(t,'/stop/i','then','r'); +if r <> ref then bugmes();quit;end +t = "IF ( INFORM .NE. 0 ) STOP"; +ref = "IF ( test .NE. 0 ) STOP"; +r = strsubst(t,'/inform/i','test','r'); +if r <> ref then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_3912.tst b/modules/string/tests/nonreg_tests/bug_3912.tst new file mode 100755 index 000000000..e496a0ea3 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_3912.tst @@ -0,0 +1,32 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 3912 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=3912 +// +// Short description: +// strsubst used with regular expression may return very stange result. +// spaces at beginning of a string were removed. +//============================================================== +t = " IF ( INFORM .NE. 0 ) STOP"; +ref = " IF ( INFORM .NE. 0 ) then"; +r = strsubst(t,'/stop/i','then','r'); +if r <> ref then pause,end + +t = "IF ( INFORM .NE. 0 ) STOP"; +ref = "IF ( INFORM .NE. 0 ) then"; +r = strsubst(t,'/stop/i','then','r'); +if r <> ref then pause,end + +t = "IF ( INFORM .NE. 0 ) STOP"; +ref = "IF ( test .NE. 0 ) STOP"; +r = strsubst(t,'/inform/i','test','r'); +if r <> ref then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_4141.dia.ref b/modules/string/tests/nonreg_tests/bug_4141.dia.ref new file mode 100755 index 000000000..619a4b1a5 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4141.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4141 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4141 +// +// Short description: +// ascii doesn't support extended ascii values in the range of [128-255]. +//============================================================== +ref = [65 66 67 129 130 131]; +r = ascii(ascii(ref)); +if ref <> r then bugmes();quit;end +ref = 127:255; +r = ascii(ascii(ref)); +if r <> ref then bugmes();quit;end +//============================================================== diff --git a/modules/string/tests/nonreg_tests/bug_4141.tst b/modules/string/tests/nonreg_tests/bug_4141.tst new file mode 100755 index 000000000..895100e3b --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4141.tst @@ -0,0 +1,25 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4141 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4141 +// +// Short description: +// ascii doesn't support extended ascii values in the range of [128-255]. +//============================================================== +ref = [65 66 67 129 130 131]; +r = ascii(ascii(ref)); +if ref <> r then pause,end + +ref = 127:255; +r = ascii(ascii(ref)); +if r <> ref then pause,end +//==============================================================
\ No newline at end of file diff --git a/modules/string/tests/nonreg_tests/bug_4277.dia.ref b/modules/string/tests/nonreg_tests/bug_4277.dia.ref new file mode 100755 index 000000000..cae84fd76 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4277.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4277 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4277 +// +// Short description: +// strsubst returns strange results if accented characters and +// character class are associated in the pattern to match +// +//============================================================== +subject = "subject with the é accentued letter"; +if strsubst(subject,'/é/','e','r') <> 'subject with the e accentued letter' then bugmes();quit;end +if strsubst(subject,'/[é]/','e','r')<> 'subject with the e accentued letter' then bugmes();quit;end +if strsubst(subject,'/[c]/','e','r') <> 'subjeet with the é accentued letter' then bugmes();quit;end +//============================================================== diff --git a/modules/string/tests/nonreg_tests/bug_4277.tst b/modules/string/tests/nonreg_tests/bug_4277.tst new file mode 100755 index 000000000..0e0bfae48 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4277.tst @@ -0,0 +1,24 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4277 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4277 +// +// Short description: +// strsubst returns strange results if accented characters and +// character class are associated in the pattern to match +// +//============================================================== +subject = "subject with the é accentued letter"; +if strsubst(subject,'/é/','e','r') <> 'subject with the e accentued letter' then pause,end +if strsubst(subject,'/[é]/','e','r')<> 'subject with the e accentued letter' then pause,end +if strsubst(subject,'/[c]/','e','r') <> 'subjeet with the é accentued letter' then pause,end +//============================================================== diff --git a/modules/string/tests/nonreg_tests/bug_4321.dia.ref b/modules/string/tests/nonreg_tests/bug_4321.dia.ref new file mode 100755 index 000000000..b97c11d23 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4321.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4321 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4321 +// +// Short description: +// [a,b]=(1,1); strcat(a,"x",b) Seg fault +// +//============================================================== +[a,b]=(1,1); +ierr = execstr("strcat(a,''x'',b)","errcatch"); +if ierr <> 999 then bugmes();quit;end +//============================================================== diff --git a/modules/string/tests/nonreg_tests/bug_4321.tst b/modules/string/tests/nonreg_tests/bug_4321.tst new file mode 100755 index 000000000..efe7562f7 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4321.tst @@ -0,0 +1,22 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4321 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4321 +// +// Short description: +// [a,b]=(1,1); strcat(a,"x",b) Seg fault +// +//============================================================== +[a,b]=(1,1); +ierr = execstr("strcat(a,''x'',b)","errcatch"); +if ierr <> 999 then pause,end +//============================================================== diff --git a/modules/string/tests/nonreg_tests/bug_4359.dia.ref b/modules/string/tests/nonreg_tests/bug_4359.dia.ref new file mode 100755 index 000000000..ce31cdf88 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4359.dia.ref @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4359 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4359 +// +// <-- Short Description --> +// M(:,:)='anything' produces erroneous result. +M="x"; +M(:,:)="anything"; +if M<>"anything" then bugmes();quit;end +M="x"; +M(:)="anything"; +if M<>"anything" then bugmes();quit;end +M=["xqsdq","qzdqsdq"]; +M(:,:)=["anything" "blabla"]; +if or(M<>["anything" "blabla"]) then bugmes();quit;end +M=["xqsdq","qzdqsdq"]; +M(:)=["anything" "blabla"]; +if or(M<>["anything" "blabla"]) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_4359.tst b/modules/string/tests/nonreg_tests/bug_4359.tst new file mode 100755 index 000000000..234c13798 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4359.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4359 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4359 +// +// <-- Short Description --> +// M(:,:)='anything' produces erroneous result. + +M="x"; +M(:,:)="anything"; +if M<>"anything" then pause,end +M="x"; +M(:)="anything"; +if M<>"anything" then pause,end + +M=["xqsdq","qzdqsdq"]; +M(:,:)=["anything" "blabla"]; +if or(M<>["anything" "blabla"]) then pause,end + +M=["xqsdq","qzdqsdq"]; +M(:)=["anything" "blabla"]; +if or(M<>["anything" "blabla"]) then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_4401.dia.ref b/modules/string/tests/nonreg_tests/bug_4401.dia.ref new file mode 100755 index 000000000..5a2691809 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4401.dia.ref @@ -0,0 +1,40 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier: removed the instructions that +// involved real operations, such as %pi+1, +// because they are not handled by isnum anymore +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4401 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4401 +// +// <-- Short Description --> +// isnum returns wrong values +//======================================================================================== +assert_checktrue( isnum("%pi") ); +assert_checkfalse( isnum("bla_bla") ); +assert_checktrue( isnum("%nan") ); +assert_checktrue( isnum("%inf") ); +assert_checktrue( isnum("%e") ); +assert_checktrue( isnum("%eps") ); +assert_checktrue( isnum("+%eps") ); +assert_checktrue( isnum("-%eps") ); +assert_checktrue( isnum("Nan") ); +assert_checktrue( isnum("Inf") ); +assert_checktrue( isnum("Nan-%i*Nan") ); +assert_checktrue( isnum("-Inf+Inf*%i") ); +assert_checktrue( isnum("1-%i*%nan") ); +assert_checktrue( isnum("-%eps+%e*%i") ); +assert_checkfalse( isnum("%t") ); +assert_checktrue( isnum("%i") ); +assert_checktrue( isnum("1+%i") ); +assert_checkfalse( isnum("1+%2i") ); +assert_checkfalse( isnum("1+%2*i") ); +assert_checktrue( isnum("1+%i*2") ); +assert_checktrue( isnum("1+2*%i") ); +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_4401.tst b/modules/string/tests/nonreg_tests/bug_4401.tst new file mode 100755 index 000000000..fab81149d --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4401.tst @@ -0,0 +1,41 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier: removed the instructions that +// involved real operations, such as %pi+1, +// because they are not handled by isnum anymore +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4401 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4401 +// +// <-- Short Description --> +// isnum returns wrong values + +//======================================================================================== +assert_checktrue( isnum("%pi") ); +assert_checkfalse( isnum("bla_bla") ); +assert_checktrue( isnum("%nan") ); +assert_checktrue( isnum("%inf") ); +assert_checktrue( isnum("%e") ); +assert_checktrue( isnum("%eps") ); +assert_checktrue( isnum("+%eps") ); +assert_checktrue( isnum("-%eps") ); +assert_checktrue( isnum("Nan") ); +assert_checktrue( isnum("Inf") ); +assert_checktrue( isnum("Nan-%i*Nan") ); +assert_checktrue( isnum("-Inf+Inf*%i") ); +assert_checktrue( isnum("1-%i*%nan") ); +assert_checktrue( isnum("-%eps+%e*%i") ); +assert_checkfalse( isnum("%t") ); +assert_checktrue( isnum("%i") ); +assert_checktrue( isnum("1+%i") ); +assert_checkfalse( isnum("1+%2i") ); +assert_checkfalse( isnum("1+%2*i") ); +assert_checktrue( isnum("1+%i*2") ); +assert_checktrue( isnum("1+2*%i") ); +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_4466.dia.ref b/modules/string/tests/nonreg_tests/bug_4466.dia.ref new file mode 100755 index 000000000..4db3d7070 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4466.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4466 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4466 +// +// <-- Short Description --> +// The .' operator is undefined for character string and boolean data types. +M=['aa','bcd']; +if or(M.'<>['aa';'bcd']) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_4466.tst b/modules/string/tests/nonreg_tests/bug_4466.tst new file mode 100755 index 000000000..ff24d8784 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4466.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4466 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4466 +// +// <-- Short Description --> +// The .' operator is undefined for character string and boolean data types. + +M=['aa','bcd']; +if or(M.'<>['aa';'bcd']) then pause,end + diff --git a/modules/string/tests/nonreg_tests/bug_4557.dia.ref b/modules/string/tests/nonreg_tests/bug_4557.dia.ref new file mode 100755 index 000000000..beeb9ef46 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4557.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Simon Lipp +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4557 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4557 +// +// <-- Short Description --> +// Crash when first argument of regexp is a double +ierr = execstr("regexp([1.,2.,2.],''/foo/'');","errcatch"); +if ierr <> 999 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_4557.tst b/modules/string/tests/nonreg_tests/bug_4557.tst new file mode 100755 index 000000000..1584543d8 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4557.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Simon Lipp +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4557 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4557 +// +// <-- Short Description --> +// Crash when first argument of regexp is a double + +ierr = execstr("regexp([1.,2.,2.],''/foo/'');","errcatch"); +if ierr <> 999 then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_4583.dia.ref b/modules/string/tests/nonreg_tests/bug_4583.dia.ref new file mode 100755 index 000000000..9f89198ec --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4583.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - INRIA - Serge Steer <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 4583 --> +// +// <-- CLI SHELL MODE --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4583 +// +// <-- Short Description --> +// Default value for string array assignment was " " instead of an empty string +t=[];t(3)="foo"; +if or(length(t)<>[0;0;3]) then bugmes();quit;end +t='x';t(2,3)="foo"; +if or(length(t)<>[1 0 0;0 0 3]) then bugmes();quit;end +t(2,3,2)='yy'; +if or(length(t(:))<>[1;0;0;0;0;3;0;0;0;0;0;2]) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_4583.tst b/modules/string/tests/nonreg_tests/bug_4583.tst new file mode 100755 index 000000000..c2ed5cf79 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4583.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - INRIA - Serge Steer <serge.steer@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 4583 --> +// +// <-- CLI SHELL MODE --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4583 +// +// <-- Short Description --> +// Default value for string array assignment was " " instead of an empty string +t=[];t(3)="foo"; +if or(length(t)<>[0;0;3]) then pause,end + +t='x';t(2,3)="foo"; +if or(length(t)<>[1 0 0;0 0 3]) then pause,end + +t(2,3,2)='yy'; +if or(length(t(:))<>[1;0;0;0;0;3;0;0;0;0;0;2]) then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_4656.dia.ref b/modules/string/tests/nonreg_tests/bug_4656.dia.ref new file mode 100755 index 000000000..545420c62 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4656.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4656 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4656 +// +// <-- Short Description --> +// Change of behavior from 4.1.2 to 5.1.1 of the expression: +// size(part(string(1:3),[])) = 1 1 +A = ["abcdef" "ghijkl" "mnopqr"]; +if or(size(part(A,[])) <> [1 3]) then bugmes();quit;end +if or(part(A,[])<>["" "" ""]) then bugmes();quit;end +if or(size(part(string(1:3),[])) <> [1 3]) then bugmes();quit;end +if or(part(string(1:3),[])<>["" "" ""]) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_4656.tst b/modules/string/tests/nonreg_tests/bug_4656.tst new file mode 100755 index 000000000..f6cc5b22b --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4656.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4656 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4656 +// +// <-- Short Description --> +// Change of behavior from 4.1.2 to 5.1.1 of the expression: +// size(part(string(1:3),[])) = 1 1 + +A = ["abcdef" "ghijkl" "mnopqr"]; + +if or(size(part(A,[])) <> [1 3]) then pause, end +if or(part(A,[])<>["" "" ""]) then pause, end + +if or(size(part(string(1:3),[])) <> [1 3]) then pause, end +if or(part(string(1:3),[])<>["" "" ""]) then pause, end diff --git a/modules/string/tests/nonreg_tests/bug_4727.dia.ref b/modules/string/tests/nonreg_tests/bug_4727.dia.ref new file mode 100755 index 000000000..82030542d --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4727.dia.ref @@ -0,0 +1,31 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4727 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4727 +// +// <-- Short Description --> +// The function length does not return the same value in master and Scilab 4.1.2 +// +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; +if length(ascii(0)) <> 1 then bugmes();quit;end +for i = 1 : size(tab_ref,'*') + str = ascii(0) + tab_ref(i) + ascii(0); + if length(str) <> ( 1 + length(tab_ref(i)) + 1) then bugmes();quit;end +end +strs = [ascii(0) ; ascii(0)]; +if length(strs) <> [1;1] then bugmes();quit;end +strs = ['' ; '']; +if length(strs) <> [0;0] then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_4727.tst b/modules/string/tests/nonreg_tests/bug_4727.tst new file mode 100755 index 000000000..3f24e09d9 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4727.tst @@ -0,0 +1,37 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4727 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4727 +// +// <-- Short Description --> +// The function length does not return the same value in master and Scilab 4.1.2 +// +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; + +if length(ascii(0)) <> 1 then pause,end + +for i = 1 : size(tab_ref,'*') + str = ascii(0) + tab_ref(i) + ascii(0); + if length(str) <> ( 1 + length(tab_ref(i)) + 1) then pause,end +end + +strs = [ascii(0) ; ascii(0)]; +if length(strs) <> [1;1] then pause,end + +strs = ['' ; '']; +if length(strs) <> [0;0] then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_4728.dia.ref b/modules/string/tests/nonreg_tests/bug_4728.dia.ref new file mode 100755 index 000000000..e0b633702 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4728.dia.ref @@ -0,0 +1,40 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4728 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4728 +// +// <-- Short Description --> +// Different result between Scilab 4.1.2 and Scilab master for strcat function +// +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; +if (strcat([ascii(0),"t"]) == "t" + ascii(0)) <> %f then bugmes();quit;end +if (strcat([ascii(0),"t",ascii(0)]) <> ascii(0) + "t" + ascii(0)) <> %f then bugmes();quit;end +A = strcat([ascii(0),"t"]); +B = "t"+ascii(0); +C = ascii(0) + "t"; +if A <> C then bugmes();quit;end +sA = length(A); +if sA <> 2 then bugmes();quit;end +sB = length(B); +if sB <> 2 then bugmes();quit;end +sC = length(C); +if sC <> 2 then bugmes();quit;end +for i = 1 : size(tab_ref,'*') + r1 = strcat([tab_ref(i),ascii(0),tab_ref(i)]); + r2 = tab_ref(i) + ascii(0) + tab_ref(i); + if length(r1) <> ( 2 * length(tab_ref(i)) + 1) then bugmes();quit;end + if r1 <> r2 then bugmes();quit;end +end diff --git a/modules/string/tests/nonreg_tests/bug_4728.tst b/modules/string/tests/nonreg_tests/bug_4728.tst new file mode 100755 index 000000000..c37caa16d --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4728.tst @@ -0,0 +1,50 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4728 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4728 +// +// <-- Short Description --> +// Different result between Scilab 4.1.2 and Scilab master for strcat function +// +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; + +if (strcat([ascii(0),"t"]) == "t" + ascii(0)) <> %f then pause,end + +if (strcat([ascii(0),"t",ascii(0)]) <> ascii(0) + "t" + ascii(0)) <> %f then pause,end + +A = strcat([ascii(0),"t"]); +B = "t"+ascii(0); +C = ascii(0) + "t"; + +if A <> C then pause,end + +sA = length(A); +if sA <> 2 then pause,end + +sB = length(B); +if sB <> 2 then pause,end + +sC = length(C); +if sC <> 2 then pause,end + +for i = 1 : size(tab_ref,'*') + r1 = strcat([tab_ref(i),ascii(0),tab_ref(i)]); + r2 = tab_ref(i) + ascii(0) + tab_ref(i); + if length(r1) <> ( 2 * length(tab_ref(i)) + 1) then pause,end + if r1 <> r2 then pause, end +end diff --git a/modules/string/tests/nonreg_tests/bug_4752.dia.ref b/modules/string/tests/nonreg_tests/bug_4752.dia.ref new file mode 100755 index 000000000..4ccb935fe --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4752.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 -INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4752 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4752 +// +// Short description: +// sci2exp produces erroneous code when applied to boolean matrices (; are missing) +a=[%f,%f,%f;%f,%f,%t]; +if sci2exp(a)<>'[%f,%f,%f;%f,%f,%t]' then bugmes();quit;end +if sci2exp(a,0)<>'[%f,%f,%f;%f,%f,%t]' then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_4752.tst b/modules/string/tests/nonreg_tests/bug_4752.tst new file mode 100755 index 000000000..adab6853a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4752.tst @@ -0,0 +1,22 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 -INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4752 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4752 +// +// Short description: +// sci2exp produces erroneous code when applied to boolean matrices (; are missing) + + +a=[%f,%f,%f;%f,%f,%t]; +if sci2exp(a)<>'[%f,%f,%f;%f,%f,%t]' then pause,end +if sci2exp(a,0)<>'[%f,%f,%f;%f,%f,%t]' then pause,end + diff --git a/modules/string/tests/nonreg_tests/bug_4761.dia.ref b/modules/string/tests/nonreg_tests/bug_4761.dia.ref new file mode 100755 index 000000000..fa4d1ec94 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4761.dia.ref @@ -0,0 +1,18 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4761 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4761 +// +// Short description: +// memory leak in grep with regexp crashes scilab +a = string(rand(500,10)); +for i = 1:500 + b = grep(a,'/123|456$/','r'); +end diff --git a/modules/string/tests/nonreg_tests/bug_4761.tst b/modules/string/tests/nonreg_tests/bug_4761.tst new file mode 100755 index 000000000..dabcc38b8 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4761.tst @@ -0,0 +1,21 @@ +// ============================================================================ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================ + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 4761 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4761 +// +// Short description: +// memory leak in grep with regexp crashes scilab + +a = string(rand(500,10)); +for i = 1:500 + b = grep(a,'/123|456$/','r'); +end diff --git a/modules/string/tests/nonreg_tests/bug_4768.dia.ref b/modules/string/tests/nonreg_tests/bug_4768.dia.ref new file mode 100755 index 000000000..075a606bd --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4768.dia.ref @@ -0,0 +1,56 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4768 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4768 +// +// <-- Short Description --> +//strsplit does not work with localized characters +//======================================================================================== +v = "世界您好"; +ref_res1 = ["世";"界您好"]; +ref_res3 = ["世界您";"好"]; +r = strsplit(v,1) + r = + +!世 ! +! ! +!界您好 ! +if r <> ref_res1 then bugmes();quit;end +r = strsplit(v,3) + r = + +!世界您 ! +! ! +!好 ! +if r <> ref_res3 then bugmes();quit;end +//======================================================================================== +v = "азеазея"; +ref_res1 = ["а";"зеазея"] + ref_res1 = + +!а ! +! ! +!зеазея ! +ref_res3 = ["азе";"азея"]; +r = strsplit(v,1) + r = + +!а ! +! ! +!зеазея ! +if r <> ref_res1 then bugmes();quit;end +r = strsplit(v,3) + r = + +!азе ! +! ! +!азея ! +if r <> ref_res3 then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_4768.tst b/modules/string/tests/nonreg_tests/bug_4768.tst new file mode 100755 index 000000000..400b6f4ef --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4768.tst @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4768 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4768 +// +// <-- Short Description --> +//strsplit does not work with localized characters + +//======================================================================================== +v = "世界您好"; +ref_res1 = ["世";"界您好"]; +ref_res3 = ["世界您";"好"]; +r = strsplit(v,1) +if r <> ref_res1 then pause,end +r = strsplit(v,3) +if r <> ref_res3 then pause,end +//======================================================================================== +v = "азеазея"; +ref_res1 = ["а";"зеазея"] +ref_res3 = ["азе";"азея"]; +r = strsplit(v,1) +if r <> ref_res1 then pause,end +r = strsplit(v,3) +if r <> ref_res3 then pause,end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_4807.dia.ref b/modules/string/tests/nonreg_tests/bug_4807.dia.ref new file mode 100755 index 000000000..99dba119a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4807.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4807 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4807 +// +// <-- Short Description --> +//strsubst does not check if second argument is a valid pattern when there is 'r' as +// fourth argument +//======================================================================================== +ierr = execstr("strsubst(''pattern -- pattern __ pattern '',''pattern'',''replace'',''r'');","errcatch"); +if ierr <> 999 then bugmes();quit;end +ierr = execstr("strsubst(''pattern -- pattern __ pattern '',''/pattern/'',''replace'',''r'');","errcatch"); +if ierr <> 0 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_4807.tst b/modules/string/tests/nonreg_tests/bug_4807.tst new file mode 100755 index 000000000..48a4902a0 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_4807.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 4807 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4807 +// +// <-- Short Description --> +//strsubst does not check if second argument is a valid pattern when there is 'r' as +// fourth argument +//======================================================================================== +ierr = execstr("strsubst(''pattern -- pattern __ pattern '',''pattern'',''replace'',''r'');","errcatch"); +if ierr <> 999 then pause,end + +ierr = execstr("strsubst(''pattern -- pattern __ pattern '',''/pattern/'',''replace'',''r'');","errcatch"); +if ierr <> 0 then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_5071.dia.ref b/modules/string/tests/nonreg_tests/bug_5071.dia.ref new file mode 100755 index 000000000..bab8def90 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5071.dia.ref @@ -0,0 +1,30 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5071 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5071 +// +// <-- Short Description --> +// isletter("é") returns [%F %F] instead of %F +//======================================================================================== +v = "世界您好 3"; +ref = [%T %T %T %T %F %F]; +if ~and(isletter(v) == ref) then bugmes();quit;end +if length(v) <> size(isletter(v),'*') then bugmes();quit;end +//======================================================================================== +v = "азеазея 3 азеазея"; +ref = [ %T %T %T %T %T %T %T %F %F %F %T %T %T %T %T %T %T ]; +if ~and(isletter(v) == ref) then bugmes();quit;end +if length(v) <> size(isletter(v),'*') then bugmes();quit;end +//======================================================================================== +v = "TéTé a 3"; +ref = [ %T %T %T %T %F %T %F %F ]; +if ~and(isletter(v) == ref) then bugmes();quit;end +if length(v) <> size(isletter(v),'*') then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_5071.tst b/modules/string/tests/nonreg_tests/bug_5071.tst new file mode 100755 index 000000000..2bca9c97a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5071.tst @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5071 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5071 +// +// <-- Short Description --> +// isletter("é") returns [%F %F] instead of %F + +//======================================================================================== +v = "世界您好 3"; +ref = [%T %T %T %T %F %F]; +if ~and(isletter(v) == ref) then pause,end +if length(v) <> size(isletter(v),'*') then pause,end +//======================================================================================== +v = "азеазея 3 азеазея"; +ref = [ %T %T %T %T %T %T %T %F %F %F %T %T %T %T %T %T %T ]; +if ~and(isletter(v) == ref) then pause,end +if length(v) <> size(isletter(v),'*') then pause,end +//======================================================================================== +v = "TéTé a 3"; +ref = [ %T %T %T %T %F %T %F %F ]; +if ~and(isletter(v) == ref) then pause,end +if length(v) <> size(isletter(v),'*') then pause,end +//======================================================================================== + diff --git a/modules/string/tests/nonreg_tests/bug_5072.dia.ref b/modules/string/tests/nonreg_tests/bug_5072.dia.ref new file mode 100755 index 000000000..b2882f4a7 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5072.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5072 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5072 +// +// <-- Short Description --> +// strspn("aéio","éa") returns 3 instead of 2 +//======================================================================================== +ref = 2; +res = strspn("aéio","éa"); +if ref <> res then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_5072.tst b/modules/string/tests/nonreg_tests/bug_5072.tst new file mode 100755 index 000000000..d6901c3a7 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5072.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5072 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5072 +// +// <-- Short Description --> +// strspn("aéio","éa") returns 3 instead of 2 + +//======================================================================================== +ref = 2; +res = strspn("aéio","éa"); +if ref <> res then pause,end +//======================================================================================== + + diff --git a/modules/string/tests/nonreg_tests/bug_5073.dia.ref b/modules/string/tests/nonreg_tests/bug_5073.dia.ref new file mode 100755 index 000000000..abb4348e9 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5073.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 5073 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5073 +// +// <-- Short Description --> +// Optional argument added for decimal separator +assert_checkequal(strtod("1,3",","),1.3); +str_ref=",3"; +d_ref=1; +[d, str]=strtod("1,3","."); +assert_checkequal(d, 1); +assert_checkequal(str, ",3"); diff --git a/modules/string/tests/nonreg_tests/bug_5073.tst b/modules/string/tests/nonreg_tests/bug_5073.tst new file mode 100755 index 000000000..a2c33b480 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5073.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 5073 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5073 +// +// <-- Short Description --> +// Optional argument added for decimal separator + +assert_checkequal(strtod("1,3",","),1.3); +str_ref=",3"; +d_ref=1; +[d, str]=strtod("1,3","."); +assert_checkequal(d, 1); +assert_checkequal(str, ",3"); diff --git a/modules/string/tests/nonreg_tests/bug_5291.dia.ref b/modules/string/tests/nonreg_tests/bug_5291.dia.ref new file mode 100755 index 000000000..a7c80cc39 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5291.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 5291 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5291 +// +// <-- Short Description --> +// [R,F]=strtod(S) should return %nan instead of 0 as interpreted real number when +// no real number can be detected at the beginning of processed strings. +// +[R, F]=strtod([ "123" "+i"]); +assert_checkequal(R(1), 123); +assert_checktrue(isnan(R(2))); +assert_checkequal(F, ['' '+i']); diff --git a/modules/string/tests/nonreg_tests/bug_5291.tst b/modules/string/tests/nonreg_tests/bug_5291.tst new file mode 100755 index 000000000..dadaefb8a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5291.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 5291 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5291 +// +// <-- Short Description --> +// [R,F]=strtod(S) should return %nan instead of 0 as interpreted real number when +// no real number can be detected at the beginning of processed strings. +// + +[R, F]=strtod([ "123" "+i"]); +assert_checkequal(R(1), 123); +assert_checktrue(isnan(R(2))); +assert_checkequal(F, ['' '+i']); diff --git a/modules/string/tests/nonreg_tests/bug_5373.dia.ref b/modules/string/tests/nonreg_tests/bug_5373.dia.ref new file mode 100755 index 000000000..72fc1a392 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5373.dia.ref @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5373 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5373 +// +// <-- Short Description --> +// isalphanum() doesn't support non ascii chars +//======================================================================================== +ref = [%T]; +res = isalphanum("é"); +if ref <> res then bugmes();quit;end +//======================================================================================== +ref = [%T %T %T %T %T %T %F %T %F %T %T %T %T %T %T]; +res = isalphanum("scilab é scilab"); +if ~and(ref == res) then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_5373.tst b/modules/string/tests/nonreg_tests/bug_5373.tst new file mode 100755 index 000000000..95c2363ea --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5373.tst @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5373 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5373 +// +// <-- Short Description --> +// isalphanum() doesn't support non ascii chars + +//======================================================================================== +ref = [%T]; +res = isalphanum("é"); +if ref <> res then pause,end +//======================================================================================== +ref = [%T %T %T %T %T %T %F %T %F %T %T %T %T %T %T]; +res = isalphanum("scilab é scilab"); +if ~and(ref == res) then pause,end +//======================================================================================== + + diff --git a/modules/string/tests/nonreg_tests/bug_5375.dia.ref b/modules/string/tests/nonreg_tests/bug_5375.dia.ref new file mode 100755 index 000000000..b83b1d41d --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5375.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5375 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5375 +// +// <-- Short Description --> +// isdigit() doesn't support non ascii chars +//======================================================================================== +ref = [%F %F %T]; +res = isdigit("éa2"); +if ~and(ref == res) then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_5375.tst b/modules/string/tests/nonreg_tests/bug_5375.tst new file mode 100755 index 000000000..4dd74301b --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5375.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5375 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5375 +// +// <-- Short Description --> +// isdigit() doesn't support non ascii chars + +//======================================================================================== +ref = [%F %F %T]; +res = isdigit("éa2"); +if ~and(ref == res) then pause,end +//======================================================================================== + + diff --git a/modules/string/tests/nonreg_tests/bug_55.dia.ref b/modules/string/tests/nonreg_tests/bug_55.dia.ref new file mode 100755 index 000000000..dae185b23 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_55.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 55 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=55 +// +// <-- Short Description --> +// The sci2exp function gives wrong result with the -%inf +// value. +// sci2exp(-%inf) = -Inf instead of the right result = -%inf +if sci2exp(%inf) <> "%inf" then bugmes();quit;end +if sci2exp(-%inf)<> "-%inf" then bugmes();quit;end +if sci2exp(%nan) <> "%nan" then bugmes();quit;end +if sci2exp(-%nan)<> "%nan" then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_55.tst b/modules/string/tests/nonreg_tests/bug_55.tst new file mode 100755 index 000000000..f3ec0df34 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_55.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 55 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=55 +// +// <-- Short Description --> +// The sci2exp function gives wrong result with the -%inf +// value. +// sci2exp(-%inf) = -Inf instead of the right result = -%inf + +if sci2exp(%inf) <> "%inf" then pause,end +if sci2exp(-%inf)<> "-%inf" then pause,end +if sci2exp(%nan) <> "%nan" then pause,end +if sci2exp(-%nan)<> "%nan" then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_5659.dia.ref b/modules/string/tests/nonreg_tests/bug_5659.dia.ref new file mode 100755 index 000000000..765e24d46 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5659.dia.ref @@ -0,0 +1,34 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5659 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5659 +// +// <-- Short Description --> +// emptystr changed the value of an input variable. +//======================================================================================== +a = 3; +b = emptystr(); +if b <> '' then bugmes();quit;end +if a <> 3 then bugmes();quit;end +//======================================================================================== +a = 3; +b = emptystr(a); +if a <> 3 then bugmes();quit;end +//======================================================================================== +a = 3; +b = 2; +c = emptystr(a, b); +if a <> 3 then bugmes();quit;end +if b <> 2 then bugmes();quit;end +//======================================================================================== +a = 3; +c = emptystr(a, a); +if a <> 3 then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_5659.tst b/modules/string/tests/nonreg_tests/bug_5659.tst new file mode 100755 index 000000000..572b6663b --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_5659.tst @@ -0,0 +1,35 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 5659 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=5659 +// +// <-- Short Description --> +// emptystr changed the value of an input variable. + +//======================================================================================== +a = 3; +b = emptystr(); +if b <> '' then pause,end +if a <> 3 then pause,end +//======================================================================================== +a = 3; +b = emptystr(a); +if a <> 3 then pause,end +//======================================================================================== +a = 3; +b = 2; +c = emptystr(a, b); +if a <> 3 then pause,end +if b <> 2 then pause,end +//======================================================================================== +a = 3; +c = emptystr(a, a); +if a <> 3 then pause,end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_6666.dia.ref b/modules/string/tests/nonreg_tests/bug_6666.dia.ref new file mode 100755 index 000000000..73638df75 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_6666.dia.ref @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 6666 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6666 +// +// <-- Short Description --> +// emptystr() gave a wrong result instead of complaining about hypermatrix. +//======================================================================================== +M = rand(7, 3); +T = emptystr(M); +if or(size(T) <> [ 7 3 ]) then bugmes();quit;end +M = rand(2, 2, 2); +ierr = execstr("T = emptystr(M);","errcatch"); +if ierr == 0 then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_6666.tst b/modules/string/tests/nonreg_tests/bug_6666.tst new file mode 100755 index 000000000..cdba4e59f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_6666.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 6666 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6666 +// +// <-- Short Description --> +// emptystr() gave a wrong result instead of complaining about hypermatrix. +//======================================================================================== +M = rand(7, 3); +T = emptystr(M); +if or(size(T) <> [ 7 3 ]) then pause, end + +M = rand(2, 2, 2); +ierr = execstr("T = emptystr(M);","errcatch"); +if ierr == 0 then pause, end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_7057.dia.ref b/modules/string/tests/nonreg_tests/bug_7057.dia.ref new file mode 100755 index 000000000..efc18eddd --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7057.dia.ref @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7057 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7057 +// +// <-- Short Description --> +// isdigit & isalphanum crashed with a matrix of string as input argument. +//======================================================================================== +a = ["a1";"b2b";"1cc2c";"4d555"]; +ierr = execstr('isdigit(a)','errcatch'); +if ierr == 0 then bugmes();quit;end +//======================================================================================== +a = ["a1";"b2b";"1cc2c";"4d555"]; +ierr = execstr('isalphanum(a)','errcatch'); +if ierr == 0 then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_7057.tst b/modules/string/tests/nonreg_tests/bug_7057.tst new file mode 100755 index 000000000..76ffcb21d --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7057.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7057 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7057 +// +// <-- Short Description --> +// isdigit & isalphanum crashed with a matrix of string as input argument. +//======================================================================================== +a = ["a1";"b2b";"1cc2c";"4d555"]; +ierr = execstr('isdigit(a)','errcatch'); +if ierr == 0 then pause, end +//======================================================================================== +a = ["a1";"b2b";"1cc2c";"4d555"]; +ierr = execstr('isalphanum(a)','errcatch'); +if ierr == 0 then pause, end +//======================================================================================== diff --git a/modules/string/tests/nonreg_tests/bug_7163.dia.ref b/modules/string/tests/nonreg_tests/bug_7163.dia.ref new file mode 100755 index 000000000..b4c3ab738 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7163.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7163 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7163 +// +// <-- Short Description --> +// tree2code wrongly replaced every (:) occurence in a function definition with (eye()). +function foo(r) + r(:)=1 +endfunction +txt = tree2code(macr2tree(foo)); +if or(txt<>["function [] = foo(r)";"r(:) = 1";"";"endfunction";""]) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_7163.tst b/modules/string/tests/nonreg_tests/bug_7163.tst new file mode 100755 index 000000000..054202c4f --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7163.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7163 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7163 +// +// <-- Short Description --> +// tree2code wrongly replaced every (:) occurence in a function definition with (eye()). + +function foo(r) + r(:)=1 +endfunction + +txt = tree2code(macr2tree(foo)); + +if or(txt<>["function [] = foo(r)";"r(:) = 1";"";"endfunction";""]) then pause; end diff --git a/modules/string/tests/nonreg_tests/bug_7205.dia.ref b/modules/string/tests/nonreg_tests/bug_7205.dia.ref new file mode 100755 index 000000000..0fee23bb7 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7205.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 7205 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7205 +// +// <-- Short Description --> +// length() applied to a non string hypermatrix returns 3 instead size(H,"*") +// +A=rand(2,2,2,2); +assert_checkequal(length(A),double(prod(A.dims))); +A=rand(5,5,5,5,5,5,5); +assert_checkequal(length(A),double(prod(A.dims))); diff --git a/modules/string/tests/nonreg_tests/bug_7205.tst b/modules/string/tests/nonreg_tests/bug_7205.tst new file mode 100755 index 000000000..ba1ca4699 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7205.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2014 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 7205 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7205 +// +// <-- Short Description --> +// length() applied to a non string hypermatrix returns 3 instead size(H,"*") +// + +A=rand(2,2,2,2); +assert_checkequal(length(A),double(prod(A.dims))); +A=rand(5,5,5,5,5,5,5); +assert_checkequal(length(A),double(prod(A.dims))); diff --git a/modules/string/tests/nonreg_tests/bug_7236.dia.ref b/modules/string/tests/nonreg_tests/bug_7236.dia.ref new file mode 100755 index 000000000..b8f1533f7 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7236.dia.ref @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7236 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7236 +// +// <-- Short Description --> +// sci2exp(-%inf) return a wrong value -nf and not -%inf, +// a consequence of bug 1371 fix +if sci2exp(%inf)<>"%inf" then bugmes();quit;end +if sci2exp(-%inf)<>"-%inf" then bugmes();quit;end +if sci2exp(%nan)<>"%nan" then bugmes();quit;end +if string(%inf)<>"Inf" then bugmes();quit;end +if string(-%inf)<>"-Inf" then bugmes();quit;end +if string(1-imult(%inf))<>" 1-%i*Inf" then bugmes();quit;end +if string(1+imult(%inf))<>" 1+%i*Inf" then bugmes();quit;end +if sci2exp(1-imult(%inf))<>" 1-%i*%inf" then bugmes();quit;end +if sci2exp(1+imult(%inf))<>" 1+%i*%inf" then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_7236.tst b/modules/string/tests/nonreg_tests/bug_7236.tst new file mode 100755 index 000000000..409b035f0 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7236.tst @@ -0,0 +1,27 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// <-- Non-regression test for bug 7236 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7236 +// +// <-- Short Description --> +// sci2exp(-%inf) return a wrong value -nf and not -%inf, +// a consequence of bug 1371 fix + +if sci2exp(%inf)<>"%inf" then pause,end +if sci2exp(-%inf)<>"-%inf" then pause,end +if sci2exp(%nan)<>"%nan" then pause,end +if string(%inf)<>"Inf" then pause,end +if string(-%inf)<>"-Inf" then pause,end +if string(1-imult(%inf))<>" 1-%i*Inf" then pause,end +if string(1+imult(%inf))<>" 1+%i*Inf" then pause,end +if sci2exp(1-imult(%inf))<>" 1-%i*%inf" then pause,end +if sci2exp(1+imult(%inf))<>" 1+%i*%inf" then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_7249.dia.ref b/modules/string/tests/nonreg_tests/bug_7249.dia.ref new file mode 100755 index 000000000..26e72aa20 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7249.dia.ref @@ -0,0 +1,86 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 7249 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7249 +// +// <-- Short Description --> +// 'string' function did not work with a macro as input argument. +// +// ============================================================================= +function myFunc + disp('myFunc called'); +endfunction +ref_txt = [' '; .. + 'disp(''myFunc called'');'; .. + ' ']; +[in, out, txt] = string(myFunc); +assert_checkequal(out, []); +assert_checkequal(in, []); +assert_checkequal(txt, ref_txt); +// ============================================================================= +deff('myFund()', 'disp(''myFunc called'');', 'n'); +[in2, out2, txt2] = string(myFund); +assert_checkequal(out2, out); +assert_checkequal(in2, in); +assert_checkequal(txt2, ref_txt); +// ============================================================================= +function [x, y, z] = myFunc1(a,b,c,d) + x = []; + y = []; + z = []; + function k = myFunc2(x) + k = x + 1; + endfunction + y = myFunc2(a); +endfunction +ref_text = [" "; .. + "x = [];"; .. + "y = [];"; .. + "z = [];"; .. + "function k = myFunc2(x)"; .. + " k = x + 1;"; .. + "endfunction"; .. + "y = myFunc2(a);"; .. + " "]; +[in, out, txt] = string(myFunc1); +assert_checkequal(out, ['a','b','c','d']); +assert_checkequal(in, ['x','y','z']); +assert_checkequal(txt, ref_text); +// ============================================================================= +deff('y = mymacro(x)', 'y = x + 1'); +[out, in, text] = string(mymacro); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, [' '; 'y = x + 1'; ' ']); +// ============================================================================= +deff('y = mymacrob(x)', 'y = x + 1', 'n'); +[out, in, text] = string(mymacrob); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, [' '; 'y = x + 1'; ' ']); +// ============================================================================= +[out, in, text] = string(sinc); +assert_checkequal(out, 'y'); +assert_checkequal(in, ['x', 'fl']); +assert_checkequal(text <> [], %t); +// ============================================================================= +function y=foo(x);y=x+1;endfunction +[out, in, text] = string(foo); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, 'y = x + 1;'); +// ============================================================================= +deff('[y,z] = mymacroc(x,i)', 'y = x + 1;z = y;', 'n'); +[out, in, text] = string(mymacroc); +assert_checkequal(out, ['y', 'z']); +assert_checkequal(in, ['x', 'i']); +assert_checkequal(text, [' '; 'y = x + 1;z = y;'; ' ']); +// ============================================================================= diff --git a/modules/string/tests/nonreg_tests/bug_7249.tst b/modules/string/tests/nonreg_tests/bug_7249.tst new file mode 100755 index 000000000..36202048c --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7249.tst @@ -0,0 +1,91 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 7249 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7249 +// +// <-- Short Description --> +// 'string' function did not work with a macro as input argument. +// +// ============================================================================= +function myFunc + disp('myFunc called'); +endfunction + +ref_txt = [' '; .. + 'disp(''myFunc called'');'; .. + ' ']; + +[in, out, txt] = string(myFunc); +assert_checkequal(out, []); +assert_checkequal(in, []); +assert_checkequal(txt, ref_txt); +// ============================================================================= +deff('myFund()', 'disp(''myFunc called'');', 'n'); +[in2, out2, txt2] = string(myFund); +assert_checkequal(out2, out); +assert_checkequal(in2, in); +assert_checkequal(txt2, ref_txt); +// ============================================================================= +function [x, y, z] = myFunc1(a,b,c,d) + x = []; + y = []; + z = []; + function k = myFunc2(x) + k = x + 1; + endfunction + y = myFunc2(a); +endfunction + +ref_text = [" "; .. + "x = [];"; .. + "y = [];"; .. + "z = [];"; .. + "function k = myFunc2(x)"; .. + " k = x + 1;"; .. + "endfunction"; .. + "y = myFunc2(a);"; .. + " "]; + +[in, out, txt] = string(myFunc1); +assert_checkequal(out, ['a','b','c','d']); +assert_checkequal(in, ['x','y','z']); +assert_checkequal(txt, ref_text); +// ============================================================================= +deff('y = mymacro(x)', 'y = x + 1'); +[out, in, text] = string(mymacro); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, [' '; 'y = x + 1'; ' ']); +// ============================================================================= +deff('y = mymacrob(x)', 'y = x + 1', 'n'); +[out, in, text] = string(mymacrob); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, [' '; 'y = x + 1'; ' ']); +// ============================================================================= +[out, in, text] = string(sinc); +assert_checkequal(out, 'y'); +assert_checkequal(in, ['x', 'fl']); +assert_checkequal(text <> [], %t); +// ============================================================================= +function y=foo(x);y=x+1;endfunction +[out, in, text] = string(foo); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, 'y = x + 1;'); +// ============================================================================= +deff('[y,z] = mymacroc(x,i)', 'y = x + 1;z = y;', 'n'); +[out, in, text] = string(mymacroc); +assert_checkequal(out, ['y', 'z']); +assert_checkequal(in, ['x', 'i']); +assert_checkequal(text, [' '; 'y = x + 1;z = y;'; ' ']); +// ============================================================================= + diff --git a/modules/string/tests/nonreg_tests/bug_7278.dia.ref b/modules/string/tests/nonreg_tests/bug_7278.dia.ref new file mode 100755 index 000000000..574b93d30 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7278.dia.ref @@ -0,0 +1,110 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7278 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7278 +// +// <-- Short Description --> +// strsplit did not work with some particular inputs. +//=============================== +if strsplit("0") <> "0" then bugmes();quit;end +//=============================== +if strsplit("0","") <> "0" then bugmes();quit;end +if strsplit("1","") <> "1" then bugmes();quit;end +if strsplit("2","") <> "2" then bugmes();quit;end +if strsplit("3","") <> "3" then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("",":",1); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("",":",1); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("",","); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("","/:|,/"); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("","/:|,/"); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("",[":";","]); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("",[":";","]); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("",[":";","]); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("",[":";","],2); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("",[":";","],2); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("",[":";","],2); +if r_1 <> "" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("r",":",1); +if r_1 <> "r" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit(":",":",1); +if r_1 <> ":" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit(",",","); +if r_1 <> "," then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("r","/:|,/"); +if r_1 <> "r" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit(":","/:|,/"); +if r_1 <> ":" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("a",[":";","]); +if r_1 <> "a" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit(":",[":";","]); +if r_1 <> ":" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit(",",[":";","]); +if r_1 <> "," then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit("a",[":";","],2); +if r_1 <> "a" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit(":",[":";","],2); +if r_1 <> ":" then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== +[r_1, r_2] = strsplit(",",[":";","],2); +if r_1 <> "," then bugmes();quit;end +if r_2 <> [] then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/nonreg_tests/bug_7278.tst b/modules/string/tests/nonreg_tests/bug_7278.tst new file mode 100755 index 000000000..6481ca992 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7278.tst @@ -0,0 +1,111 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7278 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7278 +// +// <-- Short Description --> +// strsplit did not work with some particular inputs. +//=============================== +if strsplit("0") <> "0" then pause,end +//=============================== +if strsplit("0","") <> "0" then pause,end +if strsplit("1","") <> "1" then pause,end +if strsplit("2","") <> "2" then pause,end +if strsplit("3","") <> "3" then pause,end +//=============================== +[r_1, r_2] = strsplit("",":",1); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("",":",1); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("",","); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("","/:|,/"); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("","/:|,/"); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("",[":";","]); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("",[":";","]); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("",[":";","]); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("",[":";","],2); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("",[":";","],2); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("",[":";","],2); +if r_1 <> "" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("r",":",1); +if r_1 <> "r" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit(":",":",1); +if r_1 <> ":" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit(",",","); +if r_1 <> "," then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("r","/:|,/"); +if r_1 <> "r" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit(":","/:|,/"); +if r_1 <> ":" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("a",[":";","]); +if r_1 <> "a" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit(":",[":";","]); +if r_1 <> ":" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit(",",[":";","]); +if r_1 <> "," then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit("a",[":";","],2); +if r_1 <> "a" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit(":",[":";","],2); +if r_1 <> ":" then pause,end +if r_2 <> [] then pause,end +//=============================== +[r_1, r_2] = strsplit(",",[":";","],2); +if r_1 <> "," then pause,end +if r_2 <> [] then pause,end +//=============================== diff --git a/modules/string/tests/nonreg_tests/bug_7282.dia.ref b/modules/string/tests/nonreg_tests/bug_7282.dia.ref new file mode 100755 index 000000000..e18ddc082 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7282.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7282 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7282 +// +// <-- Short Description --> +// eval failed on some functions without output arguments. +str = "realtimeinit(60)"; +r = eval(str); +if r <> [] then bugmes();quit;end +function o = blabla() + o = 3; +endfunction +r = eval("blabla()"); +if r <> 3 then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_7282.tst b/modules/string/tests/nonreg_tests/bug_7282.tst new file mode 100755 index 000000000..67217b091 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7282.tst @@ -0,0 +1,28 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7282 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7282 +// +// <-- Short Description --> +// eval failed on some functions without output arguments. + +str = "realtimeinit(60)"; +r = eval(str); +if r <> [] then pause, end + +function o = blabla() + o = 3; +endfunction + +r = eval("blabla()"); +if r <> 3 then pause, end + + diff --git a/modules/string/tests/nonreg_tests/bug_7312.dia.ref b/modules/string/tests/nonreg_tests/bug_7312.dia.ref new file mode 100755 index 000000000..814f7b79a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7312.dia.ref @@ -0,0 +1,15 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7312 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7312 +// +// <-- Short Description --> +// isnum is broken when using some unusual parameters. +if isnum("a=") then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_7312.tst b/modules/string/tests/nonreg_tests/bug_7312.tst new file mode 100755 index 000000000..ef5b7461a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7312.tst @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7312 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7312 +// +// <-- Short Description --> +// isnum is broken when using some unusual parameters. + +if isnum("a=") then pause,end diff --git a/modules/string/tests/nonreg_tests/bug_7733.dia.ref b/modules/string/tests/nonreg_tests/bug_7733.dia.ref new file mode 100755 index 000000000..b5fc9792c --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7733.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7312 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7312 +// +// <-- Short Description --> +// strstr crashed scilab if the second input argument was longer than the first one. +if execstr("r = strstr(""small"", ""largestring"")", "errcatch") <> 0 then bugmes();quit;end +if r <> "" then bugmes();quit;end +r = strstr(["a","b";"c","d"], "largestring"); +ref = emptystr(2, 2); +if or(r <> ref) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_7733.tst b/modules/string/tests/nonreg_tests/bug_7733.tst new file mode 100755 index 000000000..b1421fa36 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7733.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7312 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7312 +// +// <-- Short Description --> +// strstr crashed scilab if the second input argument was longer than the first one. + +if execstr("r = strstr(""small"", ""largestring"")", "errcatch") <> 0 then pause,end +if r <> "" then pause, end + +r = strstr(["a","b";"c","d"], "largestring"); +ref = emptystr(2, 2); +if or(r <> ref) then pause, end diff --git a/modules/string/tests/nonreg_tests/bug_7751.dia.ref b/modules/string/tests/nonreg_tests/bug_7751.dia.ref new file mode 100755 index 000000000..14159b74e --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7751.dia.ref @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7751 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7751 +// +// <-- Short Description --> +// justify() did not work correctly with strings embedded leading or trailing spaces. +s = [" 1223 " " hetsher " ; "abdljmkm" " fljl"]; +r1 = justify(s,"l"); +r2 = justify(s,"c"); +r3 = justify(s,"r"); +s = stripblanks(s); +ref1 = justify(s,"l"); +ref2 = justify(s,"c"); +ref3 = justify(s,"r"); +if or(ref1 <> r1) then bugmes();quit;end +if or(ref2 <> r2) then bugmes();quit;end +if or(ref3 <> r3) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_7751.tst b/modules/string/tests/nonreg_tests/bug_7751.tst new file mode 100755 index 000000000..7d6b702e1 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7751.tst @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- Non-regression test for bug 7751 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7751 +// +// <-- Short Description --> +// justify() did not work correctly with strings embedded leading or trailing spaces. + +s = [" 1223 " " hetsher " ; "abdljmkm" " fljl"]; +r1 = justify(s,"l"); +r2 = justify(s,"c"); +r3 = justify(s,"r"); +s = stripblanks(s); +ref1 = justify(s,"l"); +ref2 = justify(s,"c"); +ref3 = justify(s,"r"); + +if or(ref1 <> r1) then pause, end +if or(ref2 <> r2) then pause, end +if or(ref3 <> r3) then pause, end + diff --git a/modules/string/tests/nonreg_tests/bug_7879.dia.ref b/modules/string/tests/nonreg_tests/bug_7879.dia.ref new file mode 100755 index 000000000..b680ae68b --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7879.dia.ref @@ -0,0 +1,46 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises- Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 7879 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7879 +// +// <-- Short Description --> +// string now accepts plist type. +function order = mycompfun ( x , y ) + order = x+y; +endfunction +params = init_param(); +params = add_param(params, "boolval", %f); +params = add_param(params, "funval", mycompfun); +params = add_param(params, "doubleval", 1); +params = add_param(params, "doublematrix", ones(10, 10)); +params = add_param(params, "stringval", "1"); +params = add_param(params, "stringmat", ["1" "2"]); +string(params) + ans = + +!Parameters list: ! +! ! +!================ ! +! ! +!Number of fields = 6 ! +! ! +!boolval = F ("boolean") ! +! ! +!funval = "function" ! +! ! +!doubleval = 1 ("constant") ! +! ! +!doublematrix = "constant" 10x10 ! +! ! +!stringval = 1 ("string") ! +! ! +!stringmat = "string" 1x2 ! diff --git a/modules/string/tests/nonreg_tests/bug_7879.tst b/modules/string/tests/nonreg_tests/bug_7879.tst new file mode 100755 index 000000000..7275b26a0 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7879.tst @@ -0,0 +1,30 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises- Paul Bignier +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 7879 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7879 +// +// <-- Short Description --> +// string now accepts plist type. + +function order = mycompfun ( x , y ) + order = x+y; +endfunction + +params = init_param(); +params = add_param(params, "boolval", %f); +params = add_param(params, "funval", mycompfun); +params = add_param(params, "doubleval", 1); +params = add_param(params, "doublematrix", ones(10, 10)); +params = add_param(params, "stringval", "1"); +params = add_param(params, "stringmat", ["1" "2"]); + +string(params) diff --git a/modules/string/tests/nonreg_tests/bug_7951.dia.ref b/modules/string/tests/nonreg_tests/bug_7951.dia.ref new file mode 100755 index 000000000..d3f74ea35 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7951.dia.ref @@ -0,0 +1,45 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 7951 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7951 +// +// <-- Short Description --> +// strcat crashed with row concatenation option on linux. +// +ref = "line1, line2"; +if execstr("r = strcat([""line1"";""line2""], "", "", ""r"")", "errcatch") <> 0 then bugmes();quit;end +if ref <> r then bugmes();quit;end +ref = "line1,line2"; +r = strcat(['line1';'line2'],',','r'); +if ref <> r then bugmes();quit;end +ref = "line1,blafdfdfdfdfffffffffffffffdfdfline2"; +r = strcat(['line1';'line2'],',blafdfdfdfdfffffffffffffffdfdf','r'); +if ref <> r then bugmes();quit;end +num = 30; +baseName = "arg_"; +labels = []; +typ = list(); +values = string(1:num)'; +for i=1:num + varName = baseName + string(i); + // variable declaration + execstr(varName + " = []"); + // description update + labels = [labels; varName]; + // typ update + typ(i * 2 - 1) = "mat"; + typ(i * 2) = [1 1]; +end +argout = strcat(labels, ", ", 'r'); +ref = "arg_1, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8, arg_9, arg_10, arg_11, arg_12, arg_13, arg_14, arg_15, arg_16, arg_17, .. +arg_18, arg_19, arg_20, arg_21, arg_22, arg_23, arg_24, arg_25, arg_26, arg_27, arg_28, arg_29, arg_30"; +if ref <> argout then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_7951.tst b/modules/string/tests/nonreg_tests/bug_7951.tst new file mode 100755 index 000000000..f781f1c61 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_7951.tst @@ -0,0 +1,54 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 7951 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7951 +// +// <-- Short Description --> +// strcat crashed with row concatenation option on linux. +// + +ref = "line1, line2"; +if execstr("r = strcat([""line1"";""line2""], "", "", ""r"")", "errcatch") <> 0 then pause, end +if ref <> r then pause, end + +ref = "line1,line2"; +r = strcat(['line1';'line2'],',','r'); +if ref <> r then pause, end + +ref = "line1,blafdfdfdfdfffffffffffffffdfdfline2"; +r = strcat(['line1';'line2'],',blafdfdfdfdfffffffffffffffdfdf','r'); +if ref <> r then pause, end + +num = 30; +baseName = "arg_"; +labels = []; +typ = list(); +values = string(1:num)'; +for i=1:num + varName = baseName + string(i); + + // variable declaration + execstr(varName + " = []"); + + // description update + labels = [labels; varName]; + + // typ update + typ(i * 2 - 1) = "mat"; + typ(i * 2) = [1 1]; +end + +argout = strcat(labels, ", ", 'r'); +ref = "arg_1, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8, arg_9, arg_10, arg_11, arg_12, arg_13, arg_14, arg_15, arg_16, arg_17, .. +arg_18, arg_19, arg_20, arg_21, arg_22, arg_23, arg_24, arg_25, arg_26, arg_27, arg_28, arg_29, arg_30"; +if ref <> argout then pause, end + diff --git a/modules/string/tests/nonreg_tests/bug_8206.dia.ref b/modules/string/tests/nonreg_tests/bug_8206.dia.ref new file mode 100755 index 000000000..02d37d052 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8206.dia.ref @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8206 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8206 +// +// <-- Short Description --> +// isnum did not manage blanks +// +a = ["-4.5", ""; "", "-5.6"]; +ref = [%T %F; %F %T]; +r = isnum(a); +if ~or(r == ref) then bugmes();quit;end +if isnum("%inf") <> %t then bugmes();quit;end +if isnum("%nan") <> %t then bugmes();quit;end +b = ["-4.5", "", "%nan", "%f", "%i", "%pi"]; +r = isnum(b); +ref = [%T %F %T %F %T %T]; +if ~or(r == ref) then bugmes();quit;end +C = 1; +c = ["-4.5", "blabla"; "C", "-5.6"]; +r = isnum(a); +ref = [%T %F; %T %T]; +if ~or(r == ref) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_8206.tst b/modules/string/tests/nonreg_tests/bug_8206.tst new file mode 100755 index 000000000..43334a180 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8206.tst @@ -0,0 +1,36 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8206 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8206 +// +// <-- Short Description --> +// isnum did not manage blanks +// + +a = ["-4.5", ""; "", "-5.6"]; +ref = [%T %F; %F %T]; +r = isnum(a); +if ~or(r == ref) then pause, end + +if isnum("%inf") <> %t then pause, end +if isnum("%nan") <> %t then pause, end + +b = ["-4.5", "", "%nan", "%f", "%i", "%pi"]; +r = isnum(b); +ref = [%T %F %T %F %T %T]; +if ~or(r == ref) then pause, end + +C = 1; +c = ["-4.5", "blabla"; "C", "-5.6"]; +r = isnum(a); +ref = [%T %F; %T %T]; +if ~or(r == ref) then pause, end diff --git a/modules/string/tests/nonreg_tests/bug_8234.dia.ref b/modules/string/tests/nonreg_tests/bug_8234.dia.ref new file mode 100755 index 000000000..8db859aae --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8234.dia.ref @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8234 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8234 +// +// <-- Short Description --> +// strtod should return an empty matrix when input argument is an empty matrix +[d, str] = strtod([]); +assert_checkequal(d, []); +assert_checkequal(str, ""); diff --git a/modules/string/tests/nonreg_tests/bug_8234.tst b/modules/string/tests/nonreg_tests/bug_8234.tst new file mode 100755 index 000000000..8f12da711 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8234.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8234 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8234 +// +// <-- Short Description --> +// strtod should return an empty matrix when input argument is an empty matrix + +[d, str] = strtod([]); +assert_checkequal(d, []); +assert_checkequal(str, ""); diff --git a/modules/string/tests/nonreg_tests/bug_8459.dia.ref b/modules/string/tests/nonreg_tests/bug_8459.dia.ref new file mode 100755 index 000000000..8ff0d7c61 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8459.dia.ref @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8459 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8459 +// +// <-- Short Description --> +// strsplit failed when second input argument was a "/" +// +ref = [""; "foo"; "bla"]; +ierr = execstr("r1 = strsplit(""/foo/bla"", [""/"" ""\"" "":""], 256);", "errcatch"); +if ierr <> 0 then bugmes();quit;end +if ~or(r1 == ref) then bugmes();quit;end +ierr = execstr("r2 = strsplit(""|foo|bla"", [""|""]);", "errcatch"); +if ierr <> 0 then bugmes();quit;end +if ~or(r2 == ref) then bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_8459.tst b/modules/string/tests/nonreg_tests/bug_8459.tst new file mode 100755 index 000000000..23a3a7bcd --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8459.tst @@ -0,0 +1,27 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8459 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8459 +// +// <-- Short Description --> +// strsplit failed when second input argument was a "/" +// + +ref = [""; "foo"; "bla"]; + +ierr = execstr("r1 = strsplit(""/foo/bla"", [""/"" ""\"" "":""], 256);", "errcatch"); +if ierr <> 0 then pause, end +if ~or(r1 == ref) then pause, end + +ierr = execstr("r2 = strsplit(""|foo|bla"", [""|""]);", "errcatch"); +if ierr <> 0 then pause, end +if ~or(r2 == ref) then pause, end diff --git a/modules/string/tests/nonreg_tests/bug_8481.dia.ref b/modules/string/tests/nonreg_tests/bug_8481.dia.ref new file mode 100755 index 000000000..6ddbc2e4a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8481.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - Calixte DENIZET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8481 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/8481 +// +// <-- Short Description --> +// Scilab crashed when display a rational containing a complex. +// +// the bug came from the use of emptystr() in %r_p.sci +a='a'; +emptystr(); +s=size(emptystr(a)); +if s(2) ~= 1 then, bugmes();quit;end diff --git a/modules/string/tests/nonreg_tests/bug_8481.tst b/modules/string/tests/nonreg_tests/bug_8481.tst new file mode 100755 index 000000000..249d08216 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8481.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - Calixte DENIZET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8481 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/8481 +// +// <-- Short Description --> +// Scilab crashed when display a rational containing a complex. +// + +// the bug came from the use of emptystr() in %r_p.sci +a='a'; +emptystr(); +s=size(emptystr(a)); +if s(2) ~= 1 then, pause, end
\ No newline at end of file diff --git a/modules/string/tests/nonreg_tests/bug_8528.dia.ref b/modules/string/tests/nonreg_tests/bug_8528.dia.ref new file mode 100755 index 000000000..c97496d90 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8528.dia.ref @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8528 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8528 +// +// <-- Short Description --> +// length returned a wrong size for malformed characters. +// +if length(ascii(181)) <> 1 then bugmes();quit;end +if length(ascii([83. 99. 105. 108. 97. 98.])) <> 6 then bugmes();quit;end +if length("Scilab") <> 6 then bugmes();quit;end +if length(ascii([83. 99. 105. 181. 108. 97. 98.])) <> 7 then bugmes();quit;end +if length("Sciµlab") <> 7 then bugmes();quit;end +for i=127:255 + if length(ascii(i)) <> 1 then bugmes();quit;end +end diff --git a/modules/string/tests/nonreg_tests/bug_8528.tst b/modules/string/tests/nonreg_tests/bug_8528.tst new file mode 100755 index 000000000..8a57a945a --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8528.tst @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8528 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8528 +// +// <-- Short Description --> +// length returned a wrong size for malformed characters. +// + +if length(ascii(181)) <> 1 then pause, end +if length(ascii([83. 99. 105. 108. 97. 98.])) <> 6 then pause, end +if length("Scilab") <> 6 then pause, end +if length(ascii([83. 99. 105. 181. 108. 97. 98.])) <> 7 then pause, end +if length("Scilab") <> 7 then pause, end +for i=127:255 + if length(ascii(i)) <> 1 then pause, end +end diff --git a/modules/string/tests/nonreg_tests/bug_8732.dia.ref b/modules/string/tests/nonreg_tests/bug_8732.dia.ref new file mode 100755 index 000000000..ae49aaa24 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8732.dia.ref @@ -0,0 +1,46 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8732 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8732 +// +// <-- Short Description --> +// strchr did not work with a non-ASCII character needle. +// +// ============================================================================= +v = "世界您好"; +c = "您"; +if strchr(v, c) <> "您好" then bugmes();quit;end +if strrchr(v, c) <> "您好" then bugmes();quit;end +// ============================================================================= +v = "азеаея"; +c = "з"; +if strchr(v, c) <> "зеаея" then bugmes();quit;end +if strrchr(v, c) <> "зеаея" then bugmes();quit;end +// ============================================================================= +v = "азеаея"; +c = "е"; +if strchr(v, c) <> "еаея" then bugmes();quit;end +if strrchr(v, c) <> "ея" then bugmes();quit;end +// ============================================================================= +v = "ハロー・ワールド"; +c = "ド"; +if strchr(v, c) <> "ド" then bugmes();quit;end +if strrchr(v, c) <> "ド" then bugmes();quit;end +// ============================================================================= +v = "תוכנית"; +c = "י"; +if strchr(v, c) <> "ית" then bugmes();quit;end +if strrchr(v, c) <> "ית" then bugmes();quit;end +// ============================================================================= +if strchr("This is a sample string with accent é&à", "é") <> "é&à" then bugmes();quit;end +if strrchr("This is a sample string with accent é&à", "é") <> "é&à" then bugmes();quit;end +// ============================================================================= diff --git a/modules/string/tests/nonreg_tests/bug_8732.tst b/modules/string/tests/nonreg_tests/bug_8732.tst new file mode 100755 index 000000000..4dbc05cc9 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_8732.tst @@ -0,0 +1,45 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 8732 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8732 +// +// <-- Short Description --> +// strchr did not work with a non-ASCII character needle. +// +// ============================================================================= +v = "世界您好"; +c = "您"; +if strchr(v, c) <> "您好" then pause, end +if strrchr(v, c) <> "您好" then pause, end +// ============================================================================= +v = "азеаея"; +c = "з"; +if strchr(v, c) <> "зеаея" then pause, end +if strrchr(v, c) <> "зеаея" then pause, end +// ============================================================================= +v = "азеаея"; +c = "е"; +if strchr(v, c) <> "еаея" then pause, end +if strrchr(v, c) <> "ея" then pause, end +// ============================================================================= +v = "ハロー・ワールド"; +c = "ド"; +if strchr(v, c) <> "ド" then pause, end +if strrchr(v, c) <> "ド" then pause, end +// ============================================================================= +v = "תוכנית"; +c = "י"; +if strchr(v, c) <> "ית" then pause, end +if strrchr(v, c) <> "ית" then pause, end +// ============================================================================= +if strchr("This is a sample string with accent é&à", "é") <> "é&à" then pause, end +if strrchr("This is a sample string with accent é&à", "é") <> "é&à" then pause, end +// ============================================================================= diff --git a/modules/string/tests/nonreg_tests/bug_9838.dia.ref b/modules/string/tests/nonreg_tests/bug_9838.dia.ref new file mode 100755 index 000000000..85f64c224 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_9838.dia.ref @@ -0,0 +1,28 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9838 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9838 +// +// <-- Short Description --> +// evstr freezes on some specific string +// +assert_checkequal(evstr('//xxx'),[]); +t=["1"; + "2"; + "//xxx"]; +assert_checkequal(evstr(t),[1;2]); +nl=ascii(10); +t=["//comment"; + "function y=foo()," + " y=1;" + "endfunction"]; +t=strcat(t,nl); //make a single string that appears as a string array +assert_checkequal(evstr(t),[]); diff --git a/modules/string/tests/nonreg_tests/bug_9838.tst b/modules/string/tests/nonreg_tests/bug_9838.tst new file mode 100755 index 000000000..9b8b21223 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_9838.tst @@ -0,0 +1,30 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9838 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9838 +// +// <-- Short Description --> +// evstr freezes on some specific string +// +assert_checkequal(evstr('//xxx'),[]); +t=["1"; + "2"; + "//xxx"]; +assert_checkequal(evstr(t),[1;2]); + +nl=ascii(10); +t=["//comment"; + "function y=foo()," + " y=1;" + "endfunction"]; + +t=strcat(t,nl); //make a single string that appears as a string array +assert_checkequal(evstr(t),[]); diff --git a/modules/string/tests/nonreg_tests/bug_9858.dia.ref b/modules/string/tests/nonreg_tests/bug_9858.dia.ref new file mode 100755 index 000000000..2520a93b5 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_9858.dia.ref @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9858 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9858 +// +// <-- Short Description --> +// length() could not be overloaded with mlist +// +a = mlist(["myMlistT" "field1" "field2"],"aexample","bexampleb"); +assert_checkequal(length(a), size(["myMlistT" "field1" "field2"],"*")); +assert_checkequal(length(a), 3); +// we overload length for myMlistT +function r = %myMlistT_length(M) + r = length(M.field1) +endfunction +assert_checkequal(length(a), length(a.field1)); +assert_checkequal(length(a.field1), 8); diff --git a/modules/string/tests/nonreg_tests/bug_9858.tst b/modules/string/tests/nonreg_tests/bug_9858.tst new file mode 100755 index 000000000..05f920986 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_9858.tst @@ -0,0 +1,28 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9858 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9858 +// +// <-- Short Description --> +// length() could not be overloaded with mlist +// + +a = mlist(["myMlistT" "field1" "field2"],"aexample","bexampleb"); +assert_checkequal(length(a), size(["myMlistT" "field1" "field2"],"*")); +assert_checkequal(length(a), 3); + +// we overload length for myMlistT +function r = %myMlistT_length(M) + r = length(M.field1) +endfunction + +assert_checkequal(length(a), length(a.field1)); +assert_checkequal(length(a.field1), 8); diff --git a/modules/string/tests/nonreg_tests/bug_9899.dia.ref b/modules/string/tests/nonreg_tests/bug_9899.dia.ref new file mode 100755 index 000000000..93cf8bb47 --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_9899.dia.ref @@ -0,0 +1,29 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9899 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9899 +// +// <-- Short Description --> +// string(10*log10(1/10)) give -0 instead of -10 +// +assert_checkequal(string(10*log10(1/10)),"-10"); +N=[0.000001 0.001 0.1 1 10 100 10000 1000000]; +Ns=["0.000001" "0.001" "0.1","1","10","100","10000","1000000"] ; +for k=1:size(N,'*') + n=N(k); + E=n*[0.5:0.01:3]*%eps; + for e=E + assert_checkequal(string(n+e),Ns(k)); + end + for e=E + assert_checkequal(string(-n+e),"-"+Ns(k)); + end +end diff --git a/modules/string/tests/nonreg_tests/bug_9899.tst b/modules/string/tests/nonreg_tests/bug_9899.tst new file mode 100755 index 000000000..bbd8650df --- /dev/null +++ b/modules/string/tests/nonreg_tests/bug_9899.tst @@ -0,0 +1,30 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - INRIA - Serge Steer +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// +// <-- Non-regression test for bug 9899 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9899 +// +// <-- Short Description --> +// string(10*log10(1/10)) give -0 instead of -10 +// +assert_checkequal(string(10*log10(1/10)),"-10"); + +N=[0.000001 0.001 0.1 1 10 100 10000 1000000]; +Ns=["0.000001" "0.001" "0.1","1","10","100","10000","1000000"] ; +for k=1:size(N,'*') + n=N(k); + E=n*[0.5:0.01:3]*%eps; + for e=E + assert_checkequal(string(n+e),Ns(k)); + end + for e=E + assert_checkequal(string(-n+e),"-"+Ns(k)); + end +end diff --git a/modules/string/tests/unit_tests/ascii.dia.ref b/modules/string/tests/unit_tests/ascii.dia.ref new file mode 100755 index 000000000..f8d27beeb --- /dev/null +++ b/modules/string/tests/unit_tests/ascii.dia.ref @@ -0,0 +1,231 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// ============================================================================= +// unit tests ascii +// ============================================================================= +// == TEST 1 =================================================================== +if or(ascii('abcdefghijklmnopqrstuvwxyz')<>(97:122)) then bugmes();quit;end +if or(ascii(97:122)<>'abcdefghijklmnopqrstuvwxyz') then bugmes();quit;end +if ascii('')<>[] then bugmes();quit;end +if ascii([])<>'' then bugmes();quit;end +// == TEST 2 =================================================================== +CODE_ASCII_SCILAB = [115 99 105 108 97 98]; +str_scilab = 'scilab'; +if ascii(str_scilab) <> CODE_ASCII_SCILAB then bugmes();quit;end +if (ascii(CODE_ASCII_SCILAB) <> str_scilab) then bugmes();quit;end +// == TEST 3 =================================================================== +if ascii([str_scilab 'a';'b' 'c']) <> [115 99 105 108 97 98 98 97 99] then bugmes();quit;end +// == TEST 4 =================================================================== +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +ASCII_TXT = ascii(txt); +TXT_FROM_ASCII_CODE = ascii(ASCII_TXT); +if (length(TXT_FROM_ASCII_CODE) <> 27455) then bugmes();quit;end +// == TEST 5 =================================================================== + if ascii("!") <> 33 then bugmes();quit;end + if ascii("""")<> 34 then bugmes();quit;end + if ascii("#") <> 35 then bugmes();quit;end + if ascii("$") <> 36 then bugmes();quit;end + if ascii("%") <> 37 then bugmes();quit;end + if ascii("&") <> 38 then bugmes();quit;end + if ascii("''")<> 39 then bugmes();quit;end + if ascii("(") <> 40 then bugmes();quit;end + if ascii(")") <> 41 then bugmes();quit;end + if ascii("*") <> 42 then bugmes();quit;end + if ascii("+") <> 43 then bugmes();quit;end + if ascii(",") <> 44 then bugmes();quit;end + if ascii("-") <> 45 then bugmes();quit;end + if ascii(".") <> 46 then bugmes();quit;end + if ascii("/") <> 47 then bugmes();quit;end + if ascii("0") <> 48 then bugmes();quit;end + if ascii("1") <> 49 then bugmes();quit;end + if ascii("2") <> 50 then bugmes();quit;end + if ascii("3") <> 51 then bugmes();quit;end + if ascii("4") <> 52 then bugmes();quit;end + if ascii("5") <> 53 then bugmes();quit;end + if ascii("6") <> 54 then bugmes();quit;end + if ascii("7") <> 55 then bugmes();quit;end + if ascii("8") <> 56 then bugmes();quit;end + if ascii("9") <> 57 then bugmes();quit;end + if ascii(":") <> 58 then bugmes();quit;end + if ascii(";") <> 59 then bugmes();quit;end + if ascii("<") <> 60 then bugmes();quit;end + if ascii("=") <> 61 then bugmes();quit;end + if ascii(">") <> 62 then bugmes();quit;end + if ascii("?") <> 63 then bugmes();quit;end + if ascii("@") <> 64 then bugmes();quit;end + if ascii("A") <> 65 then bugmes();quit;end + if ascii("B") <> 66 then bugmes();quit;end + if ascii("C") <> 67 then bugmes();quit;end + if ascii("D") <> 68 then bugmes();quit;end + if ascii("E") <> 69 then bugmes();quit;end + if ascii("F") <> 70 then bugmes();quit;end + if ascii("G") <> 71 then bugmes();quit;end + if ascii("H") <> 72 then bugmes();quit;end + if ascii("I") <> 73 then bugmes();quit;end + if ascii("J") <> 74 then bugmes();quit;end + if ascii("K") <> 75 then bugmes();quit;end + if ascii("L") <> 76 then bugmes();quit;end + if ascii("M") <> 77 then bugmes();quit;end + if ascii("N") <> 78 then bugmes();quit;end + if ascii("O") <> 79 then bugmes();quit;end + if ascii("P") <> 80 then bugmes();quit;end + if ascii("Q") <> 81 then bugmes();quit;end + if ascii("R") <> 82 then bugmes();quit;end + if ascii("S") <> 83 then bugmes();quit;end + if ascii("T") <> 84 then bugmes();quit;end + if ascii("U") <> 85 then bugmes();quit;end + if ascii("V") <> 86 then bugmes();quit;end + if ascii("W") <> 87 then bugmes();quit;end + if ascii("X") <> 88 then bugmes();quit;end + if ascii("Y") <> 89 then bugmes();quit;end + if ascii("Z") <> 90 then bugmes();quit;end + if ascii("[") <> 91 then bugmes();quit;end + if ascii("\") <> 92 then bugmes();quit;end + if ascii("]") <> 93 then bugmes();quit;end + if ascii("^") <> 94 then bugmes();quit;end + if ascii("_") <> 95 then bugmes();quit;end + if ascii("`") <> 96 then bugmes();quit;end + if ascii("a") <> 97 then bugmes();quit;end + if ascii("b") <> 98 then bugmes();quit;end + if ascii("c") <> 99 then bugmes();quit;end + if ascii("d") <> 100 then bugmes();quit;end + if ascii("e") <> 101 then bugmes();quit;end + if ascii("f") <> 102 then bugmes();quit;end + if ascii("g") <> 103 then bugmes();quit;end + if ascii("h") <> 104 then bugmes();quit;end + if ascii("i") <> 105 then bugmes();quit;end + if ascii("j") <> 106 then bugmes();quit;end + if ascii("k") <> 107 then bugmes();quit;end + if ascii("l") <> 108 then bugmes();quit;end + if ascii("m") <> 109 then bugmes();quit;end + if ascii("n") <> 110 then bugmes();quit;end + if ascii("o") <> 111 then bugmes();quit;end + if ascii("p") <> 112 then bugmes();quit;end + if ascii("q") <> 113 then bugmes();quit;end + if ascii("r") <> 114 then bugmes();quit;end + if ascii("s") <> 115 then bugmes();quit;end + if ascii("t") <> 116 then bugmes();quit;end + if ascii("u") <> 117 then bugmes();quit;end + if ascii("v") <> 118 then bugmes();quit;end + if ascii("w") <> 119 then bugmes();quit;end + if ascii("x") <> 120 then bugmes();quit;end + if ascii("y") <> 121 then bugmes();quit;end + if ascii("z") <> 122 then bugmes();quit;end + if ascii("{") <> 123 then bugmes();quit;end + if ascii("|") <> 124 then bugmes();quit;end + if ascii("}") <> 125 then bugmes();quit;end + if ascii("~") <> 126 then bugmes();quit;end + if ascii(33) <> "!" then bugmes();quit;end + if ascii(34) <> """" then bugmes();quit;end + if ascii(35) <> "#" then bugmes();quit;end + if ascii(36) <> "$" then bugmes();quit;end + if ascii(37) <> "%" then bugmes();quit;end + if ascii(38) <> "&" then bugmes();quit;end + if ascii(39) <> "''" then bugmes();quit;end + if ascii(40) <> "(" then bugmes();quit;end + if ascii(41) <> ")" then bugmes();quit;end + if ascii(42) <> "*" then bugmes();quit;end + if ascii(43) <> "+" then bugmes();quit;end + if ascii(44) <> "," then bugmes();quit;end + if ascii(45) <> "-" then bugmes();quit;end + if ascii(46) <> "." then bugmes();quit;end + if ascii(47) <> "/" then bugmes();quit;end + if ascii(48) <> "0" then bugmes();quit;end + if ascii(49) <> "1" then bugmes();quit;end + if ascii(50) <> "2" then bugmes();quit;end + if ascii(51) <> "3" then bugmes();quit;end + if ascii(52) <> "4" then bugmes();quit;end + if ascii(53) <> "5" then bugmes();quit;end + if ascii(54) <> "6" then bugmes();quit;end + if ascii(55) <> "7" then bugmes();quit;end + if ascii(56) <> "8" then bugmes();quit;end + if ascii(57) <> "9" then bugmes();quit;end + if ascii(58) <> ":" then bugmes();quit;end + if ascii(59) <> ";" then bugmes();quit;end + if ascii(60) <> "<" then bugmes();quit;end + if ascii(61) <> "=" then bugmes();quit;end + if ascii(62) <> ">" then bugmes();quit;end + if ascii(63) <> "?" then bugmes();quit;end + if ascii(64) <> "@" then bugmes();quit;end + if ascii(65) <> "A" then bugmes();quit;end + if ascii(66) <> "B" then bugmes();quit;end + if ascii(67) <> "C" then bugmes();quit;end + if ascii(68) <> "D" then bugmes();quit;end + if ascii(69) <> "E" then bugmes();quit;end + if ascii(70) <> "F" then bugmes();quit;end + if ascii(71) <> "G" then bugmes();quit;end + if ascii(72) <> "H" then bugmes();quit;end + if ascii(73) <> "I" then bugmes();quit;end + if ascii(74) <> "J" then bugmes();quit;end + if ascii(75) <> "K" then bugmes();quit;end + if ascii(76) <> "L" then bugmes();quit;end + if ascii(77) <> "M" then bugmes();quit;end + if ascii(78) <> "N" then bugmes();quit;end + if ascii(79) <> "O" then bugmes();quit;end + if ascii(80) <> "P" then bugmes();quit;end + if ascii(81) <> "Q" then bugmes();quit;end + if ascii(82) <> "R" then bugmes();quit;end + if ascii(83) <> "S" then bugmes();quit;end + if ascii(84) <> "T" then bugmes();quit;end + if ascii(85) <> "U" then bugmes();quit;end + if ascii(86) <> "V" then bugmes();quit;end + if ascii(87) <> "W" then bugmes();quit;end + if ascii(88) <> "X" then bugmes();quit;end + if ascii(89) <> "Y" then bugmes();quit;end + if ascii(90) <> "Z" then bugmes();quit;end + if ascii(91) <> "[" then bugmes();quit;end + if ascii(92) <> "\" then bugmes();quit;end + if ascii(93) <> "]" then bugmes();quit;end + if ascii(94) <> "^" then bugmes();quit;end + if ascii(95) <> "_" then bugmes();quit;end + if ascii(96) <> "`" then bugmes();quit;end + if ascii(97) <> "a" then bugmes();quit;end + if ascii(98) <> "b" then bugmes();quit;end + if ascii(99) <> "c" then bugmes();quit;end + if ascii(100) <> "d" then bugmes();quit;end + if ascii(101) <> "e" then bugmes();quit;end + if ascii(102) <> "f" then bugmes();quit;end + if ascii(103) <> "g" then bugmes();quit;end + if ascii(104) <> "h" then bugmes();quit;end + if ascii(105) <> "i" then bugmes();quit;end + if ascii(106) <> "j" then bugmes();quit;end + if ascii(107) <> "k" then bugmes();quit;end + if ascii(108) <> "l" then bugmes();quit;end + if ascii(109) <> "m" then bugmes();quit;end + if ascii(110) <> "n" then bugmes();quit;end + if ascii(111) <> "o" then bugmes();quit;end + if ascii(112) <> "p" then bugmes();quit;end + if ascii(113) <> "q" then bugmes();quit;end + if ascii(114) <> "r" then bugmes();quit;end + if ascii(115) <> "s" then bugmes();quit;end + if ascii(116) <> "t" then bugmes();quit;end + if ascii(117) <> "u" then bugmes();quit;end + if ascii(118) <> "v" then bugmes();quit;end + if ascii(119) <> "w" then bugmes();quit;end + if ascii(120) <> "x" then bugmes();quit;end + if ascii(121) <> "y" then bugmes();quit;end + if ascii(122) <> "z" then bugmes();quit;end + if ascii(123) <> "{" then bugmes();quit;end + if ascii(124) <> "|" then bugmes();quit;end + if ascii(125) <> "}" then bugmes();quit;end + if ascii(126) <> "~" then bugmes();quit;end +// == TEST 6 =================================================================== +NB_CHARACTERS = 400000; +letters_ascii_code = ones(1,NB_CHARACTERS)*78; +letters=ascii(letters_ascii_code); +if (length(letters) <> NB_CHARACTERS) then bugmes();quit;end +// == TEST 7 =================================================================== +A = floor( 126 * rand(100,100) ); +if or( ascii(A) <> ascii(int8(A)) ) then bugmes();quit;end +if or( ascii(A) <> ascii(int16(A)) ) then bugmes();quit;end +if or( ascii(A) <> ascii(int32(A)) ) then bugmes();quit;end +if or( ascii(A) <> ascii(uint8(A)) ) then bugmes();quit;end +if or( ascii(A) <> ascii(uint16(A)) ) then bugmes();quit;end +if or( ascii(A) <> ascii(uint32(A)) ) then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/ascii.tst b/modules/string/tests/unit_tests/ascii.tst new file mode 100755 index 000000000..3a4606a66 --- /dev/null +++ b/modules/string/tests/unit_tests/ascii.tst @@ -0,0 +1,251 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// ============================================================================= +// unit tests ascii +// ============================================================================= + +// == TEST 1 =================================================================== + +if or(ascii('abcdefghijklmnopqrstuvwxyz')<>(97:122)) then pause,end +if or(ascii(97:122)<>'abcdefghijklmnopqrstuvwxyz') then pause,end +if ascii('')<>[] then pause,end +if ascii([])<>'' then pause,end + +// == TEST 2 =================================================================== + +CODE_ASCII_SCILAB = [115 99 105 108 97 98]; +str_scilab = 'scilab'; +if ascii(str_scilab) <> CODE_ASCII_SCILAB then pause,end +if (ascii(CODE_ASCII_SCILAB) <> str_scilab) then pause,end + +// == TEST 3 =================================================================== + +if ascii([str_scilab 'a';'b' 'c']) <> [115 99 105 108 97 98 98 97 99] then pause,end + +// == TEST 4 =================================================================== + +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +ASCII_TXT = ascii(txt); +TXT_FROM_ASCII_CODE = ascii(ASCII_TXT); + +if (length(TXT_FROM_ASCII_CODE) <> 27455) then pause,end + +// == TEST 5 =================================================================== + + if ascii("!") <> 33 then pause,end + if ascii("""")<> 34 then pause,end + if ascii("#") <> 35 then pause,end + if ascii("$") <> 36 then pause,end + if ascii("%") <> 37 then pause,end + if ascii("&") <> 38 then pause,end + if ascii("''")<> 39 then pause,end + if ascii("(") <> 40 then pause,end + if ascii(")") <> 41 then pause,end + if ascii("*") <> 42 then pause,end + if ascii("+") <> 43 then pause,end + if ascii(",") <> 44 then pause,end + if ascii("-") <> 45 then pause,end + if ascii(".") <> 46 then pause,end + if ascii("/") <> 47 then pause,end + if ascii("0") <> 48 then pause,end + if ascii("1") <> 49 then pause,end + if ascii("2") <> 50 then pause,end + if ascii("3") <> 51 then pause,end + if ascii("4") <> 52 then pause,end + if ascii("5") <> 53 then pause,end + if ascii("6") <> 54 then pause,end + if ascii("7") <> 55 then pause,end + if ascii("8") <> 56 then pause,end + if ascii("9") <> 57 then pause,end + if ascii(":") <> 58 then pause,end + if ascii(";") <> 59 then pause,end + if ascii("<") <> 60 then pause,end + if ascii("=") <> 61 then pause,end + if ascii(">") <> 62 then pause,end + if ascii("?") <> 63 then pause,end + if ascii("@") <> 64 then pause,end + if ascii("A") <> 65 then pause,end + if ascii("B") <> 66 then pause,end + if ascii("C") <> 67 then pause,end + if ascii("D") <> 68 then pause,end + if ascii("E") <> 69 then pause,end + if ascii("F") <> 70 then pause,end + if ascii("G") <> 71 then pause,end + if ascii("H") <> 72 then pause,end + if ascii("I") <> 73 then pause,end + if ascii("J") <> 74 then pause,end + if ascii("K") <> 75 then pause,end + if ascii("L") <> 76 then pause,end + if ascii("M") <> 77 then pause,end + if ascii("N") <> 78 then pause,end + if ascii("O") <> 79 then pause,end + if ascii("P") <> 80 then pause,end + if ascii("Q") <> 81 then pause,end + if ascii("R") <> 82 then pause,end + if ascii("S") <> 83 then pause,end + if ascii("T") <> 84 then pause,end + if ascii("U") <> 85 then pause,end + if ascii("V") <> 86 then pause,end + if ascii("W") <> 87 then pause,end + if ascii("X") <> 88 then pause,end + if ascii("Y") <> 89 then pause,end + if ascii("Z") <> 90 then pause,end + if ascii("[") <> 91 then pause,end + if ascii("\") <> 92 then pause,end + if ascii("]") <> 93 then pause,end + if ascii("^") <> 94 then pause,end + if ascii("_") <> 95 then pause,end + if ascii("`") <> 96 then pause,end + if ascii("a") <> 97 then pause,end + if ascii("b") <> 98 then pause,end + if ascii("c") <> 99 then pause,end + if ascii("d") <> 100 then pause,end + if ascii("e") <> 101 then pause,end + if ascii("f") <> 102 then pause,end + if ascii("g") <> 103 then pause,end + if ascii("h") <> 104 then pause,end + if ascii("i") <> 105 then pause,end + if ascii("j") <> 106 then pause,end + if ascii("k") <> 107 then pause,end + if ascii("l") <> 108 then pause,end + if ascii("m") <> 109 then pause,end + if ascii("n") <> 110 then pause,end + if ascii("o") <> 111 then pause,end + if ascii("p") <> 112 then pause,end + if ascii("q") <> 113 then pause,end + if ascii("r") <> 114 then pause,end + if ascii("s") <> 115 then pause,end + if ascii("t") <> 116 then pause,end + if ascii("u") <> 117 then pause,end + if ascii("v") <> 118 then pause,end + if ascii("w") <> 119 then pause,end + if ascii("x") <> 120 then pause,end + if ascii("y") <> 121 then pause,end + if ascii("z") <> 122 then pause,end + if ascii("{") <> 123 then pause,end + if ascii("|") <> 124 then pause,end + if ascii("}") <> 125 then pause,end + if ascii("~") <> 126 then pause,end + + if ascii(33) <> "!" then pause,end + if ascii(34) <> """" then pause,end + if ascii(35) <> "#" then pause,end + if ascii(36) <> "$" then pause,end + if ascii(37) <> "%" then pause,end + if ascii(38) <> "&" then pause,end + if ascii(39) <> "''" then pause,end + if ascii(40) <> "(" then pause,end + if ascii(41) <> ")" then pause,end + if ascii(42) <> "*" then pause,end + if ascii(43) <> "+" then pause,end + if ascii(44) <> "," then pause,end + if ascii(45) <> "-" then pause,end + if ascii(46) <> "." then pause,end + if ascii(47) <> "/" then pause,end + if ascii(48) <> "0" then pause,end + if ascii(49) <> "1" then pause,end + if ascii(50) <> "2" then pause,end + if ascii(51) <> "3" then pause,end + if ascii(52) <> "4" then pause,end + if ascii(53) <> "5" then pause,end + if ascii(54) <> "6" then pause,end + if ascii(55) <> "7" then pause,end + if ascii(56) <> "8" then pause,end + if ascii(57) <> "9" then pause,end + if ascii(58) <> ":" then pause,end + if ascii(59) <> ";" then pause,end + if ascii(60) <> "<" then pause,end + if ascii(61) <> "=" then pause,end + if ascii(62) <> ">" then pause,end + if ascii(63) <> "?" then pause,end + if ascii(64) <> "@" then pause,end + if ascii(65) <> "A" then pause,end + if ascii(66) <> "B" then pause,end + if ascii(67) <> "C" then pause,end + if ascii(68) <> "D" then pause,end + if ascii(69) <> "E" then pause,end + if ascii(70) <> "F" then pause,end + if ascii(71) <> "G" then pause,end + if ascii(72) <> "H" then pause,end + if ascii(73) <> "I" then pause,end + if ascii(74) <> "J" then pause,end + if ascii(75) <> "K" then pause,end + if ascii(76) <> "L" then pause,end + if ascii(77) <> "M" then pause,end + if ascii(78) <> "N" then pause,end + if ascii(79) <> "O" then pause,end + if ascii(80) <> "P" then pause,end + if ascii(81) <> "Q" then pause,end + if ascii(82) <> "R" then pause,end + if ascii(83) <> "S" then pause,end + if ascii(84) <> "T" then pause,end + if ascii(85) <> "U" then pause,end + if ascii(86) <> "V" then pause,end + if ascii(87) <> "W" then pause,end + if ascii(88) <> "X" then pause,end + if ascii(89) <> "Y" then pause,end + if ascii(90) <> "Z" then pause,end + if ascii(91) <> "[" then pause,end + if ascii(92) <> "\" then pause,end + if ascii(93) <> "]" then pause,end + if ascii(94) <> "^" then pause,end + if ascii(95) <> "_" then pause,end + if ascii(96) <> "`" then pause,end + if ascii(97) <> "a" then pause,end + if ascii(98) <> "b" then pause,end + if ascii(99) <> "c" then pause,end + if ascii(100) <> "d" then pause,end + if ascii(101) <> "e" then pause,end + if ascii(102) <> "f" then pause,end + if ascii(103) <> "g" then pause,end + if ascii(104) <> "h" then pause,end + if ascii(105) <> "i" then pause,end + if ascii(106) <> "j" then pause,end + if ascii(107) <> "k" then pause,end + if ascii(108) <> "l" then pause,end + if ascii(109) <> "m" then pause,end + if ascii(110) <> "n" then pause,end + if ascii(111) <> "o" then pause,end + if ascii(112) <> "p" then pause,end + if ascii(113) <> "q" then pause,end + if ascii(114) <> "r" then pause,end + if ascii(115) <> "s" then pause,end + if ascii(116) <> "t" then pause,end + if ascii(117) <> "u" then pause,end + if ascii(118) <> "v" then pause,end + if ascii(119) <> "w" then pause,end + if ascii(120) <> "x" then pause,end + if ascii(121) <> "y" then pause,end + if ascii(122) <> "z" then pause,end + if ascii(123) <> "{" then pause,end + if ascii(124) <> "|" then pause,end + if ascii(125) <> "}" then pause,end + if ascii(126) <> "~" then pause,end + +// == TEST 6 =================================================================== + +NB_CHARACTERS = 400000; +letters_ascii_code = ones(1,NB_CHARACTERS)*78; +letters=ascii(letters_ascii_code); +if (length(letters) <> NB_CHARACTERS) then pause,end + +// == TEST 7 =================================================================== + +A = floor( 126 * rand(100,100) ); + +if or( ascii(A) <> ascii(int8(A)) ) then pause, end +if or( ascii(A) <> ascii(int16(A)) ) then pause, end +if or( ascii(A) <> ascii(int32(A)) ) then pause, end + +if or( ascii(A) <> ascii(uint8(A)) ) then pause, end +if or( ascii(A) <> ascii(uint16(A)) ) then pause, end +if or( ascii(A) <> ascii(uint32(A)) ) then pause, end diff --git a/modules/string/tests/unit_tests/asciimat.dia.ref b/modules/string/tests/unit_tests/asciimat.dia.ref new file mode 100755 index 000000000..4458acb80 --- /dev/null +++ b/modules/string/tests/unit_tests/asciimat.dia.ref @@ -0,0 +1,30 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Cedric Delamarre +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// ascii to string +ref = [97 98 99 ;100 101 102]; +code = asciimat(["a" "b" "c";"d" "e" "f"]); +assert_checkequal(ref, code); +ref = [97 122 98 99 ;100 101 121 102]; +code = asciimat(["az" "b" "c";"d" "ey" "f"]); +assert_checkequal(ref, code); +// not managed in scilab 5 +scilabversion = getversion("scilab"); +if scilabversion(1) >= 6 + ref = matrix(97:120,2,3,4); + a = matrix(strsplit(ascii(97:120),1:23),2,3,4); + code = asciimat(a); + assert_checkequal(ref, code); +end +// string to ascii +ref = ["azerty";"ytreza"]; +str = asciimat([97 122 101 114 116 121; 121 116 114 101 122 97]); +assert_checkequal(ref, str); +ref = ["bdf" "hjl" "npr" "tvx";"ceg" "ikm" "oqs" "uwy"]; +a = matrix(97+(1:2*3*4),2,3,4); +str = asciimat(a); +assert_checkequal(ref, str); diff --git a/modules/string/tests/unit_tests/asciimat.tst b/modules/string/tests/unit_tests/asciimat.tst new file mode 100755 index 000000000..5be1ec74d --- /dev/null +++ b/modules/string/tests/unit_tests/asciimat.tst @@ -0,0 +1,39 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Cedric Delamarre +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// ascii to string +ref = [97 98 99 ;100 101 102]; +code = asciimat(["a" "b" "c";"d" "e" "f"]); +assert_checkequal(ref, code); + +ref = [97 122 98 99 ;100 101 121 102]; +code = asciimat(["az" "b" "c";"d" "ey" "f"]); +assert_checkequal(ref, code); + +// not managed in scilab 5 +scilabversion = getversion("scilab"); +if scilabversion(1) >= 6 + ref = matrix(97:120,2,3,4); + a = matrix(strsplit(ascii(97:120),1:23),2,3,4); + code = asciimat(a); + assert_checkequal(ref, code); +end + + +// string to ascii +ref = ["azerty";"ytreza"]; +str = asciimat([97 122 101 114 116 121; 121 116 114 101 122 97]); +assert_checkequal(ref, str); + +ref = ["bdf" "hjl" "npr" "tvx";"ceg" "ikm" "oqs" "uwy"]; +a = matrix(97+(1:2*3*4),2,3,4); +str = asciimat(a); +assert_checkequal(ref, str); + + diff --git a/modules/string/tests/unit_tests/base.dia.ref b/modules/string/tests/unit_tests/base.dia.ref new file mode 100755 index 000000000..9d747b4f7 --- /dev/null +++ b/modules/string/tests/unit_tests/base.dia.ref @@ -0,0 +1,40 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// Operations on strings +if 'a'=='b' then bugmes();quit;end +if 'a'=='' then bugmes();quit;end +if ''=='b' then bugmes();quit;end +if 'a'=='ab' then bugmes();quit;end +if 'a'<>'a' then bugmes();quit;end +if ''<>'' then bugmes();quit;end +if execstr("''a''>''b''" ,'errcatch') == 0 then bugmes();quit;end +if execstr("''a''>=''b''" ,'errcatch') == 0 then bugmes();quit;end +if execstr("''a''<=''b''" ,'errcatch') == 0 then bugmes();quit;end +if execstr("''a''<''b''" ,'errcatch') == 0 then bugmes();quit;end +if 'abc'+'def' <> 'abcdef' then bugmes();quit;end +if ['abc'] <> 'abc' then bugmes();quit;end +r=['abc','def']; +if or(size(r) <> [1 2] ) then bugmes();quit;end +if r(1) <> 'abc' then bugmes();quit;end +if r(1,[%t, %f]) <> 'abc' then bugmes();quit;end +if or(r(:) <> r' ) then bugmes();quit;end +if r(1,[%t, %f]) <>'abc' then bugmes();quit;end +r=['abc','def' + '' ,'1234' + 'x' ,'' ]; +if or(size(r) <> [3 2] ) then bugmes();quit;end +if or(r(1,:) <> ['abc','def'] ) then bugmes();quit;end +if or(r([1,1],1) <> ['abc';'abc'] ) then bugmes();quit;end +if or(r(:,[1 2 1]) <> [r(:,1) r(:,2) r(:,1)] ) then bugmes();quit;end +if or(r(:,1) <> ['abc';'';'x'] ) then bugmes();quit;end +if or(r(:,:) <> r ) then bugmes();quit;end +if or(r(:) <> matrix(r,-1,1) ) then bugmes();quit;end +r(2,:)=[]; +if or(r<>['abc','def';'x','']) then bugmes();quit;end +r(:,1)=[]; +if or(r<>['def';'']) then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/base.tst b/modules/string/tests/unit_tests/base.tst new file mode 100755 index 000000000..207502eb7 --- /dev/null +++ b/modules/string/tests/unit_tests/base.tst @@ -0,0 +1,54 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) ????-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// Operations on strings + +if 'a'=='b' then pause,end +if 'a'=='' then pause,end +if ''=='b' then pause,end +if 'a'=='ab' then pause,end +if 'a'<>'a' then pause,end +if ''<>'' then pause,end + +if execstr("''a''>''b''" ,'errcatch') == 0 then pause,end +if execstr("''a''>=''b''" ,'errcatch') == 0 then pause,end +if execstr("''a''<=''b''" ,'errcatch') == 0 then pause,end +if execstr("''a''<''b''" ,'errcatch') == 0 then pause,end + +if 'abc'+'def' <> 'abcdef' then pause,end +if ['abc'] <> 'abc' then pause,end + + +r=['abc','def']; + +if or(size(r) <> [1 2] ) then pause,end +if r(1) <> 'abc' then pause,end +if r(1,[%t, %f]) <> 'abc' then pause,end +if or(r(:) <> r' ) then pause,end +if r(1,[%t, %f]) <>'abc' then pause,end + + +r=['abc','def' + '' ,'1234' + 'x' ,'' ]; + +if or(size(r) <> [3 2] ) then pause,end +if or(r(1,:) <> ['abc','def'] ) then pause,end +if or(r([1,1],1) <> ['abc';'abc'] ) then pause,end +if or(r(:,[1 2 1]) <> [r(:,1) r(:,2) r(:,1)] ) then pause,end +if or(r(:,1) <> ['abc';'';'x'] ) then pause,end +if or(r(:,:) <> r ) then pause,end +if or(r(:) <> matrix(r,-1,1) ) then pause,end + + +r(2,:)=[]; +if or(r<>['abc','def';'x','']) then pause,end + +r(:,1)=[]; +if or(r<>['def';'']) then pause,end diff --git a/modules/string/tests/unit_tests/blanks.dia.ref b/modules/string/tests/unit_tests/blanks.dia.ref new file mode 100755 index 000000000..73ed90395 --- /dev/null +++ b/modules/string/tests/unit_tests/blanks.dia.ref @@ -0,0 +1,38 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//============================================================================== +// blank unit tests +//============================================================================== +disp(['xxx' blanks(20) 'yyy']); + +!xxx yyy ! +// Test 1 +//LEN_MAX = 20000000; too slow +LEN_MAX = 2000; +r = blanks(LEN_MAX); +l = length(r); +if ( l <> LEN_MAX) then bugmes();quit;end +// Test 2 +// check first and last characters +FIRST_CHAR = part(r,1); +LAST_CHAR = part(r,LEN_MAX); +if (FIRST_CHAR <> " ") then bugmes();quit;end +if (LAST_CHAR <> " ") then bugmes();quit;end +// Test 3 +A = floor(abs(2^8 * rand())); +B = floor(abs(2^16 * rand())); +C = floor(abs(2^16 * rand())); +D = floor(abs(2^7 * rand())); +E = floor(abs(2^15 * rand())); +F = floor(abs(2^15 * rand())); +if blanks(A) <> blanks(uint8(A)) then bugmes();quit;end +if blanks(B) <> blanks(uint16(B)) then bugmes();quit;end +if blanks(C) <> blanks(uint32(C)) then bugmes();quit;end +if blanks(D) <> blanks(int8(D)) then bugmes();quit;end +if blanks(E) <> blanks(int16(E)) then bugmes();quit;end +if blanks(F) <> blanks(int32(F)) then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/blanks.tst b/modules/string/tests/unit_tests/blanks.tst new file mode 100755 index 000000000..07bc38e21 --- /dev/null +++ b/modules/string/tests/unit_tests/blanks.tst @@ -0,0 +1,48 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//============================================================================== +// blank unit tests +//============================================================================== + +disp(['xxx' blanks(20) 'yyy']); + +// Test 1 +//LEN_MAX = 20000000; too slow + +LEN_MAX = 2000; +r = blanks(LEN_MAX); +l = length(r); +if ( l <> LEN_MAX) then pause,end + +// Test 2 +// check first and last characters + +FIRST_CHAR = part(r,1); +LAST_CHAR = part(r,LEN_MAX); +if (FIRST_CHAR <> " ") then pause,end +if (LAST_CHAR <> " ") then pause,end + +// Test 3 + +A = floor(abs(2^8 * rand())); +B = floor(abs(2^16 * rand())); +C = floor(abs(2^16 * rand())); + +D = floor(abs(2^7 * rand())); +E = floor(abs(2^15 * rand())); +F = floor(abs(2^15 * rand())); + +if blanks(A) <> blanks(uint8(A)) then pause, end +if blanks(B) <> blanks(uint16(B)) then pause, end +if blanks(C) <> blanks(uint32(C)) then pause, end + +if blanks(D) <> blanks(int8(D)) then pause, end +if blanks(E) <> blanks(int16(E)) then pause, end +if blanks(F) <> blanks(int32(F)) then pause, end diff --git a/modules/string/tests/unit_tests/code2str.dia.ref b/modules/string/tests/unit_tests/code2str.dia.ref new file mode 100755 index 000000000..ae18882bd --- /dev/null +++ b/modules/string/tests/unit_tests/code2str.dia.ref @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests code2str +//=============================== +if _code2str(10:35)<>'abcdefghijklmnopqrstuvwxyz' then bugmes();quit;end +if _code2str(-(10:35))<>'ABCDEFGHIJKLMNOPQRSTUVWXYZ' then bugmes();quit;end +if _code2str(0:9)<>'0123456789' then bugmes();quit;end +if _code2str([])<>emptystr() then bugmes();quit;end +//=============================== +s = _code2str([-28 12 18 21 10 11]); +if (s <>'Scilab') then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/code2str.tst b/modules/string/tests/unit_tests/code2str.tst new file mode 100755 index 000000000..3f2fa62d3 --- /dev/null +++ b/modules/string/tests/unit_tests/code2str.tst @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests code2str +//=============================== +if _code2str(10:35)<>'abcdefghijklmnopqrstuvwxyz' then pause,end +if _code2str(-(10:35))<>'ABCDEFGHIJKLMNOPQRSTUVWXYZ' then pause,end +if _code2str(0:9)<>'0123456789' then pause,end +if _code2str([])<>emptystr() then pause,end +//=============================== +s = _code2str([-28 12 18 21 10 11]); +if (s <>'Scilab') then pause,end +//=============================== diff --git a/modules/string/tests/unit_tests/convstr.dia.ref b/modules/string/tests/unit_tests/convstr.dia.ref new file mode 100755 index 000000000..8ad41a99e --- /dev/null +++ b/modules/string/tests/unit_tests/convstr.dia.ref @@ -0,0 +1,65 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests convstr +//=============================== +if convstr('ABC')<>'abc' then bugmes();quit;end +if convstr('ABC','l')<>'abc' then bugmes();quit;end +if convstr('ABC','u')<>'ABC' then bugmes();quit;end +if convstr(['ABC';'x'])<>['abc';'x'] then bugmes();quit;end +if convstr(['ABC';'x'],'l')<>['abc';'x'] then bugmes();quit;end +if convstr(['ABC';'x'],'u')<>['ABC';'X'] then bugmes();quit;end +if convstr(['ABC';'x'],'L')<>['abc';'x'] then bugmes();quit;end +if convstr(['ABC';'x'],'U')<>['ABC';'X'] then bugmes();quit;end +if or(convstr(['';''],'u')<>['';'']) then bugmes();quit;end +//=============================== +if convstr('ABC')<>'abc' then bugmes();quit;end +if convstr('ABC','l')<>'abc' then bugmes();quit;end +if convstr('ABC','u')<>'ABC' then bugmes();quit;end +if convstr('ABC','L')<>'abc' then bugmes();quit;end +if convstr('ABC','U')<>'ABC' then bugmes();quit;end +if convstr(['ABC','x'])<>['abc','x'] then bugmes();quit;end +if convstr(['ABC','x'],'l')<>['abc','x'] then bugmes();quit;end +if convstr(['ABC','x'],'u')<>['ABC','X'] then bugmes();quit;end +if convstr(emptystr())<>emptystr() then bugmes();quit;end +//=============================== +if convstr('') <> '' then bugmes();quit;end +if convstr('','u') <> '' then bugmes();quit;end +if convstr('','U') <> '' then bugmes();quit;end +if convstr('','l') <> '' then bugmes();quit;end +if convstr('','L') <> '' then bugmes();quit;end +//=============================== +if convstr([]) <> [] then bugmes();quit;end +if convstr([],'u') <> [] then bugmes();quit;end +if convstr([],'U') <> [] then bugmes();quit;end +if convstr([],'l') <> [] then bugmes();quit;end +if convstr([],'L') <> [] then bugmes();quit;end +//=============================== +if ( convstr('SCILAB','l') <> convstr('scilab','l') ) then bugmes();quit;end +if ( convstr('SCILAB','u') <> convstr('scilab','u') ) then bugmes();quit;end +//=============================== +if convstr("0123456789",'u') <> "0123456789" then bugmes();quit;end +if convstr("0123456789",'l') <> "0123456789" then bugmes();quit;end +//=============================== +a=['']; +if length(convstr(a,'u')) <> 0 then bugmes();quit;end +if length(convstr(a,'l')) <> 0 then bugmes();quit;end +//=============================== +a=['';'']; +if length(convstr(a,'u')) <> 0 then bugmes();quit;end +if length(convstr(a,'l')) <> 0 then bugmes();quit;end +//=============================== +STR = ['this','is';'my','matrix']; +if convstr(STR,'u') <> ['THIS' 'IS';'MY' 'MATRIX'] then bugmes();quit;end +if convstr(STR,'l') <> STR then bugmes();quit;end +//=============================== +//=============================== +// interface tests +//=============================== +if execstr("convstr(''abc'',''i''))","errcatch") <= 0 then bugmes();quit;end +if execstr("convstr(''abc'',''i''))","errcatch") <= 0 then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/convstr.tst b/modules/string/tests/unit_tests/convstr.tst new file mode 100755 index 000000000..f6d3e63fe --- /dev/null +++ b/modules/string/tests/unit_tests/convstr.tst @@ -0,0 +1,70 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests convstr +//=============================== + +if convstr('ABC')<>'abc' then pause,end +if convstr('ABC','l')<>'abc' then pause,end +if convstr('ABC','u')<>'ABC' then pause,end +if convstr(['ABC';'x'])<>['abc';'x'] then pause,end +if convstr(['ABC';'x'],'l')<>['abc';'x'] then pause,end +if convstr(['ABC';'x'],'u')<>['ABC';'X'] then pause,end +if convstr(['ABC';'x'],'L')<>['abc';'x'] then pause,end +if convstr(['ABC';'x'],'U')<>['ABC';'X'] then pause,end +if or(convstr(['';''],'u')<>['';'']) then pause,end +//=============================== +if convstr('ABC')<>'abc' then pause,end +if convstr('ABC','l')<>'abc' then pause,end +if convstr('ABC','u')<>'ABC' then pause,end +if convstr('ABC','L')<>'abc' then pause,end +if convstr('ABC','U')<>'ABC' then pause,end +if convstr(['ABC','x'])<>['abc','x'] then pause,end +if convstr(['ABC','x'],'l')<>['abc','x'] then pause,end +if convstr(['ABC','x'],'u')<>['ABC','X'] then pause,end +if convstr(emptystr())<>emptystr() then pause,end +//=============================== +if convstr('') <> '' then pause,end +if convstr('','u') <> '' then pause,end +if convstr('','U') <> '' then pause,end +if convstr('','l') <> '' then pause,end +if convstr('','L') <> '' then pause,end +//=============================== +if convstr([]) <> [] then pause,end +if convstr([],'u') <> [] then pause,end +if convstr([],'U') <> [] then pause,end +if convstr([],'l') <> [] then pause,end +if convstr([],'L') <> [] then pause,end +//=============================== +if ( convstr('SCILAB','l') <> convstr('scilab','l') ) then pause,end +if ( convstr('SCILAB','u') <> convstr('scilab','u') ) then pause,end +//=============================== +if convstr("0123456789",'u') <> "0123456789" then pause,end +if convstr("0123456789",'l') <> "0123456789" then pause,end +//=============================== +a=['']; +if length(convstr(a,'u')) <> 0 then pause,end +if length(convstr(a,'l')) <> 0 then pause,end +//=============================== +a=['';'']; +if length(convstr(a,'u')) <> 0 then pause,end +if length(convstr(a,'l')) <> 0 then pause,end +//=============================== +STR = ['this','is';'my','matrix']; +if convstr(STR,'u') <> ['THIS' 'IS';'MY' 'MATRIX'] then pause,end +if convstr(STR,'l') <> STR then pause,end +//=============================== + +//=============================== +// interface tests +//=============================== + +if execstr("convstr(''abc'',''i''))","errcatch") <= 0 then pause,end +if execstr("convstr(''abc'',''i''))","errcatch") <= 0 then pause,end diff --git a/modules/string/tests/unit_tests/emptystr.dia.ref b/modules/string/tests/unit_tests/emptystr.dia.ref new file mode 100755 index 000000000..ab81ff770 --- /dev/null +++ b/modules/string/tests/unit_tests/emptystr.dia.ref @@ -0,0 +1,57 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests emptystr +//=============================== +s = emptystr(); +if (s <> '') then bugmes();quit;end; +//=============================== +s = emptystr([]); +if (s <> []) then bugmes();quit;end; +//=============================== +s = emptystr("Scilab"); +d = size(s); +if (d <> [1 1]) then bugmes();quit;end; +if (s <> '') then bugmes();quit;end; +//=============================== +MS = ["Scilab";"String"]; +s = emptystr(MS); +d = size(s); +if (d <> size(MS)) then bugmes();quit;end; +if or(s <> '') then bugmes();quit;end; +//=============================== +M = 5; +N = 3; +s = emptystr(M,N); +d = size(s); +if (d <> [M N]) then bugmes();quit;end; +if or(s <> '') then bugmes();quit;end; +//=============================== +M = 200; +N = 300; +s = emptystr(M,N); +d = size(s); +if (d <> [M N]) then bugmes();quit;end; +if or(s <> '') then bugmes();quit;end; +//=============================== +s = emptystr(0,0); +if (s <> []) then bugmes();quit;end; +//=============================== +s = emptystr(0); +d = size(s); +if (d <> [1 1]) then bugmes();quit;end; +if (s <> '') then bugmes();quit;end; +//=============================== +M = 200; +s = emptystr(M); +d = size(s); +if (d <> [1 1]) then bugmes();quit;end; +if (s <> '') then bugmes();quit;end; +//=============================== +if ( size(emptystr(0,1)) <> [ 0 0 ] ) then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/emptystr.tst b/modules/string/tests/unit_tests/emptystr.tst new file mode 100755 index 000000000..11f274516 --- /dev/null +++ b/modules/string/tests/unit_tests/emptystr.tst @@ -0,0 +1,59 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests emptystr +//=============================== +s = emptystr(); +if (s <> '') then pause,end; +//=============================== +s = emptystr([]); +if (s <> []) then pause,end; +//=============================== +s = emptystr("Scilab"); +d = size(s); +if (d <> [1 1]) then pause,end; +if (s <> '') then pause,end; +//=============================== +MS = ["Scilab";"String"]; +s = emptystr(MS); +d = size(s); +if (d <> size(MS)) then pause,end; +if or(s <> '') then pause,end; +//=============================== +M = 5; +N = 3; +s = emptystr(M,N); +d = size(s); +if (d <> [M N]) then pause,end; +if or(s <> '') then pause,end; +//=============================== +M = 200; +N = 300; +s = emptystr(M,N); +d = size(s); +if (d <> [M N]) then pause,end; +if or(s <> '') then pause,end; +//=============================== +s = emptystr(0,0); +if (s <> []) then pause,end; +//=============================== +s = emptystr(0); +d = size(s); +if (d <> [1 1]) then pause,end; +if (s <> '') then pause,end; +//=============================== +M = 200; +s = emptystr(M); +d = size(s); +if (d <> [1 1]) then pause,end; +if (s <> '') then pause,end; +//=============================== +if ( size(emptystr(0,1)) <> [ 0 0 ] ) then pause,end +//=============================== diff --git a/modules/string/tests/unit_tests/evstr.dia.ref b/modules/string/tests/unit_tests/evstr.dia.ref new file mode 100755 index 000000000..7b742be6e --- /dev/null +++ b/modules/string/tests/unit_tests/evstr.dia.ref @@ -0,0 +1,46 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// ============================================================================= +// unit tests evstr +// ============================================================================= +a = 1; +b = 2; +Z = ['a','b']; +res = evstr(Z); +if res(1) <> a then bugmes();quit;end +if res(2) <> b then bugmes();quit;end +// ============================================================================= +a = 1; +b = 2; +Z = list(['%(1)','%(1)-%(2)'], ['a+1','b+1']); +res = evstr(Z); +if or(res <> [2 -1]) then bugmes();quit;end +// ============================================================================= +if isnan(evstr(%nan)) <> %t then bugmes();quit;end +if isinf(evstr(%inf)) <> %t then bugmes();quit;end +if isnan(evstr('%nan')) <> %t then bugmes();quit;end +if isinf(evstr('%inf')) <> %t then bugmes();quit;end +if isnan(evstr('Nan')) <> %t then bugmes();quit;end +if isinf(evstr('Inf')) <> %t then bugmes();quit;end +if isnan(evstr('NaN')) <> %t then bugmes();quit;end +if isinf(evstr(-%inf)) <> %t then bugmes();quit;end +if isinf(evstr('-%inf')) <> %t then bugmes();quit;end +if isinf(evstr('-Inf')) <> %t then bugmes();quit;end +// ============================================================================= +Scilab_value = 3; +if Scilab_value <> evstr('Scilab_value') then bugmes();quit;end +// ============================================================================= +clear toto; +if execstr("evstr(''toto'')", "errcatch") <> 4 then bugmes();quit;end +if execstr("evstr(toto)", "errcatch") <> 4 then bugmes();quit;end +// ============================================================================= +s = rand(3,3,3); +if execstr("evstr(s)", "errcatch") <> 10000 then bugmes();quit;end +// ============================================================================= diff --git a/modules/string/tests/unit_tests/evstr.tst b/modules/string/tests/unit_tests/evstr.tst new file mode 100755 index 000000000..916eadbc8 --- /dev/null +++ b/modules/string/tests/unit_tests/evstr.tst @@ -0,0 +1,46 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// ============================================================================= +// unit tests evstr +// ============================================================================= +a = 1; +b = 2; +Z = ['a','b']; +res = evstr(Z); +if res(1) <> a then pause, end +if res(2) <> b then pause, end +// ============================================================================= +a = 1; +b = 2; +Z = list(['%(1)','%(1)-%(2)'], ['a+1','b+1']); +res = evstr(Z); +if or(res <> [2 -1]) then pause, end +// ============================================================================= +if isnan(evstr(%nan)) <> %t then pause, end +if isinf(evstr(%inf)) <> %t then pause, end +if isnan(evstr('%nan')) <> %t then pause, end +if isinf(evstr('%inf')) <> %t then pause, end +if isnan(evstr('Nan')) <> %t then pause, end +if isinf(evstr('Inf')) <> %t then pause, end +if isnan(evstr('NaN')) <> %t then pause, end +if isinf(evstr(-%inf)) <> %t then pause, end +if isinf(evstr('-%inf')) <> %t then pause, end +if isinf(evstr('-Inf')) <> %t then pause, end +// ============================================================================= +Scilab_value = 3; +if Scilab_value <> evstr('Scilab_value') then pause, end +// ============================================================================= +clear toto; +if execstr("evstr(''toto'')", "errcatch") <> 4 then pause, end +if execstr("evstr(toto)", "errcatch") <> 4 then pause, end +// ============================================================================= +s = rand(3,3,3); +if execstr("evstr(s)", "errcatch") <> 10000 then pause, end +// ============================================================================= diff --git a/modules/string/tests/unit_tests/grep.dia.ref b/modules/string/tests/unit_tests/grep.dia.ref new file mode 100755 index 000000000..94a621297 --- /dev/null +++ b/modules/string/tests/unit_tests/grep.dia.ref @@ -0,0 +1,670 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +lf = ascii(10); +//=============================== +// unit tests grep +//=============================== +txt=['find matches of a string in a vector of strings' + 'search position of a character string in an other string' + 'Compare Strings']; +//=============================== +if grep(txt,'vide')<>[] then bugmes();quit;end +if grep([],'vide')<>[] then bugmes();quit;end +if grep('','vide')<>[] then bugmes();quit;end +e='';if execstr('grep(txt,e)','errcatch')==0 then bugmes();quit;end +//=============================== +if grep(txt,'strings')<>1 then bugmes();quit;end +if or(grep(txt,['strings' 'Strings'])<>[1 3]) then bugmes();quit;end +//=============================== +[r,w]=grep(txt,['strings' 'Strings']); +if or(w<>[1 2])|or(r<>[1 3]) then bugmes();quit;end +//=============================== +e=['strings' '']; if execstr('[r,w]=grep(txt,e)','errcatch')==0 then bugmes();quit;end; +//=============================== +if grep([],' ') <> [] then bugmes();quit;end +//=============================== +if grep('AB',['A','B']) <> 1 then bugmes();quit;end +//=============================== +if grep('AB',['A';'B']) <> 1 then bugmes();quit;end +//=============================== +if grep(['AB','B'],['A';'B']) <> 1 then bugmes();quit;end +//=============================== +if grep(['AB','B'],['A';'B';'C']) <> 1 then bugmes();quit;end +//=============================== +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +//=============================== +if grep(txt,'scilab') <> [] then bugmes();quit;end +//=============================== +ref = [ 1., 3., 5., 32., 48., 83., 110., 114., 162., 175., 177., 272., 365., 390., 402., 404., 408.]; +if grep(txt,'Scilab') <> ref then bugmes();quit;end +//=============================== +if grep('abc' ,'/abc/' ,'r') <> 1 then bugmes();quit;end +if grep('xbc' ,'/abc/' ,'r') <> [] then bugmes();quit;end +if grep('axc' ,'/abc/' ,'r') <> [] then bugmes();quit;end +if grep('abx' ,'/abc/' ,'r') <> [] then bugmes();quit;end +if grep('xabcy' ,'/abc/' ,'r') <> 1 then bugmes();quit;end +if grep('ababc' ,'/abc/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/ab*c/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/ab*bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abbc' ,'/ab*bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abbbbc' ,'/ab*bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abbbbc' ,'/.{1}/' ,'r') <> 1 then bugmes();quit;end +if grep('abbbbc' ,'/.{3,4}/' ,'r') <> 1 then bugmes();quit;end +if grep('abbbbc' ,'/ab{0,}bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abbc' ,'/ab+bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/ab+bc/' ,'r') <> [] then bugmes();quit;end +if grep('abq' ,'/ab+bc/' ,'r') <> [] then bugmes();quit;end +if grep('abq' ,'/ab{1,}bc/' ,'r') <> [] then bugmes();quit;end +if grep('abbbbc' ,'/ab+bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abbbbc' ,'/ab{1,}bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abbbbc' ,'/ab{1,3}bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abbbbc' ,'/ab{3,4}bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abbbbc' ,'/ab{4,5}bc/' ,'r') <> [] then bugmes();quit;end +if grep('abbc' ,'/ab?bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/ab?bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/ab{0,1}bc/' ,'r') <> 1 then bugmes();quit;end +if grep('abbbbc' ,'/ab?bc/' ,'r') <> [] then bugmes();quit;end +if grep('abc' ,'/ab?c/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/ab{0,1}c/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/^abc$/' ,'r') <> 1 then bugmes();quit;end +if grep('abcc' ,'/^abc$/' ,'r') <> [] then bugmes();quit;end +if grep('abcc' ,'/^abc/' ,'r') <> 1 then bugmes();quit;end +if grep('aabc' ,'/^abc$/' ,'r') <> [] then bugmes();quit;end +if grep('aabc' ,'/abc$/' ,'r') <> 1 then bugmes();quit;end +if grep('aabcd' ,'/abc$/' ,'r') <> [] then bugmes();quit;end +if grep('abc' ,'/^/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/$/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/a.c/' ,'r') <> 1 then bugmes();quit;end +if grep('axc' ,'/a.c/' ,'r') <> 1 then bugmes();quit;end +if grep('axyzc' ,'/a.*c/' ,'r') <> 1 then bugmes();quit;end +if grep('axyzd' ,'/a.*c/' ,'r') <> [] then bugmes();quit;end +if grep('abc' ,'/a[bc]d/' ,'r') <> [] then bugmes();quit;end +if grep('abd' ,'/a[bc]d/' ,'r') <> 1 then bugmes();quit;end +if grep('abd' ,'/a[b-d]e/' ,'r') <> [] then bugmes();quit;end +if grep('ace' ,'/a[b-d]e/' ,'r') <> 1 then bugmes();quit;end +if grep('aac' ,'/a[b-d]/' ,'r') <> 1 then bugmes();quit;end +if grep('a-' ,'/a[-b]/' ,'r') <> 1 then bugmes();quit;end +if grep('a-' ,'/a[b-]/' ,'r') <> 1 then bugmes();quit;end +if grep('a]' ,'/a]/' ,'r') <> 1 then bugmes();quit;end +if grep('a]b' ,'/a[]]b/' ,'r') <> 1 then bugmes();quit;end +if grep('aed' ,'/a[^bc]d/' ,'r') <> 1 then bugmes();quit;end +if grep('abd' ,'/a[^bc]d/' ,'r') <> [] then bugmes();quit;end +if grep('adc' ,'/a[^-b]c/' ,'r') <> 1 then bugmes();quit;end +if grep('a-c' ,'/a[^-b]c/' ,'r') <> [] then bugmes();quit;end +if grep('a]c' ,'/a[^]b]c/' ,'r') <> [] then bugmes();quit;end +if grep('adc' ,'/a[^]b]c/' ,'r') <> 1 then bugmes();quit;end +if grep('a-' ,'/\ba\b/' ,'r') <> 1 then bugmes();quit;end +if grep('-a' ,'/\ba\b/' ,'r') <> 1 then bugmes();quit;end +if grep('-a-' ,'/\ba\b/' ,'r') <> 1 then bugmes();quit;end +if grep('xy' ,'/\by\b/' ,'r') <> [] then bugmes();quit;end +if grep('yz' ,'/\by\b/' ,'r') <> [] then bugmes();quit;end +if grep('xyz' ,'/\by\b/' ,'r') <> [] then bugmes();quit;end +if grep('a-' ,'/\Ba\B/' ,'r') <> [] then bugmes();quit;end +if grep('-a' ,'/\Ba\B/' ,'r') <> [] then bugmes();quit;end +if grep('-a-' ,'/\Ba\B/' ,'r') <> [] then bugmes();quit;end +if grep('xy' ,'/\By\b/' ,'r') <> 1 then bugmes();quit;end +if grep('xy' ,'/\By\b/' ,'r') <> 1 then bugmes();quit;end +if grep('yz' ,'/\by\B/' ,'r') <> 1 then bugmes();quit;end +if grep('xyz' ,'/\By\B/' ,'r') <> 1 then bugmes();quit;end +if grep('a' ,'/\w/' ,'r') <> 1 then bugmes();quit;end +if grep('-' ,'/\w/' ,'r') <> [] then bugmes();quit;end +if grep('a' ,'/\W/' ,'r') <> [] then bugmes();quit;end +if grep('-' ,'/\W/' ,'r') <> 1 then bugmes();quit;end +if grep('a b' ,'/a\sb/' ,'r') <> 1 then bugmes();quit;end +if grep('a-b' ,'/a\sb/' ,'r') <> [] then bugmes();quit;end +if grep('a b' ,'/a\Sb/' ,'r') <> [] then bugmes();quit;end +if grep('a-b' ,'/a\Sb/' ,'r') <> 1 then bugmes();quit;end +if grep('1' ,'/\d/' ,'r') <> 1 then bugmes();quit;end +if grep('-' ,'/\d/' ,'r') <> [] then bugmes();quit;end +if grep('1' ,'/\D/' ,'r') <> [] then bugmes();quit;end +if grep('-' ,'/\D/' ,'r') <> 1 then bugmes();quit;end +if grep('a' ,'/[\w]/' ,'r') <> 1 then bugmes();quit;end +if grep('-' ,'/[\w]/' ,'r') <> [] then bugmes();quit;end +if grep('a' ,'/[\W]/' ,'r') <> [] then bugmes();quit;end +if grep('-' ,'/[\W]/' ,'r') <> 1 then bugmes();quit;end +if grep('a b' ,'/a[\s]b/' ,'r') <> 1 then bugmes();quit;end +if grep('a-b' ,'/a[\s]b/' ,'r') <> [] then bugmes();quit;end +if grep('a b' ,'/a[\S]b/' ,'r') <> [] then bugmes();quit;end +if grep('a-b' ,'/a[\S]b/' ,'r') <> 1 then bugmes();quit;end +if grep('1' ,'/[\d]/' ,'r') <> 1 then bugmes();quit;end +if grep('-' ,'/[\d]/' ,'r') <> [] then bugmes();quit;end +if grep('1' ,'/[\D]/' ,'r') <> [] then bugmes();quit;end +if grep('-' ,'/[\D]/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/ab|cd/' ,'r') <> 1 then bugmes();quit;end +if grep('abcd' ,'/ab|cd/' ,'r') <> 1 then bugmes();quit;end +if grep('b' ,'/$b/' ,'r') <> [] then bugmes();quit;end +if grep('ab' ,'/a\(*b/' ,'r') <> 1 then bugmes();quit;end +if grep('a((b' ,'/a\(*b/' ,'r') <> 1 then bugmes();quit;end +if grep('aabbabc' ,'/a+b+c/' ,'r') <> 1 then bugmes();quit;end +if grep('aabbabc' ,'/a{1,}b{1,}c/' ,'r') <> 1 then bugmes();quit;end +if grep('abcabc' ,'/a.+?c/' ,'r') <> 1 then bugmes();quit;end +if grep('cde' ,'/[^ab]*/' ,'r') <> 1 then bugmes();quit;end +if grep('' ,'/abc/' ,'r') <> [] then bugmes();quit;end +if grep('' ,'/a*/' ,'r') <> [] then bugmes();quit;end +if grep('e' ,'/a|b|c|d|e/' ,'r') <> 1 then bugmes();quit;end +if grep('abcdefg' ,'/abcd*efg/' ,'r') <> 1 then bugmes();quit;end +if grep('xabyabbbz' ,'/ab*/' ,'r') <> 1 then bugmes();quit;end +if grep('xayabbbz' ,'/ab*/' ,'r') <> 1 then bugmes();quit;end +if grep('hij' ,'/[abhgefdc]ij/' ,'r') <> 1 then bugmes();quit;end +if grep('abcde' ,'/^(ab|cd)e/' ,'r') <> [] then bugmes();quit;end +if grep('adcdcde' ,'/a[bcd]*dcdcde/' ,'r') <> 1 then bugmes();quit;end +if grep('adcdcde' ,'/a[bcd]+dcdcde/' ,'r') <> [] then bugmes();quit;end +if grep('alpha' ,'/[a-zA-Z_][a-zA-Z0-9_]*/' ,'r') <> 1 then bugmes();quit;end +if grep('effg' ,'/(bc+d$|ef*g.|h?i(j|k))/' ,'r') <> [] then bugmes();quit;end +if grep('bcdd' ,'/(bc+d$|ef*g.|h?i(j|k))/' ,'r') <> [] then bugmes();quit;end +if grep('aa' ,'/((((((((((a))))))))))\10/' ,'r') <> 1 then bugmes();quit;end +if grep('aa' ,'/((((((((((a))))))))))\041/' ,'r') <> [] then bugmes();quit;end +if grep('a!' ,'/((((((((((a))))))))))\041/' ,'r') <> 1 then bugmes();quit;end +if grep('a' ,'/(((((((((a)))))))))/' ,'r') <> 1 then bugmes();quit;end +if grep('uh-uh' ,'/multiple words of text/' ,'r') <> [] then bugmes();quit;end +if grep('multiple words, yeah' ,'/multiple words/' ,'r') <> 1 then bugmes();quit;end +if grep('ab' ,'/[k]/' ,'r') <> [] then bugmes();quit;end +if grep('ac' ,'/a[-]?c/' ,'r') <> 1 then bugmes();quit;end +if grep('a' ,'/(a)|\1/' ,'r') <> 1 then bugmes();quit;end +if grep('x' ,'/(a)|\1/' ,'r') <> [] then bugmes();quit;end +if grep('aaxabxbaxbbx' ,'/((\3|b)\2(a)x)+/' ,'r') <> [] then bugmes();quit;end +if grep('ABC' ,'/abc/i' ,'r') <> 1 then bugmes();quit;end +if grep('XBC' ,'/abc/i' ,'r') <> [] then bugmes();quit;end +if grep('AXC' ,'/abc/i' ,'r') <> [] then bugmes();quit;end +if grep('ABX' ,'/abc/i' ,'r') <> [] then bugmes();quit;end +if grep('XABCY' ,'/abc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABABC' ,'/abc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/ab*c/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/ab*bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABBC' ,'/ab*bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABBBBC' ,'/ab*?bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABBBBC' ,'/ab{0,}?bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABBC' ,'/ab+?bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/ab+bc/i' ,'r') <> [] then bugmes();quit;end +if grep('ABQ' ,'/ab+bc/i' ,'r') <> [] then bugmes();quit;end +if grep('ABQ' ,'/ab{1,}bc/i' ,'r') <> [] then bugmes();quit;end +if grep('ABBBBC' ,'/ab+bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABBBBC' ,'/ab{1,}?bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABBBBC' ,'/ab{1,3}?bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABBBBC' ,'/ab{3,4}?bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABBBBC' ,'/ab{4,5}?bc/i' ,'r') <> [] then bugmes();quit;end +if grep('ABBC' ,'/ab??bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/ab??bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/ab{0,1}?bc/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABBBBC' ,'/ab??bc/i' ,'r') <> [] then bugmes();quit;end +if grep('ABC' ,'/ab??c/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/ab{0,1}?c/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/^abc$/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABCC' ,'/^abc$/i' ,'r') <> [] then bugmes();quit;end +if grep('ABCC' ,'/^abc/i' ,'r') <> 1 then bugmes();quit;end +if grep('AABC' ,'/^abc$/i' ,'r') <> [] then bugmes();quit;end +if grep('AABC' ,'/abc$/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/^/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/$/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/a.c/i' ,'r') <> 1 then bugmes();quit;end +if grep('AXC' ,'/a.c/i' ,'r') <> 1 then bugmes();quit;end +if grep('AXYZC' ,'/a.*?c/i' ,'r') <> 1 then bugmes();quit;end +if grep('AXYZD' ,'/a.*c/i' ,'r') <> [] then bugmes();quit;end +if grep('ABC' ,'/a[bc]d/i' ,'r') <> [] then bugmes();quit;end +if grep('ABD' ,'/a[bc]d/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABD' ,'/a[b-d]e/i' ,'r') <> [] then bugmes();quit;end +if grep('ACE' ,'/a[b-d]e/i' ,'r') <> 1 then bugmes();quit;end +if grep('AAC' ,'/a[b-d]/i' ,'r') <> 1 then bugmes();quit;end +if grep('A-' ,'/a[-b]/i' ,'r') <> 1 then bugmes();quit;end +if grep('A-' ,'/a[b-]/i' ,'r') <> 1 then bugmes();quit;end +if grep('A]' ,'/a]/i' ,'r') <> 1 then bugmes();quit;end +if grep('A]B' ,'/a[]]b/i' ,'r') <> 1 then bugmes();quit;end +if grep('AED' ,'/a[^bc]d/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABD' ,'/a[^bc]d/i' ,'r') <> [] then bugmes();quit;end +if grep('ADC' ,'/a[^-b]c/i' ,'r') <> 1 then bugmes();quit;end +if grep('A-C' ,'/a[^-b]c/i' ,'r') <> [] then bugmes();quit;end +if grep('A]C' ,'/a[^]b]c/i' ,'r') <> [] then bugmes();quit;end +if grep('ADC' ,'/a[^]b]c/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABC' ,'/ab|cd/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABCD' ,'/ab|cd/i' ,'r') <> 1 then bugmes();quit;end +if grep('B' ,'/$b/i' ,'r') <> [] then bugmes();quit;end +if grep('AB' ,'/a\(*b/i' ,'r') <> 1 then bugmes();quit;end +if grep('A((B' ,'/a\(*b/i' ,'r') <> 1 then bugmes();quit;end +if grep('AABBABC' ,'/a+b+c/i' ,'r') <> 1 then bugmes();quit;end +if grep('AABBABC' ,'/a{1,}b{1,}c/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABCABC' ,'/a.+?c/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABCABC' ,'/a.*?c/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABCABC' ,'/a.{0,5}?c/i' ,'r') <> 1 then bugmes();quit;end +if grep('CDE' ,'/[^ab]*/i' ,'r') <> 1 then bugmes();quit;end +if grep('' ,'/abc/i' ,'r') <> [] then bugmes();quit;end +if grep('' ,'/a*/i' ,'r') <> [] then bugmes();quit;end +if grep('E' ,'/a|b|c|d|e/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABCDEFG' ,'/abcd*efg/i' ,'r') <> 1 then bugmes();quit;end +if grep('XABYABBBZ' ,'/ab*/i' ,'r') <> 1 then bugmes();quit;end +if grep('XAYABBBZ' ,'/ab*/i' ,'r') <> 1 then bugmes();quit;end +if grep('HIJ' ,'/[abhgefdc]ij/i' ,'r') <> 1 then bugmes();quit;end +if grep('ABCDE' ,'/^(ab|cd)e/i' ,'r') <> [] then bugmes();quit;end +if grep('ADCDCDE' ,'/a[bcd]*dcdcde/i' ,'r') <> 1 then bugmes();quit;end +if grep('ADCDCDE' ,'/a[bcd]+dcdcde/i' ,'r') <> [] then bugmes();quit;end +if grep('ALPHA' ,'/[a-zA-Z_][a-zA-Z0-9_]*/i' ,'r') <> 1 then bugmes();quit;end +if grep('EFFG' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ,'r') <> [] then bugmes();quit;end +if grep('BCDD' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ,'r') <> [] then bugmes();quit;end +if grep('AA' ,'/((((((((((a))))))))))\10/i' ,'r') <> 1 then bugmes();quit;end +if grep('AA' ,'/((((((((((a))))))))))\041/i' ,'r') <> [] then bugmes();quit;end +if grep('A!' ,'/((((((((((a))))))))))\041/i' ,'r') <> 1 then bugmes();quit;end +if grep('A' ,'/(((((((((a)))))))))/i' ,'r') <> 1 then bugmes();quit;end +if grep('UH-UH' ,'/multiple words of text/i' ,'r') <> [] then bugmes();quit;end +if grep('MULTIPLE WORDS, YEAH' ,'/multiple words/i' ,'r') <> 1 then bugmes();quit;end +if grep('AB' ,'/[k]/i' ,'r') <> [] then bugmes();quit;end +if grep('AC' ,'/a[-]?c/i' ,'r') <> 1 then bugmes();quit;end +if grep('abad' ,'/a(?!b)./' ,'r') <> 1 then bugmes();quit;end +if grep('abad' ,'/a(?=d)./' ,'r') <> 1 then bugmes();quit;end +if grep('abad' ,'/a(?=c|d)./' ,'r') <> 1 then bugmes();quit;end +if grep('<&OUT' ,'/^[<>]&/' ,'r') <> 1 then bugmes();quit;end +if grep('aaaaaaaaa' ,'/^(a\1?){4}$/' ,'r') <> [] then bugmes();quit;end +if grep('aaaaaaaaaaa' ,'/^(a\1?){4}$/' ,'r') <> [] then bugmes();quit;end +if grep('aaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ,'r') <> [] then bugmes();quit;end +if grep('aaaaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ,'r') <> [] then bugmes();quit;end +if grep('ab' ,'/(?<=a)b/' ,'r') <> 1 then bugmes();quit;end +if grep('cb' ,'/(?<=a)b/' ,'r') <> [] then bugmes();quit;end +if grep('b' ,'/(?<=a)b/' ,'r') <> [] then bugmes();quit;end +if grep('ab' ,'/(?<!c)b/' ,'r') <> 1 then bugmes();quit;end +if grep('cb' ,'/(?<!c)b/' ,'r') <> [] then bugmes();quit;end +if grep('b' ,'/(?<!c)b/' ,'r') <> 1 then bugmes();quit;end +if grep('b' ,'/(?<!c)b/' ,'r') <> 1 then bugmes();quit;end +if grep('aba' ,'/(?:..)*a/' ,'r') <> 1 then bugmes();quit;end +if grep('aba' ,'/(?:..)*?a/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/^(?:b|a(?=(.)))*\1/' ,'r') <> 1 then bugmes();quit;end +if grep('ab' ,'/(?:(?i)a)b/' ,'r') <> 1 then bugmes();quit;end +if grep('Ab' ,'/(?:(?i)a)b/' ,'r') <> 1 then bugmes();quit;end +if grep('aB' ,'/(?:(?i)a)b/' ,'r') <> [] then bugmes();quit;end +if grep('aB' ,'/((?i)a)b/' ,'r') <> [] then bugmes();quit;end +if grep('ab' ,'/(?i:a)b/' ,'r') <> 1 then bugmes();quit;end +if grep('Ab' ,'/(?i:a)b/' ,'r') <> 1 then bugmes();quit;end +if grep('aB' ,'/(?i:a)b/' ,'r') <> [] then bugmes();quit;end +if grep('aB' ,'/((?i:a))b/' ,'r') <> [] then bugmes();quit;end +if grep('ab' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then bugmes();quit;end +if grep('aB' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then bugmes();quit;end +if grep('Ab' ,'/(?:(?-i)a)b/i' ,'r') <> [] then bugmes();quit;end +if grep('Ab' ,'/((?-i)a)b/i' ,'r') <> [] then bugmes();quit;end +if grep('aB' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then bugmes();quit;end +if grep('AB' ,'/(?:(?-i)a)b/i' ,'r') <> [] then bugmes();quit;end +if grep('AB' ,'/((?-i)a)b/i' ,'r') <> [] then bugmes();quit;end +if grep('ab' ,'/(?-i:a)b/i' ,'r') <> 1 then bugmes();quit;end +if grep('aB' ,'/(?-i:a)b/i' ,'r') <> 1 then bugmes();quit;end +if grep('Ab' ,'/(?-i:a)b/i' ,'r') <> [] then bugmes();quit;end +if grep('Ab' ,'/((?-i:a))b/i' ,'r') <> [] then bugmes();quit;end +if grep('aB' ,'/(?-i:a)b/i' ,'r') <> 1 then bugmes();quit;end +if grep('AB' ,'/(?-i:a)b/i' ,'r') <> [] then bugmes();quit;end +if grep('AB' ,'/((?-i:a))b/i' ,'r') <> [] then bugmes();quit;end +if grep('a'+lf+'B' ,'/((?-i:a.))b/i' ,'r') <> [] then bugmes();quit;end +if grep('B'+lf+'B' ,'/((?s-i:a.))b/i' ,'r') <> [] then bugmes();quit;end +if grep('cabbbb' ,'/(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/','r') <> 1 then bugmes();quit;end +if grep('caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb','/(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/','r') <> 1 then bugmes();quit;end +if grep('foobar1234baz' ,'/foo\w*\d{4}baz/' ,'r') <> 1 then bugmes();quit;end +if grep('x~~' ,'/x(~~)*(?:(?:F)?)?/' ,'r') <> 1 then bugmes();quit;end +if grep('aaac' ,'/^a(?#xxx){3}c/' ,'r') <> 1 then bugmes();quit;end +if grep('aaac' ,'/^a (?#xxx) (?#yyy) {3}c/x' ,'r') <> 1 then bugmes();quit;end +if grep('dbcb' ,'/(?<![cd])b/' ,'r') <> [] then bugmes();quit;end +if grep('dbaacb' ,'/(?<![cd])[ab]/' ,'r') <> 1 then bugmes();quit;end +if grep('dbcb' ,'/(?<!(c|d))b/' ,'r') <> [] then bugmes();quit;end +if grep('dbaacb' ,'/(?<!(c|d))[ab]/' ,'r') <> 1 then bugmes();quit;end +if grep('cdaccb' ,'/(?<!cd)[ab]/' ,'r') <> 1 then bugmes();quit;end +if grep('a--' ,'/^(?:a?b?)*$/' ,'r') <> [] then bugmes();quit;end +if grep('a'+lf+'b'+lf ,'/(?m)^b/' ,'r') <> 1 then bugmes();quit;end +if grep('a'+lf+'b'+lf+'c'+lf ,'/^b/' ,'r') <> [] then bugmes();quit;end +if grep('a'+lf+'b'+lf+'c'+lf ,'/()^b/' ,'r') <> [] then bugmes();quit;end +if grep('a' ,'/(x)?(?(1)a|b)/' ,'r') <> [] then bugmes();quit;end +if grep('a' ,'/(x)?(?(1)b|a)/' ,'r') <> 1 then bugmes();quit;end +if grep('a' ,'/()?(?(1)b|a)/' ,'r') <> 1 then bugmes();quit;end +if grep('a' ,'/()(?(1)b|a)/' ,'r') <> [] then bugmes();quit;end +if grep('a' ,'/()?(?(1)a|b)/' ,'r') <> 1 then bugmes();quit;end +if grep('blah)' ,'/^(\()?blah(?(1)(\)))$/' ,'r') <> [] then bugmes();quit;end +if grep('(blah' ,'/^(\()?blah(?(1)(\)))$/' ,'r') <> [] then bugmes();quit;end +if grep('blah)' ,'/^(\(+)?blah(?(1)(\)))$/' ,'r') <> [] then bugmes();quit;end +if grep('(blah' ,'/^(\(+)?blah(?(1)(\)))$/' ,'r') <> [] then bugmes();quit;end +if grep('a' ,'/(?(?!a)a|b)/' ,'r') <> [] then bugmes();quit;end +if grep('a' ,'/(?(?!a)b|a)/' ,'r') <> 1 then bugmes();quit;end +if grep('a' ,'/(?(?=a)b|a)/' ,'r') <> [] then bugmes();quit;end +if grep('a' ,'/(?(?=a)a|b)/' ,'r') <> 1 then bugmes();quit;end +if grep('aaab' ,'/^(?=(a+?))\1ab/' ,'r') <> [] then bugmes();quit;end +if grep('aaab' ,'/^(?=(a+?))\1ab/' ,'r') <> [] then bugmes();quit;end +if grep('abcd:' ,'/([\w:]+::)?(\w+)$/' ,'r') <> [] then bugmes();quit;end +if grep('abcd:' ,'/([\w:]+::)?(\w+)$/' ,'r') <> [] then bugmes();quit;end +if grep('aaab' ,'/(>a+)ab/' ,'r') <> [] then bugmes();quit;end +if grep('aaab' ,'/(?>a+)b/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/[a[:]b[:c]/' ,'r') <> 1 then bugmes();quit;end +if grep('abc' ,'/[a[:]b[:c]/' ,'r') <> 1 then bugmes();quit;end +if grep('((abc(ade)ufh()()x' ,'/((?>[^()]+)|\([^()]*\))+/' ,'r') <> 1 then bugmes();quit;end +if grep('a'+lf+'b'+lf ,'/a\Z/' ,'r') <> [] then bugmes();quit;end +if grep('a'+lf+'b'+lf ,'/a\z/' ,'r') <> [] then bugmes();quit;end +if grep('a'+lf+'b'+lf ,'/a$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'a'+lf ,'/a\z/' ,'r') <> [] then bugmes();quit;end +if grep('a'+lf+'b'+lf ,'/a\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('a'+lf+'b'+lf ,'/a\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'a'+lf ,'/a\z/m' ,'r') <> [] then bugmes();quit;end +if grep('aa'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if grep('aa'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if grep('aa'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'aa'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if grep('aa'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('aa'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'aa'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if grep('ab'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if grep('ab'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if grep('ab'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ab'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if grep('ab'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('ab'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ab'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if grep('abb'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if grep('abb'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if grep('abb'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'abb'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if grep('abb'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('abb'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'abb'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if grep('ac'+lf+'b'+lf ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac'+lf ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ac' ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if grep('ca'+lf+'b'+lf ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca'+lf ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if grep('b'+lf+'ca' ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if grep('x' ,'/a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/','r') <> [] then bugmes();quit;end +if grep('foo.bart' ,'/foo.bart/' ,'r') <> 1 then bugmes();quit;end +if grep('abcd'+lf+'dxxx' ,'/^d[x][x][x]/m' ,'r') <> 1 then bugmes();quit;end +if grep('xxxtt' ,'/tt+$/' ,'r') <> 1 then bugmes();quit;end +if grep('aaaXbX' ,'/\GX.*X/' ,'r') <> [] then bugmes();quit;end +if grep('Changes' ,'/\.c(pp|xx|c)?$/i' ,'r') <> [] then bugmes();quit;end +if grep('IO.c' ,'/\.c(pp|xx|c)?$/i' ,'r') <> 1 then bugmes();quit;end +if grep('C:/' ,'/^([a-z]:)/' ,'r') <> [] then bugmes();quit;end +if grep(lf+'x aa' ,'/^\S\s+aa$/m' ,'r') <> 1 then bugmes();quit;end +if grep('ab' ,'/(^|a)b/' ,'r') <> 1 then bugmes();quit;end +if grep('abcab' ,'/(\w)?(abc)\1b/' ,'r') <> [] then bugmes();quit;end +if grep('a,b,c' ,'/^(?:.,){2}c/' ,'r') <> 1 then bugmes();quit;end +if grep('a,b,c' ,'/^(?:[^,]*,){2}c/' ,'r') <> 1 then bugmes();quit;end +if grep('' ,'/(?i)/' ,'r') <> [] then bugmes();quit;end +if grep('a'+lf+'xb'+lf ,'/(?!\A)x/m' ,'r') <> 1 then bugmes();quit;end +if grep('123'+lf+'abcabcabcabc'+lf ,'/^.{9}abc.*\n/m' ,'r') <> 1 then bugmes();quit;end +if grep('a' ,'/^(a)?(?(1)a|b)+$/' ,'r') <> [] then bugmes();quit;end +if grep('x1' ,'/^(0+)?(?:x(1))?/' ,'r') <> 1 then bugmes();quit;end +if grep('012cxx0190' ,'/^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))?/','r') <> 1 then bugmes();quit;end +if grep('aaaacccc' ,'/((?:aaaa|bbbb)cccc)?/' ,'r') <> 1 then bugmes();quit;end +if grep('bbbbcccc' ,'/((?:aaaa|bbbb)cccc)?/' ,'r') <> 1 then bugmes();quit;end +if grep('a'+lf+'b'+lf ,'/b\s^/m' ,'r') <> [] then bugmes();quit;end +if grep('a' ,'/\ba/' ,'r') <> 1 then bugmes();quit;end +if grep('AbCd' ,'/ab(?i)cd/' ,'r') <> [] then bugmes();quit;end +if grep('abCd' ,'/ab(?i)cd/' ,'r') <> 1 then bugmes();quit;end +if grep('Oo' ,'/^(o)(?!.*\1)/i' ,'r') <> [] then bugmes();quit;end +if grep('2' ,'/2(]*)?$\1/' ,'r') <> 1 then bugmes();quit;end +if grep('......abef' ,'/.*a(?!(b|cd)*e).*f/' ,'r') <> [] then bugmes();quit;end +if grep('fools' ,'/(foo|fool|x.|money|parted)$/' ,'r') <> [] then bugmes();quit;end +if grep('fools' ,'/(x.|foo|fool|x.|money|parted|y.)$/' ,'r') <> [] then bugmes();quit;end +if grep('fools' ,'/(foo|fool|money|parted)$/' ,'r') <> [] then bugmes();quit;end +//======================================================================================== +// depend of PCRE library options +//if grep('a\b' ,'/a\\b/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+X/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+XX/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.XX(.+)+X/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+X/' ,'r') <> [] then bugmes();quit;end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+XX/' ,'r') <> [] then bugmes();quit;end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.XX(.+)+X/' ,'r') <> [] then bugmes();quit;end +//if grep('bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+[X]/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+[X][X]/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.XX(.+)+[X]/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+[X]/' ,'r') <> [] then bugmes();quit;end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+[X][X]/' ,'r') <> [] then bugmes();quit;end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.XX(.+)+[X]/' ,'r') <> [] then bugmes();quit;end +//if grep('bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X](.+)+[X]/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X](.+)+[X][X]/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X][X](.+)+[X]/' ,'r') <> 1 then bugmes();quit;end +//if grep('bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X](.+)+[X]/' ,'r') <> [] then bugmes();quit;end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X](.+)+[X][X]/' ,'r') <> [] then bugmes();quit;end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X][X](.+)+[X]/' ,'r') <> [] then bugmes();quit;end +//if grep('cabd' ,'/a(?{})b/' ,'r') <> 1 then bugmes();quit;end +//if grep('a' ,'/(?(?{0})b|a)/' ,'r') <> 1 then bugmes();quit;end +//if grep('a' ,'/(?(?{1})a|b)/' ,'r') <> 1 then bugmes();quit;end +//if grep('x' ,'/(??{})/' ,'r') <> 1 then bugmes();quit;end +//if grep('cabd' ,'/a(?{"\{"})b/' ,'r') <> 1 then bugmes();quit;end +//if grep('A\B' ,'/a\\b/i' ,'r') <> 1 then bugmes();quit;end +//if grep('aaaaaaaaaaaaaaab' ,'/(a|aa|aaa|aaaa|aaaaa|aaaaaa)(??{$1&&"foo"})(b|c)/','r') <> [] then bugmes();quit;end +//======================================================================================== +str = "世界您好"; +needle = "界"; +[r,w] = grep(str,needle); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +str = "азеазея"; +needle = "з"; +[r,w] = grep(str,needle); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +str = "ハロー・ワールド"; +needle = "ワ"; +[r,w] = grep(str,needle); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +str = "เฮลโลเวิลด์"; +needle = "วิ"; +[r,w] = grep(str,needle); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +str = "حريات وحقوق"; +needle = "و"; +[r,w] = grep(str,needle); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +str = "תוכנית"; +needle = "ו"; +grep(str,needle); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +//======================================================================================== +// Chinese +str = '世界您好'; +[r,w] = grep(str,'/^世界/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/世界$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/您好$/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/^您好/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/界您/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'界您'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/界_您/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== +// Russian +str = 'привет мир'; +[r,w] = grep(str,'/^привет/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/привет$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/мир$/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/^мир/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/вет\sм/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/вет_м/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== +// Cyrilic +str = 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ'; +[r,w] = grep(str,'/^АБВГДЄЖЅЗИІКЛМНОПҀР/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/АБВГДЄЖЅЗИІКЛМНОПҀР$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ$/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/^ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/ИІКЛМНОПҀРСТѸФХѠЦЧШЩЪ/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/ИІКЛМНОПҀ_РСТѸФХѠЦЧШЩЪ/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== +// Japanese +str = '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃'; +[r,w] = grep(str,'/^丑丞串乃之乎也云亘亙些亦/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/丑丞串乃之乎也云亘亙些亦$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/凰凱函刹劉劫勁勃$/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/^凰凱函刹劉劫勁勃/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/亨亮仔伊伎伍伽佃佑伶侃/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/亨亮仔伊_伎伍伽佃佑伶侃/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== +// Thaï +str = 'มกระดุกกระดิก'; +[r,w] = grep(str,'/^มกระดุกกร/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/มกระดุกกร$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/กกระดิก$/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/^กกระดิก/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = grep(str,'/ดุกก/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = grep(str,'/ดุก_ก/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/unit_tests/grep.tst b/modules/string/tests/unit_tests/grep.tst new file mode 100755 index 000000000..bc157b7f5 --- /dev/null +++ b/modules/string/tests/unit_tests/grep.tst @@ -0,0 +1,707 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +lf = ascii(10); + +//=============================== +// unit tests grep +//=============================== +txt=['find matches of a string in a vector of strings' + 'search position of a character string in an other string' + 'Compare Strings']; +//=============================== +if grep(txt,'vide')<>[] then pause,end +if grep([],'vide')<>[] then pause,end +if grep('','vide')<>[] then pause,end +e='';if execstr('grep(txt,e)','errcatch')==0 then pause,end +//=============================== +if grep(txt,'strings')<>1 then pause,end +if or(grep(txt,['strings' 'Strings'])<>[1 3]) then pause,end +//=============================== +[r,w]=grep(txt,['strings' 'Strings']); +if or(w<>[1 2])|or(r<>[1 3]) then pause,end +//=============================== +e=['strings' '']; if execstr('[r,w]=grep(txt,e)','errcatch')==0 then pause,end; +//=============================== +if grep([],' ') <> [] then pause,end +//=============================== +if grep('AB',['A','B']) <> 1 then pause,end +//=============================== +if grep('AB',['A';'B']) <> 1 then pause,end +//=============================== +if grep(['AB','B'],['A';'B']) <> 1 then pause,end +//=============================== +if grep(['AB','B'],['A';'B';'C']) <> 1 then pause,end +//=============================== +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +//=============================== +if grep(txt,'scilab') <> [] then pause,end +//=============================== +ref = [ 1., 3., 5., 32., 48., 83., 110., 114., 162., 175., 177., 272., 365., 390., 402., 404., 408.]; +if grep(txt,'Scilab') <> ref then pause,end +//=============================== +if grep('abc' ,'/abc/' ,'r') <> 1 then pause,end +if grep('xbc' ,'/abc/' ,'r') <> [] then pause,end +if grep('axc' ,'/abc/' ,'r') <> [] then pause,end +if grep('abx' ,'/abc/' ,'r') <> [] then pause,end +if grep('xabcy' ,'/abc/' ,'r') <> 1 then pause,end +if grep('ababc' ,'/abc/' ,'r') <> 1 then pause,end +if grep('abc' ,'/ab*c/' ,'r') <> 1 then pause,end +if grep('abc' ,'/ab*bc/' ,'r') <> 1 then pause,end +if grep('abbc' ,'/ab*bc/' ,'r') <> 1 then pause,end +if grep('abbbbc' ,'/ab*bc/' ,'r') <> 1 then pause,end +if grep('abbbbc' ,'/.{1}/' ,'r') <> 1 then pause,end +if grep('abbbbc' ,'/.{3,4}/' ,'r') <> 1 then pause,end +if grep('abbbbc' ,'/ab{0,}bc/' ,'r') <> 1 then pause,end +if grep('abbc' ,'/ab+bc/' ,'r') <> 1 then pause,end +if grep('abc' ,'/ab+bc/' ,'r') <> [] then pause,end +if grep('abq' ,'/ab+bc/' ,'r') <> [] then pause,end +if grep('abq' ,'/ab{1,}bc/' ,'r') <> [] then pause,end +if grep('abbbbc' ,'/ab+bc/' ,'r') <> 1 then pause,end +if grep('abbbbc' ,'/ab{1,}bc/' ,'r') <> 1 then pause,end +if grep('abbbbc' ,'/ab{1,3}bc/' ,'r') <> 1 then pause,end +if grep('abbbbc' ,'/ab{3,4}bc/' ,'r') <> 1 then pause,end +if grep('abbbbc' ,'/ab{4,5}bc/' ,'r') <> [] then pause,end +if grep('abbc' ,'/ab?bc/' ,'r') <> 1 then pause,end +if grep('abc' ,'/ab?bc/' ,'r') <> 1 then pause,end +if grep('abc' ,'/ab{0,1}bc/' ,'r') <> 1 then pause,end +if grep('abbbbc' ,'/ab?bc/' ,'r') <> [] then pause,end +if grep('abc' ,'/ab?c/' ,'r') <> 1 then pause,end +if grep('abc' ,'/ab{0,1}c/' ,'r') <> 1 then pause,end +if grep('abc' ,'/^abc$/' ,'r') <> 1 then pause,end +if grep('abcc' ,'/^abc$/' ,'r') <> [] then pause,end +if grep('abcc' ,'/^abc/' ,'r') <> 1 then pause,end +if grep('aabc' ,'/^abc$/' ,'r') <> [] then pause,end +if grep('aabc' ,'/abc$/' ,'r') <> 1 then pause,end +if grep('aabcd' ,'/abc$/' ,'r') <> [] then pause,end +if grep('abc' ,'/^/' ,'r') <> 1 then pause,end +if grep('abc' ,'/$/' ,'r') <> 1 then pause,end +if grep('abc' ,'/a.c/' ,'r') <> 1 then pause,end +if grep('axc' ,'/a.c/' ,'r') <> 1 then pause,end +if grep('axyzc' ,'/a.*c/' ,'r') <> 1 then pause,end +if grep('axyzd' ,'/a.*c/' ,'r') <> [] then pause,end +if grep('abc' ,'/a[bc]d/' ,'r') <> [] then pause,end +if grep('abd' ,'/a[bc]d/' ,'r') <> 1 then pause,end +if grep('abd' ,'/a[b-d]e/' ,'r') <> [] then pause,end +if grep('ace' ,'/a[b-d]e/' ,'r') <> 1 then pause,end +if grep('aac' ,'/a[b-d]/' ,'r') <> 1 then pause,end +if grep('a-' ,'/a[-b]/' ,'r') <> 1 then pause,end +if grep('a-' ,'/a[b-]/' ,'r') <> 1 then pause,end +if grep('a]' ,'/a]/' ,'r') <> 1 then pause,end +if grep('a]b' ,'/a[]]b/' ,'r') <> 1 then pause,end +if grep('aed' ,'/a[^bc]d/' ,'r') <> 1 then pause,end +if grep('abd' ,'/a[^bc]d/' ,'r') <> [] then pause,end +if grep('adc' ,'/a[^-b]c/' ,'r') <> 1 then pause,end +if grep('a-c' ,'/a[^-b]c/' ,'r') <> [] then pause,end +if grep('a]c' ,'/a[^]b]c/' ,'r') <> [] then pause,end +if grep('adc' ,'/a[^]b]c/' ,'r') <> 1 then pause,end +if grep('a-' ,'/\ba\b/' ,'r') <> 1 then pause,end +if grep('-a' ,'/\ba\b/' ,'r') <> 1 then pause,end +if grep('-a-' ,'/\ba\b/' ,'r') <> 1 then pause,end +if grep('xy' ,'/\by\b/' ,'r') <> [] then pause,end +if grep('yz' ,'/\by\b/' ,'r') <> [] then pause,end +if grep('xyz' ,'/\by\b/' ,'r') <> [] then pause,end +if grep('a-' ,'/\Ba\B/' ,'r') <> [] then pause,end +if grep('-a' ,'/\Ba\B/' ,'r') <> [] then pause,end +if grep('-a-' ,'/\Ba\B/' ,'r') <> [] then pause,end +if grep('xy' ,'/\By\b/' ,'r') <> 1 then pause,end +if grep('xy' ,'/\By\b/' ,'r') <> 1 then pause,end +if grep('yz' ,'/\by\B/' ,'r') <> 1 then pause,end +if grep('xyz' ,'/\By\B/' ,'r') <> 1 then pause,end +if grep('a' ,'/\w/' ,'r') <> 1 then pause,end +if grep('-' ,'/\w/' ,'r') <> [] then pause,end +if grep('a' ,'/\W/' ,'r') <> [] then pause,end +if grep('-' ,'/\W/' ,'r') <> 1 then pause,end +if grep('a b' ,'/a\sb/' ,'r') <> 1 then pause,end +if grep('a-b' ,'/a\sb/' ,'r') <> [] then pause,end +if grep('a b' ,'/a\Sb/' ,'r') <> [] then pause,end +if grep('a-b' ,'/a\Sb/' ,'r') <> 1 then pause,end +if grep('1' ,'/\d/' ,'r') <> 1 then pause,end +if grep('-' ,'/\d/' ,'r') <> [] then pause,end +if grep('1' ,'/\D/' ,'r') <> [] then pause,end +if grep('-' ,'/\D/' ,'r') <> 1 then pause,end +if grep('a' ,'/[\w]/' ,'r') <> 1 then pause,end +if grep('-' ,'/[\w]/' ,'r') <> [] then pause,end +if grep('a' ,'/[\W]/' ,'r') <> [] then pause,end +if grep('-' ,'/[\W]/' ,'r') <> 1 then pause,end +if grep('a b' ,'/a[\s]b/' ,'r') <> 1 then pause,end +if grep('a-b' ,'/a[\s]b/' ,'r') <> [] then pause,end +if grep('a b' ,'/a[\S]b/' ,'r') <> [] then pause,end +if grep('a-b' ,'/a[\S]b/' ,'r') <> 1 then pause,end +if grep('1' ,'/[\d]/' ,'r') <> 1 then pause,end +if grep('-' ,'/[\d]/' ,'r') <> [] then pause,end +if grep('1' ,'/[\D]/' ,'r') <> [] then pause,end +if grep('-' ,'/[\D]/' ,'r') <> 1 then pause,end +if grep('abc' ,'/ab|cd/' ,'r') <> 1 then pause,end +if grep('abcd' ,'/ab|cd/' ,'r') <> 1 then pause,end +if grep('b' ,'/$b/' ,'r') <> [] then pause,end +if grep('ab' ,'/a\(*b/' ,'r') <> 1 then pause,end +if grep('a((b' ,'/a\(*b/' ,'r') <> 1 then pause,end +if grep('aabbabc' ,'/a+b+c/' ,'r') <> 1 then pause,end +if grep('aabbabc' ,'/a{1,}b{1,}c/' ,'r') <> 1 then pause,end +if grep('abcabc' ,'/a.+?c/' ,'r') <> 1 then pause,end +if grep('cde' ,'/[^ab]*/' ,'r') <> 1 then pause,end +if grep('' ,'/abc/' ,'r') <> [] then pause,end +if grep('' ,'/a*/' ,'r') <> [] then pause,end +if grep('e' ,'/a|b|c|d|e/' ,'r') <> 1 then pause,end +if grep('abcdefg' ,'/abcd*efg/' ,'r') <> 1 then pause,end +if grep('xabyabbbz' ,'/ab*/' ,'r') <> 1 then pause,end +if grep('xayabbbz' ,'/ab*/' ,'r') <> 1 then pause,end +if grep('hij' ,'/[abhgefdc]ij/' ,'r') <> 1 then pause,end +if grep('abcde' ,'/^(ab|cd)e/' ,'r') <> [] then pause,end +if grep('adcdcde' ,'/a[bcd]*dcdcde/' ,'r') <> 1 then pause,end +if grep('adcdcde' ,'/a[bcd]+dcdcde/' ,'r') <> [] then pause,end +if grep('alpha' ,'/[a-zA-Z_][a-zA-Z0-9_]*/' ,'r') <> 1 then pause,end +if grep('effg' ,'/(bc+d$|ef*g.|h?i(j|k))/' ,'r') <> [] then pause,end +if grep('bcdd' ,'/(bc+d$|ef*g.|h?i(j|k))/' ,'r') <> [] then pause,end +if grep('aa' ,'/((((((((((a))))))))))\10/' ,'r') <> 1 then pause,end +if grep('aa' ,'/((((((((((a))))))))))\041/' ,'r') <> [] then pause,end +if grep('a!' ,'/((((((((((a))))))))))\041/' ,'r') <> 1 then pause,end +if grep('a' ,'/(((((((((a)))))))))/' ,'r') <> 1 then pause,end +if grep('uh-uh' ,'/multiple words of text/' ,'r') <> [] then pause,end +if grep('multiple words, yeah' ,'/multiple words/' ,'r') <> 1 then pause,end +if grep('ab' ,'/[k]/' ,'r') <> [] then pause,end +if grep('ac' ,'/a[-]?c/' ,'r') <> 1 then pause,end +if grep('a' ,'/(a)|\1/' ,'r') <> 1 then pause,end +if grep('x' ,'/(a)|\1/' ,'r') <> [] then pause,end +if grep('aaxabxbaxbbx' ,'/((\3|b)\2(a)x)+/' ,'r') <> [] then pause,end +if grep('ABC' ,'/abc/i' ,'r') <> 1 then pause,end +if grep('XBC' ,'/abc/i' ,'r') <> [] then pause,end +if grep('AXC' ,'/abc/i' ,'r') <> [] then pause,end +if grep('ABX' ,'/abc/i' ,'r') <> [] then pause,end +if grep('XABCY' ,'/abc/i' ,'r') <> 1 then pause,end +if grep('ABABC' ,'/abc/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/ab*c/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/ab*bc/i' ,'r') <> 1 then pause,end +if grep('ABBC' ,'/ab*bc/i' ,'r') <> 1 then pause,end +if grep('ABBBBC' ,'/ab*?bc/i' ,'r') <> 1 then pause,end +if grep('ABBBBC' ,'/ab{0,}?bc/i' ,'r') <> 1 then pause,end +if grep('ABBC' ,'/ab+?bc/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/ab+bc/i' ,'r') <> [] then pause,end +if grep('ABQ' ,'/ab+bc/i' ,'r') <> [] then pause,end +if grep('ABQ' ,'/ab{1,}bc/i' ,'r') <> [] then pause,end +if grep('ABBBBC' ,'/ab+bc/i' ,'r') <> 1 then pause,end +if grep('ABBBBC' ,'/ab{1,}?bc/i' ,'r') <> 1 then pause,end +if grep('ABBBBC' ,'/ab{1,3}?bc/i' ,'r') <> 1 then pause,end +if grep('ABBBBC' ,'/ab{3,4}?bc/i' ,'r') <> 1 then pause,end +if grep('ABBBBC' ,'/ab{4,5}?bc/i' ,'r') <> [] then pause,end +if grep('ABBC' ,'/ab??bc/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/ab??bc/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/ab{0,1}?bc/i' ,'r') <> 1 then pause,end +if grep('ABBBBC' ,'/ab??bc/i' ,'r') <> [] then pause,end +if grep('ABC' ,'/ab??c/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/ab{0,1}?c/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/^abc$/i' ,'r') <> 1 then pause,end +if grep('ABCC' ,'/^abc$/i' ,'r') <> [] then pause,end +if grep('ABCC' ,'/^abc/i' ,'r') <> 1 then pause,end +if grep('AABC' ,'/^abc$/i' ,'r') <> [] then pause,end +if grep('AABC' ,'/abc$/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/^/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/$/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/a.c/i' ,'r') <> 1 then pause,end +if grep('AXC' ,'/a.c/i' ,'r') <> 1 then pause,end +if grep('AXYZC' ,'/a.*?c/i' ,'r') <> 1 then pause,end +if grep('AXYZD' ,'/a.*c/i' ,'r') <> [] then pause,end +if grep('ABC' ,'/a[bc]d/i' ,'r') <> [] then pause,end +if grep('ABD' ,'/a[bc]d/i' ,'r') <> 1 then pause,end +if grep('ABD' ,'/a[b-d]e/i' ,'r') <> [] then pause,end +if grep('ACE' ,'/a[b-d]e/i' ,'r') <> 1 then pause,end +if grep('AAC' ,'/a[b-d]/i' ,'r') <> 1 then pause,end +if grep('A-' ,'/a[-b]/i' ,'r') <> 1 then pause,end +if grep('A-' ,'/a[b-]/i' ,'r') <> 1 then pause,end +if grep('A]' ,'/a]/i' ,'r') <> 1 then pause,end +if grep('A]B' ,'/a[]]b/i' ,'r') <> 1 then pause,end +if grep('AED' ,'/a[^bc]d/i' ,'r') <> 1 then pause,end +if grep('ABD' ,'/a[^bc]d/i' ,'r') <> [] then pause,end +if grep('ADC' ,'/a[^-b]c/i' ,'r') <> 1 then pause,end +if grep('A-C' ,'/a[^-b]c/i' ,'r') <> [] then pause,end +if grep('A]C' ,'/a[^]b]c/i' ,'r') <> [] then pause,end +if grep('ADC' ,'/a[^]b]c/i' ,'r') <> 1 then pause,end +if grep('ABC' ,'/ab|cd/i' ,'r') <> 1 then pause,end +if grep('ABCD' ,'/ab|cd/i' ,'r') <> 1 then pause,end +if grep('B' ,'/$b/i' ,'r') <> [] then pause,end +if grep('AB' ,'/a\(*b/i' ,'r') <> 1 then pause,end +if grep('A((B' ,'/a\(*b/i' ,'r') <> 1 then pause,end +if grep('AABBABC' ,'/a+b+c/i' ,'r') <> 1 then pause,end +if grep('AABBABC' ,'/a{1,}b{1,}c/i' ,'r') <> 1 then pause,end +if grep('ABCABC' ,'/a.+?c/i' ,'r') <> 1 then pause,end +if grep('ABCABC' ,'/a.*?c/i' ,'r') <> 1 then pause,end +if grep('ABCABC' ,'/a.{0,5}?c/i' ,'r') <> 1 then pause,end +if grep('CDE' ,'/[^ab]*/i' ,'r') <> 1 then pause,end +if grep('' ,'/abc/i' ,'r') <> [] then pause,end +if grep('' ,'/a*/i' ,'r') <> [] then pause,end +if grep('E' ,'/a|b|c|d|e/i' ,'r') <> 1 then pause,end +if grep('ABCDEFG' ,'/abcd*efg/i' ,'r') <> 1 then pause,end +if grep('XABYABBBZ' ,'/ab*/i' ,'r') <> 1 then pause,end +if grep('XAYABBBZ' ,'/ab*/i' ,'r') <> 1 then pause,end +if grep('HIJ' ,'/[abhgefdc]ij/i' ,'r') <> 1 then pause,end +if grep('ABCDE' ,'/^(ab|cd)e/i' ,'r') <> [] then pause,end +if grep('ADCDCDE' ,'/a[bcd]*dcdcde/i' ,'r') <> 1 then pause,end +if grep('ADCDCDE' ,'/a[bcd]+dcdcde/i' ,'r') <> [] then pause,end +if grep('ALPHA' ,'/[a-zA-Z_][a-zA-Z0-9_]*/i' ,'r') <> 1 then pause,end +if grep('EFFG' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ,'r') <> [] then pause,end +if grep('BCDD' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ,'r') <> [] then pause,end +if grep('AA' ,'/((((((((((a))))))))))\10/i' ,'r') <> 1 then pause,end +if grep('AA' ,'/((((((((((a))))))))))\041/i' ,'r') <> [] then pause,end +if grep('A!' ,'/((((((((((a))))))))))\041/i' ,'r') <> 1 then pause,end +if grep('A' ,'/(((((((((a)))))))))/i' ,'r') <> 1 then pause,end +if grep('UH-UH' ,'/multiple words of text/i' ,'r') <> [] then pause,end +if grep('MULTIPLE WORDS, YEAH' ,'/multiple words/i' ,'r') <> 1 then pause,end +if grep('AB' ,'/[k]/i' ,'r') <> [] then pause,end +if grep('AC' ,'/a[-]?c/i' ,'r') <> 1 then pause,end +if grep('abad' ,'/a(?!b)./' ,'r') <> 1 then pause,end +if grep('abad' ,'/a(?=d)./' ,'r') <> 1 then pause,end +if grep('abad' ,'/a(?=c|d)./' ,'r') <> 1 then pause,end +if grep('<&OUT' ,'/^[<>]&/' ,'r') <> 1 then pause,end +if grep('aaaaaaaaa' ,'/^(a\1?){4}$/' ,'r') <> [] then pause,end +if grep('aaaaaaaaaaa' ,'/^(a\1?){4}$/' ,'r') <> [] then pause,end +if grep('aaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ,'r') <> [] then pause,end +if grep('aaaaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ,'r') <> [] then pause,end +if grep('ab' ,'/(?<=a)b/' ,'r') <> 1 then pause,end +if grep('cb' ,'/(?<=a)b/' ,'r') <> [] then pause,end +if grep('b' ,'/(?<=a)b/' ,'r') <> [] then pause,end +if grep('ab' ,'/(?<!c)b/' ,'r') <> 1 then pause,end +if grep('cb' ,'/(?<!c)b/' ,'r') <> [] then pause,end +if grep('b' ,'/(?<!c)b/' ,'r') <> 1 then pause,end +if grep('b' ,'/(?<!c)b/' ,'r') <> 1 then pause,end +if grep('aba' ,'/(?:..)*a/' ,'r') <> 1 then pause,end +if grep('aba' ,'/(?:..)*?a/' ,'r') <> 1 then pause,end +if grep('abc' ,'/^(?:b|a(?=(.)))*\1/' ,'r') <> 1 then pause,end +if grep('ab' ,'/(?:(?i)a)b/' ,'r') <> 1 then pause,end +if grep('Ab' ,'/(?:(?i)a)b/' ,'r') <> 1 then pause,end +if grep('aB' ,'/(?:(?i)a)b/' ,'r') <> [] then pause,end +if grep('aB' ,'/((?i)a)b/' ,'r') <> [] then pause,end +if grep('ab' ,'/(?i:a)b/' ,'r') <> 1 then pause,end +if grep('Ab' ,'/(?i:a)b/' ,'r') <> 1 then pause,end +if grep('aB' ,'/(?i:a)b/' ,'r') <> [] then pause,end +if grep('aB' ,'/((?i:a))b/' ,'r') <> [] then pause,end +if grep('ab' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then pause,end +if grep('aB' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then pause,end +if grep('Ab' ,'/(?:(?-i)a)b/i' ,'r') <> [] then pause,end +if grep('Ab' ,'/((?-i)a)b/i' ,'r') <> [] then pause,end +if grep('aB' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then pause,end +if grep('AB' ,'/(?:(?-i)a)b/i' ,'r') <> [] then pause,end +if grep('AB' ,'/((?-i)a)b/i' ,'r') <> [] then pause,end +if grep('ab' ,'/(?-i:a)b/i' ,'r') <> 1 then pause,end +if grep('aB' ,'/(?-i:a)b/i' ,'r') <> 1 then pause,end +if grep('Ab' ,'/(?-i:a)b/i' ,'r') <> [] then pause,end +if grep('Ab' ,'/((?-i:a))b/i' ,'r') <> [] then pause,end +if grep('aB' ,'/(?-i:a)b/i' ,'r') <> 1 then pause,end +if grep('AB' ,'/(?-i:a)b/i' ,'r') <> [] then pause,end +if grep('AB' ,'/((?-i:a))b/i' ,'r') <> [] then pause,end +if grep('a'+lf+'B' ,'/((?-i:a.))b/i' ,'r') <> [] then pause,end +if grep('B'+lf+'B' ,'/((?s-i:a.))b/i' ,'r') <> [] then pause,end +if grep('cabbbb' ,'/(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/','r') <> 1 then pause,end +if grep('caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb','/(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/','r') <> 1 then pause,end +if grep('foobar1234baz' ,'/foo\w*\d{4}baz/' ,'r') <> 1 then pause,end +if grep('x~~' ,'/x(~~)*(?:(?:F)?)?/' ,'r') <> 1 then pause,end +if grep('aaac' ,'/^a(?#xxx){3}c/' ,'r') <> 1 then pause,end +if grep('aaac' ,'/^a (?#xxx) (?#yyy) {3}c/x' ,'r') <> 1 then pause,end +if grep('dbcb' ,'/(?<![cd])b/' ,'r') <> [] then pause,end +if grep('dbaacb' ,'/(?<![cd])[ab]/' ,'r') <> 1 then pause,end +if grep('dbcb' ,'/(?<!(c|d))b/' ,'r') <> [] then pause,end +if grep('dbaacb' ,'/(?<!(c|d))[ab]/' ,'r') <> 1 then pause,end +if grep('cdaccb' ,'/(?<!cd)[ab]/' ,'r') <> 1 then pause,end +if grep('a--' ,'/^(?:a?b?)*$/' ,'r') <> [] then pause,end +if grep('a'+lf+'b'+lf ,'/(?m)^b/' ,'r') <> 1 then pause,end +if grep('a'+lf+'b'+lf+'c'+lf ,'/^b/' ,'r') <> [] then pause,end +if grep('a'+lf+'b'+lf+'c'+lf ,'/()^b/' ,'r') <> [] then pause,end +if grep('a' ,'/(x)?(?(1)a|b)/' ,'r') <> [] then pause,end +if grep('a' ,'/(x)?(?(1)b|a)/' ,'r') <> 1 then pause,end +if grep('a' ,'/()?(?(1)b|a)/' ,'r') <> 1 then pause,end +if grep('a' ,'/()(?(1)b|a)/' ,'r') <> [] then pause,end +if grep('a' ,'/()?(?(1)a|b)/' ,'r') <> 1 then pause,end +if grep('blah)' ,'/^(\()?blah(?(1)(\)))$/' ,'r') <> [] then pause,end +if grep('(blah' ,'/^(\()?blah(?(1)(\)))$/' ,'r') <> [] then pause,end +if grep('blah)' ,'/^(\(+)?blah(?(1)(\)))$/' ,'r') <> [] then pause,end +if grep('(blah' ,'/^(\(+)?blah(?(1)(\)))$/' ,'r') <> [] then pause,end +if grep('a' ,'/(?(?!a)a|b)/' ,'r') <> [] then pause,end +if grep('a' ,'/(?(?!a)b|a)/' ,'r') <> 1 then pause,end +if grep('a' ,'/(?(?=a)b|a)/' ,'r') <> [] then pause,end +if grep('a' ,'/(?(?=a)a|b)/' ,'r') <> 1 then pause,end +if grep('aaab' ,'/^(?=(a+?))\1ab/' ,'r') <> [] then pause,end +if grep('aaab' ,'/^(?=(a+?))\1ab/' ,'r') <> [] then pause,end +if grep('abcd:' ,'/([\w:]+::)?(\w+)$/' ,'r') <> [] then pause,end +if grep('abcd:' ,'/([\w:]+::)?(\w+)$/' ,'r') <> [] then pause,end +if grep('aaab' ,'/(>a+)ab/' ,'r') <> [] then pause,end +if grep('aaab' ,'/(?>a+)b/' ,'r') <> 1 then pause,end +if grep('abc' ,'/[a[:]b[:c]/' ,'r') <> 1 then pause,end +if grep('abc' ,'/[a[:]b[:c]/' ,'r') <> 1 then pause,end +if grep('((abc(ade)ufh()()x' ,'/((?>[^()]+)|\([^()]*\))+/' ,'r') <> 1 then pause,end +if grep('a'+lf+'b'+lf ,'/a\Z/' ,'r') <> [] then pause,end +if grep('a'+lf+'b'+lf ,'/a\z/' ,'r') <> [] then pause,end +if grep('a'+lf+'b'+lf ,'/a$/' ,'r') <> [] then pause,end +if grep('b'+lf+'a'+lf ,'/a\z/' ,'r') <> [] then pause,end +if grep('a'+lf+'b'+lf ,'/a\Z/m' ,'r') <> [] then pause,end +if grep('a'+lf+'b'+lf ,'/a\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'a'+lf ,'/a\z/m' ,'r') <> [] then pause,end +if grep('aa'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if grep('aa'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if grep('aa'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then pause,end +if grep('b'+lf+'aa'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if grep('aa'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if grep('aa'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'aa'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/aa$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/aa\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/aa\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/aa$/' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/aa$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/aa$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/aa\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/aa\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/aa$/m' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/aa$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/aa\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/aa\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/aa$/' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/aa$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/aa$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/aa\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/aa\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/aa$/m' ,'r') <> [] then pause,end +if grep('ab'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if grep('ab'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if grep('ab'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ab'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if grep('ab'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if grep('ab'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ab'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/ab$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/ab\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/ab\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/ab$/' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/ab$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/ab$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/ab\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/ab\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/ab$/m' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/ab$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/ab\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/ab\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/ab$/' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/ab$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/ab$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/ab\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/ab\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/ab$/m' ,'r') <> [] then pause,end +if grep('abb'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if grep('abb'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if grep('abb'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then pause,end +if grep('b'+lf+'abb'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if grep('abb'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if grep('abb'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'abb'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/abb$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/abb\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/abb\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/abb$/' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if grep('ac'+lf+'b'+lf ,'/abb$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac'+lf ,'/abb$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/abb\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/abb\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ac' ,'/abb$/m' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/abb$/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/abb\Z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/abb\z/' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/abb$/' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if grep('ca'+lf+'b'+lf ,'/abb$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca'+lf ,'/abb$/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/abb\Z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/abb\z/m' ,'r') <> [] then pause,end +if grep('b'+lf+'ca' ,'/abb$/m' ,'r') <> [] then pause,end +if grep('x' ,'/a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/','r') <> [] then pause,end +if grep('foo.bart' ,'/foo.bart/' ,'r') <> 1 then pause,end +if grep('abcd'+lf+'dxxx' ,'/^d[x][x][x]/m' ,'r') <> 1 then pause,end +if grep('xxxtt' ,'/tt+$/' ,'r') <> 1 then pause,end +if grep('aaaXbX' ,'/\GX.*X/' ,'r') <> [] then pause,end +if grep('Changes' ,'/\.c(pp|xx|c)?$/i' ,'r') <> [] then pause,end +if grep('IO.c' ,'/\.c(pp|xx|c)?$/i' ,'r') <> 1 then pause,end +if grep('C:/' ,'/^([a-z]:)/' ,'r') <> [] then pause,end +if grep(lf+'x aa' ,'/^\S\s+aa$/m' ,'r') <> 1 then pause,end +if grep('ab' ,'/(^|a)b/' ,'r') <> 1 then pause,end +if grep('abcab' ,'/(\w)?(abc)\1b/' ,'r') <> [] then pause,end +if grep('a,b,c' ,'/^(?:.,){2}c/' ,'r') <> 1 then pause,end +if grep('a,b,c' ,'/^(?:[^,]*,){2}c/' ,'r') <> 1 then pause,end +if grep('' ,'/(?i)/' ,'r') <> [] then pause,end +if grep('a'+lf+'xb'+lf ,'/(?!\A)x/m' ,'r') <> 1 then pause,end +if grep('123'+lf+'abcabcabcabc'+lf ,'/^.{9}abc.*\n/m' ,'r') <> 1 then pause,end +if grep('a' ,'/^(a)?(?(1)a|b)+$/' ,'r') <> [] then pause,end +if grep('x1' ,'/^(0+)?(?:x(1))?/' ,'r') <> 1 then pause,end +if grep('012cxx0190' ,'/^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))?/','r') <> 1 then pause,end +if grep('aaaacccc' ,'/((?:aaaa|bbbb)cccc)?/' ,'r') <> 1 then pause,end +if grep('bbbbcccc' ,'/((?:aaaa|bbbb)cccc)?/' ,'r') <> 1 then pause,end +if grep('a'+lf+'b'+lf ,'/b\s^/m' ,'r') <> [] then pause,end +if grep('a' ,'/\ba/' ,'r') <> 1 then pause,end +if grep('AbCd' ,'/ab(?i)cd/' ,'r') <> [] then pause,end +if grep('abCd' ,'/ab(?i)cd/' ,'r') <> 1 then pause,end +if grep('Oo' ,'/^(o)(?!.*\1)/i' ,'r') <> [] then pause,end +if grep('2' ,'/2(]*)?$\1/' ,'r') <> 1 then pause,end +if grep('......abef' ,'/.*a(?!(b|cd)*e).*f/' ,'r') <> [] then pause,end +if grep('fools' ,'/(foo|fool|x.|money|parted)$/' ,'r') <> [] then pause,end +if grep('fools' ,'/(x.|foo|fool|x.|money|parted|y.)$/' ,'r') <> [] then pause,end +if grep('fools' ,'/(foo|fool|money|parted)$/' ,'r') <> [] then pause,end +//======================================================================================== +// depend of PCRE library options +//if grep('a\b' ,'/a\\b/' ,'r') <> 1 then pause,end +//if grep('bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+X/' ,'r') <> 1 then pause,end +//if grep('bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+XX/' ,'r') <> 1 then pause,end +//if grep('bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.XX(.+)+X/' ,'r') <> 1 then pause,end +//if grep('bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+X/' ,'r') <> [] then pause,end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+XX/' ,'r') <> [] then pause,end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.XX(.+)+X/' ,'r') <> [] then pause,end +//if grep('bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+[X]/' ,'r') <> 1 then pause,end +//if grep('bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+[X][X]/' ,'r') <> 1 then pause,end +//if grep('bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.XX(.+)+[X]/' ,'r') <> 1 then pause,end +//if grep('bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+[X]/' ,'r') <> [] then pause,end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.X(.+)+[X][X]/' ,'r') <> [] then pause,end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.XX(.+)+[X]/' ,'r') <> [] then pause,end +//if grep('bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X](.+)+[X]/' ,'r') <> 1 then pause,end +//if grep('bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X](.+)+[X][X]/' ,'r') <> 1 then pause,end +//if grep('bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X][X](.+)+[X]/' ,'r') <> 1 then pause,end +//if grep('bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X](.+)+[X]/' ,'r') <> [] then pause,end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X](.+)+[X][X]/' ,'r') <> [] then pause,end +//if grep('bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ,'/.[X][X](.+)+[X]/' ,'r') <> [] then pause,end +//if grep('cabd' ,'/a(?{})b/' ,'r') <> 1 then pause,end +//if grep('a' ,'/(?(?{0})b|a)/' ,'r') <> 1 then pause,end +//if grep('a' ,'/(?(?{1})a|b)/' ,'r') <> 1 then pause,end +//if grep('x' ,'/(??{})/' ,'r') <> 1 then pause,end +//if grep('cabd' ,'/a(?{"\{"})b/' ,'r') <> 1 then pause,end +//if grep('A\B' ,'/a\\b/i' ,'r') <> 1 then pause,end +//if grep('aaaaaaaaaaaaaaab' ,'/(a|aa|aaa|aaaa|aaaaa|aaaaaa)(??{$1&&"foo"})(b|c)/','r') <> [] then pause,end +//======================================================================================== +str = "世界您好"; +needle = "界"; +[r,w] = grep(str,needle); +if r <> 1 then pause,end +if w <> 1 then pause,end + +str = "азеазея"; +needle = "з"; +[r,w] = grep(str,needle); +if r <> 1 then pause,end +if w <> 1 then pause,end + +str = "ハロー・ワールド"; +needle = "ワ"; +[r,w] = grep(str,needle); +if r <> 1 then pause,end +if w <> 1 then pause,end + +str = "เฮลโลเวิลด์"; +needle = "วิ"; +[r,w] = grep(str,needle); +if r <> 1 then pause,end +if w <> 1 then pause,end + +str = "حريات وحقوق"; +needle = "و"; +[r,w] = grep(str,needle); +if r <> 1 then pause,end +if w <> 1 then pause,end + +str = "תוכנית"; +needle = "ו"; +grep(str,needle); +if r <> 1 then pause,end +if w <> 1 then pause,end + +//======================================================================================== +// Chinese +str = '世界您好'; +[r,w] = grep(str,'/^世界/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/世界$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/您好$/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/^您好/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/界您/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'界您'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/界_您/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== +// Russian +str = 'привет мир'; +[r,w] = grep(str,'/^привет/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/привет$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/мир$/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/^мир/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/вет\sм/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/вет_м/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== +// Cyrilic +str = 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ'; + +[r,w] = grep(str,'/^АБВГДЄЖЅЗИІКЛМНОПҀР/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/АБВГДЄЖЅЗИІКЛМНОПҀР$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ$/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/^ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/ИІКЛМНОПҀРСТѸФХѠЦЧШЩЪ/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/ИІКЛМНОПҀ_РСТѸФХѠЦЧШЩЪ/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== +// Japanese +str = '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃'; + +[r,w] = grep(str,'/^丑丞串乃之乎也云亘亙些亦/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/丑丞串乃之乎也云亘亙些亦$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/凰凱函刹劉劫勁勃$/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/^凰凱函刹劉劫勁勃/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/亨亮仔伊伎伍伽佃佑伶侃/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/亨亮仔伊_伎伍伽佃佑伶侃/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== +// Thaï +str = 'มกระดุกกระดิก'; +[r,w] = grep(str,'/^มกระดุกกร/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/มกระดุกกร$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/กกระดิก$/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/^กกระดิก/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = grep(str,'/ดุกก/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = grep(str,'/ดุก_ก/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== diff --git a/modules/string/tests/unit_tests/grep_pcre76.dia.ref b/modules/string/tests/unit_tests/grep_pcre76.dia.ref new file mode 100755 index 000000000..87bb3b99a --- /dev/null +++ b/modules/string/tests/unit_tests/grep_pcre76.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// Comments about PCRE 7.6 see changelog PCRE +//7. Patterns such as (?(1)a|b) (a pattern that contains fewer subpatterns +// than the number used in the conditional) now cause a compile-time error. +// This is actually not compatible with Perl, which accepts such patterns, but +// treats the conditional as always being FALSE (as PCRE used to), but it +// seems to me that giving a diagnostic is better. +if execstr("grep(''a'' ,''/(?(1)a|b)/'',''r'')","errcatch") <> 999 then bugmes();quit;end +if execstr("grep(''a'',''/(?(?{0})a|b)/'',''r'')","errcatch") <> 999 then bugmes();quit;end +if execstr("grep(''a'',''/(?(?{1})b|a)/'',''r'')","errcatch") <> 999 then bugmes();quit;end +if execstr("grep(''a'',''/(?(1)b|a)/'',''r'')","errcatch") <> 999 then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/grep_pcre76.tst b/modules/string/tests/unit_tests/grep_pcre76.tst new file mode 100755 index 000000000..2ced682de --- /dev/null +++ b/modules/string/tests/unit_tests/grep_pcre76.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// Comments about PCRE 7.6 see changelog PCRE +//7. Patterns such as (?(1)a|b) (a pattern that contains fewer subpatterns +// than the number used in the conditional) now cause a compile-time error. +// This is actually not compatible with Perl, which accepts such patterns, but +// treats the conditional as always being FALSE (as PCRE used to), but it +// seems to me that giving a diagnostic is better. +if execstr("grep(''a'' ,''/(?(1)a|b)/'',''r'')","errcatch") <> 999 then pause,end +if execstr("grep(''a'',''/(?(?{0})a|b)/'',''r'')","errcatch") <> 999 then pause,end +if execstr("grep(''a'',''/(?(?{1})b|a)/'',''r'')","errcatch") <> 999 then pause,end +if execstr("grep(''a'',''/(?(1)b|a)/'',''r'')","errcatch") <> 999 then pause,end diff --git a/modules/string/tests/unit_tests/isalphanum.dia.ref b/modules/string/tests/unit_tests/isalphanum.dia.ref new file mode 100755 index 000000000..279dc6331 --- /dev/null +++ b/modules/string/tests/unit_tests/isalphanum.dia.ref @@ -0,0 +1,103 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests isalphanum +//=============================== +TXT = 'A1,B2,C3'; +//=============================== +if isalphanum(TXT) <> [ %T %T %F %T %T %F %T %T] then bugmes();quit;end +//=============================== +if isalphanum('') <> [] then bugmes();quit;end +//=============================== +if ~isalphanum('a') then bugmes();quit;end +if ~isalphanum('b') then bugmes();quit;end +if ~isalphanum('c') then bugmes();quit;end +if ~isalphanum('d') then bugmes();quit;end +if ~isalphanum('e') then bugmes();quit;end +if ~isalphanum('f') then bugmes();quit;end +if ~isalphanum('g') then bugmes();quit;end +if ~isalphanum('h') then bugmes();quit;end +if ~isalphanum('i') then bugmes();quit;end +if ~isalphanum('j') then bugmes();quit;end +if ~isalphanum('k') then bugmes();quit;end +if ~isalphanum('l') then bugmes();quit;end +if ~isalphanum('m') then bugmes();quit;end +if ~isalphanum('n') then bugmes();quit;end +if ~isalphanum('o') then bugmes();quit;end +if ~isalphanum('p') then bugmes();quit;end +if ~isalphanum('q') then bugmes();quit;end +if ~isalphanum('r') then bugmes();quit;end +if ~isalphanum('s') then bugmes();quit;end +if ~isalphanum('t') then bugmes();quit;end +if ~isalphanum('u') then bugmes();quit;end +if ~isalphanum('v') then bugmes();quit;end +if ~isalphanum('x') then bugmes();quit;end +if ~isalphanum('y') then bugmes();quit;end +if ~isalphanum('z') then bugmes();quit;end +if ~isalphanum('A') then bugmes();quit;end +if ~isalphanum('B') then bugmes();quit;end +if ~isalphanum('C') then bugmes();quit;end +if ~isalphanum('D') then bugmes();quit;end +if ~isalphanum('E') then bugmes();quit;end +if ~isalphanum('F') then bugmes();quit;end +if ~isalphanum('G') then bugmes();quit;end +if ~isalphanum('H') then bugmes();quit;end +if ~isalphanum('I') then bugmes();quit;end +if ~isalphanum('J') then bugmes();quit;end +if ~isalphanum('K') then bugmes();quit;end +if ~isalphanum('L') then bugmes();quit;end +if ~isalphanum('M') then bugmes();quit;end +if ~isalphanum('O') then bugmes();quit;end +if ~isalphanum('P') then bugmes();quit;end +if ~isalphanum('Q') then bugmes();quit;end +if ~isalphanum('R') then bugmes();quit;end +if ~isalphanum('S') then bugmes();quit;end +if ~isalphanum('T') then bugmes();quit;end +if ~isalphanum('U') then bugmes();quit;end +if ~isalphanum('V') then bugmes();quit;end +if ~isalphanum('X') then bugmes();quit;end +if ~isalphanum('Y') then bugmes();quit;end +if ~isalphanum('Z') then bugmes();quit;end +if ~isalphanum('1') then bugmes();quit;end +if ~isalphanum('2') then bugmes();quit;end +if ~isalphanum('3') then bugmes();quit;end +if ~isalphanum('4') then bugmes();quit;end +if ~isalphanum('5') then bugmes();quit;end +if ~isalphanum('6') then bugmes();quit;end +if ~isalphanum('7') then bugmes();quit;end +if ~isalphanum('8') then bugmes();quit;end +if ~isalphanum('9') then bugmes();quit;end +if isalphanum('!') then bugmes();quit;end +if isalphanum('#') then bugmes();quit;end +if isalphanum('$') then bugmes();quit;end +if isalphanum('%') then bugmes();quit;end +if isalphanum('&') then bugmes();quit;end +if isalphanum('(') then bugmes();quit;end +if isalphanum(')') then bugmes();quit;end +if isalphanum('*') then bugmes();quit;end +if isalphanum('+') then bugmes();quit;end +if isalphanum(',') then bugmes();quit;end +if isalphanum('-') then bugmes();quit;end +if isalphanum('.') then bugmes();quit;end +if isalphanum('/') then bugmes();quit;end +if isalphanum(':') then bugmes();quit;end +if isalphanum(';') then bugmes();quit;end +if isalphanum('<') then bugmes();quit;end +if isalphanum('=') then bugmes();quit;end +if isalphanum('>') then bugmes();quit;end +if isalphanum('@') then bugmes();quit;end +if isalphanum('[') then bugmes();quit;end +if isalphanum('\') then bugmes();quit;end +if isalphanum(']') then bugmes();quit;end +if isalphanum('^') then bugmes();quit;end +if isalphanum('_') then bugmes();quit;end +if isalphanum('`') then bugmes();quit;end +if isalphanum('{') then bugmes();quit;end +if isalphanum('|') then bugmes();quit;end +if isalphanum('}') then bugmes();quit;end +if isalphanum('~') then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/isalphanum.tst b/modules/string/tests/unit_tests/isalphanum.tst new file mode 100755 index 000000000..91c57f470 --- /dev/null +++ b/modules/string/tests/unit_tests/isalphanum.tst @@ -0,0 +1,108 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests isalphanum +//=============================== +TXT = 'A1,B2,C3'; +//=============================== +if isalphanum(TXT) <> [ %T %T %F %T %T %F %T %T] then pause,end +//=============================== +if isalphanum('') <> [] then pause,end +//=============================== + +if ~isalphanum('a') then pause,end +if ~isalphanum('b') then pause,end +if ~isalphanum('c') then pause,end +if ~isalphanum('d') then pause,end +if ~isalphanum('e') then pause,end +if ~isalphanum('f') then pause,end +if ~isalphanum('g') then pause,end +if ~isalphanum('h') then pause,end +if ~isalphanum('i') then pause,end +if ~isalphanum('j') then pause,end +if ~isalphanum('k') then pause,end +if ~isalphanum('l') then pause,end +if ~isalphanum('m') then pause,end +if ~isalphanum('n') then pause,end +if ~isalphanum('o') then pause,end +if ~isalphanum('p') then pause,end +if ~isalphanum('q') then pause,end +if ~isalphanum('r') then pause,end +if ~isalphanum('s') then pause,end +if ~isalphanum('t') then pause,end +if ~isalphanum('u') then pause,end +if ~isalphanum('v') then pause,end +if ~isalphanum('x') then pause,end +if ~isalphanum('y') then pause,end +if ~isalphanum('z') then pause,end +if ~isalphanum('A') then pause,end +if ~isalphanum('B') then pause,end +if ~isalphanum('C') then pause,end +if ~isalphanum('D') then pause,end +if ~isalphanum('E') then pause,end +if ~isalphanum('F') then pause,end +if ~isalphanum('G') then pause,end +if ~isalphanum('H') then pause,end +if ~isalphanum('I') then pause,end +if ~isalphanum('J') then pause,end +if ~isalphanum('K') then pause,end +if ~isalphanum('L') then pause,end +if ~isalphanum('M') then pause,end +if ~isalphanum('O') then pause,end +if ~isalphanum('P') then pause,end +if ~isalphanum('Q') then pause,end +if ~isalphanum('R') then pause,end +if ~isalphanum('S') then pause,end +if ~isalphanum('T') then pause,end +if ~isalphanum('U') then pause,end +if ~isalphanum('V') then pause,end +if ~isalphanum('X') then pause,end +if ~isalphanum('Y') then pause,end +if ~isalphanum('Z') then pause,end + +if ~isalphanum('1') then pause,end +if ~isalphanum('2') then pause,end +if ~isalphanum('3') then pause,end +if ~isalphanum('4') then pause,end +if ~isalphanum('5') then pause,end +if ~isalphanum('6') then pause,end +if ~isalphanum('7') then pause,end +if ~isalphanum('8') then pause,end +if ~isalphanum('9') then pause,end + +if isalphanum('!') then pause,end +if isalphanum('#') then pause,end +if isalphanum('$') then pause,end +if isalphanum('%') then pause,end +if isalphanum('&') then pause,end +if isalphanum('(') then pause,end +if isalphanum(')') then pause,end +if isalphanum('*') then pause,end +if isalphanum('+') then pause,end +if isalphanum(',') then pause,end +if isalphanum('-') then pause,end +if isalphanum('.') then pause,end +if isalphanum('/') then pause,end +if isalphanum(':') then pause,end +if isalphanum(';') then pause,end +if isalphanum('<') then pause,end +if isalphanum('=') then pause,end +if isalphanum('>') then pause,end +if isalphanum('@') then pause,end +if isalphanum('[') then pause,end +if isalphanum('\') then pause,end +if isalphanum(']') then pause,end +if isalphanum('^') then pause,end +if isalphanum('_') then pause,end +if isalphanum('`') then pause,end +if isalphanum('{') then pause,end +if isalphanum('|') then pause,end +if isalphanum('}') then pause,end +if isalphanum('~') then pause,end diff --git a/modules/string/tests/unit_tests/isascii.dia.ref b/modules/string/tests/unit_tests/isascii.dia.ref new file mode 100755 index 000000000..653f53827 --- /dev/null +++ b/modules/string/tests/unit_tests/isascii.dia.ref @@ -0,0 +1,37 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// ============================================================================= +// unit tests isascii +// ============================================================================= +chars = ascii(1:127); +if or(isascii(chars)) <> %T then bugmes();quit;end +// ============================================================================= +if or(isascii(255:300)) <> %F then bugmes();quit;end +// ============================================================================= +if or(isascii('This is a sentence')) <> %T then bugmes();quit;end +// ============================================================================= +if isascii(ascii(20)) <> %T then bugmes();quit;end +// ============================================================================= +if or(isascii(ascii(20:50))) <> %T then bugmes();quit;end +// ============================================================================= +tab_ref = [ +"世界A您好", +"азеAазея", +"ハロー・Aワールド", +"เฮลโลเAวิลด์", +"حرياتAوحقوق", +"תוAכנית"]; +r_ref = list([%F,%F,%T,%F,%F], .. +[%F,%F,%F,%T,%F,%F,%F,%F], .. +[%F,%F,%F,%F,%T,%F,%F,%F,%F], .. +[%F,%F,%F,%F,%F,%F,%T,%F,%F,%F,%F,%F], .. +[%F,%F,%F,%F,%F,%T,%F,%F,%F,%F,%F], .. +[%F,%F,%T,%F,%F,%F,%F]); +for i = 1 : size(tab_ref,'*') + if and(isascii(tab_ref(i))<> r_ref(i)) then bugmes();quit;end +end diff --git a/modules/string/tests/unit_tests/isascii.tst b/modules/string/tests/unit_tests/isascii.tst new file mode 100755 index 000000000..1502d0f6c --- /dev/null +++ b/modules/string/tests/unit_tests/isascii.tst @@ -0,0 +1,42 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// ============================================================================= +// unit tests isascii +// ============================================================================= +chars = ascii(1:127); +if or(isascii(chars)) <> %T then pause,end +// ============================================================================= +if or(isascii(255:300)) <> %F then pause,end +// ============================================================================= +if or(isascii('This is a sentence')) <> %T then pause,end +// ============================================================================= +if isascii(ascii(20)) <> %T then pause,end +// ============================================================================= +if or(isascii(ascii(20:50))) <> %T then pause,end +// ============================================================================= +tab_ref = [ +"世界A您好", +"азеAазея", +"ハロー・Aワールド", +"เฮลโลเAวิลด์", +"حرياتAوحقوق", +"תוAכנית"]; + +r_ref = list([%F,%F,%T,%F,%F], .. +[%F,%F,%F,%T,%F,%F,%F,%F], .. +[%F,%F,%F,%F,%T,%F,%F,%F,%F], .. +[%F,%F,%F,%F,%F,%F,%T,%F,%F,%F,%F,%F], .. +[%F,%F,%F,%F,%F,%T,%F,%F,%F,%F,%F], .. +[%F,%F,%T,%F,%F,%F,%F]); + + +for i = 1 : size(tab_ref,'*') + if and(isascii(tab_ref(i))<> r_ref(i)) then pause,end +end
\ No newline at end of file diff --git a/modules/string/tests/unit_tests/isdigit.dia.ref b/modules/string/tests/unit_tests/isdigit.dia.ref new file mode 100755 index 000000000..29dc18023 --- /dev/null +++ b/modules/string/tests/unit_tests/isdigit.dia.ref @@ -0,0 +1,105 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests isdigit +//=============================== +TXT = 'A1,B2,C3'; +//=============================== +if isdigit(TXT) <> [%F %T %F %F %T %F %F %T] then bugmes();quit;end +//=============================== +if isdigit('') <> [] then bugmes();quit;end +//=============================== +if isdigit('a') then bugmes();quit;end +if isdigit('b') then bugmes();quit;end +if isdigit('c') then bugmes();quit;end +if isdigit('d') then bugmes();quit;end +if isdigit('e') then bugmes();quit;end +if isdigit('f') then bugmes();quit;end +if isdigit('g') then bugmes();quit;end +if isdigit('h') then bugmes();quit;end +if isdigit('i') then bugmes();quit;end +if isdigit('j') then bugmes();quit;end +if isdigit('k') then bugmes();quit;end +if isdigit('l') then bugmes();quit;end +if isdigit('m') then bugmes();quit;end +if isdigit('n') then bugmes();quit;end +if isdigit('o') then bugmes();quit;end +if isdigit('p') then bugmes();quit;end +if isdigit('q') then bugmes();quit;end +if isdigit('r') then bugmes();quit;end +if isdigit('s') then bugmes();quit;end +if isdigit('t') then bugmes();quit;end +if isdigit('u') then bugmes();quit;end +if isdigit('v') then bugmes();quit;end +if isdigit('x') then bugmes();quit;end +if isdigit('y') then bugmes();quit;end +if isdigit('z') then bugmes();quit;end +if isdigit('A') then bugmes();quit;end +if isdigit('B') then bugmes();quit;end +if isdigit('C') then bugmes();quit;end +if isdigit('D') then bugmes();quit;end +if isdigit('E') then bugmes();quit;end +if isdigit('F') then bugmes();quit;end +if isdigit('G') then bugmes();quit;end +if isdigit('H') then bugmes();quit;end +if isdigit('I') then bugmes();quit;end +if isdigit('J') then bugmes();quit;end +if isdigit('K') then bugmes();quit;end +if isdigit('L') then bugmes();quit;end +if isdigit('M') then bugmes();quit;end +if isdigit('O') then bugmes();quit;end +if isdigit('P') then bugmes();quit;end +if isdigit('Q') then bugmes();quit;end +if isdigit('R') then bugmes();quit;end +if isdigit('S') then bugmes();quit;end +if isdigit('T') then bugmes();quit;end +if isdigit('U') then bugmes();quit;end +if isdigit('V') then bugmes();quit;end +if isdigit('X') then bugmes();quit;end +if isdigit('Y') then bugmes();quit;end +if isdigit('Z') then bugmes();quit;end +if isdigit('!') then bugmes();quit;end +if isdigit('#') then bugmes();quit;end +if isdigit('$') then bugmes();quit;end +if isdigit('%') then bugmes();quit;end +if isdigit('&') then bugmes();quit;end +if isdigit('(') then bugmes();quit;end +if isdigit(')') then bugmes();quit;end +if isdigit('*') then bugmes();quit;end +if isdigit('+') then bugmes();quit;end +if isdigit(',') then bugmes();quit;end +if isdigit('-') then bugmes();quit;end +if isdigit('.') then bugmes();quit;end +if isdigit('/') then bugmes();quit;end +if isdigit(':') then bugmes();quit;end +if isdigit(';') then bugmes();quit;end +if isdigit('<') then bugmes();quit;end +if isdigit('=') then bugmes();quit;end +if isdigit('>') then bugmes();quit;end +if isdigit('@') then bugmes();quit;end +if isdigit('[') then bugmes();quit;end +if isdigit('\') then bugmes();quit;end +if isdigit(']') then bugmes();quit;end +if isdigit('^') then bugmes();quit;end +if isdigit('_') then bugmes();quit;end +if isdigit('`') then bugmes();quit;end +if isdigit('{') then bugmes();quit;end +if isdigit('|') then bugmes();quit;end +if isdigit('}') then bugmes();quit;end +if isdigit('~') then bugmes();quit;end +if isdigit('""') then bugmes();quit;end +if isdigit('''') then bugmes();quit;end +if ~isdigit('1') then bugmes();quit;end +if ~isdigit('2') then bugmes();quit;end +if ~isdigit('3') then bugmes();quit;end +if ~isdigit('4') then bugmes();quit;end +if ~isdigit('5') then bugmes();quit;end +if ~isdigit('6') then bugmes();quit;end +if ~isdigit('7') then bugmes();quit;end +if ~isdigit('8') then bugmes();quit;end +if ~isdigit('9') then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/isdigit.tst b/modules/string/tests/unit_tests/isdigit.tst new file mode 100755 index 000000000..462e57932 --- /dev/null +++ b/modules/string/tests/unit_tests/isdigit.tst @@ -0,0 +1,111 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests isdigit +//=============================== +TXT = 'A1,B2,C3'; +//=============================== +if isdigit(TXT) <> [%F %T %F %F %T %F %F %T] then pause,end +//=============================== +if isdigit('') <> [] then pause,end +//=============================== + +if isdigit('a') then pause,end +if isdigit('b') then pause,end +if isdigit('c') then pause,end +if isdigit('d') then pause,end +if isdigit('e') then pause,end +if isdigit('f') then pause,end +if isdigit('g') then pause,end +if isdigit('h') then pause,end +if isdigit('i') then pause,end +if isdigit('j') then pause,end +if isdigit('k') then pause,end +if isdigit('l') then pause,end +if isdigit('m') then pause,end +if isdigit('n') then pause,end +if isdigit('o') then pause,end +if isdigit('p') then pause,end +if isdigit('q') then pause,end +if isdigit('r') then pause,end +if isdigit('s') then pause,end +if isdigit('t') then pause,end +if isdigit('u') then pause,end +if isdigit('v') then pause,end +if isdigit('x') then pause,end +if isdigit('y') then pause,end +if isdigit('z') then pause,end +if isdigit('A') then pause,end +if isdigit('B') then pause,end +if isdigit('C') then pause,end +if isdigit('D') then pause,end +if isdigit('E') then pause,end +if isdigit('F') then pause,end +if isdigit('G') then pause,end +if isdigit('H') then pause,end +if isdigit('I') then pause,end +if isdigit('J') then pause,end +if isdigit('K') then pause,end +if isdigit('L') then pause,end +if isdigit('M') then pause,end +if isdigit('O') then pause,end +if isdigit('P') then pause,end +if isdigit('Q') then pause,end +if isdigit('R') then pause,end +if isdigit('S') then pause,end +if isdigit('T') then pause,end +if isdigit('U') then pause,end +if isdigit('V') then pause,end +if isdigit('X') then pause,end +if isdigit('Y') then pause,end +if isdigit('Z') then pause,end + +if isdigit('!') then pause,end +if isdigit('#') then pause,end +if isdigit('$') then pause,end +if isdigit('%') then pause,end +if isdigit('&') then pause,end +if isdigit('(') then pause,end +if isdigit(')') then pause,end +if isdigit('*') then pause,end +if isdigit('+') then pause,end +if isdigit(',') then pause,end +if isdigit('-') then pause,end +if isdigit('.') then pause,end +if isdigit('/') then pause,end +if isdigit(':') then pause,end +if isdigit(';') then pause,end +if isdigit('<') then pause,end +if isdigit('=') then pause,end +if isdigit('>') then pause,end +if isdigit('@') then pause,end +if isdigit('[') then pause,end +if isdigit('\') then pause,end +if isdigit(']') then pause,end +if isdigit('^') then pause,end +if isdigit('_') then pause,end +if isdigit('`') then pause,end +if isdigit('{') then pause,end +if isdigit('|') then pause,end +if isdigit('}') then pause,end +if isdigit('~') then pause,end + +if isdigit('""') then pause,end +if isdigit('''') then pause,end + +if ~isdigit('1') then pause,end +if ~isdigit('2') then pause,end +if ~isdigit('3') then pause,end +if ~isdigit('4') then pause,end +if ~isdigit('5') then pause,end +if ~isdigit('6') then pause,end +if ~isdigit('7') then pause,end +if ~isdigit('8') then pause,end +if ~isdigit('9') then pause,end diff --git a/modules/string/tests/unit_tests/isletter.dia.ref b/modules/string/tests/unit_tests/isletter.dia.ref new file mode 100755 index 000000000..12273953d --- /dev/null +++ b/modules/string/tests/unit_tests/isletter.dia.ref @@ -0,0 +1,106 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests isletter +//=============================== +TXT = 'A1,B2,C3'; +//=============================== +if isletter(TXT) <> [%T %F %F %T %F %F %T %F] then bugmes();quit;end +//=============================== +if isletter('') <> [] then bugmes();quit;end +//=============================== +if ~isletter('a') then bugmes();quit;end +if ~isletter('b') then bugmes();quit;end +if ~isletter('c') then bugmes();quit;end +if ~isletter('d') then bugmes();quit;end +if ~isletter('e') then bugmes();quit;end +if ~isletter('f') then bugmes();quit;end +if ~isletter('g') then bugmes();quit;end +if ~isletter('h') then bugmes();quit;end +if ~isletter('i') then bugmes();quit;end +if ~isletter('j') then bugmes();quit;end +if ~isletter('k') then bugmes();quit;end +if ~isletter('l') then bugmes();quit;end +if ~isletter('m') then bugmes();quit;end +if ~isletter('n') then bugmes();quit;end +if ~isletter('o') then bugmes();quit;end +if ~isletter('p') then bugmes();quit;end +if ~isletter('q') then bugmes();quit;end +if ~isletter('r') then bugmes();quit;end +if ~isletter('s') then bugmes();quit;end +if ~isletter('t') then bugmes();quit;end +if ~isletter('u') then bugmes();quit;end +if ~isletter('v') then bugmes();quit;end +if ~isletter('x') then bugmes();quit;end +if ~isletter('y') then bugmes();quit;end +if ~isletter('z') then bugmes();quit;end +if ~isletter('A') then bugmes();quit;end +if ~isletter('B') then bugmes();quit;end +if ~isletter('C') then bugmes();quit;end +if ~isletter('D') then bugmes();quit;end +if ~isletter('E') then bugmes();quit;end +if ~isletter('F') then bugmes();quit;end +if ~isletter('G') then bugmes();quit;end +if ~isletter('H') then bugmes();quit;end +if ~isletter('I') then bugmes();quit;end +if ~isletter('J') then bugmes();quit;end +if ~isletter('K') then bugmes();quit;end +if ~isletter('L') then bugmes();quit;end +if ~isletter('M') then bugmes();quit;end +if ~isletter('O') then bugmes();quit;end +if ~isletter('P') then bugmes();quit;end +if ~isletter('Q') then bugmes();quit;end +if ~isletter('R') then bugmes();quit;end +if ~isletter('S') then bugmes();quit;end +if ~isletter('T') then bugmes();quit;end +if ~isletter('U') then bugmes();quit;end +if ~isletter('V') then bugmes();quit;end +if ~isletter('X') then bugmes();quit;end +if ~isletter('Y') then bugmes();quit;end +if ~isletter('Z') then bugmes();quit;end +if isletter('!') then bugmes();quit;end +if isletter('#') then bugmes();quit;end +if isletter('$') then bugmes();quit;end +if isletter('%') then bugmes();quit;end +if isletter('&') then bugmes();quit;end +if isletter('(') then bugmes();quit;end +if isletter(')') then bugmes();quit;end +if isletter('*') then bugmes();quit;end +if isletter('+') then bugmes();quit;end +if isletter(',') then bugmes();quit;end +if isletter('-') then bugmes();quit;end +if isletter('.') then bugmes();quit;end +if isletter('/') then bugmes();quit;end +if isletter(':') then bugmes();quit;end +if isletter(';') then bugmes();quit;end +if isletter('<') then bugmes();quit;end +if isletter('=') then bugmes();quit;end +if isletter('>') then bugmes();quit;end +if isletter('@') then bugmes();quit;end +if isletter('[') then bugmes();quit;end +if isletter('\') then bugmes();quit;end +if isletter(']') then bugmes();quit;end +if isletter('^') then bugmes();quit;end +if isletter('_') then bugmes();quit;end +if isletter('`') then bugmes();quit;end +if isletter('{') then bugmes();quit;end +if isletter('|') then bugmes();quit;end +if isletter('}') then bugmes();quit;end +if isletter('~') then bugmes();quit;end +if isletter('0') then bugmes();quit;end +if isletter('1') then bugmes();quit;end +if isletter('2') then bugmes();quit;end +if isletter('3') then bugmes();quit;end +if isletter('4') then bugmes();quit;end +if isletter('5') then bugmes();quit;end +if isletter('6') then bugmes();quit;end +if isletter('7') then bugmes();quit;end +if isletter('8') then bugmes();quit;end +if isletter('9') then bugmes();quit;end +if isletter('''') then bugmes();quit;end +if isletter('""') then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/isletter.tst b/modules/string/tests/unit_tests/isletter.tst new file mode 100755 index 000000000..2d090406c --- /dev/null +++ b/modules/string/tests/unit_tests/isletter.tst @@ -0,0 +1,112 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests isletter +//=============================== +TXT = 'A1,B2,C3'; +//=============================== +if isletter(TXT) <> [%T %F %F %T %F %F %T %F] then pause,end +//=============================== +if isletter('') <> [] then pause,end +//=============================== + +if ~isletter('a') then pause,end +if ~isletter('b') then pause,end +if ~isletter('c') then pause,end +if ~isletter('d') then pause,end +if ~isletter('e') then pause,end +if ~isletter('f') then pause,end +if ~isletter('g') then pause,end +if ~isletter('h') then pause,end +if ~isletter('i') then pause,end +if ~isletter('j') then pause,end +if ~isletter('k') then pause,end +if ~isletter('l') then pause,end +if ~isletter('m') then pause,end +if ~isletter('n') then pause,end +if ~isletter('o') then pause,end +if ~isletter('p') then pause,end +if ~isletter('q') then pause,end +if ~isletter('r') then pause,end +if ~isletter('s') then pause,end +if ~isletter('t') then pause,end +if ~isletter('u') then pause,end +if ~isletter('v') then pause,end +if ~isletter('x') then pause,end +if ~isletter('y') then pause,end +if ~isletter('z') then pause,end +if ~isletter('A') then pause,end +if ~isletter('B') then pause,end +if ~isletter('C') then pause,end +if ~isletter('D') then pause,end +if ~isletter('E') then pause,end +if ~isletter('F') then pause,end +if ~isletter('G') then pause,end +if ~isletter('H') then pause,end +if ~isletter('I') then pause,end +if ~isletter('J') then pause,end +if ~isletter('K') then pause,end +if ~isletter('L') then pause,end +if ~isletter('M') then pause,end +if ~isletter('O') then pause,end +if ~isletter('P') then pause,end +if ~isletter('Q') then pause,end +if ~isletter('R') then pause,end +if ~isletter('S') then pause,end +if ~isletter('T') then pause,end +if ~isletter('U') then pause,end +if ~isletter('V') then pause,end +if ~isletter('X') then pause,end +if ~isletter('Y') then pause,end +if ~isletter('Z') then pause,end + +if isletter('!') then pause,end +if isletter('#') then pause,end +if isletter('$') then pause,end +if isletter('%') then pause,end +if isletter('&') then pause,end +if isletter('(') then pause,end +if isletter(')') then pause,end +if isletter('*') then pause,end +if isletter('+') then pause,end +if isletter(',') then pause,end +if isletter('-') then pause,end +if isletter('.') then pause,end +if isletter('/') then pause,end +if isletter(':') then pause,end +if isletter(';') then pause,end +if isletter('<') then pause,end +if isletter('=') then pause,end +if isletter('>') then pause,end +if isletter('@') then pause,end +if isletter('[') then pause,end +if isletter('\') then pause,end +if isletter(']') then pause,end +if isletter('^') then pause,end +if isletter('_') then pause,end +if isletter('`') then pause,end +if isletter('{') then pause,end +if isletter('|') then pause,end +if isletter('}') then pause,end +if isletter('~') then pause,end + +if isletter('0') then pause,end +if isletter('1') then pause,end +if isletter('2') then pause,end +if isletter('3') then pause,end +if isletter('4') then pause,end +if isletter('5') then pause,end +if isletter('6') then pause,end +if isletter('7') then pause,end +if isletter('8') then pause,end +if isletter('9') then pause,end + +if isletter('''') then pause,end +if isletter('""') then pause,end diff --git a/modules/string/tests/unit_tests/isnum.dia.ref b/modules/string/tests/unit_tests/isnum.dia.ref new file mode 100755 index 000000000..1bc8f8d99 --- /dev/null +++ b/modules/string/tests/unit_tests/isnum.dia.ref @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +assert_checktrue(isnum('%pi')); +assert_checktrue(isnum('1')); +assert_checktrue(isnum('1.2')); +assert_checktrue(isnum('+1.2')); +assert_checktrue(isnum('-1.2')); +assert_checktrue(isnum('1e2')); +assert_checktrue(isnum('1d2')); +assert_checktrue(isnum('1E2')); +assert_checktrue(isnum('1D2')); +assert_checktrue(isnum('1e+2')); +assert_checktrue(isnum('1e-2')); +assert_checktrue(isnum('+1e+2')); +assert_checktrue(isnum('-1e+2')); +assert_checktrue(isnum('-12e+3')); +assert_checktrue(isnum('-1.2e+3')); +assert_checktrue(isnum('-1.2e+345')); +assert_checkfalse(isnum('a')); +assert_checkfalse(isnum('e')); +assert_checkfalse(isnum('d')); +assert_checkfalse(isnum('E')); +assert_checkfalse(isnum('e')); +assert_checkfalse(isnum('-1.2a+345')); +assert_checkfalse(isnum('-1.2e+3+45')); +assert_checkfalse(isnum('-1.2e+3-45')); +assert_checkerror("isnum(1)",[],999); diff --git a/modules/string/tests/unit_tests/isnum.tst b/modules/string/tests/unit_tests/isnum.tst new file mode 100755 index 000000000..6b6b1e014 --- /dev/null +++ b/modules/string/tests/unit_tests/isnum.tst @@ -0,0 +1,42 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Pierre MARECHAL <pierre .marechal@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +assert_checktrue(isnum('%pi')); + +assert_checktrue(isnum('1')); +assert_checktrue(isnum('1.2')); +assert_checktrue(isnum('+1.2')); +assert_checktrue(isnum('-1.2')); + +assert_checktrue(isnum('1e2')); +assert_checktrue(isnum('1d2')); +assert_checktrue(isnum('1E2')); +assert_checktrue(isnum('1D2')); + +assert_checktrue(isnum('1e+2')); +assert_checktrue(isnum('1e-2')); +assert_checktrue(isnum('+1e+2')); +assert_checktrue(isnum('-1e+2')); + +assert_checktrue(isnum('-12e+3')); + +assert_checktrue(isnum('-1.2e+3')); +assert_checktrue(isnum('-1.2e+345')); + +assert_checkfalse(isnum('a')); +assert_checkfalse(isnum('e')); +assert_checkfalse(isnum('d')); +assert_checkfalse(isnum('E')); +assert_checkfalse(isnum('e')); + +assert_checkfalse(isnum('-1.2a+345')); +assert_checkfalse(isnum('-1.2e+3+45')); +assert_checkfalse(isnum('-1.2e+3-45')); + +assert_checkerror("isnum(1)",[],999); diff --git a/modules/string/tests/unit_tests/length.dia.ref b/modules/string/tests/unit_tests/length.dia.ref new file mode 100755 index 000000000..1988e1609 --- /dev/null +++ b/modules/string/tests/unit_tests/length.dia.ref @@ -0,0 +1,82 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +// ============================================================================= +// unit tests length +// ============================================================================= +// = Empty matrix ============================================================== +l = length([]); +if (l <> 0) then bugmes();quit;end; +// = integer =================================================================== +N = 321; +l = length(N); +if (l <> 1) then bugmes();quit;end; +// = Matrix of integer ========================================================= +N = 321; +M = 32; +PARAMIN = [N,M;M,N]; +l = length(PARAMIN); +if (l <> size(PARAMIN,'*') ) then bugmes();quit;end; +// = String ==================================================================== +STRING = "Scilab"; +l = length(STRING); +if (l <> 6 ) then bugmes();quit;end; +// = Matrix of Strings ========================================================= +STRING1 = "Scilab"; +STRING2 = "Strings"; +PARAMIN = [STRING1,STRING2;STRING2,STRING1]; +l = length(PARAMIN); +LS1 = length(STRING1); +LS2 = length(STRING2); +if (LS1 <> 6 ) then bugmes();quit;end; +if (LS2 <> 7 ) then bugmes();quit;end; +if (l <> [ LS1, LS2; LS2 , LS1 ]) then bugmes();quit;end +// = List (of strings) ========================================================= +STRING1 = "Scilab"; +STRING2 = "5.x"; +m=list(); +m(1)=STRING1; +m(2)=STRING2; +if length(m) <> 2 then bugmes();quit;end +// = List (mixed) ============================================================== +l = list(1,["a" "b"],[1 2 3 4],%T); +if length(l) <> 4 then bugmes();quit;end +// = mlist ===================================================================== +M = mlist(['V','name','value'],['a','b','c'],[1 2 3]); +if length(M) <> 3 then bugmes();quit;end +// = tlist ===================================================================== +Sys=tlist(['lss';'A';'B';'C';'D';'X0';'dt'],1,2,3,4,5,'c'); +if length(Sys) <> 7 then bugmes();quit;end +// = Matrix of Strings ========================================================= +STRING1 = "Scilab"; +STRING2 = "5.x"; +LS1 = length(STRING1); +LS2 = length(STRING2); +if length([STRING1,STRING2]) <> [LS1,LS2] then bugmes();quit;end +// = Matrix of Strings ========================================================= +if length('abd')<>3 then bugmes();quit;end +if length(emptystr())<>0 then bugmes();quit;end +if or(length(['abd';emptystr()])<>[3;0]) then bugmes();quit;end +if or(length(string(ones(10,10)))<>1) then bugmes();quit;end +// = with a file =============================================================== +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +if length(txt(1)) <> 280 then bugmes();quit;end +S = size(txt); +if length(txt(S(1)-1)) <> 106 then bugmes();quit;end +if length(txt(S(1))) <> 0 then bugmes();quit;end +// = an hypermatrix (double) =================================================== +A = rand(2,5,2,3,2); +assert_checkequal(length(A), double(prod(A.dims))); +A = hypermat([2,3,4], 1:24); +assert_checkequal(length(A), double(prod(A.dims))); +// = an hypermatrix (string) =================================================== +clear S; +S(:,:,1) = ["a","b";"c","d"]; +S(:,:,2) = ["ab", "bc"; "cd", "de"]; +assert_checkequal(length(S),3); diff --git a/modules/string/tests/unit_tests/length.tst b/modules/string/tests/unit_tests/length.tst new file mode 100755 index 000000000..8d746947a --- /dev/null +++ b/modules/string/tests/unit_tests/length.tst @@ -0,0 +1,111 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr> +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +// ============================================================================= +// unit tests length +// ============================================================================= + + +// = Empty matrix ============================================================== +l = length([]); +if (l <> 0) then pause,end; + + +// = integer =================================================================== +N = 321; +l = length(N); +if (l <> 1) then pause,end; + + +// = Matrix of integer ========================================================= +N = 321; +M = 32; +PARAMIN = [N,M;M,N]; +l = length(PARAMIN); +if (l <> size(PARAMIN,'*') ) then pause,end; + + +// = String ==================================================================== +STRING = "Scilab"; +l = length(STRING); +if (l <> 6 ) then pause,end; + + +// = Matrix of Strings ========================================================= +STRING1 = "Scilab"; +STRING2 = "Strings"; +PARAMIN = [STRING1,STRING2;STRING2,STRING1]; +l = length(PARAMIN); +LS1 = length(STRING1); +LS2 = length(STRING2); +if (LS1 <> 6 ) then pause,end; +if (LS2 <> 7 ) then pause,end; +if (l <> [ LS1, LS2; LS2 , LS1 ]) then pause,end + + +// = List (of strings) ========================================================= +STRING1 = "Scilab"; +STRING2 = "5.x"; +m=list(); +m(1)=STRING1; +m(2)=STRING2; +if length(m) <> 2 then pause,end + + +// = List (mixed) ============================================================== +l = list(1,["a" "b"],[1 2 3 4],%T); +if length(l) <> 4 then pause,end + + +// = mlist ===================================================================== +M = mlist(['V','name','value'],['a','b','c'],[1 2 3]); +if length(M) <> 3 then pause,end + + +// = tlist ===================================================================== +Sys=tlist(['lss';'A';'B';'C';'D';'X0';'dt'],1,2,3,4,5,'c'); +if length(Sys) <> 7 then pause,end + + +// = Matrix of Strings ========================================================= +STRING1 = "Scilab"; +STRING2 = "5.x"; +LS1 = length(STRING1); +LS2 = length(STRING2); +if length([STRING1,STRING2]) <> [LS1,LS2] then pause,end + + +// = Matrix of Strings ========================================================= +if length('abd')<>3 then pause,end +if length(emptystr())<>0 then pause,end +if or(length(['abd';emptystr()])<>[3;0]) then pause,end +if or(length(string(ones(10,10)))<>1) then pause,end + + +// = with a file =============================================================== +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +if length(txt(1)) <> 280 then pause,end +S = size(txt); +if length(txt(S(1)-1)) <> 106 then pause,end +if length(txt(S(1))) <> 0 then pause,end + + +// = an hypermatrix (double) =================================================== +A = rand(2,5,2,3,2); +assert_checkequal(length(A), double(prod(A.dims))); +A = hypermat([2,3,4], 1:24); +assert_checkequal(length(A), double(prod(A.dims))); + +// = an hypermatrix (string) =================================================== +clear S; +S(:,:,1) = ["a","b";"c","d"]; +S(:,:,2) = ["ab", "bc"; "cd", "de"]; +assert_checkequal(length(S),3); diff --git a/modules/string/tests/unit_tests/part.dia.ref b/modules/string/tests/unit_tests/part.dia.ref new file mode 100755 index 000000000..64aad91d2 --- /dev/null +++ b/modules/string/tests/unit_tests/part.dia.ref @@ -0,0 +1,62 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests part +//=============================== +EMPTY_STR = ""; +BLANK = " "; +//=============================== +s = part(EMPTY_STR ,[]); +if (s <> EMPTY_STR ) then bugmes();quit;end +//=============================== +// compatibility 4.x +N = 50; +s = part(EMPTY_STR ,N); +if (s <> BLANK) then bugmes();quit;end +//=============================== +s = part(["a","abc","abcd"],[1,1,2]); +if (s <> ["aa","aab","aab"]) then bugmes();quit;end +//=============================== +s1 = part(["a","abc","abcd"],[2,4,6]); +s2 = part(["a","abc","abcd"],[2,4,5]); +if (s1 <> s2) then bugmes();quit;end +if (s1 <> [" ","b","bd"]) then bugmes();quit;end +//=============================== +N = 20; +s = part(" ",ones(1,N)); +if (blanks(N) <> s) then bugmes();quit;end +//=============================== +if part("abc",1)<>"a" then bugmes();quit;end +if part("abc",[1 1])<>"aa" then bugmes();quit;end +if part("abc",[1;1])<>"aa" then bugmes();quit;end +if part("abc",[])<>emptystr() then bugmes();quit;end +if part("abc",5)<>BLANK then bugmes();quit;end +if part("abc",5:6)<>" " then bugmes();quit;end +if or(part(["abc";"x"],1)<>["a";"x"]) then bugmes();quit;end +if or(part(["abc";"x"],[1,1])<>["aa";"xx"]) then bugmes();quit;end +if or(part(["abc";"x"],[1,2])<>["ab";"x "]) then bugmes();quit;end +if or(part(["abc";"x"],[1;1])<>["aa";"xx"]) then bugmes();quit;end +if or(part(["abc";"x"],[1;2])<>["ab";"x "]) then bugmes();quit;end +//=============================== +a=part(["a","abc","abcd"],[1]); +assert_checkequal(a,["a","a","a"]); +a=part(["a","abc","abcd"],[1,1]); +assert_checkequal(a,["aa","aa","aa"]); +a=part(["a","abc","abcd"],[1,1,2]); +assert_checkequal(a,["aa ","aab","aab"]); +N = 10; a=part("-",ones(1:N)); +assert_checkequal(a,"----------"); +N = 6; pat = "- "; +a=part(pat, ones(1:N).*.(1:length(pat))); +assert_checkequal(a,"- - - - - - "); +a=part(["a string" "another longer one"], $-2:$ ); +assert_checkequal(a,["ing","one"]); +a=part("Hello world", $:-1:1); +assert_checkequal(a,"dlrow olleH"); +a=part("Hello world", [ $ 5:6 ]); +assert_checkequal(a,"do "); diff --git a/modules/string/tests/unit_tests/part.tst b/modules/string/tests/unit_tests/part.tst new file mode 100755 index 000000000..211ca930a --- /dev/null +++ b/modules/string/tests/unit_tests/part.tst @@ -0,0 +1,74 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests part +//=============================== +EMPTY_STR = ""; +BLANK = " "; +//=============================== +s = part(EMPTY_STR ,[]); +if (s <> EMPTY_STR ) then pause,end +//=============================== +// compatibility 4.x +N = 50; +s = part(EMPTY_STR ,N); +if (s <> BLANK) then pause,end +//=============================== +s = part(["a","abc","abcd"],[1,1,2]); +if (s <> ["aa","aab","aab"]) then pause,end +//=============================== +s1 = part(["a","abc","abcd"],[2,4,6]); +s2 = part(["a","abc","abcd"],[2,4,5]); +if (s1 <> s2) then pause,end +if (s1 <> [" ","b","bd"]) then pause,end +//=============================== +N = 20; +s = part(" ",ones(1,N)); +if (blanks(N) <> s) then pause,end +//=============================== +if part("abc",1)<>"a" then pause,end +if part("abc",[1 1])<>"aa" then pause,end +if part("abc",[1;1])<>"aa" then pause,end +if part("abc",[])<>emptystr() then pause,end +if part("abc",5)<>BLANK then pause,end +if part("abc",5:6)<>" " then pause,end +if or(part(["abc";"x"],1)<>["a";"x"]) then pause,end +if or(part(["abc";"x"],[1,1])<>["aa";"xx"]) then pause,end +if or(part(["abc";"x"],[1,2])<>["ab";"x "]) then pause,end +if or(part(["abc";"x"],[1;1])<>["aa";"xx"]) then pause,end +if or(part(["abc";"x"],[1;2])<>["ab";"x "]) then pause,end +//=============================== + + + +a=part(["a","abc","abcd"],[1]); +assert_checkequal(a,["a","a","a"]); + +a=part(["a","abc","abcd"],[1,1]); +assert_checkequal(a,["aa","aa","aa"]); + +a=part(["a","abc","abcd"],[1,1,2]); +assert_checkequal(a,["aa ","aab","aab"]); + +N = 10; a=part("-",ones(1:N)); +assert_checkequal(a,"----------"); + +N = 6; pat = "- "; +a=part(pat, ones(1:N).*.(1:length(pat))); +assert_checkequal(a,"- - - - - - "); + +a=part(["a string" "another longer one"], $-2:$ ); +assert_checkequal(a,["ing","one"]); + +a=part("Hello world", $:-1:1); +assert_checkequal(a,"dlrow olleH"); +a=part("Hello world", [ $ 5:6 ]); +assert_checkequal(a,"do "); + diff --git a/modules/string/tests/unit_tests/part_UTF_nw.dia.ref b/modules/string/tests/unit_tests/part_UTF_nw.dia.ref new file mode 100755 index 000000000..555fc7b96 --- /dev/null +++ b/modules/string/tests/unit_tests/part_UTF_nw.dia.ref @@ -0,0 +1,13 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012-2012 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +txt = "Angel: Raphaël Archange"; +current_field_length = regexp(txt,"/:\s/","o"); +current_field = part(txt,1:current_field_length-1); +assert_checkequal(current_field, "Angel"); +disp(txt); + + Angel: Raphaël Archange diff --git a/modules/string/tests/unit_tests/part_UTF_nw.tst b/modules/string/tests/unit_tests/part_UTF_nw.tst new file mode 100755 index 000000000..751b1938c --- /dev/null +++ b/modules/string/tests/unit_tests/part_UTF_nw.tst @@ -0,0 +1,14 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012-2012 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +txt = "Angel: Raphaël Archange"; +current_field_length = regexp(txt,"/:\s/","o"); +current_field = part(txt,1:current_field_length-1); + +assert_checkequal(current_field, "Angel"); + +disp(txt);
\ No newline at end of file diff --git a/modules/string/tests/unit_tests/part_UTF_nwni.dia.ref b/modules/string/tests/unit_tests/part_UTF_nwni.dia.ref new file mode 100755 index 000000000..8e24d6a15 --- /dev/null +++ b/modules/string/tests/unit_tests/part_UTF_nwni.dia.ref @@ -0,0 +1,14 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012-2012 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +txt = "Angel: Raphaël Archange"; +current_field_length = regexp(txt,"/:\s/","o"); +current_field = part(txt,1:current_field_length-1); +assert_checkequal(current_field, "Angel"); +disp(txt); + + Angel: Raphaël Archange diff --git a/modules/string/tests/unit_tests/part_UTF_nwni.tst b/modules/string/tests/unit_tests/part_UTF_nwni.tst new file mode 100755 index 000000000..502e799c5 --- /dev/null +++ b/modules/string/tests/unit_tests/part_UTF_nwni.tst @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012-2012 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +txt = "Angel: Raphaël Archange"; +current_field_length = regexp(txt,"/:\s/","o"); +current_field = part(txt,1:current_field_length-1); + +assert_checkequal(current_field, "Angel"); + +disp(txt);
\ No newline at end of file diff --git a/modules/string/tests/unit_tests/regexp.dia.ref b/modules/string/tests/unit_tests/regexp.dia.ref new file mode 100755 index 000000000..ecd78e72c --- /dev/null +++ b/modules/string/tests/unit_tests/regexp.dia.ref @@ -0,0 +1,610 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=================================================================== +// unit tests regexp +//=================================================================== +lf = ascii(10); +if regexp('abc','/abc/','o') <> 1 then bugmes();quit;end +ierr = execstr("regexp(''abc'',''/abc/'',''r'');","errcatch"); +if ierr <> 999 then bugmes();quit;end +t = 'aaa aab aac aad aae'; +pattern = '/aa/'; +[start_pos, end_pos, match_str] = regexp(t,pattern,'o'); +if size(start_pos,'*') <> 1 then bugmes();quit;end +if size(end_pos,'*') <> 1 then bugmes();quit;end +if start_pos <> 1 then bugmes();quit;end +if end_pos <> 2 then bugmes();quit;end +//=================================================================== +if regexp('abc' ,'/abc/' ) <> 1 then bugmes();quit;end +if regexp('xbc' ,'/abc/' ) <> [] then bugmes();quit;end +if regexp('axc' ,'/abc/' ) <> [] then bugmes();quit;end +if regexp('abx' ,'/abc/' ) <> [] then bugmes();quit;end +if regexp('xabcy' ,'/abc/' ) <> 2 then bugmes();quit;end +if regexp('ababc' ,'/abc/' ) <> 3 then bugmes();quit;end +if regexp('abc' ,'/ab*c/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/ab*bc/' ) <> 1 then bugmes();quit;end +if regexp('abbc' ,'/ab*bc/' ) <> 1 then bugmes();quit;end +if regexp('abbbbc' ,'/ab*bc/' ) <> 1 then bugmes();quit;end +if regexp('abbbbc' ,'/.{1}/' ) <> 1 then bugmes();quit;end +if regexp('abbbbc' ,'/.{3,4}/' ) <> 1 then bugmes();quit;end +if regexp('abbbbc' ,'/ab{0,}bc/' ) <> 1 then bugmes();quit;end +if regexp('abbc' ,'/ab+bc/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/ab+bc/' ) <> [] then bugmes();quit;end +if regexp('abq' ,'/ab+bc/' ) <> [] then bugmes();quit;end +if regexp('abq' ,'/ab{1,}bc/' ) <> [] then bugmes();quit;end +if regexp('abbbbc' ,'/ab+bc/' ) <> 1 then bugmes();quit;end +if regexp('abbbbc' ,'/ab{1,}bc/' ) <> 1 then bugmes();quit;end +if regexp('abbbbc' ,'/ab{1,3}bc/' ) <> 1 then bugmes();quit;end +if regexp('abbbbc' ,'/ab{3,4}bc/' ) <> 1 then bugmes();quit;end +if regexp('abbbbc' ,'/ab{4,5}bc/' ) <> [] then bugmes();quit;end +if regexp('abbc' ,'/ab?bc/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/ab?bc/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/ab{0,1}bc/' ) <> 1 then bugmes();quit;end +if regexp('abbbbc' ,'/ab?bc/' ) <> [] then bugmes();quit;end +if regexp('abc' ,'/ab?c/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/ab{0,1}c/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/^abc$/' ) <> 1 then bugmes();quit;end +if regexp('abcc' ,'/^abc$/' ) <> [] then bugmes();quit;end +if regexp('abcc' ,'/^abc/' ) <> 1 then bugmes();quit;end +if regexp('aabc' ,'/^abc$/' ) <> [] then bugmes();quit;end +if regexp('aabc' ,'/abc$/' ) <> 2 then bugmes();quit;end +if regexp('aabcd' ,'/abc$/' ) <> [] then bugmes();quit;end +if regexp('abc' ,'/a.c/' ) <> 1 then bugmes();quit;end +if regexp('axc' ,'/a.c/' ) <> 1 then bugmes();quit;end +if regexp('axyzc' ,'/a.*c/' ) <> 1 then bugmes();quit;end +if regexp('axyzd' ,'/a.*c/' ) <> [] then bugmes();quit;end +if regexp('abc' ,'/a[bc]d/' ) <> [] then bugmes();quit;end +if regexp('abd' ,'/a[bc]d/' ) <> 1 then bugmes();quit;end +if regexp('abd' ,'/a[b-d]e/' ) <> [] then bugmes();quit;end +if regexp('ace' ,'/a[b-d]e/' ) <> 1 then bugmes();quit;end +if regexp('aac' ,'/a[b-d]/' ) <> 2 then bugmes();quit;end +if regexp('a-' ,'/a[-b]/' ) <> 1 then bugmes();quit;end +if regexp('a-' ,'/a[b-]/' ) <> 1 then bugmes();quit;end +if regexp('a]' ,'/a]/' ) <> 1 then bugmes();quit;end +if regexp('a]b' ,'/a[]]b/' ) <> 1 then bugmes();quit;end +if regexp('aed' ,'/a[^bc]d/' ) <> 1 then bugmes();quit;end +if regexp('abd' ,'/a[^bc]d/' ) <> [] then bugmes();quit;end +if regexp('adc' ,'/a[^-b]c/' ) <> 1 then bugmes();quit;end +if regexp('a-c' ,'/a[^-b]c/' ) <> [] then bugmes();quit;end +if regexp('a]c' ,'/a[^]b]c/' ) <> [] then bugmes();quit;end +if regexp('adc' ,'/a[^]b]c/' ) <> 1 then bugmes();quit;end +if regexp('a-' ,'/\ba\b/' ) <> 1 then bugmes();quit;end +if regexp('-a' ,'/\ba\b/' ) <> 2 then bugmes();quit;end +if regexp('-a-' ,'/\ba\b/' ) <> 2 then bugmes();quit;end +if regexp('xy' ,'/\by\b/' ) <> [] then bugmes();quit;end +if regexp('yz' ,'/\by\b/' ) <> [] then bugmes();quit;end +if regexp('xyz' ,'/\by\b/' ) <> [] then bugmes();quit;end +if regexp('a-' ,'/\Ba\B/' ) <> [] then bugmes();quit;end +if regexp('-a' ,'/\Ba\B/' ) <> [] then bugmes();quit;end +if regexp('-a-' ,'/\Ba\B/' ) <> [] then bugmes();quit;end +if regexp('xy' ,'/\By\b/' ) <> 2 then bugmes();quit;end +if regexp('xy' ,'/\By\b/' ) <> 2 then bugmes();quit;end +if regexp('yz' ,'/\by\B/' ) <> 1 then bugmes();quit;end +if regexp('xyz' ,'/\By\B/' ) <> 2 then bugmes();quit;end +if regexp('a' ,'/\w/' ) <> 1 then bugmes();quit;end +if regexp('-' ,'/\w/' ) <> [] then bugmes();quit;end +if regexp('a' ,'/\W/' ) <> [] then bugmes();quit;end +if regexp('-' ,'/\W/' ) <> 1 then bugmes();quit;end +if regexp('a b' ,'/a\sb/' ) <> 1 then bugmes();quit;end +if regexp('a-b' ,'/a\sb/' ) <> [] then bugmes();quit;end +if regexp('a b' ,'/a\Sb/' ) <> [] then bugmes();quit;end +if regexp('a-b' ,'/a\Sb/' ) <> 1 then bugmes();quit;end +if regexp('1' ,'/\d/' ) <> 1 then bugmes();quit;end +if regexp('-' ,'/\d/' ) <> [] then bugmes();quit;end +if regexp('1' ,'/\D/' ) <> [] then bugmes();quit;end +if regexp('-' ,'/\D/' ) <> 1 then bugmes();quit;end +if regexp('a' ,'/[\w]/' ) <> 1 then bugmes();quit;end +if regexp('-' ,'/[\w]/' ) <> [] then bugmes();quit;end +if regexp('a' ,'/[\W]/' ) <> [] then bugmes();quit;end +if regexp('-' ,'/[\W]/' ) <> 1 then bugmes();quit;end +if regexp('a b' ,'/a[\s]b/' ) <> 1 then bugmes();quit;end +if regexp('a-b' ,'/a[\s]b/' ) <> [] then bugmes();quit;end +if regexp('a b' ,'/a[\S]b/' ) <> [] then bugmes();quit;end +if regexp('a-b' ,'/a[\S]b/' ) <> 1 then bugmes();quit;end +if regexp('1' ,'/[\d]/' ) <> 1 then bugmes();quit;end +if regexp('-' ,'/[\d]/' ) <> [] then bugmes();quit;end +if regexp('1' ,'/[\D]/' ) <> [] then bugmes();quit;end +if regexp('-' ,'/[\D]/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/ab|cd/' ) <> 1 then bugmes();quit;end +if regexp('abcd' ,'/ab|cd/' ) <> 1 then bugmes();quit;end +if regexp('b' ,'/$b/' ) <> [] then bugmes();quit;end +if regexp('ab' ,'/a\(*b/' ) <> 1 then bugmes();quit;end +if regexp('a((b' ,'/a\(*b/' ) <> 1 then bugmes();quit;end +if regexp('aabbabc' ,'/a+b+c/' ) <> 5 then bugmes();quit;end +if regexp('aabbabc' ,'/a{1,}b{1,}c/' ) <> 5 then bugmes();quit;end +if regexp('abcabc' ,'/a.+?c/' ) <> 1 then bugmes();quit;end +if regexp('cde' ,'/[^ab]*/' ) <> 1 then bugmes();quit;end +if regexp('' ,'/abc/' ) <> [] then bugmes();quit;end +if regexp('' ,'/a*/' ) <> [] then bugmes();quit;end +if regexp('e' ,'/a|b|c|d|e/' ) <> 1 then bugmes();quit;end +if regexp('abcdefg' ,'/abcd*efg/' ) <> 1 then bugmes();quit;end +if regexp('xabyabbbz' ,'/ab*/' ) <> [2 5] then bugmes();quit;end +if regexp('xayabbbz' ,'/ab*/' ) <> [2 4] then bugmes();quit;end +if regexp('hij' ,'/[abhgefdc]ij/' ) <> 1 then bugmes();quit;end +if regexp('abcde' ,'/^(ab|cd)e/' ) <> [] then bugmes();quit;end +if regexp('adcdcde' ,'/a[bcd]*dcdcde/' ) <> 1 then bugmes();quit;end +if regexp('adcdcde' ,'/a[bcd]+dcdcde/' ) <> [] then bugmes();quit;end +if regexp('alpha' ,'/[a-zA-Z_][a-zA-Z0-9_]*/' ) <> 1 then bugmes();quit;end +if regexp('effg' ,'/(bc+d$|ef*g.|h?i(j|k))/' ) <> [] then bugmes();quit;end +if regexp('bcdd' ,'/(bc+d$|ef*g.|h?i(j|k))/' ) <> [] then bugmes();quit;end +if regexp('aa' ,'/((((((((((a))))))))))\10/' ) <> 1 then bugmes();quit;end +if regexp('aa' ,'/((((((((((a))))))))))\041/' ) <> [] then bugmes();quit;end +if regexp('a!' ,'/((((((((((a))))))))))\041/' ) <> 1 then bugmes();quit;end +if regexp('a' ,'/(((((((((a)))))))))/' ) <> 1 then bugmes();quit;end +if regexp('uh-uh' ,'/multiple words of text/' ) <> [] then bugmes();quit;end +if regexp('multiple words, yeah' ,'/multiple words/' ) <> 1 then bugmes();quit;end +if regexp('ab' ,'/[k]/' ) <> [] then bugmes();quit;end +if regexp('ac' ,'/a[-]?c/' ) <> 1 then bugmes();quit;end +if regexp('a' ,'/(a)|\1/' ) <> 1 then bugmes();quit;end +if regexp('x' ,'/(a)|\1/' ) <> [] then bugmes();quit;end +if regexp('aaxabxbaxbbx' ,'/((\3|b)\2(a)x)+/' ) <> [] then bugmes();quit;end +if regexp('ABC' ,'/abc/i' ) <> 1 then bugmes();quit;end +if regexp('XBC' ,'/abc/i' ) <> [] then bugmes();quit;end +if regexp('AXC' ,'/abc/i' ) <> [] then bugmes();quit;end +if regexp('ABX' ,'/abc/i' ) <> [] then bugmes();quit;end +if regexp('XABCY' ,'/abc/i' ) <> 2 then bugmes();quit;end +if regexp('ABABC' ,'/abc/i' ) <> 3 then bugmes();quit;end +if regexp('ABC' ,'/ab*c/i' ) <> 1 then bugmes();quit;end +if regexp('ABC' ,'/ab*bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABBC' ,'/ab*bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABBBBC' ,'/ab*?bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABBBBC' ,'/ab{0,}?bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABBC' ,'/ab+?bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABC' ,'/ab+bc/i' ) <> [] then bugmes();quit;end +if regexp('ABQ' ,'/ab+bc/i' ) <> [] then bugmes();quit;end +if regexp('ABQ' ,'/ab{1,}bc/i' ) <> [] then bugmes();quit;end +if regexp('ABBBBC' ,'/ab+bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABBBBC' ,'/ab{1,}?bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABBBBC' ,'/ab{1,3}?bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABBBBC' ,'/ab{3,4}?bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABBBBC' ,'/ab{4,5}?bc/i' ) <> [] then bugmes();quit;end +if regexp('ABBC' ,'/ab??bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABC' ,'/ab??bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABC' ,'/ab{0,1}?bc/i' ) <> 1 then bugmes();quit;end +if regexp('ABBBBC' ,'/ab??bc/i' ) <> [] then bugmes();quit;end +if regexp('ABC' ,'/ab??c/i' ) <> 1 then bugmes();quit;end +if regexp('ABC' ,'/ab{0,1}?c/i' ) <> 1 then bugmes();quit;end +if regexp('ABC' ,'/^abc$/i' ) <> 1 then bugmes();quit;end +if regexp('ABCC' ,'/^abc$/i' ) <> [] then bugmes();quit;end +if regexp('ABCC' ,'/^abc/i' ) <> 1 then bugmes();quit;end +if regexp('AABC' ,'/^abc$/i' ) <> [] then bugmes();quit;end +if regexp('AABC' ,'/abc$/i' ) <> 2 then bugmes();quit;end +if regexp('ABC' ,'/a.c/i' ) <> 1 then bugmes();quit;end +if regexp('AXC' ,'/a.c/i' ) <> 1 then bugmes();quit;end +if regexp('AXYZC' ,'/a.*?c/i' ) <> 1 then bugmes();quit;end +if regexp('AXYZD' ,'/a.*c/i' ) <> [] then bugmes();quit;end +if regexp('ABC' ,'/a[bc]d/i' ) <> [] then bugmes();quit;end +if regexp('ABD' ,'/a[bc]d/i' ) <> 1 then bugmes();quit;end +if regexp('ABD' ,'/a[b-d]e/i' ) <> [] then bugmes();quit;end +if regexp('ACE' ,'/a[b-d]e/i' ) <> 1 then bugmes();quit;end +if regexp('AAC' ,'/a[b-d]/i' ) <> 2 then bugmes();quit;end +if regexp('A-' ,'/a[-b]/i' ) <> 1 then bugmes();quit;end +if regexp('A-' ,'/a[b-]/i' ) <> 1 then bugmes();quit;end +if regexp('A]' ,'/a]/i' ) <> 1 then bugmes();quit;end +if regexp('A]B' ,'/a[]]b/i' ) <> 1 then bugmes();quit;end +if regexp('AED' ,'/a[^bc]d/i' ) <> 1 then bugmes();quit;end +if regexp('ABD' ,'/a[^bc]d/i' ) <> [] then bugmes();quit;end +if regexp('ADC' ,'/a[^-b]c/i' ) <> 1 then bugmes();quit;end +if regexp('A-C' ,'/a[^-b]c/i' ) <> [] then bugmes();quit;end +if regexp('A]C' ,'/a[^]b]c/i' ) <> [] then bugmes();quit;end +if regexp('ADC' ,'/a[^]b]c/i' ) <> 1 then bugmes();quit;end +if regexp('ABC' ,'/ab|cd/i' ) <> 1 then bugmes();quit;end +if regexp('ABCD' ,'/ab|cd/i' ) <> 1 then bugmes();quit;end +if regexp('B' ,'/$b/i' ) <> [] then bugmes();quit;end +if regexp('AB' ,'/a\(*b/i' ) <> 1 then bugmes();quit;end +if regexp('A((B' ,'/a\(*b/i' ) <> 1 then bugmes();quit;end +if regexp('AABBABC' ,'/a+b+c/i' ) <> 5 then bugmes();quit;end +if regexp('AABBABC' ,'/a{1,}b{1,}c/i' ) <> 5 then bugmes();quit;end +if regexp('ABCABC' ,'/a.+?c/i' ) <> [1 4] then bugmes();quit;end +if regexp('ABCABC' ,'/a.*?c/i' ) <> 1 then bugmes();quit;end +if regexp('ABCABC' ,'/a.{0,5}?c/i' ) <> 1 then bugmes();quit;end +if regexp('CDE' ,'/[^ab]*/i' ) <> 1 then bugmes();quit;end +if regexp('' ,'/abc/i' ) <> [] then bugmes();quit;end +if regexp('' ,'/a*/i' ) <> [] then bugmes();quit;end +if regexp('E' ,'/a|b|c|d|e/i' ) <> 1 then bugmes();quit;end +if regexp('ABCDEFG' ,'/abcd*efg/i' ) <> 1 then bugmes();quit;end +if regexp('XABYABBBZ' ,'/ab*/i' ) <> [2 5] then bugmes();quit;end +if regexp('XAYABBBZ' ,'/ab*/i' ) <> [2 4] then bugmes();quit;end +if regexp('HIJ' ,'/[abhgefdc]ij/i' ) <> 1 then bugmes();quit;end +if regexp('ABCDE' ,'/^(ab|cd)e/i' ) <> [] then bugmes();quit;end +if regexp('ADCDCDE' ,'/a[bcd]*dcdcde/i' ) <> 1 then bugmes();quit;end +if regexp('ADCDCDE' ,'/a[bcd]+dcdcde/i' ) <> [] then bugmes();quit;end +if regexp('ALPHA' ,'/[a-zA-Z_][a-zA-Z0-9_]*/i' ) <> 1 then bugmes();quit;end +if regexp('EFFG' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ) <> [] then bugmes();quit;end +if regexp('BCDD' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ) <> [] then bugmes();quit;end +if regexp('AA' ,'/((((((((((a))))))))))\10/i' ) <> 1 then bugmes();quit;end +if regexp('AA' ,'/((((((((((a))))))))))\041/i' ) <> [] then bugmes();quit;end +if regexp('A!' ,'/((((((((((a))))))))))\041/i' ) <> 1 then bugmes();quit;end +if regexp('A' ,'/(((((((((a)))))))))/i' ) <> 1 then bugmes();quit;end +if regexp('UH-UH' ,'/multiple words of text/i' ) <> [] then bugmes();quit;end +if regexp('MULTIPLE WORDS, YEAH' ,'/multiple words/i' ) <> 1 then bugmes();quit;end +if regexp('AB' ,'/[k]/i' ) <> [] then bugmes();quit;end +if regexp('AC' ,'/a[-]?c/i' ) <> 1 then bugmes();quit;end +if regexp('abad' ,'/a(?!b)./' ) <> 3 then bugmes();quit;end +if regexp('abad' ,'/a(?=d)./' ) <> 3 then bugmes();quit;end +if regexp('abad' ,'/a(?=c|d)./' ) <> 3 then bugmes();quit;end +if regexp('<&OUT' ,'/^[<>]&/' ) <> 1 then bugmes();quit;end +if regexp('aaaaaaaaa' ,'/^(a\1?){4}$/' ) <> [] then bugmes();quit;end +if regexp('aaaaaaaaaaa' ,'/^(a\1?){4}$/' ) <> [] then bugmes();quit;end +if regexp('aaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ) <> [] then bugmes();quit;end +if regexp('aaaaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ) <> [] then bugmes();quit;end +if regexp('ab' ,'/(?<=a)b/' ) <> 2 then bugmes();quit;end +if regexp('cb' ,'/(?<=a)b/' ) <> [] then bugmes();quit;end +if regexp('b' ,'/(?<=a)b/' ) <> [] then bugmes();quit;end +if regexp('ab' ,'/(?<!c)b/' ) <> 2 then bugmes();quit;end +if regexp('cb' ,'/(?<!c)b/' ) <> [] then bugmes();quit;end +if regexp('b' ,'/(?<!c)b/' ) <> 1 then bugmes();quit;end +if regexp('b' ,'/(?<!c)b/' ) <> 1 then bugmes();quit;end +if regexp('aba' ,'/(?:..)*a/' ) <> 1 then bugmes();quit;end +if regexp('aba' ,'/(?:..)*?a/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/^(?:b|a(?=(.)))*\1/' ) <> 1 then bugmes();quit;end +if regexp('ab' ,'/(?:(?i)a)b/' ) <> 1 then bugmes();quit;end +if regexp('Ab' ,'/(?:(?i)a)b/' ) <> 1 then bugmes();quit;end +if regexp('aB' ,'/(?:(?i)a)b/' ) <> [] then bugmes();quit;end +if regexp('aB' ,'/((?i)a)b/' ) <> [] then bugmes();quit;end +if regexp('ab' ,'/(?i:a)b/' ) <> 1 then bugmes();quit;end +if regexp('Ab' ,'/(?i:a)b/' ) <> 1 then bugmes();quit;end +if regexp('aB' ,'/(?i:a)b/' ) <> [] then bugmes();quit;end +if regexp('aB' ,'/((?i:a))b/' ) <> [] then bugmes();quit;end +if regexp('ab' ,'/(?:(?-i)a)b/i' ) <> 1 then bugmes();quit;end +if regexp('aB' ,'/(?:(?-i)a)b/i' ) <> 1 then bugmes();quit;end +if regexp('Ab' ,'/(?:(?-i)a)b/i' ) <> [] then bugmes();quit;end +if regexp('Ab' ,'/((?-i)a)b/i' ) <> [] then bugmes();quit;end +if regexp('aB' ,'/(?:(?-i)a)b/i' ) <> 1 then bugmes();quit;end +if regexp('AB' ,'/(?:(?-i)a)b/i' ) <> [] then bugmes();quit;end +if regexp('AB' ,'/((?-i)a)b/i' ) <> [] then bugmes();quit;end +if regexp('ab' ,'/(?-i:a)b/i' ) <> 1 then bugmes();quit;end +if regexp('aB' ,'/(?-i:a)b/i' ) <> 1 then bugmes();quit;end +if regexp('Ab' ,'/(?-i:a)b/i' ) <> [] then bugmes();quit;end +if regexp('Ab' ,'/((?-i:a))b/i' ) <> [] then bugmes();quit;end +if regexp('aB' ,'/(?-i:a)b/i' ) <> 1 then bugmes();quit;end +if regexp('AB' ,'/(?-i:a)b/i' ) <> [] then bugmes();quit;end +if regexp('AB' ,'/((?-i:a))b/i' ) <> [] then bugmes();quit;end +if regexp('a'+lf+'B' ,'/((?-i:a.))b/i' ) <> [] then bugmes();quit;end +if regexp('B'+lf+'B' ,'/((?s-i:a.))b/i' ) <> [] then bugmes();quit;end +if regexp('cabbbb' ,'/(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/') <> 1 then bugmes();quit;end +if regexp('caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb','/(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/') <> 1 then bugmes();quit;end +if regexp('foobar1234baz' ,'/foo\w*\d{4}baz/' ) <> 1 then bugmes();quit;end +if regexp('x~~' ,'/x(~~)*(?:(?:F)?)?/' ) <> 1 then bugmes();quit;end +if regexp('aaac' ,'/^a(?#xxx){3}c/' ) <> 1 then bugmes();quit;end +if regexp('aaac' ,'/^a (?#xxx) (?#yyy) {3}c/x' ) <> 1 then bugmes();quit;end +if regexp('dbcb' ,'/(?<![cd])b/' ) <> [] then bugmes();quit;end +if regexp('dbaacb' ,'/(?<![cd])[ab]/' ) <> [3 4] then bugmes();quit;end +if regexp('dbcb' ,'/(?<!(c|d))b/' ) <> [] then bugmes();quit;end +if regexp('dbaacb' ,'/(?<!(c|d))[ab]/' ) <> [3 4] then bugmes();quit;end +if regexp('cdaccb' ,'/(?<!cd)[ab]/' ) <> 6 then bugmes();quit;end +if regexp('a--' ,'/^(?:a?b?)*$/' ) <> [] then bugmes();quit;end +if regexp('a'+lf+'b'+lf ,'/(?m)^b/' ) <> [3 4] then bugmes();quit;end +if regexp('a'+lf+'b'+lf+'c'+lf ,'/^b/' ) <> [] then bugmes();quit;end +if regexp('a'+lf+'b'+lf+'c'+lf ,'/()^b/' ) <> [] then bugmes();quit;end +if regexp('a' ,'/(x)?(?(1)a|b)/' ) <> [] then bugmes();quit;end +if regexp('a' ,'/(x)?(?(1)b|a)/' ) <> 1 then bugmes();quit;end +if regexp('a' ,'/()?(?(1)b|a)/' ) <> 1 then bugmes();quit;end +if regexp('a' ,'/()(?(1)b|a)/' ) <> [] then bugmes();quit;end +if regexp('a' ,'/()?(?(1)a|b)/' ) <> 1 then bugmes();quit;end +if regexp('blah)' ,'/^(\()?blah(?(1)(\)))$/' ) <> [] then bugmes();quit;end +if regexp('(blah' ,'/^(\()?blah(?(1)(\)))$/' ) <> [] then bugmes();quit;end +if regexp('blah)' ,'/^(\(+)?blah(?(1)(\)))$/' ) <> [] then bugmes();quit;end +if regexp('(blah' ,'/^(\(+)?blah(?(1)(\)))$/' ) <> [] then bugmes();quit;end +if regexp('a' ,'/(?(?!a)a|b)/' ) <> [] then bugmes();quit;end +if regexp('a' ,'/(?(?!a)b|a)/' ) <> 1 then bugmes();quit;end +if regexp('a' ,'/(?(?=a)b|a)/' ) <> [] then bugmes();quit;end +if regexp('a' ,'/(?(?=a)a|b)/' ) <> 1 then bugmes();quit;end +if regexp('aaab' ,'/^(?=(a+?))\1ab/' ) <> [] then bugmes();quit;end +if regexp('aaab' ,'/^(?=(a+?))\1ab/' ) <> [] then bugmes();quit;end +if regexp('abcd:' ,'/([\w:]+::)?(\w+)$/' ) <> [] then bugmes();quit;end +if regexp('abcd:' ,'/([\w:]+::)?(\w+)$/' ) <> [] then bugmes();quit;end +if regexp('aaab' ,'/(>a+)ab/' ) <> [] then bugmes();quit;end +if regexp('aaab' ,'/(?>a+)b/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/[a[:]b[:c]/' ) <> 1 then bugmes();quit;end +if regexp('abc' ,'/[a[:]b[:c]/' ) <> 1 then bugmes();quit;end +if regexp('((abc(ade)ufh()()x' ,'/((?>[^()]+)|\([^()]*\))+/' ) <> 3 then bugmes();quit;end +//=================================================================== +if regexp('a'+lf+'b'+lf ,'/a\Z/' ) <> [] then bugmes();quit;end +if regexp('a'+lf+'b'+lf ,'/a\z/' ) <> [] then bugmes();quit;end +if regexp('a'+lf+'b'+lf ,'/a$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'a'+lf ,'/a\z/' ) <> [] then bugmes();quit;end +if regexp('a'+lf+'b'+lf ,'/a\Z/m' ) <> [] then bugmes();quit;end +if regexp('a'+lf+'b'+lf ,'/a\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'a'+lf ,'/a\z/m' ) <> [] then bugmes();quit;end +if regexp('aa'+lf+'b'+lf ,'/aa\Z/' ) <> [] then bugmes();quit;end +if regexp('aa'+lf+'b'+lf ,'/aa\z/' ) <> [] then bugmes();quit;end +if regexp('aa'+lf+'b'+lf ,'/aa$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'aa'+lf ,'/aa\z/' ) <> [] then bugmes();quit;end +if regexp('aa'+lf+'b'+lf ,'/aa\Z/m' ) <> [] then bugmes();quit;end +if regexp('aa'+lf+'b'+lf ,'/aa\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'aa'+lf ,'/aa\z/m' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/aa\Z/' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/aa\z/' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/aa$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/aa\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/aa\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/aa$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/aa\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/aa\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/aa$/' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/aa\Z/m' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/aa\z/m' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/aa$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/aa\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/aa\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/aa$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/aa\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/aa\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/aa$/m' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/aa\Z/' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/aa\z/' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/aa$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/aa\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/aa\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/aa$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/aa\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/aa\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/aa$/' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/aa\Z/m' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/aa\z/m' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/aa$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/aa\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/aa\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/aa$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/aa\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/aa\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/aa$/m' ) <> [] then bugmes();quit;end +if regexp('ab'+lf+'b'+lf ,'/ab\Z/' ) <> [] then bugmes();quit;end +if regexp('ab'+lf+'b'+lf ,'/ab\z/' ) <> [] then bugmes();quit;end +if regexp('ab'+lf+'b'+lf ,'/ab$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ab'+lf ,'/ab\z/' ) <> [] then bugmes();quit;end +if regexp('ab'+lf+'b'+lf ,'/ab\Z/m' ) <> [] then bugmes();quit;end +if regexp('ab'+lf+'b'+lf ,'/ab\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ab'+lf ,'/ab\z/m' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/ab\Z/' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/ab\z/' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/ab$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/ab\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/ab\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/ab$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/ab\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/ab\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/ab$/' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/ab\Z/m' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/ab\z/m' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/ab$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/ab\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/ab\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/ab$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/ab\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/ab\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/ab$/m' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/ab\Z/' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/ab\z/' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/ab$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/ab\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/ab\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/ab$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/ab\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/ab\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/ab$/' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/ab\Z/m' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/ab\z/m' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/ab$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/ab\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/ab\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/ab$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/ab\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/ab\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/ab$/m' ) <> [] then bugmes();quit;end +if regexp('abb'+lf+'b'+lf ,'/abb\Z/' ) <> [] then bugmes();quit;end +if regexp('abb'+lf+'b'+lf ,'/abb\z/' ) <> [] then bugmes();quit;end +if regexp('abb'+lf+'b'+lf ,'/abb$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'abb'+lf ,'/abb\z/' ) <> [] then bugmes();quit;end +if regexp('abb'+lf+'b'+lf ,'/abb\Z/m' ) <> [] then bugmes();quit;end +if regexp('abb'+lf+'b'+lf ,'/abb\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'abb'+lf ,'/abb\z/m' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/abb\Z/' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/abb\z/' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/abb$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/abb\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/abb\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/abb$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/abb\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/abb\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/abb$/' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/abb\Z/m' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/abb\z/m' ) <> [] then bugmes();quit;end +if regexp('ac'+lf+'b'+lf ,'/abb$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/abb\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/abb\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac'+lf ,'/abb$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/abb\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/abb\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ac' ,'/abb$/m' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/abb\Z/' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/abb\z/' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/abb$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/abb\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/abb\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/abb$/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/abb\Z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/abb\z/' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/abb$/' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/abb\Z/m' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/abb\z/m' ) <> [] then bugmes();quit;end +if regexp('ca'+lf+'b'+lf ,'/abb$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/abb\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/abb\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca'+lf ,'/abb$/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/abb\Z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/abb\z/m' ) <> [] then bugmes();quit;end +if regexp('b'+lf+'ca' ,'/abb$/m' ) <> [] then bugmes();quit;end +if regexp('x' ,'/a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/') <> [] then bugmes();quit;end +if regexp('foo.bart' ,'/foo.bart/' ) <> 1 then bugmes();quit;end +if regexp('abcd'+lf+'dxxx' ,'/^d[x][x][x]/m' ) <> 6 then bugmes();quit;end +if regexp('xxxtt' ,'/tt+$/' ) <> 4 then bugmes();quit;end +if regexp('aaaXbX' ,'/\GX.*X/' ) <> [] then bugmes();quit;end +if regexp('Changes' ,'/\.c(pp|xx|c)?$/i' ) <> [] then bugmes();quit;end +if regexp('IO.c' ,'/\.c(pp|xx|c)?$/i' ) <> 3 then bugmes();quit;end +if regexp('C:/' ,'/^([a-z]:)/' ) <> [] then bugmes();quit;end +if regexp(lf+'x aa' ,'/^\S\s+aa$/m' ) <> 2 then bugmes();quit;end +[start_pos, end_pos, match_str] = regexp(lf+'x aa' ,'/^\S\s+aa$/m' ); +if (start_pos <> 2) then bugmes();quit;end +if (end_pos <> 5) then bugmes();quit;end +if (match_str <> 'x aa') then bugmes();quit;end +if regexp('ab' ,'/(^|a)b/' ) <> 1 then bugmes();quit;end +if regexp('abcab' ,'/(\w)?(abc)\1b/' ) <> [] then bugmes();quit;end +if regexp('a,b,c' ,'/^(?:.,){2}c/' ) <> 1 then bugmes();quit;end +if regexp('a,b,c' ,'/^(?:[^,]*,){2}c/' ) <> 1 then bugmes();quit;end +if regexp('' ,'/(?i)/' ) <> [] then bugmes();quit;end +if regexp('a'+lf+'xb'+lf ,'/(?!\A)x/m' ) <> 3 then bugmes();quit;end +if regexp('123'+lf+'abcabcabcabc'+lf ,'/^.{9}abc.*\n/m' ) <> 5 then bugmes();quit;end +if regexp('a' ,'/^(a)?(?(1)a|b)+$/' ) <> [] then bugmes();quit;end +if regexp('x1' ,'/^(0+)?(?:x(1))?/' ) <> 1 then bugmes();quit;end +if regexp('012cxx0190' ,'/^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))?/') <> 1 then bugmes();quit;end +if regexp('aaaacccc' ,'/((?:aaaa|bbbb)cccc)?/' ) <> 1 then bugmes();quit;end +if regexp('bbbbcccc' ,'/((?:aaaa|bbbb)cccc)?/' ) <> 1 then bugmes();quit;end +if regexp('a'+lf+'b'+lf ,'/b\s^/m' ) <> [] then bugmes();quit;end +if regexp('a' ,'/\ba/' ) <> 1 then bugmes();quit;end +if regexp('AbCd' ,'/ab(?i)cd/' ) <> [] then bugmes();quit;end +if regexp('abCd' ,'/ab(?i)cd/' ) <> 1 then bugmes();quit;end +if regexp('Oo' ,'/^(o)(?!.*\1)/i' ) <> [] then bugmes();quit;end +if regexp('2' ,'/2(]*)?$\1/' ) <> 1 then bugmes();quit;end +if regexp('......abef' ,'/.*a(?!(b|cd)*e).*f/' ) <> [] then bugmes();quit;end +if regexp('fools' ,'/(foo|fool|x.|money|parted)$/' ) <> [] then bugmes();quit;end +if regexp('fools' ,'/(x.|foo|fool|x.|money|parted|y.)$/' ) <> [] then bugmes();quit;end +if regexp('fools' ,'/(foo|fool|money|parted)$/' ) <> [] then bugmes();quit;end +//=================================================================== +if regexp('scilab-5.0' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> 1 then bugmes();quit;end +if regexp('scilab-5.0.1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> 1 then bugmes();quit;end +if regexp('scilab-5.0-alpha-1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> 1 then bugmes();quit;end +if regexp('scilab-5.0-alpha1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> [] then bugmes();quit;end +if regexp('scilab-5.0-rc1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> 1 then bugmes();quit;end +if regexp('scilab-5.0-rc-1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> [] then bugmes();quit;end +if regexp('scilab-SE-trunk-27490' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> [] then bugmes();quit;end +//=================================================================== +// Chinese +str = '世界您好'; +[s,e,m] = regexp(str,'/您好$/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/^世界/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/世界$/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/您好$/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/^您好/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/界您/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/界_您/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +//=================================================================== +// Russian +str = 'привет мир'; +[s,e,m] = regexp(str,'/^привет/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/привет$/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/мир$/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/^мир/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/вет\sм/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/вет_м/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +//=================================================================== +// Cyrilic +str = 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ'; +[s,e,m] = regexp(str,'/^АБВГДЄЖЅЗИІКЛМНОПҀР/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/АБВГДЄЖЅЗИІКЛМНОПҀР$/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ$/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/^ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/ИІКЛМНОПҀРСТѸФХѠЦЧШЩЪ/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/ИІКЛМНОПҀ_РСТѸФХѠЦЧШЩЪ/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +//=================================================================== +// Japanese +str = '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃'; +[s,e,m] = regexp(str,'/^丑丞串乃之乎也云亘亙些亦/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/丑丞串乃之乎也云亘亙些亦$/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/凰凱函刹劉劫勁勃$/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/^凰凱函刹劉劫勁勃/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/亨亮仔伊伎伍伽佃佑伶侃/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/亨亮仔伊_伎伍伽佃佑伶侃/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +//=================================================================== +// Thaï +str = 'มกระดุกกระดิก'; +[s,e,m] = regexp(str,'/^มกระดุกกร/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/มกระดุกกร$/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/กกระดิก$/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/^กกระดิก/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +[s,e,m] = regexp(str,'/ดุกก/'); +if part(str,s:e) <> m then bugmes();quit;end +[s,e,m] = regexp(str,'/ดุก_ก/'); +if s <> [] then bugmes();quit;end +if e <> [] then bugmes();quit;end +if m <> '' then bugmes();quit;end +//=================================================================== +// Subpatterns +piString="3.14"; +[a,b,c,piStringSplit]=regexp(piString,"/(\d+)\.(\d+)/"); +assert_checkequal(piStringSplit(1),"3"); +assert_checkequal(piStringSplit(2),"14"); +[a,b,c,d]=regexp('xabyabbbz','/ab(.*)b(.*)/'); +assert_checkequal(size(d), [1, 2]); +// get host name from URL +myURL="http://www.scilab.org/download/"; +[a,b,c,d]=regexp(myURL,'@^(?:http://)?([^/]+)@i'); +assert_checkequal(d,"www.scilab.org"); +str='foobar: 2012'; +// Using named subpatterns +[a,b,c,d]=regexp(str,'/(?P<name>\w+): (?P<digit>\d+)/'); +assert_checkequal(d(1),"foobar"); +assert_checkequal(d(2),"2012"); diff --git a/modules/string/tests/unit_tests/regexp.tst b/modules/string/tests/unit_tests/regexp.tst new file mode 100755 index 000000000..d7c014b0f --- /dev/null +++ b/modules/string/tests/unit_tests/regexp.tst @@ -0,0 +1,646 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=================================================================== +// unit tests regexp +//=================================================================== +lf = ascii(10); +if regexp('abc','/abc/','o') <> 1 then pause,end +ierr = execstr("regexp(''abc'',''/abc/'',''r'');","errcatch"); +if ierr <> 999 then pause,end +t = 'aaa aab aac aad aae'; +pattern = '/aa/'; +[start_pos, end_pos, match_str] = regexp(t,pattern,'o'); +if size(start_pos,'*') <> 1 then pause,end +if size(end_pos,'*') <> 1 then pause,end +if start_pos <> 1 then pause,end +if end_pos <> 2 then pause,end +//=================================================================== +if regexp('abc' ,'/abc/' ) <> 1 then pause,end +if regexp('xbc' ,'/abc/' ) <> [] then pause,end +if regexp('axc' ,'/abc/' ) <> [] then pause,end +if regexp('abx' ,'/abc/' ) <> [] then pause,end +if regexp('xabcy' ,'/abc/' ) <> 2 then pause,end +if regexp('ababc' ,'/abc/' ) <> 3 then pause,end +if regexp('abc' ,'/ab*c/' ) <> 1 then pause,end +if regexp('abc' ,'/ab*bc/' ) <> 1 then pause,end +if regexp('abbc' ,'/ab*bc/' ) <> 1 then pause,end +if regexp('abbbbc' ,'/ab*bc/' ) <> 1 then pause,end +if regexp('abbbbc' ,'/.{1}/' ) <> 1 then pause,end +if regexp('abbbbc' ,'/.{3,4}/' ) <> 1 then pause,end +if regexp('abbbbc' ,'/ab{0,}bc/' ) <> 1 then pause,end +if regexp('abbc' ,'/ab+bc/' ) <> 1 then pause,end +if regexp('abc' ,'/ab+bc/' ) <> [] then pause,end +if regexp('abq' ,'/ab+bc/' ) <> [] then pause,end +if regexp('abq' ,'/ab{1,}bc/' ) <> [] then pause,end +if regexp('abbbbc' ,'/ab+bc/' ) <> 1 then pause,end +if regexp('abbbbc' ,'/ab{1,}bc/' ) <> 1 then pause,end +if regexp('abbbbc' ,'/ab{1,3}bc/' ) <> 1 then pause,end +if regexp('abbbbc' ,'/ab{3,4}bc/' ) <> 1 then pause,end +if regexp('abbbbc' ,'/ab{4,5}bc/' ) <> [] then pause,end +if regexp('abbc' ,'/ab?bc/' ) <> 1 then pause,end +if regexp('abc' ,'/ab?bc/' ) <> 1 then pause,end +if regexp('abc' ,'/ab{0,1}bc/' ) <> 1 then pause,end +if regexp('abbbbc' ,'/ab?bc/' ) <> [] then pause,end +if regexp('abc' ,'/ab?c/' ) <> 1 then pause,end +if regexp('abc' ,'/ab{0,1}c/' ) <> 1 then pause,end +if regexp('abc' ,'/^abc$/' ) <> 1 then pause,end +if regexp('abcc' ,'/^abc$/' ) <> [] then pause,end +if regexp('abcc' ,'/^abc/' ) <> 1 then pause,end +if regexp('aabc' ,'/^abc$/' ) <> [] then pause,end +if regexp('aabc' ,'/abc$/' ) <> 2 then pause,end +if regexp('aabcd' ,'/abc$/' ) <> [] then pause,end +if regexp('abc' ,'/a.c/' ) <> 1 then pause,end +if regexp('axc' ,'/a.c/' ) <> 1 then pause,end +if regexp('axyzc' ,'/a.*c/' ) <> 1 then pause,end +if regexp('axyzd' ,'/a.*c/' ) <> [] then pause,end +if regexp('abc' ,'/a[bc]d/' ) <> [] then pause,end +if regexp('abd' ,'/a[bc]d/' ) <> 1 then pause,end +if regexp('abd' ,'/a[b-d]e/' ) <> [] then pause,end +if regexp('ace' ,'/a[b-d]e/' ) <> 1 then pause,end +if regexp('aac' ,'/a[b-d]/' ) <> 2 then pause,end +if regexp('a-' ,'/a[-b]/' ) <> 1 then pause,end +if regexp('a-' ,'/a[b-]/' ) <> 1 then pause,end +if regexp('a]' ,'/a]/' ) <> 1 then pause,end +if regexp('a]b' ,'/a[]]b/' ) <> 1 then pause,end +if regexp('aed' ,'/a[^bc]d/' ) <> 1 then pause,end +if regexp('abd' ,'/a[^bc]d/' ) <> [] then pause,end +if regexp('adc' ,'/a[^-b]c/' ) <> 1 then pause,end +if regexp('a-c' ,'/a[^-b]c/' ) <> [] then pause,end +if regexp('a]c' ,'/a[^]b]c/' ) <> [] then pause,end +if regexp('adc' ,'/a[^]b]c/' ) <> 1 then pause,end +if regexp('a-' ,'/\ba\b/' ) <> 1 then pause,end +if regexp('-a' ,'/\ba\b/' ) <> 2 then pause,end +if regexp('-a-' ,'/\ba\b/' ) <> 2 then pause,end +if regexp('xy' ,'/\by\b/' ) <> [] then pause,end +if regexp('yz' ,'/\by\b/' ) <> [] then pause,end +if regexp('xyz' ,'/\by\b/' ) <> [] then pause,end +if regexp('a-' ,'/\Ba\B/' ) <> [] then pause,end +if regexp('-a' ,'/\Ba\B/' ) <> [] then pause,end +if regexp('-a-' ,'/\Ba\B/' ) <> [] then pause,end +if regexp('xy' ,'/\By\b/' ) <> 2 then pause,end +if regexp('xy' ,'/\By\b/' ) <> 2 then pause,end +if regexp('yz' ,'/\by\B/' ) <> 1 then pause,end +if regexp('xyz' ,'/\By\B/' ) <> 2 then pause,end +if regexp('a' ,'/\w/' ) <> 1 then pause,end +if regexp('-' ,'/\w/' ) <> [] then pause,end +if regexp('a' ,'/\W/' ) <> [] then pause,end +if regexp('-' ,'/\W/' ) <> 1 then pause,end +if regexp('a b' ,'/a\sb/' ) <> 1 then pause,end +if regexp('a-b' ,'/a\sb/' ) <> [] then pause,end +if regexp('a b' ,'/a\Sb/' ) <> [] then pause,end +if regexp('a-b' ,'/a\Sb/' ) <> 1 then pause,end +if regexp('1' ,'/\d/' ) <> 1 then pause,end +if regexp('-' ,'/\d/' ) <> [] then pause,end +if regexp('1' ,'/\D/' ) <> [] then pause,end +if regexp('-' ,'/\D/' ) <> 1 then pause,end +if regexp('a' ,'/[\w]/' ) <> 1 then pause,end +if regexp('-' ,'/[\w]/' ) <> [] then pause,end +if regexp('a' ,'/[\W]/' ) <> [] then pause,end +if regexp('-' ,'/[\W]/' ) <> 1 then pause,end +if regexp('a b' ,'/a[\s]b/' ) <> 1 then pause,end +if regexp('a-b' ,'/a[\s]b/' ) <> [] then pause,end +if regexp('a b' ,'/a[\S]b/' ) <> [] then pause,end +if regexp('a-b' ,'/a[\S]b/' ) <> 1 then pause,end +if regexp('1' ,'/[\d]/' ) <> 1 then pause,end +if regexp('-' ,'/[\d]/' ) <> [] then pause,end +if regexp('1' ,'/[\D]/' ) <> [] then pause,end +if regexp('-' ,'/[\D]/' ) <> 1 then pause,end +if regexp('abc' ,'/ab|cd/' ) <> 1 then pause,end +if regexp('abcd' ,'/ab|cd/' ) <> 1 then pause,end +if regexp('b' ,'/$b/' ) <> [] then pause,end +if regexp('ab' ,'/a\(*b/' ) <> 1 then pause,end +if regexp('a((b' ,'/a\(*b/' ) <> 1 then pause,end +if regexp('aabbabc' ,'/a+b+c/' ) <> 5 then pause,end +if regexp('aabbabc' ,'/a{1,}b{1,}c/' ) <> 5 then pause,end +if regexp('abcabc' ,'/a.+?c/' ) <> 1 then pause,end +if regexp('cde' ,'/[^ab]*/' ) <> 1 then pause,end +if regexp('' ,'/abc/' ) <> [] then pause,end +if regexp('' ,'/a*/' ) <> [] then pause,end +if regexp('e' ,'/a|b|c|d|e/' ) <> 1 then pause,end +if regexp('abcdefg' ,'/abcd*efg/' ) <> 1 then pause,end +if regexp('xabyabbbz' ,'/ab*/' ) <> [2 5] then pause,end +if regexp('xayabbbz' ,'/ab*/' ) <> [2 4] then pause,end +if regexp('hij' ,'/[abhgefdc]ij/' ) <> 1 then pause,end +if regexp('abcde' ,'/^(ab|cd)e/' ) <> [] then pause,end +if regexp('adcdcde' ,'/a[bcd]*dcdcde/' ) <> 1 then pause,end +if regexp('adcdcde' ,'/a[bcd]+dcdcde/' ) <> [] then pause,end +if regexp('alpha' ,'/[a-zA-Z_][a-zA-Z0-9_]*/' ) <> 1 then pause,end +if regexp('effg' ,'/(bc+d$|ef*g.|h?i(j|k))/' ) <> [] then pause,end +if regexp('bcdd' ,'/(bc+d$|ef*g.|h?i(j|k))/' ) <> [] then pause,end +if regexp('aa' ,'/((((((((((a))))))))))\10/' ) <> 1 then pause,end +if regexp('aa' ,'/((((((((((a))))))))))\041/' ) <> [] then pause,end +if regexp('a!' ,'/((((((((((a))))))))))\041/' ) <> 1 then pause,end +if regexp('a' ,'/(((((((((a)))))))))/' ) <> 1 then pause,end +if regexp('uh-uh' ,'/multiple words of text/' ) <> [] then pause,end +if regexp('multiple words, yeah' ,'/multiple words/' ) <> 1 then pause,end +if regexp('ab' ,'/[k]/' ) <> [] then pause,end +if regexp('ac' ,'/a[-]?c/' ) <> 1 then pause,end +if regexp('a' ,'/(a)|\1/' ) <> 1 then pause,end +if regexp('x' ,'/(a)|\1/' ) <> [] then pause,end +if regexp('aaxabxbaxbbx' ,'/((\3|b)\2(a)x)+/' ) <> [] then pause,end +if regexp('ABC' ,'/abc/i' ) <> 1 then pause,end +if regexp('XBC' ,'/abc/i' ) <> [] then pause,end +if regexp('AXC' ,'/abc/i' ) <> [] then pause,end +if regexp('ABX' ,'/abc/i' ) <> [] then pause,end +if regexp('XABCY' ,'/abc/i' ) <> 2 then pause,end +if regexp('ABABC' ,'/abc/i' ) <> 3 then pause,end +if regexp('ABC' ,'/ab*c/i' ) <> 1 then pause,end +if regexp('ABC' ,'/ab*bc/i' ) <> 1 then pause,end +if regexp('ABBC' ,'/ab*bc/i' ) <> 1 then pause,end +if regexp('ABBBBC' ,'/ab*?bc/i' ) <> 1 then pause,end +if regexp('ABBBBC' ,'/ab{0,}?bc/i' ) <> 1 then pause,end +if regexp('ABBC' ,'/ab+?bc/i' ) <> 1 then pause,end +if regexp('ABC' ,'/ab+bc/i' ) <> [] then pause,end +if regexp('ABQ' ,'/ab+bc/i' ) <> [] then pause,end +if regexp('ABQ' ,'/ab{1,}bc/i' ) <> [] then pause,end +if regexp('ABBBBC' ,'/ab+bc/i' ) <> 1 then pause,end +if regexp('ABBBBC' ,'/ab{1,}?bc/i' ) <> 1 then pause,end +if regexp('ABBBBC' ,'/ab{1,3}?bc/i' ) <> 1 then pause,end +if regexp('ABBBBC' ,'/ab{3,4}?bc/i' ) <> 1 then pause,end +if regexp('ABBBBC' ,'/ab{4,5}?bc/i' ) <> [] then pause,end +if regexp('ABBC' ,'/ab??bc/i' ) <> 1 then pause,end +if regexp('ABC' ,'/ab??bc/i' ) <> 1 then pause,end +if regexp('ABC' ,'/ab{0,1}?bc/i' ) <> 1 then pause,end +if regexp('ABBBBC' ,'/ab??bc/i' ) <> [] then pause,end +if regexp('ABC' ,'/ab??c/i' ) <> 1 then pause,end +if regexp('ABC' ,'/ab{0,1}?c/i' ) <> 1 then pause,end +if regexp('ABC' ,'/^abc$/i' ) <> 1 then pause,end +if regexp('ABCC' ,'/^abc$/i' ) <> [] then pause,end +if regexp('ABCC' ,'/^abc/i' ) <> 1 then pause,end +if regexp('AABC' ,'/^abc$/i' ) <> [] then pause,end +if regexp('AABC' ,'/abc$/i' ) <> 2 then pause,end +if regexp('ABC' ,'/a.c/i' ) <> 1 then pause,end +if regexp('AXC' ,'/a.c/i' ) <> 1 then pause,end +if regexp('AXYZC' ,'/a.*?c/i' ) <> 1 then pause,end +if regexp('AXYZD' ,'/a.*c/i' ) <> [] then pause,end +if regexp('ABC' ,'/a[bc]d/i' ) <> [] then pause,end +if regexp('ABD' ,'/a[bc]d/i' ) <> 1 then pause,end +if regexp('ABD' ,'/a[b-d]e/i' ) <> [] then pause,end +if regexp('ACE' ,'/a[b-d]e/i' ) <> 1 then pause,end +if regexp('AAC' ,'/a[b-d]/i' ) <> 2 then pause,end +if regexp('A-' ,'/a[-b]/i' ) <> 1 then pause,end +if regexp('A-' ,'/a[b-]/i' ) <> 1 then pause,end +if regexp('A]' ,'/a]/i' ) <> 1 then pause,end +if regexp('A]B' ,'/a[]]b/i' ) <> 1 then pause,end +if regexp('AED' ,'/a[^bc]d/i' ) <> 1 then pause,end +if regexp('ABD' ,'/a[^bc]d/i' ) <> [] then pause,end +if regexp('ADC' ,'/a[^-b]c/i' ) <> 1 then pause,end +if regexp('A-C' ,'/a[^-b]c/i' ) <> [] then pause,end +if regexp('A]C' ,'/a[^]b]c/i' ) <> [] then pause,end +if regexp('ADC' ,'/a[^]b]c/i' ) <> 1 then pause,end +if regexp('ABC' ,'/ab|cd/i' ) <> 1 then pause,end +if regexp('ABCD' ,'/ab|cd/i' ) <> 1 then pause,end +if regexp('B' ,'/$b/i' ) <> [] then pause,end +if regexp('AB' ,'/a\(*b/i' ) <> 1 then pause,end +if regexp('A((B' ,'/a\(*b/i' ) <> 1 then pause,end +if regexp('AABBABC' ,'/a+b+c/i' ) <> 5 then pause,end +if regexp('AABBABC' ,'/a{1,}b{1,}c/i' ) <> 5 then pause,end +if regexp('ABCABC' ,'/a.+?c/i' ) <> [1 4] then pause,end +if regexp('ABCABC' ,'/a.*?c/i' ) <> 1 then pause,end +if regexp('ABCABC' ,'/a.{0,5}?c/i' ) <> 1 then pause,end +if regexp('CDE' ,'/[^ab]*/i' ) <> 1 then pause,end +if regexp('' ,'/abc/i' ) <> [] then pause,end +if regexp('' ,'/a*/i' ) <> [] then pause,end +if regexp('E' ,'/a|b|c|d|e/i' ) <> 1 then pause,end +if regexp('ABCDEFG' ,'/abcd*efg/i' ) <> 1 then pause,end +if regexp('XABYABBBZ' ,'/ab*/i' ) <> [2 5] then pause,end +if regexp('XAYABBBZ' ,'/ab*/i' ) <> [2 4] then pause,end +if regexp('HIJ' ,'/[abhgefdc]ij/i' ) <> 1 then pause,end +if regexp('ABCDE' ,'/^(ab|cd)e/i' ) <> [] then pause,end +if regexp('ADCDCDE' ,'/a[bcd]*dcdcde/i' ) <> 1 then pause,end +if regexp('ADCDCDE' ,'/a[bcd]+dcdcde/i' ) <> [] then pause,end +if regexp('ALPHA' ,'/[a-zA-Z_][a-zA-Z0-9_]*/i' ) <> 1 then pause,end +if regexp('EFFG' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ) <> [] then pause,end +if regexp('BCDD' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ) <> [] then pause,end +if regexp('AA' ,'/((((((((((a))))))))))\10/i' ) <> 1 then pause,end +if regexp('AA' ,'/((((((((((a))))))))))\041/i' ) <> [] then pause,end +if regexp('A!' ,'/((((((((((a))))))))))\041/i' ) <> 1 then pause,end +if regexp('A' ,'/(((((((((a)))))))))/i' ) <> 1 then pause,end +if regexp('UH-UH' ,'/multiple words of text/i' ) <> [] then pause,end +if regexp('MULTIPLE WORDS, YEAH' ,'/multiple words/i' ) <> 1 then pause,end +if regexp('AB' ,'/[k]/i' ) <> [] then pause,end +if regexp('AC' ,'/a[-]?c/i' ) <> 1 then pause,end +if regexp('abad' ,'/a(?!b)./' ) <> 3 then pause,end +if regexp('abad' ,'/a(?=d)./' ) <> 3 then pause,end +if regexp('abad' ,'/a(?=c|d)./' ) <> 3 then pause,end +if regexp('<&OUT' ,'/^[<>]&/' ) <> 1 then pause,end +if regexp('aaaaaaaaa' ,'/^(a\1?){4}$/' ) <> [] then pause,end +if regexp('aaaaaaaaaaa' ,'/^(a\1?){4}$/' ) <> [] then pause,end +if regexp('aaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ) <> [] then pause,end +if regexp('aaaaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ) <> [] then pause,end +if regexp('ab' ,'/(?<=a)b/' ) <> 2 then pause,end +if regexp('cb' ,'/(?<=a)b/' ) <> [] then pause,end +if regexp('b' ,'/(?<=a)b/' ) <> [] then pause,end +if regexp('ab' ,'/(?<!c)b/' ) <> 2 then pause,end +if regexp('cb' ,'/(?<!c)b/' ) <> [] then pause,end +if regexp('b' ,'/(?<!c)b/' ) <> 1 then pause,end +if regexp('b' ,'/(?<!c)b/' ) <> 1 then pause,end +if regexp('aba' ,'/(?:..)*a/' ) <> 1 then pause,end +if regexp('aba' ,'/(?:..)*?a/' ) <> 1 then pause,end +if regexp('abc' ,'/^(?:b|a(?=(.)))*\1/' ) <> 1 then pause,end +if regexp('ab' ,'/(?:(?i)a)b/' ) <> 1 then pause,end +if regexp('Ab' ,'/(?:(?i)a)b/' ) <> 1 then pause,end +if regexp('aB' ,'/(?:(?i)a)b/' ) <> [] then pause,end +if regexp('aB' ,'/((?i)a)b/' ) <> [] then pause,end +if regexp('ab' ,'/(?i:a)b/' ) <> 1 then pause,end +if regexp('Ab' ,'/(?i:a)b/' ) <> 1 then pause,end +if regexp('aB' ,'/(?i:a)b/' ) <> [] then pause,end +if regexp('aB' ,'/((?i:a))b/' ) <> [] then pause,end +if regexp('ab' ,'/(?:(?-i)a)b/i' ) <> 1 then pause,end +if regexp('aB' ,'/(?:(?-i)a)b/i' ) <> 1 then pause,end +if regexp('Ab' ,'/(?:(?-i)a)b/i' ) <> [] then pause,end +if regexp('Ab' ,'/((?-i)a)b/i' ) <> [] then pause,end +if regexp('aB' ,'/(?:(?-i)a)b/i' ) <> 1 then pause,end +if regexp('AB' ,'/(?:(?-i)a)b/i' ) <> [] then pause,end +if regexp('AB' ,'/((?-i)a)b/i' ) <> [] then pause,end +if regexp('ab' ,'/(?-i:a)b/i' ) <> 1 then pause,end +if regexp('aB' ,'/(?-i:a)b/i' ) <> 1 then pause,end +if regexp('Ab' ,'/(?-i:a)b/i' ) <> [] then pause,end +if regexp('Ab' ,'/((?-i:a))b/i' ) <> [] then pause,end +if regexp('aB' ,'/(?-i:a)b/i' ) <> 1 then pause,end +if regexp('AB' ,'/(?-i:a)b/i' ) <> [] then pause,end +if regexp('AB' ,'/((?-i:a))b/i' ) <> [] then pause,end +if regexp('a'+lf+'B' ,'/((?-i:a.))b/i' ) <> [] then pause,end +if regexp('B'+lf+'B' ,'/((?s-i:a.))b/i' ) <> [] then pause,end +if regexp('cabbbb' ,'/(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/') <> 1 then pause,end +if regexp('caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb','/(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/') <> 1 then pause,end +if regexp('foobar1234baz' ,'/foo\w*\d{4}baz/' ) <> 1 then pause,end +if regexp('x~~' ,'/x(~~)*(?:(?:F)?)?/' ) <> 1 then pause,end +if regexp('aaac' ,'/^a(?#xxx){3}c/' ) <> 1 then pause,end +if regexp('aaac' ,'/^a (?#xxx) (?#yyy) {3}c/x' ) <> 1 then pause,end +if regexp('dbcb' ,'/(?<![cd])b/' ) <> [] then pause,end +if regexp('dbaacb' ,'/(?<![cd])[ab]/' ) <> [3 4] then pause,end +if regexp('dbcb' ,'/(?<!(c|d))b/' ) <> [] then pause,end +if regexp('dbaacb' ,'/(?<!(c|d))[ab]/' ) <> [3 4] then pause,end +if regexp('cdaccb' ,'/(?<!cd)[ab]/' ) <> 6 then pause,end +if regexp('a--' ,'/^(?:a?b?)*$/' ) <> [] then pause,end +if regexp('a'+lf+'b'+lf ,'/(?m)^b/' ) <> [3 4] then pause,end +if regexp('a'+lf+'b'+lf+'c'+lf ,'/^b/' ) <> [] then pause,end +if regexp('a'+lf+'b'+lf+'c'+lf ,'/()^b/' ) <> [] then pause,end +if regexp('a' ,'/(x)?(?(1)a|b)/' ) <> [] then pause,end +if regexp('a' ,'/(x)?(?(1)b|a)/' ) <> 1 then pause,end +if regexp('a' ,'/()?(?(1)b|a)/' ) <> 1 then pause,end +if regexp('a' ,'/()(?(1)b|a)/' ) <> [] then pause,end +if regexp('a' ,'/()?(?(1)a|b)/' ) <> 1 then pause,end +if regexp('blah)' ,'/^(\()?blah(?(1)(\)))$/' ) <> [] then pause,end +if regexp('(blah' ,'/^(\()?blah(?(1)(\)))$/' ) <> [] then pause,end +if regexp('blah)' ,'/^(\(+)?blah(?(1)(\)))$/' ) <> [] then pause,end +if regexp('(blah' ,'/^(\(+)?blah(?(1)(\)))$/' ) <> [] then pause,end +if regexp('a' ,'/(?(?!a)a|b)/' ) <> [] then pause,end +if regexp('a' ,'/(?(?!a)b|a)/' ) <> 1 then pause,end +if regexp('a' ,'/(?(?=a)b|a)/' ) <> [] then pause,end +if regexp('a' ,'/(?(?=a)a|b)/' ) <> 1 then pause,end +if regexp('aaab' ,'/^(?=(a+?))\1ab/' ) <> [] then pause,end +if regexp('aaab' ,'/^(?=(a+?))\1ab/' ) <> [] then pause,end +if regexp('abcd:' ,'/([\w:]+::)?(\w+)$/' ) <> [] then pause,end +if regexp('abcd:' ,'/([\w:]+::)?(\w+)$/' ) <> [] then pause,end +if regexp('aaab' ,'/(>a+)ab/' ) <> [] then pause,end +if regexp('aaab' ,'/(?>a+)b/' ) <> 1 then pause,end +if regexp('abc' ,'/[a[:]b[:c]/' ) <> 1 then pause,end +if regexp('abc' ,'/[a[:]b[:c]/' ) <> 1 then pause,end +if regexp('((abc(ade)ufh()()x' ,'/((?>[^()]+)|\([^()]*\))+/' ) <> 3 then pause,end +//=================================================================== +if regexp('a'+lf+'b'+lf ,'/a\Z/' ) <> [] then pause,end +if regexp('a'+lf+'b'+lf ,'/a\z/' ) <> [] then pause,end +if regexp('a'+lf+'b'+lf ,'/a$/' ) <> [] then pause,end +if regexp('b'+lf+'a'+lf ,'/a\z/' ) <> [] then pause,end +if regexp('a'+lf+'b'+lf ,'/a\Z/m' ) <> [] then pause,end +if regexp('a'+lf+'b'+lf ,'/a\z/m' ) <> [] then pause,end +if regexp('b'+lf+'a'+lf ,'/a\z/m' ) <> [] then pause,end +if regexp('aa'+lf+'b'+lf ,'/aa\Z/' ) <> [] then pause,end +if regexp('aa'+lf+'b'+lf ,'/aa\z/' ) <> [] then pause,end +if regexp('aa'+lf+'b'+lf ,'/aa$/' ) <> [] then pause,end +if regexp('b'+lf+'aa'+lf ,'/aa\z/' ) <> [] then pause,end +if regexp('aa'+lf+'b'+lf ,'/aa\Z/m' ) <> [] then pause,end +if regexp('aa'+lf+'b'+lf ,'/aa\z/m' ) <> [] then pause,end +if regexp('b'+lf+'aa'+lf ,'/aa\z/m' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/aa\Z/' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/aa\z/' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/aa$/' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/aa\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/aa\z/' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/aa$/' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/aa\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/aa\z/' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/aa$/' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/aa\Z/m' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/aa\z/m' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/aa$/m' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/aa\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/aa\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/aa$/m' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/aa\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/aa\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/aa$/m' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/aa\Z/' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/aa\z/' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/aa$/' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/aa\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/aa\z/' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/aa$/' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/aa\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/aa\z/' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/aa$/' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/aa\Z/m' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/aa\z/m' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/aa$/m' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/aa\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/aa\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/aa$/m' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/aa\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/aa\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/aa$/m' ) <> [] then pause,end +if regexp('ab'+lf+'b'+lf ,'/ab\Z/' ) <> [] then pause,end +if regexp('ab'+lf+'b'+lf ,'/ab\z/' ) <> [] then pause,end +if regexp('ab'+lf+'b'+lf ,'/ab$/' ) <> [] then pause,end +if regexp('b'+lf+'ab'+lf ,'/ab\z/' ) <> [] then pause,end +if regexp('ab'+lf+'b'+lf ,'/ab\Z/m' ) <> [] then pause,end +if regexp('ab'+lf+'b'+lf ,'/ab\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ab'+lf ,'/ab\z/m' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/ab\Z/' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/ab\z/' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/ab$/' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/ab\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/ab\z/' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/ab$/' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/ab\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/ab\z/' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/ab$/' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/ab\Z/m' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/ab\z/m' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/ab$/m' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/ab\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/ab\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/ab$/m' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/ab\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/ab\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/ab$/m' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/ab\Z/' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/ab\z/' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/ab$/' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/ab\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/ab\z/' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/ab$/' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/ab\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/ab\z/' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/ab$/' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/ab\Z/m' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/ab\z/m' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/ab$/m' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/ab\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/ab\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/ab$/m' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/ab\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/ab\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/ab$/m' ) <> [] then pause,end +if regexp('abb'+lf+'b'+lf ,'/abb\Z/' ) <> [] then pause,end +if regexp('abb'+lf+'b'+lf ,'/abb\z/' ) <> [] then pause,end +if regexp('abb'+lf+'b'+lf ,'/abb$/' ) <> [] then pause,end +if regexp('b'+lf+'abb'+lf ,'/abb\z/' ) <> [] then pause,end +if regexp('abb'+lf+'b'+lf ,'/abb\Z/m' ) <> [] then pause,end +if regexp('abb'+lf+'b'+lf ,'/abb\z/m' ) <> [] then pause,end +if regexp('b'+lf+'abb'+lf ,'/abb\z/m' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/abb\Z/' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/abb\z/' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/abb$/' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/abb\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/abb\z/' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/abb$/' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/abb\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/abb\z/' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/abb$/' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/abb\Z/m' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/abb\z/m' ) <> [] then pause,end +if regexp('ac'+lf+'b'+lf ,'/abb$/m' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/abb\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/abb\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac'+lf ,'/abb$/m' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/abb\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/abb\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ac' ,'/abb$/m' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/abb\Z/' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/abb\z/' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/abb$/' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/abb\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/abb\z/' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/abb$/' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/abb\Z/' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/abb\z/' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/abb$/' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/abb\Z/m' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/abb\z/m' ) <> [] then pause,end +if regexp('ca'+lf+'b'+lf ,'/abb$/m' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/abb\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/abb\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca'+lf ,'/abb$/m' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/abb\Z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/abb\z/m' ) <> [] then pause,end +if regexp('b'+lf+'ca' ,'/abb$/m' ) <> [] then pause,end +if regexp('x' ,'/a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/') <> [] then pause,end +if regexp('foo.bart' ,'/foo.bart/' ) <> 1 then pause,end +if regexp('abcd'+lf+'dxxx' ,'/^d[x][x][x]/m' ) <> 6 then pause,end +if regexp('xxxtt' ,'/tt+$/' ) <> 4 then pause,end +if regexp('aaaXbX' ,'/\GX.*X/' ) <> [] then pause,end +if regexp('Changes' ,'/\.c(pp|xx|c)?$/i' ) <> [] then pause,end +if regexp('IO.c' ,'/\.c(pp|xx|c)?$/i' ) <> 3 then pause,end +if regexp('C:/' ,'/^([a-z]:)/' ) <> [] then pause,end +if regexp(lf+'x aa' ,'/^\S\s+aa$/m' ) <> 2 then pause,end +[start_pos, end_pos, match_str] = regexp(lf+'x aa' ,'/^\S\s+aa$/m' ); +if (start_pos <> 2) then pause,end +if (end_pos <> 5) then pause,end +if (match_str <> 'x aa') then pause,end +if regexp('ab' ,'/(^|a)b/' ) <> 1 then pause,end +if regexp('abcab' ,'/(\w)?(abc)\1b/' ) <> [] then pause,end +if regexp('a,b,c' ,'/^(?:.,){2}c/' ) <> 1 then pause,end +if regexp('a,b,c' ,'/^(?:[^,]*,){2}c/' ) <> 1 then pause,end +if regexp('' ,'/(?i)/' ) <> [] then pause,end +if regexp('a'+lf+'xb'+lf ,'/(?!\A)x/m' ) <> 3 then pause,end +if regexp('123'+lf+'abcabcabcabc'+lf ,'/^.{9}abc.*\n/m' ) <> 5 then pause,end +if regexp('a' ,'/^(a)?(?(1)a|b)+$/' ) <> [] then pause,end +if regexp('x1' ,'/^(0+)?(?:x(1))?/' ) <> 1 then pause,end +if regexp('012cxx0190' ,'/^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))?/') <> 1 then pause,end +if regexp('aaaacccc' ,'/((?:aaaa|bbbb)cccc)?/' ) <> 1 then pause,end +if regexp('bbbbcccc' ,'/((?:aaaa|bbbb)cccc)?/' ) <> 1 then pause,end +if regexp('a'+lf+'b'+lf ,'/b\s^/m' ) <> [] then pause,end +if regexp('a' ,'/\ba/' ) <> 1 then pause,end +if regexp('AbCd' ,'/ab(?i)cd/' ) <> [] then pause,end +if regexp('abCd' ,'/ab(?i)cd/' ) <> 1 then pause,end +if regexp('Oo' ,'/^(o)(?!.*\1)/i' ) <> [] then pause,end +if regexp('2' ,'/2(]*)?$\1/' ) <> 1 then pause,end +if regexp('......abef' ,'/.*a(?!(b|cd)*e).*f/' ) <> [] then pause,end +if regexp('fools' ,'/(foo|fool|x.|money|parted)$/' ) <> [] then pause,end +if regexp('fools' ,'/(x.|foo|fool|x.|money|parted|y.)$/' ) <> [] then pause,end +if regexp('fools' ,'/(foo|fool|money|parted)$/' ) <> [] then pause,end +//=================================================================== +if regexp('scilab-5.0' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> 1 then pause,end +if regexp('scilab-5.0.1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> 1 then pause,end +if regexp('scilab-5.0-alpha-1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> 1 then pause,end +if regexp('scilab-5.0-alpha1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> [] then pause,end +if regexp('scilab-5.0-rc1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> 1 then pause,end +if regexp('scilab-5.0-rc-1' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> [] then pause,end +if regexp('scilab-SE-trunk-27490' ,'/^scilab-[5-9].[0-9](.[0-9])?(-(alpha-|beta-|rc)([0-9])?)?$/') <> [] then pause,end +//=================================================================== +// Chinese +str = '世界您好'; +[s,e,m] = regexp(str,'/您好$/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/^世界/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/世界$/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/您好$/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/^您好/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/界您/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/界_您/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end +//=================================================================== +// Russian +str = 'привет мир'; +[s,e,m] = regexp(str,'/^привет/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/привет$/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/мир$/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/^мир/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/вет\sм/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/вет_м/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end +//=================================================================== +// Cyrilic +str = 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ'; + +[s,e,m] = regexp(str,'/^АБВГДЄЖЅЗИІКЛМНОПҀР/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/АБВГДЄЖЅЗИІКЛМНОПҀР$/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ$/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/^ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/ИІКЛМНОПҀРСТѸФХѠЦЧШЩЪ/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/ИІКЛМНОПҀ_РСТѸФХѠЦЧШЩЪ/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end +//=================================================================== +// Japanese +str = '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃'; + +[s,e,m] = regexp(str,'/^丑丞串乃之乎也云亘亙些亦/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/丑丞串乃之乎也云亘亙些亦$/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/凰凱函刹劉劫勁勃$/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/^凰凱函刹劉劫勁勃/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/亨亮仔伊伎伍伽佃佑伶侃/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/亨亮仔伊_伎伍伽佃佑伶侃/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end +//=================================================================== +// Thaï +str = 'มกระดุกกระดิก'; +[s,e,m] = regexp(str,'/^มกระดุกกร/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/มกระดุกกร$/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/กกระดิก$/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/^กกระดิก/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end + +[s,e,m] = regexp(str,'/ดุกก/'); +if part(str,s:e) <> m then pause,end + +[s,e,m] = regexp(str,'/ดุก_ก/'); +if s <> [] then pause,end +if e <> [] then pause,end +if m <> '' then pause,end +//=================================================================== + +// Subpatterns + +piString="3.14"; +[a,b,c,piStringSplit]=regexp(piString,"/(\d+)\.(\d+)/"); +assert_checkequal(piStringSplit(1),"3"); +assert_checkequal(piStringSplit(2),"14"); + +[a,b,c,d]=regexp('xabyabbbz','/ab(.*)b(.*)/'); +assert_checkequal(size(d), [1, 2]); + + + +// get host name from URL +myURL="http://www.scilab.org/download/"; +[a,b,c,d]=regexp(myURL,'@^(?:http://)?([^/]+)@i'); +assert_checkequal(d,"www.scilab.org"); + +str='foobar: 2012'; +// Using named subpatterns +[a,b,c,d]=regexp(str,'/(?P<name>\w+): (?P<digit>\d+)/'); +assert_checkequal(d(1),"foobar"); +assert_checkequal(d(2),"2012"); + diff --git a/modules/string/tests/unit_tests/regexp_pcre76.dia.ref b/modules/string/tests/unit_tests/regexp_pcre76.dia.ref new file mode 100755 index 000000000..1fb43c51b --- /dev/null +++ b/modules/string/tests/unit_tests/regexp_pcre76.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests regexp +//=============================== +// Comments about PCRE 7.6 see changelog PCRE +//7. Patterns such as (?(1)a|b) (a pattern that contains fewer subpatterns +// than the number used in the conditional) now cause a compile-time error. +// This is actually not compatible with Perl, which accepts such patterns, but +// treats the conditional as always being FALSE (as PCRE used to), but it +// seems to me that giving a diagnostic is better. +if execstr("regexp(''a'' ,''/(?(1)a|b)/'')","errcatch") <> 999 then bugmes();quit;end +if execstr("regexp(''a'',''/(?(?{0})a|b)/'')","errcatch") <> 999 then bugmes();quit;end +if execstr("regexp(''a'',''/(?(?{1})b|a)/'')","errcatch") <> 999 then bugmes();quit;end +if execstr("regexp(''a'',''/(?(1)b|a)/'')","errcatch") <> 999 then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/regexp_pcre76.tst b/modules/string/tests/unit_tests/regexp_pcre76.tst new file mode 100755 index 000000000..2762bb2f8 --- /dev/null +++ b/modules/string/tests/unit_tests/regexp_pcre76.tst @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests regexp +//=============================== +// Comments about PCRE 7.6 see changelog PCRE +//7. Patterns such as (?(1)a|b) (a pattern that contains fewer subpatterns +// than the number used in the conditional) now cause a compile-time error. +// This is actually not compatible with Perl, which accepts such patterns, but +// treats the conditional as always being FALSE (as PCRE used to), but it +// seems to me that giving a diagnostic is better. +if execstr("regexp(''a'' ,''/(?(1)a|b)/'')","errcatch") <> 999 then pause,end +if execstr("regexp(''a'',''/(?(?{0})a|b)/'')","errcatch") <> 999 then pause,end +if execstr("regexp(''a'',''/(?(?{1})b|a)/'')","errcatch") <> 999 then pause,end +if execstr("regexp(''a'',''/(?(1)b|a)/'')","errcatch") <> 999 then pause,end diff --git a/modules/string/tests/unit_tests/str2code.dia.ref b/modules/string/tests/unit_tests/str2code.dia.ref new file mode 100755 index 000000000..8aff4b280 --- /dev/null +++ b/modules/string/tests/unit_tests/str2code.dia.ref @@ -0,0 +1,17 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests str2code +//=============================== +if or(_str2code('abcdefghijklmnopqrstuvwxyz')<>(10:35)') then bugmes();quit;end +if or(_str2code('ABCDEFGHIJKLMNOPQRSTUVWXYZ')<>-(10:35)') then bugmes();quit;end +if or(_str2code('0123456789')<>(0:9)') then bugmes();quit;end +if _str2code(emptystr())<>[] then bugmes();quit;end +//=============================== +if _str2code('Scilab') <> [-28;12;18;21;10;11] then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/str2code.tst b/modules/string/tests/unit_tests/str2code.tst new file mode 100755 index 000000000..f4a95cc59 --- /dev/null +++ b/modules/string/tests/unit_tests/str2code.tst @@ -0,0 +1,19 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests str2code +//=============================== +if or(_str2code('abcdefghijklmnopqrstuvwxyz')<>(10:35)') then pause,end +if or(_str2code('ABCDEFGHIJKLMNOPQRSTUVWXYZ')<>-(10:35)') then pause,end +if or(_str2code('0123456789')<>(0:9)') then pause,end +if _str2code(emptystr())<>[] then pause,end +//=============================== +if _str2code('Scilab') <> [-28;12;18;21;10;11] then pause,end +//=============================== diff --git a/modules/string/tests/unit_tests/strcat.dia.ref b/modules/string/tests/unit_tests/strcat.dia.ref new file mode 100755 index 000000000..7d758cdbf --- /dev/null +++ b/modules/string/tests/unit_tests/strcat.dia.ref @@ -0,0 +1,50 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests strcat +//=============================== +if strcat(['abc','abd','aa','bxe'])<>'abcabdaabxe' then bugmes();quit;end +//=============================== +if strcat(['abc','abd';'aa','bxe'])<>'abcaaabdbxe' then bugmes();quit;end +//=============================== +if strcat(['abc';'abd';'aa';'bxe'])<>'abcabdaabxe' then bugmes();quit;end +//=============================== +if strcat(['abc','abd','aa','bxe'],',')<>'abc,abd,aa,bxe' then bugmes();quit;end +//=============================== +if strcat('abc')<>'abc' then bugmes();quit;end +//=============================== +if strcat('abc','sd')<>'abc' then bugmes();quit;end +//=============================== +if strcat('') <> '' then bugmes();quit;end +//=============================== +if strcat(['','']) <> '' then bugmes();quit;end +//=============================== +if strcat('','')<>'' then bugmes();quit;end +//=============================== +if strcat([])<>'' then bugmes();quit;end +//=============================== +if strcat([],'')<>'' then bugmes();quit;end +//=============================== +if execstr('strcat([],3)','errcatch') <> 246 then bugmes();quit;end +//=============================== +if strcat([],'3') <> '' then bugmes();quit;end +//=============================== +if strcat(['abc','abd','aa','bxe']) <> 'abc'+'abd'+'aa'+'bxe' then bugmes();quit;end +//=============================== +if strcat(['abc','abd','aa','bxe'],'')<>'abcabdaabxe' then bugmes();quit;end +//=============================== +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +NEW_TXT_A = strcat(txt); +NEW_TXT = strcat(NEW_TXT_A,'END OF FILE'); +if ( length(NEW_TXT) <>length(NEW_TXT_A) ) then bugmes();quit;end +//=============================== +if strcat(['abc','abd','aa','bxe'],'| , |')<>'abc| , |abd| , |aa| , |bxe' then bugmes();quit;end +if length(strcat(['abc','abd','aa','bxe'],'| , |')) <> 26 then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/strcat.tst b/modules/string/tests/unit_tests/strcat.tst new file mode 100755 index 000000000..e331715ae --- /dev/null +++ b/modules/string/tests/unit_tests/strcat.tst @@ -0,0 +1,52 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests strcat +//=============================== +if strcat(['abc','abd','aa','bxe'])<>'abcabdaabxe' then pause,end +//=============================== +if strcat(['abc','abd';'aa','bxe'])<>'abcaaabdbxe' then pause,end +//=============================== +if strcat(['abc';'abd';'aa';'bxe'])<>'abcabdaabxe' then pause,end +//=============================== +if strcat(['abc','abd','aa','bxe'],',')<>'abc,abd,aa,bxe' then pause,end +//=============================== +if strcat('abc')<>'abc' then pause,end +//=============================== +if strcat('abc','sd')<>'abc' then pause,end +//=============================== +if strcat('') <> '' then pause,end +//=============================== +if strcat(['','']) <> '' then pause,end +//=============================== +if strcat('','')<>'' then pause,end +//=============================== +if strcat([])<>'' then pause,end +//=============================== +if strcat([],'')<>'' then pause,end +//=============================== +if execstr('strcat([],3)','errcatch') <> 246 then pause,end +//=============================== +if strcat([],'3') <> '' then pause,end +//=============================== +if strcat(['abc','abd','aa','bxe']) <> 'abc'+'abd'+'aa'+'bxe' then pause,end +//=============================== +if strcat(['abc','abd','aa','bxe'],'')<>'abcabdaabxe' then pause,end +//=============================== +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +NEW_TXT_A = strcat(txt); +NEW_TXT = strcat(NEW_TXT_A,'END OF FILE'); +if ( length(NEW_TXT) <>length(NEW_TXT_A) ) then pause,end +//=============================== +if strcat(['abc','abd','aa','bxe'],'| , |')<>'abc| , |abd| , |aa| , |bxe' then pause,end +if length(strcat(['abc','abd','aa','bxe'],'| , |')) <> 26 then pause,end +//===============================
\ No newline at end of file diff --git a/modules/string/tests/unit_tests/strchr.dia.ref b/modules/string/tests/unit_tests/strchr.dia.ref new file mode 100755 index 000000000..6e13cb83d --- /dev/null +++ b/modules/string/tests/unit_tests/strchr.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +if strchr('Scilab','l') <> 'lab' then bugmes();quit;end +//=============================== +if strchr('Scilab',' ')<> '' then bugmes();quit;end +//=============================== +STR = 'Scilab string module'; +STR_MAT = [STR,STR;STR,STR]; +if strchr(STR_MAT,'l') <> ['lab string module','lab string module';'lab string module','lab string module'] then bugmes();quit;end +//=============================== +REF = ['le','string module';'ring module','ab string module']; +if strchr(STR_MAT,['l','s';'r','a']) <> REF then bugmes();quit;end +//=============================== +STR_MAT = ["STR1","STR2";"STR3","STR4"]; +if strchr(STR_MAT,["1","2";"3","4"]) <> ["1","2";"3","4"] then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/strchr.tst b/modules/string/tests/unit_tests/strchr.tst new file mode 100755 index 000000000..2fe890271 --- /dev/null +++ b/modules/string/tests/unit_tests/strchr.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +if strchr('Scilab','l') <> 'lab' then pause,end +//=============================== +if strchr('Scilab',' ')<> '' then pause,end +//=============================== +STR = 'Scilab string module'; +STR_MAT = [STR,STR;STR,STR]; +if strchr(STR_MAT,'l') <> ['lab string module','lab string module';'lab string module','lab string module'] then pause,end +//=============================== +REF = ['le','string module';'ring module','ab string module']; +if strchr(STR_MAT,['l','s';'r','a']) <> REF then pause,end +//=============================== +STR_MAT = ["STR1","STR2";"STR3","STR4"]; +if strchr(STR_MAT,["1","2";"3","4"]) <> ["1","2";"3","4"] then pause,end +//=============================== + diff --git a/modules/string/tests/unit_tests/strcmp.dia.ref b/modules/string/tests/unit_tests/strcmp.dia.ref new file mode 100755 index 000000000..eb3edf029 --- /dev/null +++ b/modules/string/tests/unit_tests/strcmp.dia.ref @@ -0,0 +1,32 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests strcmp +//=============================== +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +TXT = 'Scilab'; +//=============================== +if strcmp(TXT1,TXT2) <> [ 1 , -1 ; -1 , -1 ] then bugmes();quit;end +//=============================== +if strcmp(TXT1,TXT2,'s') <> [ 1 , -1 ; -1 , -1 ] then bugmes();quit;end +//=============================== +if strcmp(TXT1,TXT2,'i') <> [ 0 , 0 ; 0 , 0 ] then bugmes();quit;end +//=============================== + if strcmp(TXT1,TXT1,'i') <> [ 0 , 0 ; 0 , 0 ] then bugmes();quit;end + //=============================== + if strcmp(TXT2,TXT2,'s') <> [ 0 , 0 ; 0 , 0 ] then bugmes();quit;end + //=============================== + if strcmp(TXT1,TXT,'s') <> [ 1 , -1 ; 1 , -1 ] then bugmes();quit;end + //=============================== + if strcmp(TXT1,TXT,'i') <> [ 0 , 0 ; 0 , 0 ] then bugmes();quit;end + //=============================== + if strcmp('','','i') <> 0 then bugmes();quit;end + //=============================== + if strcmp('','','s') <> 0 then bugmes();quit;end + //=============================== diff --git a/modules/string/tests/unit_tests/strcmp.tst b/modules/string/tests/unit_tests/strcmp.tst new file mode 100755 index 000000000..986995e1d --- /dev/null +++ b/modules/string/tests/unit_tests/strcmp.tst @@ -0,0 +1,35 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests strcmp +//=============================== +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +TXT = 'Scilab'; +//=============================== +if strcmp(TXT1,TXT2) <> [ 1 , -1 ; -1 , -1 ] then pause,end +//=============================== +if strcmp(TXT1,TXT2,'s') <> [ 1 , -1 ; -1 , -1 ] then pause,end +//=============================== +if strcmp(TXT1,TXT2,'i') <> [ 0 , 0 ; 0 , 0 ] then pause,end +//=============================== + if strcmp(TXT1,TXT1,'i') <> [ 0 , 0 ; 0 , 0 ] then pause,end + //=============================== + if strcmp(TXT2,TXT2,'s') <> [ 0 , 0 ; 0 , 0 ] then pause,end + //=============================== + if strcmp(TXT1,TXT,'s') <> [ 1 , -1 ; 1 , -1 ] then pause,end + //=============================== + if strcmp(TXT1,TXT,'i') <> [ 0 , 0 ; 0 , 0 ] then pause,end + //=============================== + if strcmp('','','i') <> 0 then pause,end + //=============================== + if strcmp('','','s') <> 0 then pause,end + //=============================== +
\ No newline at end of file diff --git a/modules/string/tests/unit_tests/strcmpi.dia.ref b/modules/string/tests/unit_tests/strcmpi.dia.ref new file mode 100755 index 000000000..7cff51866 --- /dev/null +++ b/modules/string/tests/unit_tests/strcmpi.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests strcmpi +//=============================== +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +TXT = 'Scilab'; +//=============================== +if strcmpi(TXT1,TXT2) <> [ 0 , 0 ; 0 , 0 ] then bugmes();quit;end +//=============================== +if strcmpi(TXT1,TXT) <> [ 0 , 0 ; 17 , 17 ] then bugmes();quit;end +//=============================== +if strcmpi('','') <> 0 then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/strcmpi.tst b/modules/string/tests/unit_tests/strcmpi.tst new file mode 100755 index 000000000..a1d7d562a --- /dev/null +++ b/modules/string/tests/unit_tests/strcmpi.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests strcmpi +//=============================== +TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; +TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; +TXT = 'Scilab'; +//=============================== +if strcmpi(TXT1,TXT2) <> [ 0 , 0 ; 0 , 0 ] then pause,end +//=============================== +if strcmpi(TXT1,TXT) <> [ 0 , 0 ; 17 , 17 ] then pause,end +//=============================== +if strcmpi('','') <> 0 then pause,end +//=============================== +
\ No newline at end of file diff --git a/modules/string/tests/unit_tests/strcspn.dia.ref b/modules/string/tests/unit_tests/strcspn.dia.ref new file mode 100755 index 000000000..2d483b30b --- /dev/null +++ b/modules/string/tests/unit_tests/strcspn.dia.ref @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +if strcspn('fcba73','1234567890') <> 4 then bugmes();quit;end +//=============================== +if strcspn('fcba73','a') <> 3 then bugmes();quit;end +//=============================== +if strcspn('fcba73','') <> length('fcba73') then bugmes();quit;end +//=============================== +STR1 = 'Scilab'; +STR2 = 'The Numerical Tool for Engineers'; +STR = [STR1,STR2;STR2,STR1]; +if strcspn(STR,'i') <> [ 2 , 9 ; 9 , 2 ] then bugmes();quit;end +if strcspn(STR,'T') <> [ 6 , 0 ; 0 , 6 ] then bugmes();quit;end +if strcspn(STR,['i','T';'u','a']) <> [ 2 , 0 ; 5 , 4 ] then bugmes();quit;end +//=============================== +STR1 = 'Scilab'; +STR2 = 'The Numerical Tool for Engineers'; +STR = [STR1,STR2]; +if strcspn(STR,['i','T']) <> [ 2 , 0 ] then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/strcspn.tst b/modules/string/tests/unit_tests/strcspn.tst new file mode 100755 index 000000000..e0b890fa1 --- /dev/null +++ b/modules/string/tests/unit_tests/strcspn.tst @@ -0,0 +1,28 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +if strcspn('fcba73','1234567890') <> 4 then pause,end +//=============================== +if strcspn('fcba73','a') <> 3 then pause,end +//=============================== +if strcspn('fcba73','') <> length('fcba73') then pause,end +//=============================== +STR1 = 'Scilab'; +STR2 = 'The Numerical Tool for Engineers'; +STR = [STR1,STR2;STR2,STR1]; +if strcspn(STR,'i') <> [ 2 , 9 ; 9 , 2 ] then pause,end +if strcspn(STR,'T') <> [ 6 , 0 ; 0 , 6 ] then pause,end +if strcspn(STR,['i','T';'u','a']) <> [ 2 , 0 ; 5 , 4 ] then pause,end +//=============================== +STR1 = 'Scilab'; +STR2 = 'The Numerical Tool for Engineers'; +STR = [STR1,STR2]; +if strcspn(STR,['i','T']) <> [ 2 , 0 ] then pause,end +//=============================== diff --git a/modules/string/tests/unit_tests/strindex.dia.ref b/modules/string/tests/unit_tests/strindex.dia.ref new file mode 100755 index 000000000..e29ded3ff --- /dev/null +++ b/modules/string/tests/unit_tests/strindex.dia.ref @@ -0,0 +1,651 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests strindex +//=============================== +if or(strindex('abc,abd,aa,bxe',',')<>[4 8 11]) then bugmes();quit;end +if or(strindex('abc',',')<>[]) then bugmes();quit;end +if or(strindex('abc,abd,aa,bxe',',a')<>[4 8]) then bugmes();quit;end +if or(strindex('abc,abd,aa,bxe','a')<>[1 5 9 10]) then bugmes();quit;end +if strindex(emptystr(),'a')<>[] then bugmes();quit;end +//=============================== +[pos,which]=strindex('abc,abd,aa,bxe',','); +if or(pos<>[4 8 11])|or(which<>[1 1 1]) then bugmes();quit;end +[pos,which]=strindex('abc',','); +if or(pos<>[])|or(which<>[]) then bugmes();quit;end +[pos,which]=strindex('abc,abd,aa,bxe',',a'); +if or(pos<>[4 8])|or(which<>[1 1]) then bugmes();quit;end +[pos,which]=strindex('abc,abd,aa,bxe','a'); +if or(pos<>[1 5 9 10])|or(which<>[1 1 1 1]) then bugmes();quit;end +[pos,which]=strindex('','a'); +if or(pos<>[])|or(which<>[]) then bugmes();quit;end +//=============================== +[pos,which]=strindex('abc,cbd,aa,bxe',[',a',',b']); +if or(pos<>[8 11])|or(which<>[1 2]) then bugmes();quit;end +[pos,which]=strindex('abc,cbd,aa,bxe',[',a','bb']); +if or(pos<>[8])|or(which<>[1]) then bugmes();quit;end +//=============================== +rand('u');str=strcat(string(round(8*rand(1,5000))));s= string(0:9); +[pos,which]=strindex(str,s); +if part(str,pos)<>strcat(s(which)) then bugmes();quit;end +//=============================== +ref = [4 10]; +k=strindex('SCI/demos/scicos','/'); +if (k <> ref ) then bugmes();quit;end +//=============================== +ref = 1; +k=strindex('SCI/demos/scicos','SCI/'); +if (k <> ref ) then bugmes();quit;end +//=============================== +ref = []; +k=strindex('SCI/demos/scicos','!'); +if (k <> ref ) then bugmes();quit;end +//=============================== +ref = [1 2 3 4]; +k=strindex('aaaaa','aa'); +if (k <> ref ) then bugmes();quit;end +//=============================== +ref = [1 11]; +k=strindex('SCI/demos/scicos',['SCI','sci']); +if (k <> ref ) then bugmes();quit;end +//=============================== +refk = [2 4 8]; +refw = [1 3 4]; +[k,w]=strindex('1+3*abc/2.33',['+','-','*','/']); +if (k <> refk ) then bugmes();quit;end +if (w <> refw ) then bugmes();quit;end +//=============================== +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +//=============================== +if (strindex(txt(1),'scilab') <> []) then bugmes();quit;end +if (strindex(txt(1),'Scilab') <> [1 216]) then bugmes();quit;end +[ind1,ind2] = strindex(txt(1),'Scilab'); +//=============================== +if (ind1 <> [1 1]) then bugmes();quit;end +if (ind2 <> [1 216]) then bugmes();quit;end +//=============================== +if (strindex('',' ') <> []) then bugmes();quit;end +//=============================== +if (strindex([],' ') <> []) then bugmes();quit;end +//=============================== +a = 'd:\TRUNK\Dev-Tools\SE\Innosetup\script\Create_ISS.sce'; +[r1,r2] = strindex(a,['\',':']); +ref2 = [2. 1. 1. 1. 1. 1. 1.]; +ref1 = [2. 3. 9. 19. 22. 32. 39]; +if (ref2 <> r2) then bugmes();quit;end; +if (ref1 <> r1) then bugmes();quit;end; +//=============================== +ierr = execstr("strindex(''2'' ,''/2(]*)?$\1/'' ,''dummy'');","errcatch"); +if ierr <> 999 then bugmes();quit;end +//=============================== +lf = ascii(10); +if strindex('abc','/abc/','r') <> 1 then bugmes();quit;end +if strindex('xbc','/abc/','r') <> [] then bugmes();quit;end +if strindex('axc','/abc/','r') <> [] then bugmes();quit;end +if strindex('abx' ,'/abc/' ,'r') <> [] then bugmes();quit;end +if strindex('xabcy' ,'/abc/' ,'r') <> 2 then bugmes();quit;end +if strindex('ababc' ,'/abc/' ,'r') <> 3 then bugmes();quit;end +if strindex('abc' ,'/ab*c/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/ab*bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbc' ,'/ab*bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbbbc' ,'/ab*bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbbbc' ,'/.{1}/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbbbc' ,'/.{3,4}/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbbbc' ,'/ab{0,}bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbc' ,'/ab+bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/ab+bc/' ,'r') <> [] then bugmes();quit;end +if strindex('abq' ,'/ab+bc/' ,'r') <> [] then bugmes();quit;end +if strindex('abq' ,'/ab{1,}bc/' ,'r') <> [] then bugmes();quit;end +if strindex('abbbbc' ,'/ab+bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbbbc' ,'/ab{1,}bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbbbc' ,'/ab{1,3}bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbbbc' ,'/ab{3,4}bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbbbc' ,'/ab{4,5}bc/' ,'r') <> [] then bugmes();quit;end +if strindex('abbc' ,'/ab?bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/ab?bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/ab{0,1}bc/' ,'r') <> 1 then bugmes();quit;end +if strindex('abbbbc' ,'/ab?bc/' ,'r') <> [] then bugmes();quit;end +if strindex('abc' ,'/ab?c/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/ab{0,1}c/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/^abc$/' ,'r') <> 1 then bugmes();quit;end +if strindex('abcc' ,'/^abc$/' ,'r') <> [] then bugmes();quit;end +if strindex('abcc' ,'/^abc/' ,'r') <> 1 then bugmes();quit;end +if strindex('aabc' ,'/^abc$/' ,'r') <> [] then bugmes();quit;end +if strindex('aabc' ,'/abc$/' ,'r') <> 2 then bugmes();quit;end +if strindex('aabcd' ,'/abc$/' ,'r') <> [] then bugmes();quit;end +if strindex('abc' ,'/a.c/' ,'r') <> 1 then bugmes();quit;end +if strindex('axc' ,'/a.c/' ,'r') <> 1 then bugmes();quit;end +if strindex('axyzc' ,'/a.*c/' ,'r') <> 1 then bugmes();quit;end +if strindex('axyzd' ,'/a.*c/' ,'r') <> [] then bugmes();quit;end +if strindex('abc' ,'/a[bc]d/' ,'r') <> [] then bugmes();quit;end +if strindex('abd' ,'/a[bc]d/' ,'r') <> 1 then bugmes();quit;end +if strindex('abd' ,'/a[b-d]e/' ,'r') <> [] then bugmes();quit;end +if strindex('ace' ,'/a[b-d]e/' ,'r') <> 1 then bugmes();quit;end +if strindex('aac' ,'/a[b-d]/' ,'r') <> 2 then bugmes();quit;end +if strindex('a-' ,'/a[-b]/' ,'r') <> 1 then bugmes();quit;end +if strindex('a-' ,'/a[b-]/' ,'r') <> 1 then bugmes();quit;end +if strindex('a]' ,'/a]/' ,'r') <> 1 then bugmes();quit;end +if strindex('a]b' ,'/a[]]b/' ,'r') <> 1 then bugmes();quit;end +if strindex('aed' ,'/a[^bc]d/' ,'r') <> 1 then bugmes();quit;end +if strindex('abd' ,'/a[^bc]d/' ,'r') <> [] then bugmes();quit;end +if strindex('adc' ,'/a[^-b]c/' ,'r') <> 1 then bugmes();quit;end +if strindex('a-c' ,'/a[^-b]c/' ,'r') <> [] then bugmes();quit;end +if strindex('a]c' ,'/a[^]b]c/' ,'r') <> [] then bugmes();quit;end +if strindex('adc' ,'/a[^]b]c/' ,'r') <> 1 then bugmes();quit;end +if strindex('a-' ,'/\ba\b/' ,'r') <> 1 then bugmes();quit;end +if strindex('-a' ,'/\ba\b/' ,'r') <> 2 then bugmes();quit;end +if strindex('-a-' ,'/\ba\b/' ,'r') <> 2 then bugmes();quit;end +if strindex('xy' ,'/\by\b/' ,'r') <> [] then bugmes();quit;end +if strindex('yz' ,'/\by\b/' ,'r') <> [] then bugmes();quit;end +if strindex('xyz' ,'/\by\b/' ,'r') <> [] then bugmes();quit;end +if strindex('a-' ,'/\Ba\B/' ,'r') <> [] then bugmes();quit;end +if strindex('-a' ,'/\Ba\B/' ,'r') <> [] then bugmes();quit;end +if strindex('-a-' ,'/\Ba\B/' ,'r') <> [] then bugmes();quit;end +if strindex('xy' ,'/\By\b/' ,'r') <> 2 then bugmes();quit;end +if strindex('xy' ,'/\By\b/' ,'r') <> 2 then bugmes();quit;end +if strindex('yz' ,'/\by\B/' ,'r') <> 1 then bugmes();quit;end +if strindex('xyz' ,'/\By\B/' ,'r') <> 2 then bugmes();quit;end +if strindex('a' ,'/\w/' ,'r') <> 1 then bugmes();quit;end +if strindex('-' ,'/\w/' ,'r') <> [] then bugmes();quit;end +if strindex('a' ,'/\W/' ,'r') <> [] then bugmes();quit;end +if strindex('-' ,'/\W/' ,'r') <> 1 then bugmes();quit;end +if strindex('a b' ,'/a\sb/' ,'r') <> 1 then bugmes();quit;end +if strindex('a-b' ,'/a\sb/' ,'r') <> [] then bugmes();quit;end +if strindex('a b' ,'/a\Sb/' ,'r') <> [] then bugmes();quit;end +if strindex('a-b' ,'/a\Sb/' ,'r') <> 1 then bugmes();quit;end +if strindex('1' ,'/\d/' ,'r') <> 1 then bugmes();quit;end +if strindex('-' ,'/\d/' ,'r') <> [] then bugmes();quit;end +if strindex('1' ,'/\D/' ,'r') <> [] then bugmes();quit;end +if strindex('-' ,'/\D/' ,'r') <> 1 then bugmes();quit;end +if strindex('a' ,'/[\w]/' ,'r') <> 1 then bugmes();quit;end +if strindex('-' ,'/[\w]/' ,'r') <> [] then bugmes();quit;end +if strindex('a' ,'/[\W]/' ,'r') <> [] then bugmes();quit;end +if strindex('-' ,'/[\W]/' ,'r') <> 1 then bugmes();quit;end +if strindex('a b' ,'/a[\s]b/' ,'r') <> 1 then bugmes();quit;end +if strindex('a-b' ,'/a[\s]b/' ,'r') <> [] then bugmes();quit;end +if strindex('a b' ,'/a[\S]b/' ,'r') <> [] then bugmes();quit;end +if strindex('a-b' ,'/a[\S]b/' ,'r') <> 1 then bugmes();quit;end +if strindex('1' ,'/[\d]/' ,'r') <> 1 then bugmes();quit;end +if strindex('-' ,'/[\d]/' ,'r') <> [] then bugmes();quit;end +if strindex('1' ,'/[\D]/' ,'r') <> [] then bugmes();quit;end +if strindex('-' ,'/[\D]/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/ab|cd/' ,'r') <> 1 then bugmes();quit;end +if strindex('abcd' ,'/ab|cd/' ,'r') <> 1 then bugmes();quit;end +if strindex('b' ,'/$b/' ,'r') <> [] then bugmes();quit;end +if strindex('ab' ,'/a\(*b/' ,'r') <> 1 then bugmes();quit;end +if strindex('a((b' ,'/a\(*b/' ,'r') <> 1 then bugmes();quit;end +if strindex('aabbabc' ,'/a+b+c/' ,'r') <> 5 then bugmes();quit;end +if strindex('aabbabc' ,'/a{1,}b{1,}c/' ,'r') <> 5 then bugmes();quit;end +if strindex('abcabc' ,'/a.+?c/' ,'r') <> 1 then bugmes();quit;end +if strindex('cde' ,'/[^ab]*/' ,'r') <> 1 then bugmes();quit;end +if strindex('' ,'/abc/' ,'r') <> [] then bugmes();quit;end +if strindex('' ,'/a*/' ,'r') <> [] then bugmes();quit;end +if strindex('e' ,'/a|b|c|d|e/' ,'r') <> 1 then bugmes();quit;end +if strindex('abcdefg' ,'/abcd*efg/' ,'r') <> 1 then bugmes();quit;end +if strindex('xabyabbbz' ,'/ab*/' ,'r') <> 2 then bugmes();quit;end +if strindex('xayabbbz' ,'/ab*/' ,'r') <> 2 then bugmes();quit;end +if strindex('hij' ,'/[abhgefdc]ij/' ,'r') <> 1 then bugmes();quit;end +if strindex('abcde' ,'/^(ab|cd)e/' ,'r') <> [] then bugmes();quit;end +if strindex('adcdcde' ,'/a[bcd]*dcdcde/' ,'r') <> 1 then bugmes();quit;end +if strindex('adcdcde' ,'/a[bcd]+dcdcde/' ,'r') <> [] then bugmes();quit;end +if strindex('alpha' ,'/[a-zA-Z_][a-zA-Z0-9_]*/' ,'r') <> 1 then bugmes();quit;end +if strindex('effg' ,'/(bc+d$|ef*g.|h?i(j|k))/' ,'r') <> [] then bugmes();quit;end +if strindex('bcdd' ,'/(bc+d$|ef*g.|h?i(j|k))/' ,'r') <> [] then bugmes();quit;end +if strindex('aa' ,'/((((((((((a))))))))))\10/' ,'r') <> 1 then bugmes();quit;end +if strindex('aa' ,'/((((((((((a))))))))))\041/' ,'r') <> [] then bugmes();quit;end +if strindex('a!' ,'/((((((((((a))))))))))\041/' ,'r') <> 1 then bugmes();quit;end +if strindex('a' ,'/(((((((((a)))))))))/' ,'r') <> 1 then bugmes();quit;end +if strindex('uh-uh' ,'/multiple words of text/' ,'r') <> [] then bugmes();quit;end +if strindex('multiple words, yeah' ,'/multiple words/' ,'r') <> 1 then bugmes();quit;end +if strindex('ab' ,'/[k]/' ,'r') <> [] then bugmes();quit;end +if strindex('ac' ,'/a[-]?c/' ,'r') <> 1 then bugmes();quit;end +if strindex('a' ,'/(a)|\1/' ,'r') <> 1 then bugmes();quit;end +if strindex('x' ,'/(a)|\1/' ,'r') <> [] then bugmes();quit;end +if strindex('aaxabxbaxbbx' ,'/((\3|b)\2(a)x)+/' ,'r') <> [] then bugmes();quit;end +if strindex('ABC' ,'/abc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('XBC' ,'/abc/i' ,'r') <> [] then bugmes();quit;end +if strindex('AXC' ,'/abc/i' ,'r') <> [] then bugmes();quit;end +if strindex('ABX' ,'/abc/i' ,'r') <> [] then bugmes();quit;end +if strindex('XABCY' ,'/abc/i' ,'r') <> 2 then bugmes();quit;end +if strindex('ABABC' ,'/abc/i' ,'r') <> 3 then bugmes();quit;end +if strindex('ABC' ,'/ab*c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABC' ,'/ab*bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABBC' ,'/ab*bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABBBBC' ,'/ab*?bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABBBBC' ,'/ab{0,}?bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABBC' ,'/ab+?bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABC' ,'/ab+bc/i' ,'r') <> [] then bugmes();quit;end +if strindex('ABQ' ,'/ab+bc/i' ,'r') <> [] then bugmes();quit;end +if strindex('ABQ' ,'/ab{1,}bc/i' ,'r') <> [] then bugmes();quit;end +if strindex('ABBBBC' ,'/ab+bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABBBBC' ,'/ab{1,}?bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABBBBC' ,'/ab{1,3}?bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABBBBC' ,'/ab{3,4}?bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABBBBC' ,'/ab{4,5}?bc/i' ,'r') <> [] then bugmes();quit;end +if strindex('ABBC' ,'/ab??bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABC' ,'/ab??bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABC' ,'/ab{0,1}?bc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABBBBC' ,'/ab??bc/i' ,'r') <> [] then bugmes();quit;end +if strindex('ABC' ,'/ab??c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABC' ,'/ab{0,1}?c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABC' ,'/^abc$/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABCC' ,'/^abc$/i' ,'r') <> [] then bugmes();quit;end +if strindex('ABCC' ,'/^abc/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AABC' ,'/^abc$/i' ,'r') <> [] then bugmes();quit;end +if strindex('AABC' ,'/abc$/i' ,'r') <> 2 then bugmes();quit;end +if strindex('ABC' ,'/a.c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AXC' ,'/a.c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AXYZC' ,'/a.*?c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AXYZD' ,'/a.*c/i' ,'r') <> [] then bugmes();quit;end +if strindex('ABC' ,'/a[bc]d/i' ,'r') <> [] then bugmes();quit;end +if strindex('ABD' ,'/a[bc]d/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABD' ,'/a[b-d]e/i' ,'r') <> [] then bugmes();quit;end +if strindex('ACE' ,'/a[b-d]e/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AAC' ,'/a[b-d]/i' ,'r') <> 2 then bugmes();quit;end +if strindex('A-' ,'/a[-b]/i' ,'r') <> 1 then bugmes();quit;end +if strindex('A-' ,'/a[b-]/i' ,'r') <> 1 then bugmes();quit;end +if strindex('A]' ,'/a]/i' ,'r') <> 1 then bugmes();quit;end +if strindex('A]B' ,'/a[]]b/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AED' ,'/a[^bc]d/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABD' ,'/a[^bc]d/i' ,'r') <> [] then bugmes();quit;end +if strindex('ADC' ,'/a[^-b]c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('A-C' ,'/a[^-b]c/i' ,'r') <> [] then bugmes();quit;end +if strindex('A]C' ,'/a[^]b]c/i' ,'r') <> [] then bugmes();quit;end +if strindex('ADC' ,'/a[^]b]c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABC' ,'/ab|cd/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABCD' ,'/ab|cd/i' ,'r') <> 1 then bugmes();quit;end +if strindex('B' ,'/$b/i' ,'r') <> [] then bugmes();quit;end +if strindex('AB' ,'/a\(*b/i' ,'r') <> 1 then bugmes();quit;end +if strindex('A((B' ,'/a\(*b/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AABBABC' ,'/a+b+c/i' ,'r') <> 5 then bugmes();quit;end +if strindex('AABBABC' ,'/a{1,}b{1,}c/i' ,'r') <> 5 then bugmes();quit;end +if strindex('ABCABC' ,'/a.+?c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABCABC' ,'/a.*?c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABCABC' ,'/a.{0,5}?c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('CDE' ,'/[^ab]*/i' ,'r') <> 1 then bugmes();quit;end +if strindex('' ,'/abc/i' ,'r') <> [] then bugmes();quit;end +if strindex('' ,'/a*/i' ,'r') <> [] then bugmes();quit;end +if strindex('E' ,'/a|b|c|d|e/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABCDEFG' ,'/abcd*efg/i' ,'r') <> 1 then bugmes();quit;end +if strindex('XABYABBBZ' ,'/ab*/i' ,'r') <> 2 then bugmes();quit;end +if strindex('XAYABBBZ' ,'/ab*/i' ,'r') <> 2 then bugmes();quit;end +if strindex('HIJ' ,'/[abhgefdc]ij/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ABCDE' ,'/^(ab|cd)e/i' ,'r') <> [] then bugmes();quit;end +if strindex('ADCDCDE' ,'/a[bcd]*dcdcde/i' ,'r') <> 1 then bugmes();quit;end +if strindex('ADCDCDE' ,'/a[bcd]+dcdcde/i' ,'r') <> [] then bugmes();quit;end +if strindex('ALPHA' ,'/[a-zA-Z_][a-zA-Z0-9_]*/i' ,'r') <> 1 then bugmes();quit;end +if strindex('EFFG' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ,'r') <> [] then bugmes();quit;end +if strindex('BCDD' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ,'r') <> [] then bugmes();quit;end +if strindex('AA' ,'/((((((((((a))))))))))\10/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AA' ,'/((((((((((a))))))))))\041/i' ,'r') <> [] then bugmes();quit;end +if strindex('A!' ,'/((((((((((a))))))))))\041/i' ,'r') <> 1 then bugmes();quit;end +if strindex('A' ,'/(((((((((a)))))))))/i' ,'r') <> 1 then bugmes();quit;end +if strindex('UH-UH' ,'/multiple words of text/i' ,'r') <> [] then bugmes();quit;end +if strindex('MULTIPLE WORDS, YEAH' ,'/multiple words/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AB' ,'/[k]/i' ,'r') <> [] then bugmes();quit;end +if strindex('AC' ,'/a[-]?c/i' ,'r') <> 1 then bugmes();quit;end +if strindex('abad' ,'/a(?!b)./' ,'r') <> 3 then bugmes();quit;end +if strindex('abad' ,'/a(?=d)./' ,'r') <> 3 then bugmes();quit;end +if strindex('abad' ,'/a(?=c|d)./' ,'r') <> 3 then bugmes();quit;end +if strindex('<&OUT' ,'/^[<>]&/' ,'r') <> 1 then bugmes();quit;end +if strindex('aaaaaaaaa' ,'/^(a\1?){4}$/' ,'r') <> [] then bugmes();quit;end +if strindex('aaaaaaaaaaa' ,'/^(a\1?){4}$/' ,'r') <> [] then bugmes();quit;end +if strindex('aaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ,'r') <> [] then bugmes();quit;end +if strindex('aaaaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ,'r') <> [] then bugmes();quit;end +if strindex('ab' ,'/(?<=a)b/' ,'r') <> 2 then bugmes();quit;end +if strindex('cb' ,'/(?<=a)b/' ,'r') <> [] then bugmes();quit;end +if strindex('b' ,'/(?<=a)b/' ,'r') <> [] then bugmes();quit;end +if strindex('ab' ,'/(?<!c)b/' ,'r') <> 2 then bugmes();quit;end +if strindex('cb' ,'/(?<!c)b/' ,'r') <> [] then bugmes();quit;end +if strindex('b' ,'/(?<!c)b/' ,'r') <> 1 then bugmes();quit;end +if strindex('b' ,'/(?<!c)b/' ,'r') <> 1 then bugmes();quit;end +if strindex('aba' ,'/(?:..)*a/' ,'r') <> 1 then bugmes();quit;end +if strindex('aba' ,'/(?:..)*?a/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/^(?:b|a(?=(.)))*\1/' ,'r') <> 1 then bugmes();quit;end +if strindex('ab' ,'/(?:(?i)a)b/' ,'r') <> 1 then bugmes();quit;end +if strindex('Ab' ,'/(?:(?i)a)b/' ,'r') <> 1 then bugmes();quit;end +if strindex('aB' ,'/(?:(?i)a)b/' ,'r') <> [] then bugmes();quit;end +if strindex('aB' ,'/((?i)a)b/' ,'r') <> [] then bugmes();quit;end +if strindex('ab' ,'/(?i:a)b/' ,'r') <> 1 then bugmes();quit;end +if strindex('Ab' ,'/(?i:a)b/' ,'r') <> 1 then bugmes();quit;end +if strindex('aB' ,'/(?i:a)b/' ,'r') <> [] then bugmes();quit;end +if strindex('aB' ,'/((?i:a))b/' ,'r') <> [] then bugmes();quit;end +if strindex('ab' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then bugmes();quit;end +if strindex('aB' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then bugmes();quit;end +if strindex('Ab' ,'/(?:(?-i)a)b/i' ,'r') <> [] then bugmes();quit;end +if strindex('Ab' ,'/((?-i)a)b/i' ,'r') <> [] then bugmes();quit;end +if strindex('aB' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AB' ,'/(?:(?-i)a)b/i' ,'r') <> [] then bugmes();quit;end +if strindex('AB' ,'/((?-i)a)b/i' ,'r') <> [] then bugmes();quit;end +if strindex('ab' ,'/(?-i:a)b/i' ,'r') <> 1 then bugmes();quit;end +if strindex('aB' ,'/(?-i:a)b/i' ,'r') <> 1 then bugmes();quit;end +if strindex('Ab' ,'/(?-i:a)b/i' ,'r') <> [] then bugmes();quit;end +if strindex('Ab' ,'/((?-i:a))b/i' ,'r') <> [] then bugmes();quit;end +if strindex('aB' ,'/(?-i:a)b/i' ,'r') <> 1 then bugmes();quit;end +if strindex('AB' ,'/(?-i:a)b/i' ,'r') <> [] then bugmes();quit;end +if strindex('AB' ,'/((?-i:a))b/i' ,'r') <> [] then bugmes();quit;end +if strindex('a'+lf+'B' ,'/((?-i:a.))b/i' ,'r') <> [] then bugmes();quit;end +if strindex('B'+lf+'B' ,'/((?s-i:a.))b/i' ,'r') <> [] then bugmes();quit;end +if strindex('cabbbb' ,'/(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/','r') <> 1 then bugmes();quit;end +if strindex('caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb','/(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/','r') <> 1 then bugmes();quit;end +if strindex('foobar1234baz' ,'/foo\w*\d{4}baz/' ,'r') <> 1 then bugmes();quit;end +if strindex('x~~' ,'/x(~~)*(?:(?:F)?)?/' ,'r') <> 1 then bugmes();quit;end +if strindex('aaac' ,'/^a(?#xxx){3}c/' ,'r') <> 1 then bugmes();quit;end +if strindex('aaac' ,'/^a (?#xxx) (?#yyy) {3}c/x' ,'r') <> 1 then bugmes();quit;end +if strindex('dbcb' ,'/(?<![cd])b/' ,'r') <> [] then bugmes();quit;end +if strindex('dbaacb' ,'/(?<![cd])[ab]/' ,'r') <> 3 then bugmes();quit;end +if strindex('dbcb' ,'/(?<!(c|d))b/' ,'r') <> [] then bugmes();quit;end +if strindex('dbaacb' ,'/(?<!(c|d))[ab]/' ,'r') <> 3 then bugmes();quit;end +if strindex('cdaccb' ,'/(?<!cd)[ab]/' ,'r') <> 6 then bugmes();quit;end +if strindex('a--' ,'/^(?:a?b?)*$/' ,'r') <> [] then bugmes();quit;end +if strindex('a'+lf+'b'+lf ,'/(?m)^b/' ,'r') <> 3 then bugmes();quit;end +if strindex('a'+lf+'b'+lf+'c'+lf ,'/^b/' ,'r') <> [] then bugmes();quit;end +if strindex('a'+lf+'b'+lf+'c'+lf ,'/()^b/' ,'r') <> [] then bugmes();quit;end +if strindex('a' ,'/(x)?(?(1)a|b)/' ,'r') <> [] then bugmes();quit;end +if strindex('a' ,'/(x)?(?(1)b|a)/' ,'r') <> 1 then bugmes();quit;end +if strindex('a' ,'/()?(?(1)b|a)/' ,'r') <> 1 then bugmes();quit;end +if strindex('a' ,'/()(?(1)b|a)/' ,'r') <> [] then bugmes();quit;end +if strindex('a' ,'/()?(?(1)a|b)/' ,'r') <> 1 then bugmes();quit;end +if strindex('blah)' ,'/^(\()?blah(?(1)(\)))$/' ,'r') <> [] then bugmes();quit;end +if strindex('(blah' ,'/^(\()?blah(?(1)(\)))$/' ,'r') <> [] then bugmes();quit;end +if strindex('blah)' ,'/^(\(+)?blah(?(1)(\)))$/' ,'r') <> [] then bugmes();quit;end +if strindex('(blah' ,'/^(\(+)?blah(?(1)(\)))$/' ,'r') <> [] then bugmes();quit;end +if strindex('a' ,'/(?(?!a)a|b)/' ,'r') <> [] then bugmes();quit;end +if strindex('a' ,'/(?(?!a)b|a)/' ,'r') <> 1 then bugmes();quit;end +if strindex('a' ,'/(?(?=a)b|a)/' ,'r') <> [] then bugmes();quit;end +if strindex('a' ,'/(?(?=a)a|b)/' ,'r') <> 1 then bugmes();quit;end +if strindex('aaab' ,'/^(?=(a+?))\1ab/' ,'r') <> [] then bugmes();quit;end +if strindex('aaab' ,'/^(?=(a+?))\1ab/' ,'r') <> [] then bugmes();quit;end +if strindex('abcd:' ,'/([\w:]+::)?(\w+)$/' ,'r') <> [] then bugmes();quit;end +if strindex('abcd:' ,'/([\w:]+::)?(\w+)$/' ,'r') <> [] then bugmes();quit;end +if strindex('aaab' ,'/(>a+)ab/' ,'r') <> [] then bugmes();quit;end +if strindex('aaab' ,'/(?>a+)b/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/[a[:]b[:c]/' ,'r') <> 1 then bugmes();quit;end +if strindex('abc' ,'/[a[:]b[:c]/' ,'r') <> 1 then bugmes();quit;end +if strindex('((abc(ade)ufh()()x' ,'/((?>[^()]+)|\([^()]*\))+/' ,'r') <> 3 then bugmes();quit;end +if strindex('a'+lf+'b'+lf ,'/a\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('a'+lf+'b'+lf ,'/a\z/' ,'r') <> [] then bugmes();quit;end +if strindex('a'+lf+'b'+lf ,'/a$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'a'+lf ,'/a\z/' ,'r') <> [] then bugmes();quit;end +if strindex('a'+lf+'b'+lf ,'/a\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('a'+lf+'b'+lf ,'/a\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'a'+lf ,'/a\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('aa'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('aa'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if strindex('aa'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'aa'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if strindex('aa'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('aa'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'aa'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/aa\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/aa\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/aa$/' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/aa\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/aa\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/aa$/m' ,'r') <> [] then bugmes();quit;end +if strindex('ab'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('ab'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if strindex('ab'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ab'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if strindex('ab'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ab'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ab'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/ab\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/ab\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/ab$/' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/ab\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/ab\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/ab$/m' ,'r') <> [] then bugmes();quit;end +if strindex('abb'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('abb'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if strindex('abb'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'abb'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if strindex('abb'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('abb'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'abb'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ac'+lf+'b'+lf ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac'+lf ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ac' ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/abb\Z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/abb\z/' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/abb$/' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('ca'+lf+'b'+lf ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca'+lf ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/abb\Z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/abb\z/m' ,'r') <> [] then bugmes();quit;end +if strindex('b'+lf+'ca' ,'/abb$/m' ,'r') <> [] then bugmes();quit;end +if strindex('x' ,'/a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/','r') <> [] then bugmes();quit;end +if strindex('foo.bart' ,'/foo.bart/' ,'r') <> 1 then bugmes();quit;end +if strindex('abcd'+lf+'dxxx' ,'/^d[x][x][x]/m' ,'r') <> 6 then bugmes();quit;end +if strindex('xxxtt' ,'/tt+$/' ,'r') <> 4 then bugmes();quit;end +if strindex('aaaXbX' ,'/\GX.*X/' ,'r') <> [] then bugmes();quit;end +if strindex('Changes' ,'/\.c(pp|xx|c)?$/i' ,'r') <> [] then bugmes();quit;end +if strindex('IO.c' ,'/\.c(pp|xx|c)?$/i' ,'r') <> 3 then bugmes();quit;end +if strindex('C:/' ,'/^([a-z]:)/' ,'r') <> [] then bugmes();quit;end +if strindex(lf+'x aa' ,'/^\S\s+aa$/m' ,'r') <> 2 then bugmes();quit;end +[k,w] = strindex(lf+'x aa' ,'/^\S\s+aa$/m' ,'r'); +if k <> 2 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +if strindex('ab' ,'/(^|a)b/' ,'r') <> 1 then bugmes();quit;end +if strindex('abcab' ,'/(\w)?(abc)\1b/' ,'r') <> [] then bugmes();quit;end +if strindex('a,b,c' ,'/^(?:.,){2}c/' ,'r') <> 1 then bugmes();quit;end +if strindex('a,b,c' ,'/^(?:[^,]*,){2}c/' ,'r') <> 1 then bugmes();quit;end +if strindex('' ,'/(?i)/' ,'r') <> [] then bugmes();quit;end +if strindex('a'+lf+'xb'+lf ,'/(?!\A)x/m' ,'r') <> 3 then bugmes();quit;end +if strindex('123'+lf+'abcabcabcabc'+lf ,'/^.{9}abc.*\n/m' ,'r') <> 5 then bugmes();quit;end +if strindex('a' ,'/^(a)?(?(1)a|b)+$/' ,'r') <> [] then bugmes();quit;end +if strindex('x1' ,'/^(0+)?(?:x(1))?/' ,'r') <> 1 then bugmes();quit;end +if strindex('012cxx0190' ,'/^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))?/','r') <> 1 then bugmes();quit;end +if strindex('aaaacccc' ,'/((?:aaaa|bbbb)cccc)?/' ,'r') <> 1 then bugmes();quit;end +if strindex('bbbbcccc' ,'/((?:aaaa|bbbb)cccc)?/' ,'r') <> 1 then bugmes();quit;end +if strindex('a'+lf+'b'+lf ,'/b\s^/m' ,'r') <> [] then bugmes();quit;end +if strindex('a' ,'/\ba/' ,'r') <> 1 then bugmes();quit;end +if strindex('AbCd' ,'/ab(?i)cd/' ,'r') <> [] then bugmes();quit;end +if strindex('abCd' ,'/ab(?i)cd/' ,'r') <> 1 then bugmes();quit;end +if strindex('Oo' ,'/^(o)(?!.*\1)/i' ,'r') <> [] then bugmes();quit;end +if strindex('2' ,'/2(]*)?$\1/' ,'r') <> 1 then bugmes();quit;end +if strindex('......abef' ,'/.*a(?!(b|cd)*e).*f/' ,'r') <> [] then bugmes();quit;end +if strindex('fools' ,'/(foo|fool|x.|money|parted)$/' ,'r') <> [] then bugmes();quit;end +if strindex('fools' ,'/(x.|foo|fool|x.|money|parted|y.)$/' ,'r') <> [] then bugmes();quit;end +if strindex('fools' ,'/(foo|fool|money|parted)$/' ,'r') <> [] then bugmes();quit;end +//======================================================================================== +// Chinese +str = '世界您好'; +[r,w] = strindex(str,'/^世界/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/世界$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/您好$/','r'); +if r <> 3 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/^您好/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/界您/','r'); +if r <> 2 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'界您'); +if r <> 2 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/界_您/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== +// Russian +str = 'привет мир'; +[r,w] = strindex(str,'/^привет/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/привет$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/мир$/','r'); +if r <> 8 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/^мир/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/вет\sм/','r'); +if r <> 4 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/вет_м/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== +// Cyrilic +str = 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ'; +[r,w] = strindex(str,'/^АБВГДЄЖЅЗИІКЛМНОПҀР/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/АБВГДЄЖЅЗИІКЛМНОПҀР$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ$/','r'); +if r <> 27 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/^ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/ИІКЛМНОПҀРСТѸФХѠЦЧШЩЪ/','r'); +if r <> 10 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/ИІКЛМНОПҀ_РСТѸФХѠЦЧШЩЪ/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== +// Japanese +str = '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃'; +[r,w] = strindex(str,'/^丑丞串乃之乎也云亘亙些亦/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/丑丞串乃之乎也云亘亙些亦$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/凰凱函刹劉劫勁勃$/','r'); +if r <> 53 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/^凰凱函刹劉劫勁勃/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/亨亮仔伊伎伍伽佃佑伶侃/','r'); +if r <> 14 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/亨亮仔伊_伎伍伽佃佑伶侃/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== +// Thaï +str = 'มกระดุกกระดิก'; +[r,w] = strindex(str,'/^มกระดุกกร/','r'); +if r <> 1 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/มกระดุกกร$/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/กกระดิก$/','r'); +if r <> 7 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/^กกระดิก/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +[r,w] = strindex(str,'/ดุกก/','r'); +if r <> 5 then bugmes();quit;end +if w <> 1 then bugmes();quit;end +[r,w] = strindex(str,'/ดุก_ก/','r'); +if r <> [] then bugmes();quit;end +if w <> [] then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/unit_tests/strindex.tst b/modules/string/tests/unit_tests/strindex.tst new file mode 100755 index 000000000..190a9018e --- /dev/null +++ b/modules/string/tests/unit_tests/strindex.tst @@ -0,0 +1,682 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests strindex +//=============================== +if or(strindex('abc,abd,aa,bxe',',')<>[4 8 11]) then pause,end +if or(strindex('abc',',')<>[]) then pause,end +if or(strindex('abc,abd,aa,bxe',',a')<>[4 8]) then pause,end +if or(strindex('abc,abd,aa,bxe','a')<>[1 5 9 10]) then pause,end +if strindex(emptystr(),'a')<>[] then pause,end +//=============================== +[pos,which]=strindex('abc,abd,aa,bxe',','); +if or(pos<>[4 8 11])|or(which<>[1 1 1]) then pause,end +[pos,which]=strindex('abc',','); +if or(pos<>[])|or(which<>[]) then pause,end +[pos,which]=strindex('abc,abd,aa,bxe',',a'); +if or(pos<>[4 8])|or(which<>[1 1]) then pause,end +[pos,which]=strindex('abc,abd,aa,bxe','a'); +if or(pos<>[1 5 9 10])|or(which<>[1 1 1 1]) then pause,end +[pos,which]=strindex('','a'); +if or(pos<>[])|or(which<>[]) then pause,end +//=============================== +[pos,which]=strindex('abc,cbd,aa,bxe',[',a',',b']); +if or(pos<>[8 11])|or(which<>[1 2]) then pause,end +[pos,which]=strindex('abc,cbd,aa,bxe',[',a','bb']); +if or(pos<>[8])|or(which<>[1]) then pause,end +//=============================== +rand('u');str=strcat(string(round(8*rand(1,5000))));s= string(0:9); +[pos,which]=strindex(str,s); +if part(str,pos)<>strcat(s(which)) then pause,end +//=============================== +ref = [4 10]; +k=strindex('SCI/demos/scicos','/'); +if (k <> ref ) then pause,end +//=============================== +ref = 1; +k=strindex('SCI/demos/scicos','SCI/'); +if (k <> ref ) then pause,end +//=============================== +ref = []; +k=strindex('SCI/demos/scicos','!'); +if (k <> ref ) then pause,end +//=============================== +ref = [1 2 3 4]; +k=strindex('aaaaa','aa'); +if (k <> ref ) then pause,end +//=============================== +ref = [1 11]; +k=strindex('SCI/demos/scicos',['SCI','sci']); +if (k <> ref ) then pause,end +//=============================== +refk = [2 4 8]; +refw = [1 3 4]; +[k,w]=strindex('1+3*abc/2.33',['+','-','*','/']); +if (k <> refk ) then pause,end +if (w <> refw ) then pause,end +//=============================== +fd = mopen(SCI+'/modules/string/tests/unit_tests/text.txt','r'); +txt = mgetl( fd ); +mclose( fd ); +//=============================== +if (strindex(txt(1),'scilab') <> []) then pause,end +if (strindex(txt(1),'Scilab') <> [1 216]) then pause,end +[ind1,ind2] = strindex(txt(1),'Scilab'); +//=============================== +if (ind1 <> [1 1]) then pause,end +if (ind2 <> [1 216]) then pause,end +//=============================== +if (strindex('',' ') <> []) then pause,end +//=============================== +if (strindex([],' ') <> []) then pause,end +//=============================== +a = 'd:\TRUNK\Dev-Tools\SE\Innosetup\script\Create_ISS.sce'; +[r1,r2] = strindex(a,['\',':']); +ref2 = [2. 1. 1. 1. 1. 1. 1.]; +ref1 = [2. 3. 9. 19. 22. 32. 39]; +if (ref2 <> r2) then pause,end; +if (ref1 <> r1) then pause,end; +//=============================== +ierr = execstr("strindex(''2'' ,''/2(]*)?$\1/'' ,''dummy'');","errcatch"); +if ierr <> 999 then pause,end +//=============================== +lf = ascii(10); + +if strindex('abc','/abc/','r') <> 1 then pause,end +if strindex('xbc','/abc/','r') <> [] then pause,end +if strindex('axc','/abc/','r') <> [] then pause,end +if strindex('abx' ,'/abc/' ,'r') <> [] then pause,end +if strindex('xabcy' ,'/abc/' ,'r') <> 2 then pause,end +if strindex('ababc' ,'/abc/' ,'r') <> 3 then pause,end +if strindex('abc' ,'/ab*c/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/ab*bc/' ,'r') <> 1 then pause,end +if strindex('abbc' ,'/ab*bc/' ,'r') <> 1 then pause,end +if strindex('abbbbc' ,'/ab*bc/' ,'r') <> 1 then pause,end +if strindex('abbbbc' ,'/.{1}/' ,'r') <> 1 then pause,end +if strindex('abbbbc' ,'/.{3,4}/' ,'r') <> 1 then pause,end +if strindex('abbbbc' ,'/ab{0,}bc/' ,'r') <> 1 then pause,end +if strindex('abbc' ,'/ab+bc/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/ab+bc/' ,'r') <> [] then pause,end +if strindex('abq' ,'/ab+bc/' ,'r') <> [] then pause,end +if strindex('abq' ,'/ab{1,}bc/' ,'r') <> [] then pause,end +if strindex('abbbbc' ,'/ab+bc/' ,'r') <> 1 then pause,end +if strindex('abbbbc' ,'/ab{1,}bc/' ,'r') <> 1 then pause,end +if strindex('abbbbc' ,'/ab{1,3}bc/' ,'r') <> 1 then pause,end +if strindex('abbbbc' ,'/ab{3,4}bc/' ,'r') <> 1 then pause,end +if strindex('abbbbc' ,'/ab{4,5}bc/' ,'r') <> [] then pause,end +if strindex('abbc' ,'/ab?bc/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/ab?bc/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/ab{0,1}bc/' ,'r') <> 1 then pause,end +if strindex('abbbbc' ,'/ab?bc/' ,'r') <> [] then pause,end +if strindex('abc' ,'/ab?c/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/ab{0,1}c/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/^abc$/' ,'r') <> 1 then pause,end +if strindex('abcc' ,'/^abc$/' ,'r') <> [] then pause,end +if strindex('abcc' ,'/^abc/' ,'r') <> 1 then pause,end +if strindex('aabc' ,'/^abc$/' ,'r') <> [] then pause,end +if strindex('aabc' ,'/abc$/' ,'r') <> 2 then pause,end +if strindex('aabcd' ,'/abc$/' ,'r') <> [] then pause,end +if strindex('abc' ,'/a.c/' ,'r') <> 1 then pause,end +if strindex('axc' ,'/a.c/' ,'r') <> 1 then pause,end +if strindex('axyzc' ,'/a.*c/' ,'r') <> 1 then pause,end +if strindex('axyzd' ,'/a.*c/' ,'r') <> [] then pause,end +if strindex('abc' ,'/a[bc]d/' ,'r') <> [] then pause,end +if strindex('abd' ,'/a[bc]d/' ,'r') <> 1 then pause,end +if strindex('abd' ,'/a[b-d]e/' ,'r') <> [] then pause,end +if strindex('ace' ,'/a[b-d]e/' ,'r') <> 1 then pause,end +if strindex('aac' ,'/a[b-d]/' ,'r') <> 2 then pause,end +if strindex('a-' ,'/a[-b]/' ,'r') <> 1 then pause,end +if strindex('a-' ,'/a[b-]/' ,'r') <> 1 then pause,end +if strindex('a]' ,'/a]/' ,'r') <> 1 then pause,end +if strindex('a]b' ,'/a[]]b/' ,'r') <> 1 then pause,end +if strindex('aed' ,'/a[^bc]d/' ,'r') <> 1 then pause,end +if strindex('abd' ,'/a[^bc]d/' ,'r') <> [] then pause,end +if strindex('adc' ,'/a[^-b]c/' ,'r') <> 1 then pause,end +if strindex('a-c' ,'/a[^-b]c/' ,'r') <> [] then pause,end +if strindex('a]c' ,'/a[^]b]c/' ,'r') <> [] then pause,end +if strindex('adc' ,'/a[^]b]c/' ,'r') <> 1 then pause,end +if strindex('a-' ,'/\ba\b/' ,'r') <> 1 then pause,end +if strindex('-a' ,'/\ba\b/' ,'r') <> 2 then pause,end +if strindex('-a-' ,'/\ba\b/' ,'r') <> 2 then pause,end +if strindex('xy' ,'/\by\b/' ,'r') <> [] then pause,end +if strindex('yz' ,'/\by\b/' ,'r') <> [] then pause,end +if strindex('xyz' ,'/\by\b/' ,'r') <> [] then pause,end +if strindex('a-' ,'/\Ba\B/' ,'r') <> [] then pause,end +if strindex('-a' ,'/\Ba\B/' ,'r') <> [] then pause,end +if strindex('-a-' ,'/\Ba\B/' ,'r') <> [] then pause,end +if strindex('xy' ,'/\By\b/' ,'r') <> 2 then pause,end +if strindex('xy' ,'/\By\b/' ,'r') <> 2 then pause,end +if strindex('yz' ,'/\by\B/' ,'r') <> 1 then pause,end +if strindex('xyz' ,'/\By\B/' ,'r') <> 2 then pause,end +if strindex('a' ,'/\w/' ,'r') <> 1 then pause,end +if strindex('-' ,'/\w/' ,'r') <> [] then pause,end +if strindex('a' ,'/\W/' ,'r') <> [] then pause,end +if strindex('-' ,'/\W/' ,'r') <> 1 then pause,end +if strindex('a b' ,'/a\sb/' ,'r') <> 1 then pause,end +if strindex('a-b' ,'/a\sb/' ,'r') <> [] then pause,end +if strindex('a b' ,'/a\Sb/' ,'r') <> [] then pause,end +if strindex('a-b' ,'/a\Sb/' ,'r') <> 1 then pause,end +if strindex('1' ,'/\d/' ,'r') <> 1 then pause,end +if strindex('-' ,'/\d/' ,'r') <> [] then pause,end +if strindex('1' ,'/\D/' ,'r') <> [] then pause,end +if strindex('-' ,'/\D/' ,'r') <> 1 then pause,end +if strindex('a' ,'/[\w]/' ,'r') <> 1 then pause,end +if strindex('-' ,'/[\w]/' ,'r') <> [] then pause,end +if strindex('a' ,'/[\W]/' ,'r') <> [] then pause,end +if strindex('-' ,'/[\W]/' ,'r') <> 1 then pause,end +if strindex('a b' ,'/a[\s]b/' ,'r') <> 1 then pause,end +if strindex('a-b' ,'/a[\s]b/' ,'r') <> [] then pause,end +if strindex('a b' ,'/a[\S]b/' ,'r') <> [] then pause,end +if strindex('a-b' ,'/a[\S]b/' ,'r') <> 1 then pause,end +if strindex('1' ,'/[\d]/' ,'r') <> 1 then pause,end +if strindex('-' ,'/[\d]/' ,'r') <> [] then pause,end +if strindex('1' ,'/[\D]/' ,'r') <> [] then pause,end +if strindex('-' ,'/[\D]/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/ab|cd/' ,'r') <> 1 then pause,end +if strindex('abcd' ,'/ab|cd/' ,'r') <> 1 then pause,end +if strindex('b' ,'/$b/' ,'r') <> [] then pause,end +if strindex('ab' ,'/a\(*b/' ,'r') <> 1 then pause,end +if strindex('a((b' ,'/a\(*b/' ,'r') <> 1 then pause,end +if strindex('aabbabc' ,'/a+b+c/' ,'r') <> 5 then pause,end +if strindex('aabbabc' ,'/a{1,}b{1,}c/' ,'r') <> 5 then pause,end +if strindex('abcabc' ,'/a.+?c/' ,'r') <> 1 then pause,end +if strindex('cde' ,'/[^ab]*/' ,'r') <> 1 then pause,end +if strindex('' ,'/abc/' ,'r') <> [] then pause,end +if strindex('' ,'/a*/' ,'r') <> [] then pause,end +if strindex('e' ,'/a|b|c|d|e/' ,'r') <> 1 then pause,end +if strindex('abcdefg' ,'/abcd*efg/' ,'r') <> 1 then pause,end +if strindex('xabyabbbz' ,'/ab*/' ,'r') <> 2 then pause,end +if strindex('xayabbbz' ,'/ab*/' ,'r') <> 2 then pause,end +if strindex('hij' ,'/[abhgefdc]ij/' ,'r') <> 1 then pause,end +if strindex('abcde' ,'/^(ab|cd)e/' ,'r') <> [] then pause,end +if strindex('adcdcde' ,'/a[bcd]*dcdcde/' ,'r') <> 1 then pause,end +if strindex('adcdcde' ,'/a[bcd]+dcdcde/' ,'r') <> [] then pause,end +if strindex('alpha' ,'/[a-zA-Z_][a-zA-Z0-9_]*/' ,'r') <> 1 then pause,end +if strindex('effg' ,'/(bc+d$|ef*g.|h?i(j|k))/' ,'r') <> [] then pause,end +if strindex('bcdd' ,'/(bc+d$|ef*g.|h?i(j|k))/' ,'r') <> [] then pause,end +if strindex('aa' ,'/((((((((((a))))))))))\10/' ,'r') <> 1 then pause,end +if strindex('aa' ,'/((((((((((a))))))))))\041/' ,'r') <> [] then pause,end +if strindex('a!' ,'/((((((((((a))))))))))\041/' ,'r') <> 1 then pause,end +if strindex('a' ,'/(((((((((a)))))))))/' ,'r') <> 1 then pause,end +if strindex('uh-uh' ,'/multiple words of text/' ,'r') <> [] then pause,end +if strindex('multiple words, yeah' ,'/multiple words/' ,'r') <> 1 then pause,end +if strindex('ab' ,'/[k]/' ,'r') <> [] then pause,end +if strindex('ac' ,'/a[-]?c/' ,'r') <> 1 then pause,end +if strindex('a' ,'/(a)|\1/' ,'r') <> 1 then pause,end +if strindex('x' ,'/(a)|\1/' ,'r') <> [] then pause,end +if strindex('aaxabxbaxbbx' ,'/((\3|b)\2(a)x)+/' ,'r') <> [] then pause,end +if strindex('ABC' ,'/abc/i' ,'r') <> 1 then pause,end +if strindex('XBC' ,'/abc/i' ,'r') <> [] then pause,end +if strindex('AXC' ,'/abc/i' ,'r') <> [] then pause,end +if strindex('ABX' ,'/abc/i' ,'r') <> [] then pause,end +if strindex('XABCY' ,'/abc/i' ,'r') <> 2 then pause,end +if strindex('ABABC' ,'/abc/i' ,'r') <> 3 then pause,end +if strindex('ABC' ,'/ab*c/i' ,'r') <> 1 then pause,end +if strindex('ABC' ,'/ab*bc/i' ,'r') <> 1 then pause,end +if strindex('ABBC' ,'/ab*bc/i' ,'r') <> 1 then pause,end +if strindex('ABBBBC' ,'/ab*?bc/i' ,'r') <> 1 then pause,end +if strindex('ABBBBC' ,'/ab{0,}?bc/i' ,'r') <> 1 then pause,end +if strindex('ABBC' ,'/ab+?bc/i' ,'r') <> 1 then pause,end +if strindex('ABC' ,'/ab+bc/i' ,'r') <> [] then pause,end +if strindex('ABQ' ,'/ab+bc/i' ,'r') <> [] then pause,end +if strindex('ABQ' ,'/ab{1,}bc/i' ,'r') <> [] then pause,end +if strindex('ABBBBC' ,'/ab+bc/i' ,'r') <> 1 then pause,end +if strindex('ABBBBC' ,'/ab{1,}?bc/i' ,'r') <> 1 then pause,end +if strindex('ABBBBC' ,'/ab{1,3}?bc/i' ,'r') <> 1 then pause,end +if strindex('ABBBBC' ,'/ab{3,4}?bc/i' ,'r') <> 1 then pause,end +if strindex('ABBBBC' ,'/ab{4,5}?bc/i' ,'r') <> [] then pause,end +if strindex('ABBC' ,'/ab??bc/i' ,'r') <> 1 then pause,end +if strindex('ABC' ,'/ab??bc/i' ,'r') <> 1 then pause,end +if strindex('ABC' ,'/ab{0,1}?bc/i' ,'r') <> 1 then pause,end +if strindex('ABBBBC' ,'/ab??bc/i' ,'r') <> [] then pause,end +if strindex('ABC' ,'/ab??c/i' ,'r') <> 1 then pause,end +if strindex('ABC' ,'/ab{0,1}?c/i' ,'r') <> 1 then pause,end +if strindex('ABC' ,'/^abc$/i' ,'r') <> 1 then pause,end +if strindex('ABCC' ,'/^abc$/i' ,'r') <> [] then pause,end +if strindex('ABCC' ,'/^abc/i' ,'r') <> 1 then pause,end +if strindex('AABC' ,'/^abc$/i' ,'r') <> [] then pause,end +if strindex('AABC' ,'/abc$/i' ,'r') <> 2 then pause,end +if strindex('ABC' ,'/a.c/i' ,'r') <> 1 then pause,end +if strindex('AXC' ,'/a.c/i' ,'r') <> 1 then pause,end +if strindex('AXYZC' ,'/a.*?c/i' ,'r') <> 1 then pause,end +if strindex('AXYZD' ,'/a.*c/i' ,'r') <> [] then pause,end +if strindex('ABC' ,'/a[bc]d/i' ,'r') <> [] then pause,end +if strindex('ABD' ,'/a[bc]d/i' ,'r') <> 1 then pause,end +if strindex('ABD' ,'/a[b-d]e/i' ,'r') <> [] then pause,end +if strindex('ACE' ,'/a[b-d]e/i' ,'r') <> 1 then pause,end +if strindex('AAC' ,'/a[b-d]/i' ,'r') <> 2 then pause,end +if strindex('A-' ,'/a[-b]/i' ,'r') <> 1 then pause,end +if strindex('A-' ,'/a[b-]/i' ,'r') <> 1 then pause,end +if strindex('A]' ,'/a]/i' ,'r') <> 1 then pause,end +if strindex('A]B' ,'/a[]]b/i' ,'r') <> 1 then pause,end +if strindex('AED' ,'/a[^bc]d/i' ,'r') <> 1 then pause,end +if strindex('ABD' ,'/a[^bc]d/i' ,'r') <> [] then pause,end +if strindex('ADC' ,'/a[^-b]c/i' ,'r') <> 1 then pause,end +if strindex('A-C' ,'/a[^-b]c/i' ,'r') <> [] then pause,end +if strindex('A]C' ,'/a[^]b]c/i' ,'r') <> [] then pause,end +if strindex('ADC' ,'/a[^]b]c/i' ,'r') <> 1 then pause,end +if strindex('ABC' ,'/ab|cd/i' ,'r') <> 1 then pause,end +if strindex('ABCD' ,'/ab|cd/i' ,'r') <> 1 then pause,end +if strindex('B' ,'/$b/i' ,'r') <> [] then pause,end +if strindex('AB' ,'/a\(*b/i' ,'r') <> 1 then pause,end +if strindex('A((B' ,'/a\(*b/i' ,'r') <> 1 then pause,end +if strindex('AABBABC' ,'/a+b+c/i' ,'r') <> 5 then pause,end +if strindex('AABBABC' ,'/a{1,}b{1,}c/i' ,'r') <> 5 then pause,end +if strindex('ABCABC' ,'/a.+?c/i' ,'r') <> 1 then pause,end +if strindex('ABCABC' ,'/a.*?c/i' ,'r') <> 1 then pause,end +if strindex('ABCABC' ,'/a.{0,5}?c/i' ,'r') <> 1 then pause,end +if strindex('CDE' ,'/[^ab]*/i' ,'r') <> 1 then pause,end +if strindex('' ,'/abc/i' ,'r') <> [] then pause,end +if strindex('' ,'/a*/i' ,'r') <> [] then pause,end +if strindex('E' ,'/a|b|c|d|e/i' ,'r') <> 1 then pause,end +if strindex('ABCDEFG' ,'/abcd*efg/i' ,'r') <> 1 then pause,end +if strindex('XABYABBBZ' ,'/ab*/i' ,'r') <> 2 then pause,end +if strindex('XAYABBBZ' ,'/ab*/i' ,'r') <> 2 then pause,end +if strindex('HIJ' ,'/[abhgefdc]ij/i' ,'r') <> 1 then pause,end +if strindex('ABCDE' ,'/^(ab|cd)e/i' ,'r') <> [] then pause,end +if strindex('ADCDCDE' ,'/a[bcd]*dcdcde/i' ,'r') <> 1 then pause,end +if strindex('ADCDCDE' ,'/a[bcd]+dcdcde/i' ,'r') <> [] then pause,end +if strindex('ALPHA' ,'/[a-zA-Z_][a-zA-Z0-9_]*/i' ,'r') <> 1 then pause,end +if strindex('EFFG' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ,'r') <> [] then pause,end +if strindex('BCDD' ,'/(bc+d$|ef*g.|h?i(j|k))/i' ,'r') <> [] then pause,end +if strindex('AA' ,'/((((((((((a))))))))))\10/i' ,'r') <> 1 then pause,end +if strindex('AA' ,'/((((((((((a))))))))))\041/i' ,'r') <> [] then pause,end +if strindex('A!' ,'/((((((((((a))))))))))\041/i' ,'r') <> 1 then pause,end +if strindex('A' ,'/(((((((((a)))))))))/i' ,'r') <> 1 then pause,end +if strindex('UH-UH' ,'/multiple words of text/i' ,'r') <> [] then pause,end +if strindex('MULTIPLE WORDS, YEAH' ,'/multiple words/i' ,'r') <> 1 then pause,end +if strindex('AB' ,'/[k]/i' ,'r') <> [] then pause,end +if strindex('AC' ,'/a[-]?c/i' ,'r') <> 1 then pause,end +if strindex('abad' ,'/a(?!b)./' ,'r') <> 3 then pause,end +if strindex('abad' ,'/a(?=d)./' ,'r') <> 3 then pause,end +if strindex('abad' ,'/a(?=c|d)./' ,'r') <> 3 then pause,end +if strindex('<&OUT' ,'/^[<>]&/' ,'r') <> 1 then pause,end +if strindex('aaaaaaaaa' ,'/^(a\1?){4}$/' ,'r') <> [] then pause,end +if strindex('aaaaaaaaaaa' ,'/^(a\1?){4}$/' ,'r') <> [] then pause,end +if strindex('aaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ,'r') <> [] then pause,end +if strindex('aaaaaaaaaaa' ,'/^(a(?(1)\1)){4}$/' ,'r') <> [] then pause,end +if strindex('ab' ,'/(?<=a)b/' ,'r') <> 2 then pause,end +if strindex('cb' ,'/(?<=a)b/' ,'r') <> [] then pause,end +if strindex('b' ,'/(?<=a)b/' ,'r') <> [] then pause,end +if strindex('ab' ,'/(?<!c)b/' ,'r') <> 2 then pause,end +if strindex('cb' ,'/(?<!c)b/' ,'r') <> [] then pause,end +if strindex('b' ,'/(?<!c)b/' ,'r') <> 1 then pause,end +if strindex('b' ,'/(?<!c)b/' ,'r') <> 1 then pause,end +if strindex('aba' ,'/(?:..)*a/' ,'r') <> 1 then pause,end +if strindex('aba' ,'/(?:..)*?a/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/^(?:b|a(?=(.)))*\1/' ,'r') <> 1 then pause,end +if strindex('ab' ,'/(?:(?i)a)b/' ,'r') <> 1 then pause,end +if strindex('Ab' ,'/(?:(?i)a)b/' ,'r') <> 1 then pause,end +if strindex('aB' ,'/(?:(?i)a)b/' ,'r') <> [] then pause,end +if strindex('aB' ,'/((?i)a)b/' ,'r') <> [] then pause,end +if strindex('ab' ,'/(?i:a)b/' ,'r') <> 1 then pause,end +if strindex('Ab' ,'/(?i:a)b/' ,'r') <> 1 then pause,end +if strindex('aB' ,'/(?i:a)b/' ,'r') <> [] then pause,end +if strindex('aB' ,'/((?i:a))b/' ,'r') <> [] then pause,end +if strindex('ab' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then pause,end +if strindex('aB' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then pause,end +if strindex('Ab' ,'/(?:(?-i)a)b/i' ,'r') <> [] then pause,end +if strindex('Ab' ,'/((?-i)a)b/i' ,'r') <> [] then pause,end +if strindex('aB' ,'/(?:(?-i)a)b/i' ,'r') <> 1 then pause,end +if strindex('AB' ,'/(?:(?-i)a)b/i' ,'r') <> [] then pause,end +if strindex('AB' ,'/((?-i)a)b/i' ,'r') <> [] then pause,end +if strindex('ab' ,'/(?-i:a)b/i' ,'r') <> 1 then pause,end +if strindex('aB' ,'/(?-i:a)b/i' ,'r') <> 1 then pause,end +if strindex('Ab' ,'/(?-i:a)b/i' ,'r') <> [] then pause,end +if strindex('Ab' ,'/((?-i:a))b/i' ,'r') <> [] then pause,end +if strindex('aB' ,'/(?-i:a)b/i' ,'r') <> 1 then pause,end +if strindex('AB' ,'/(?-i:a)b/i' ,'r') <> [] then pause,end +if strindex('AB' ,'/((?-i:a))b/i' ,'r') <> [] then pause,end +if strindex('a'+lf+'B' ,'/((?-i:a.))b/i' ,'r') <> [] then pause,end +if strindex('B'+lf+'B' ,'/((?s-i:a.))b/i' ,'r') <> [] then pause,end +if strindex('cabbbb' ,'/(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))/','r') <> 1 then pause,end +if strindex('caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb','/(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))/','r') <> 1 then pause,end +if strindex('foobar1234baz' ,'/foo\w*\d{4}baz/' ,'r') <> 1 then pause,end +if strindex('x~~' ,'/x(~~)*(?:(?:F)?)?/' ,'r') <> 1 then pause,end +if strindex('aaac' ,'/^a(?#xxx){3}c/' ,'r') <> 1 then pause,end +if strindex('aaac' ,'/^a (?#xxx) (?#yyy) {3}c/x' ,'r') <> 1 then pause,end +if strindex('dbcb' ,'/(?<![cd])b/' ,'r') <> [] then pause,end +if strindex('dbaacb' ,'/(?<![cd])[ab]/' ,'r') <> 3 then pause,end +if strindex('dbcb' ,'/(?<!(c|d))b/' ,'r') <> [] then pause,end +if strindex('dbaacb' ,'/(?<!(c|d))[ab]/' ,'r') <> 3 then pause,end +if strindex('cdaccb' ,'/(?<!cd)[ab]/' ,'r') <> 6 then pause,end +if strindex('a--' ,'/^(?:a?b?)*$/' ,'r') <> [] then pause,end +if strindex('a'+lf+'b'+lf ,'/(?m)^b/' ,'r') <> 3 then pause,end +if strindex('a'+lf+'b'+lf+'c'+lf ,'/^b/' ,'r') <> [] then pause,end +if strindex('a'+lf+'b'+lf+'c'+lf ,'/()^b/' ,'r') <> [] then pause,end +if strindex('a' ,'/(x)?(?(1)a|b)/' ,'r') <> [] then pause,end +if strindex('a' ,'/(x)?(?(1)b|a)/' ,'r') <> 1 then pause,end +if strindex('a' ,'/()?(?(1)b|a)/' ,'r') <> 1 then pause,end +if strindex('a' ,'/()(?(1)b|a)/' ,'r') <> [] then pause,end +if strindex('a' ,'/()?(?(1)a|b)/' ,'r') <> 1 then pause,end +if strindex('blah)' ,'/^(\()?blah(?(1)(\)))$/' ,'r') <> [] then pause,end +if strindex('(blah' ,'/^(\()?blah(?(1)(\)))$/' ,'r') <> [] then pause,end +if strindex('blah)' ,'/^(\(+)?blah(?(1)(\)))$/' ,'r') <> [] then pause,end +if strindex('(blah' ,'/^(\(+)?blah(?(1)(\)))$/' ,'r') <> [] then pause,end +if strindex('a' ,'/(?(?!a)a|b)/' ,'r') <> [] then pause,end +if strindex('a' ,'/(?(?!a)b|a)/' ,'r') <> 1 then pause,end +if strindex('a' ,'/(?(?=a)b|a)/' ,'r') <> [] then pause,end +if strindex('a' ,'/(?(?=a)a|b)/' ,'r') <> 1 then pause,end +if strindex('aaab' ,'/^(?=(a+?))\1ab/' ,'r') <> [] then pause,end +if strindex('aaab' ,'/^(?=(a+?))\1ab/' ,'r') <> [] then pause,end +if strindex('abcd:' ,'/([\w:]+::)?(\w+)$/' ,'r') <> [] then pause,end +if strindex('abcd:' ,'/([\w:]+::)?(\w+)$/' ,'r') <> [] then pause,end +if strindex('aaab' ,'/(>a+)ab/' ,'r') <> [] then pause,end +if strindex('aaab' ,'/(?>a+)b/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/[a[:]b[:c]/' ,'r') <> 1 then pause,end +if strindex('abc' ,'/[a[:]b[:c]/' ,'r') <> 1 then pause,end +if strindex('((abc(ade)ufh()()x' ,'/((?>[^()]+)|\([^()]*\))+/' ,'r') <> 3 then pause,end +if strindex('a'+lf+'b'+lf ,'/a\Z/' ,'r') <> [] then pause,end +if strindex('a'+lf+'b'+lf ,'/a\z/' ,'r') <> [] then pause,end +if strindex('a'+lf+'b'+lf ,'/a$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'a'+lf ,'/a\z/' ,'r') <> [] then pause,end +if strindex('a'+lf+'b'+lf ,'/a\Z/m' ,'r') <> [] then pause,end +if strindex('a'+lf+'b'+lf ,'/a\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'a'+lf ,'/a\z/m' ,'r') <> [] then pause,end +if strindex('aa'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if strindex('aa'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if strindex('aa'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'aa'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if strindex('aa'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if strindex('aa'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'aa'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/aa$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/aa\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/aa\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/aa$/' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/aa$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/aa$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/aa\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/aa\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/aa$/m' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/aa$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/aa\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/aa\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/aa$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/aa\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/aa\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/aa$/' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/aa$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/aa\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/aa\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/aa$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/aa\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/aa\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/aa$/m' ,'r') <> [] then pause,end +if strindex('ab'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if strindex('ab'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if strindex('ab'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ab'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if strindex('ab'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if strindex('ab'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ab'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/ab$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/ab\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/ab\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/ab$/' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/ab$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/ab$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/ab\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/ab\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/ab$/m' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/ab$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/ab\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/ab\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/ab$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/ab\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/ab\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/ab$/' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/ab$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/ab\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/ab\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/ab$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/ab\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/ab\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/ab$/m' ,'r') <> [] then pause,end +if strindex('abb'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if strindex('abb'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if strindex('abb'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'abb'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if strindex('abb'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if strindex('abb'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'abb'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/abb$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/abb\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/abb\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/abb$/' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if strindex('ac'+lf+'b'+lf ,'/abb$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac'+lf ,'/abb$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/abb\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/abb\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ac' ,'/abb$/m' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/abb$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/abb\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/abb\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/abb$/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/abb\Z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/abb\z/' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/abb$/' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if strindex('ca'+lf+'b'+lf ,'/abb$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/abb\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/abb\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca'+lf ,'/abb$/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/abb\Z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/abb\z/m' ,'r') <> [] then pause,end +if strindex('b'+lf+'ca' ,'/abb$/m' ,'r') <> [] then pause,end +if strindex('x' ,'/a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/','r') <> [] then pause,end +if strindex('foo.bart' ,'/foo.bart/' ,'r') <> 1 then pause,end +if strindex('abcd'+lf+'dxxx' ,'/^d[x][x][x]/m' ,'r') <> 6 then pause,end +if strindex('xxxtt' ,'/tt+$/' ,'r') <> 4 then pause,end +if strindex('aaaXbX' ,'/\GX.*X/' ,'r') <> [] then pause,end +if strindex('Changes' ,'/\.c(pp|xx|c)?$/i' ,'r') <> [] then pause,end +if strindex('IO.c' ,'/\.c(pp|xx|c)?$/i' ,'r') <> 3 then pause,end +if strindex('C:/' ,'/^([a-z]:)/' ,'r') <> [] then pause,end +if strindex(lf+'x aa' ,'/^\S\s+aa$/m' ,'r') <> 2 then pause,end +[k,w] = strindex(lf+'x aa' ,'/^\S\s+aa$/m' ,'r'); +if k <> 2 then pause,end +if w <> 1 then pause,end +if strindex('ab' ,'/(^|a)b/' ,'r') <> 1 then pause,end +if strindex('abcab' ,'/(\w)?(abc)\1b/' ,'r') <> [] then pause,end +if strindex('a,b,c' ,'/^(?:.,){2}c/' ,'r') <> 1 then pause,end +if strindex('a,b,c' ,'/^(?:[^,]*,){2}c/' ,'r') <> 1 then pause,end +if strindex('' ,'/(?i)/' ,'r') <> [] then pause,end +if strindex('a'+lf+'xb'+lf ,'/(?!\A)x/m' ,'r') <> 3 then pause,end +if strindex('123'+lf+'abcabcabcabc'+lf ,'/^.{9}abc.*\n/m' ,'r') <> 5 then pause,end +if strindex('a' ,'/^(a)?(?(1)a|b)+$/' ,'r') <> [] then pause,end +if strindex('x1' ,'/^(0+)?(?:x(1))?/' ,'r') <> 1 then pause,end +if strindex('012cxx0190' ,'/^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))?/','r') <> 1 then pause,end +if strindex('aaaacccc' ,'/((?:aaaa|bbbb)cccc)?/' ,'r') <> 1 then pause,end +if strindex('bbbbcccc' ,'/((?:aaaa|bbbb)cccc)?/' ,'r') <> 1 then pause,end +if strindex('a'+lf+'b'+lf ,'/b\s^/m' ,'r') <> [] then pause,end +if strindex('a' ,'/\ba/' ,'r') <> 1 then pause,end +if strindex('AbCd' ,'/ab(?i)cd/' ,'r') <> [] then pause,end +if strindex('abCd' ,'/ab(?i)cd/' ,'r') <> 1 then pause,end +if strindex('Oo' ,'/^(o)(?!.*\1)/i' ,'r') <> [] then pause,end +if strindex('2' ,'/2(]*)?$\1/' ,'r') <> 1 then pause,end +if strindex('......abef' ,'/.*a(?!(b|cd)*e).*f/' ,'r') <> [] then pause,end +if strindex('fools' ,'/(foo|fool|x.|money|parted)$/' ,'r') <> [] then pause,end +if strindex('fools' ,'/(x.|foo|fool|x.|money|parted|y.)$/' ,'r') <> [] then pause,end +if strindex('fools' ,'/(foo|fool|money|parted)$/' ,'r') <> [] then pause,end +//======================================================================================== +// Chinese +str = '世界您好'; +[r,w] = strindex(str,'/^世界/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/世界$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/您好$/','r'); +if r <> 3 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/^您好/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/界您/','r'); +if r <> 2 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'界您'); +if r <> 2 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/界_您/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== +// Russian +str = 'привет мир'; +[r,w] = strindex(str,'/^привет/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/привет$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/мир$/','r'); +if r <> 8 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/^мир/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/вет\sм/','r'); +if r <> 4 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/вет_м/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== +// Cyrilic +str = 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ'; + +[r,w] = strindex(str,'/^АБВГДЄЖЅЗИІКЛМНОПҀР/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/АБВГДЄЖЅЗИІКЛМНОПҀР$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ$/','r'); +if r <> 27 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/^ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/ИІКЛМНОПҀРСТѸФХѠЦЧШЩЪ/','r'); +if r <> 10 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/ИІКЛМНОПҀ_РСТѸФХѠЦЧШЩЪ/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== +// Japanese +str = '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃'; + +[r,w] = strindex(str,'/^丑丞串乃之乎也云亘亙些亦/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/丑丞串乃之乎也云亘亙些亦$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/凰凱函刹劉劫勁勃$/','r'); +if r <> 53 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/^凰凱函刹劉劫勁勃/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/亨亮仔伊伎伍伽佃佑伶侃/','r'); +if r <> 14 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/亨亮仔伊_伎伍伽佃佑伶侃/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== +// Thaï +str = 'มกระดุกกระดิก'; +[r,w] = strindex(str,'/^มกระดุกกร/','r'); +if r <> 1 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/มกระดุกกร$/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/กกระดิก$/','r'); +if r <> 7 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/^กกระดิก/','r'); +if r <> [] then pause,end +if w <> [] then pause,end + +[r,w] = strindex(str,'/ดุกก/','r'); +if r <> 5 then pause,end +if w <> 1 then pause,end + +[r,w] = strindex(str,'/ดุก_ก/','r'); +if r <> [] then pause,end +if w <> [] then pause,end +//======================================================================================== diff --git a/modules/string/tests/unit_tests/strindex_pcre76.dia.ref b/modules/string/tests/unit_tests/strindex_pcre76.dia.ref new file mode 100755 index 000000000..8e45a31d6 --- /dev/null +++ b/modules/string/tests/unit_tests/strindex_pcre76.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests strindex +//=============================== +// Comments about PCRE 7.6 see changelog PCRE +//7. Patterns such as (?(1)a|b) (a pattern that contains fewer subpatterns +// than the number used in the conditional) now cause a compile-time error. +// This is actually not compatible with Perl, which accepts such patterns, but +// treats the conditional as always being FALSE (as PCRE used to), but it +// seems to me that giving a diagnostic is better. +if execstr("strindex(''a'' ,''/(?(1)a|b)/'',''r'')","errcatch") <> 999 then bugmes();quit;end +if execstr("strindex(''a'',''/(?(?{0})a|b)/'',''r'')","errcatch") <> 999 then bugmes();quit;end +if execstr("strindex(''a'',''/(?(?{1})b|a)/'',''r'')","errcatch") <> 999 then bugmes();quit;end +if execstr("strindex(''a'',''/(?(1)b|a)/'',''r'')","errcatch") <> 999 then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/unit_tests/strindex_pcre76.tst b/modules/string/tests/unit_tests/strindex_pcre76.tst new file mode 100755 index 000000000..22180cd90 --- /dev/null +++ b/modules/string/tests/unit_tests/strindex_pcre76.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests strindex +//=============================== +// Comments about PCRE 7.6 see changelog PCRE +//7. Patterns such as (?(1)a|b) (a pattern that contains fewer subpatterns +// than the number used in the conditional) now cause a compile-time error. +// This is actually not compatible with Perl, which accepts such patterns, but +// treats the conditional as always being FALSE (as PCRE used to), but it +// seems to me that giving a diagnostic is better. +if execstr("strindex(''a'' ,''/(?(1)a|b)/'',''r'')","errcatch") <> 999 then pause,end +if execstr("strindex(''a'',''/(?(?{0})a|b)/'',''r'')","errcatch") <> 999 then pause,end +if execstr("strindex(''a'',''/(?(?{1})b|a)/'',''r'')","errcatch") <> 999 then pause,end +if execstr("strindex(''a'',''/(?(1)b|a)/'',''r'')","errcatch") <> 999 then pause,end +//======================================================================================== diff --git a/modules/string/tests/unit_tests/string.dia.ref b/modules/string/tests/unit_tests/string.dia.ref new file mode 100755 index 000000000..89f222f28 --- /dev/null +++ b/modules/string/tests/unit_tests/string.dia.ref @@ -0,0 +1,68 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests string +//=============================== +assert_checkequal(string(1), '1'); +//=============================== +assert_checkequal(string(1.5), '1.5'); +//=============================== +// Special display cases : +assert_checkequal(string(0+%i), "%i"); +assert_checkequal(string(0-%i), "-%i"); +assert_checkequal(string(0+0*%i), "0"); +assert_checkequal(string(-1+%i), "-1+%i"); +assert_checkequal(string(-1-%i), "-1-%i"); +assert_checkequal(string(0+2*%i), "%i*2"); +assert_checkequal(string(0-2*%i), "-%i*2"); +assert_checkequal(string(-2+2*%i), "-2+%i*2"); +assert_checkequal(string(-2-2*%i), "-2-%i*2"); +// BUG #10082 +//assert_checkequal(string(1+%i), "1+%i"); +//assert_checkequal(string(1-%i), "1-%i"); +//assert_checkequal(string(2+2*%i), "2+%i*2"); +//assert_checkequal(string(2-2*%i), "2-%i*2"); +//=============================== +assert_checkequal(string([]), []); +//=============================== +assert_checkequal(string(''), ''); +//=============================== +assert_checkequal(string(1:3), ['1','2','3']); +//=============================== +assert_checkequal(string([1;2;3]), ['1';'2';'3']); +//=============================== +assert_checkequal(string('foo'), 'foo'); +//=============================== +deff('y = mymacro(x)', 'y = x + 1'); +[out, in, text] = string(mymacro); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, [' '; 'y = x + 1'; ' ']); +//=============================== +mymacro = null(); +deff('y = mymacro(x)', 'y = x + 1', 'n'); +[out, in, text]=string(mymacro); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, [' '; 'y = x + 1'; ' ']); +//=============================== +R = string(corelib); +assert_checkequal(strsubst(R(1),'\','/'), 'SCI/modules/core/macros/'); +//=============================== +A = floor(abs(2^8 * rand(10,10))); +B = floor(abs(2^16 * rand(10,10))); +C = floor(abs(2^32 * rand(10,10))); +D = floor(abs(2^7 * rand(10,10))); +E = floor(abs(2^15 * rand(10,10))); +F = floor(abs(2^31 * rand(10,10))); +assert_checkequal(string(A), string(uint8(A))); +assert_checkequal(string(B), string(uint16(B))); +assert_checkequal(string(C), string(uint32(C))); +assert_checkequal(string(D), string(int8(D))); +assert_checkequal(string(E), string(int16(E))); +assert_checkequal(string(F), string(int32(F))); diff --git a/modules/string/tests/unit_tests/string.tst b/modules/string/tests/unit_tests/string.tst new file mode 100755 index 000000000..971453f7f --- /dev/null +++ b/modules/string/tests/unit_tests/string.tst @@ -0,0 +1,74 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests string +//=============================== +assert_checkequal(string(1), '1'); +//=============================== +assert_checkequal(string(1.5), '1.5'); +//=============================== +// Special display cases : +assert_checkequal(string(0+%i), "%i"); +assert_checkequal(string(0-%i), "-%i"); +assert_checkequal(string(0+0*%i), "0"); +assert_checkequal(string(-1+%i), "-1+%i"); +assert_checkequal(string(-1-%i), "-1-%i"); +assert_checkequal(string(0+2*%i), "%i*2"); +assert_checkequal(string(0-2*%i), "-%i*2"); +assert_checkequal(string(-2+2*%i), "-2+%i*2"); +assert_checkequal(string(-2-2*%i), "-2-%i*2"); +// BUG #10082 +//assert_checkequal(string(1+%i), "1+%i"); +//assert_checkequal(string(1-%i), "1-%i"); +//assert_checkequal(string(2+2*%i), "2+%i*2"); +//assert_checkequal(string(2-2*%i), "2-%i*2"); +//=============================== +assert_checkequal(string([]), []); +//=============================== +assert_checkequal(string(''), ''); +//=============================== +assert_checkequal(string(1:3), ['1','2','3']); +//=============================== +assert_checkequal(string([1;2;3]), ['1';'2';'3']); +//=============================== +assert_checkequal(string('foo'), 'foo'); +//=============================== +deff('y = mymacro(x)', 'y = x + 1'); +[out, in, text] = string(mymacro); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, [' '; 'y = x + 1'; ' ']); +//=============================== +mymacro = null(); +deff('y = mymacro(x)', 'y = x + 1', 'n'); +[out, in, text]=string(mymacro); +assert_checkequal(out, 'y'); +assert_checkequal(in, 'x'); +assert_checkequal(text, [' '; 'y = x + 1'; ' ']); +//=============================== +R = string(corelib); +assert_checkequal(strsubst(R(1),'\','/'), 'SCI/modules/core/macros/'); +//=============================== +A = floor(abs(2^8 * rand(10,10))); +B = floor(abs(2^16 * rand(10,10))); +C = floor(abs(2^32 * rand(10,10))); + +D = floor(abs(2^7 * rand(10,10))); +E = floor(abs(2^15 * rand(10,10))); +F = floor(abs(2^31 * rand(10,10))); + +assert_checkequal(string(A), string(uint8(A))); +assert_checkequal(string(B), string(uint16(B))); +assert_checkequal(string(C), string(uint32(C))); + +assert_checkequal(string(D), string(int8(D))); +assert_checkequal(string(E), string(int16(E))); +assert_checkequal(string(F), string(int32(F))); + diff --git a/modules/string/tests/unit_tests/stripblanks.dia.ref b/modules/string/tests/unit_tests/stripblanks.dia.ref new file mode 100755 index 000000000..d7ac261e0 --- /dev/null +++ b/modules/string/tests/unit_tests/stripblanks.dia.ref @@ -0,0 +1,74 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +ierr = execstr('r = stripblanks(1);','errcatch'); +if ierr <> 999 then bugmes();quit;end +//=============================== +a = ' 123 '; +r = stripblanks(a); +if ( r <> '123' ) then bugmes();quit;end +//=============================== +b = '!'+ a +'!'; +r = stripblanks(b); +if ( r <> b ) then bugmes();quit;end +//=============================== +b = []; +r = stripblanks(b); +if ( r <> b ) then bugmes();quit;end +//=============================== +a=[' 123 ',' xyz']; +r = stripblanks(a); +if ( r <> ['123','xyz'] ) then bugmes();quit;end +//=============================== +a=['','']; +r = stripblanks(a); +if ( r <> ['',''] ) then bugmes();quit;end +//=============================== +a=' S C I L A B '; +r = stripblanks(a); +if ( r <> 'S C I L A B' ) then bugmes();quit;end +//=============================== +TAB_CHAR = ascii(9); +//=============================== +a = TAB_CHAR + ' 123 ' + TAB_CHAR; +r = stripblanks(a,%T); +if ( r <> '123' ) then bugmes();quit;end +//=============================== +r = stripblanks(a,%F); +if ( r <> a ) then bugmes();quit;end +//=============================== +a=[TAB_CHAR + ' 123 '+TAB_CHAR,' xyz']; +r = stripblanks(a); +if ( r <> [TAB_CHAR + ' 123 '+TAB_CHAR,'xyz'] ) then bugmes();quit;end +//=============================== +a=[TAB_CHAR + ' 123 '+TAB_CHAR,' xyz']; +r = stripblanks(a,%F); +if ( r <> [TAB_CHAR + ' 123 '+TAB_CHAR,'xyz'] ) then bugmes();quit;end +//=============================== +a=[TAB_CHAR + ' 123 '+TAB_CHAR,' xyz']; +r = stripblanks(a,%T); +if ( r <> [TAB_CHAR + ' 123 '+TAB_CHAR,'xyz'] ) then bugmes();quit;end +//=============================== +STRING = ' '+ascii(9)+' '+'S'+' '+ascii(9)+'C'+' '+ascii(9)+'I'+' '+ascii(9)+'L'+' '+ascii(9)+'A'+' '+ascii(9)+'B'+' '+ascii(9)+' '; +//=============================== +R1 = ascii('!'+stripblanks(STRING,%T)+'!'); +W1 = [33. 83. 32. 9. 67. 32. 9. 73. 32. 9. 76. 32. 9. 65. 32. 9. 66. 33.]; +if (R1 <> W1) then bugmes();quit;end +//=============================== +R2 = ascii('!'+stripblanks(STRING,%F)+'!'); +W2 = [33. 9. 32. 83. 32. 9. 67. 32. 9. 73. 32. 9. 76. 32. 9. 65. 32. 9. 66. 32. 9. 33. ]; +if (R2 <> W2) then bugmes();quit;end +// = strings with only blank character ========================================= +if(stripblanks("")<>"") then bugmes();quit;end +if(stripblanks(" ")<>"") then bugmes();quit;end +if(stripblanks(" ")<>"") then bugmes();quit;end +if(stripblanks("",%T)<>"") then bugmes();quit;end +if(stripblanks(" ",%T)<>"") then bugmes();quit;end +if(stripblanks(" ",%T)<>"") then bugmes();quit;end +if(stripblanks(ascii(9))<>ascii(9)) then bugmes();quit;end +if(stripblanks(ascii(9),%T)<>"") then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/stripblanks.tst b/modules/string/tests/unit_tests/stripblanks.tst new file mode 100755 index 000000000..47a2a8b61 --- /dev/null +++ b/modules/string/tests/unit_tests/stripblanks.tst @@ -0,0 +1,80 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +ierr = execstr('r = stripblanks(1);','errcatch'); +if ierr <> 999 then pause,end +//=============================== +a = ' 123 '; +r = stripblanks(a); +if ( r <> '123' ) then pause,end +//=============================== +b = '!'+ a +'!'; +r = stripblanks(b); +if ( r <> b ) then pause,end +//=============================== +b = []; +r = stripblanks(b); +if ( r <> b ) then pause,end +//=============================== +a=[' 123 ',' xyz']; +r = stripblanks(a); +if ( r <> ['123','xyz'] ) then pause,end +//=============================== +a=['','']; +r = stripblanks(a); +if ( r <> ['',''] ) then pause,end +//=============================== +a=' S C I L A B '; +r = stripblanks(a); +if ( r <> 'S C I L A B' ) then pause,end +//=============================== +TAB_CHAR = ascii(9); +//=============================== +a = TAB_CHAR + ' 123 ' + TAB_CHAR; +r = stripblanks(a,%T); +if ( r <> '123' ) then pause,end +//=============================== +r = stripblanks(a,%F); +if ( r <> a ) then pause,end +//=============================== +a=[TAB_CHAR + ' 123 '+TAB_CHAR,' xyz']; +r = stripblanks(a); +if ( r <> [TAB_CHAR + ' 123 '+TAB_CHAR,'xyz'] ) then pause,end +//=============================== +a=[TAB_CHAR + ' 123 '+TAB_CHAR,' xyz']; +r = stripblanks(a,%F); +if ( r <> [TAB_CHAR + ' 123 '+TAB_CHAR,'xyz'] ) then pause,end +//=============================== +a=[TAB_CHAR + ' 123 '+TAB_CHAR,' xyz']; +r = stripblanks(a,%T); +if ( r <> [TAB_CHAR + ' 123 '+TAB_CHAR,'xyz'] ) then pause,end +//=============================== +STRING = ' '+ascii(9)+' '+'S'+' '+ascii(9)+'C'+' '+ascii(9)+'I'+' '+ascii(9)+'L'+' '+ascii(9)+'A'+' '+ascii(9)+'B'+' '+ascii(9)+' '; +//=============================== +R1 = ascii('!'+stripblanks(STRING,%T)+'!'); +W1 = [33. 83. 32. 9. 67. 32. 9. 73. 32. 9. 76. 32. 9. 65. 32. 9. 66. 33.]; +if (R1 <> W1) then pause,end +//=============================== +R2 = ascii('!'+stripblanks(STRING,%F)+'!'); +W2 = [33. 9. 32. 83. 32. 9. 67. 32. 9. 73. 32. 9. 76. 32. 9. 65. 32. 9. 66. 32. 9. 33. ]; +if (R2 <> W2) then pause,end + +// = strings with only blank character ========================================= + +if(stripblanks("")<>"") then pause,end +if(stripblanks(" ")<>"") then pause,end +if(stripblanks(" ")<>"") then pause,end + +if(stripblanks("",%T)<>"") then pause,end +if(stripblanks(" ",%T)<>"") then pause,end +if(stripblanks(" ",%T)<>"") then pause,end + +if(stripblanks(ascii(9))<>ascii(9)) then pause,end +if(stripblanks(ascii(9),%T)<>"") then pause,end diff --git a/modules/string/tests/unit_tests/strncpy.dia.ref b/modules/string/tests/unit_tests/strncpy.dia.ref new file mode 100755 index 000000000..aa8c23719 --- /dev/null +++ b/modules/string/tests/unit_tests/strncpy.dia.ref @@ -0,0 +1,61 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +str1 = "Scilab string 1"; +str2 = "Scilab string 2"; +if strncpy(str1,0) <> strncpy(str2,0) then bugmes();quit;end +//=============================== +if (strncpy(str1,0) <> '') then bugmes();quit;end +//=============================== +if (strncpy(str1,length(str1)) <> str1) then bugmes();quit;end +//=============================== +STR = [str1,str2;str2,str1]; +if strncpy(STR,length(STR)) <> STR then bugmes();quit;end +//=============================== +REF = ['Sc','Sc';'Sc','Sc']; +if strncpy(STR,2) <> REF then bugmes();quit;end +//=============================== +if strncpy('I try to crash scilab',-1) <> '' then bugmes();quit;end +//=============================== +REF = ['S','Sc';'Sci','Scil']; +if strncpy(STR,[1,2;3,4]) <> REF then bugmes();quit;end +//=============================== +STR = 'scilab is The open source platform for numerical computation.'; +if strncpy(STR,6)<> 'scilab' then bugmes();quit;end; +//=============================== +STR1 = strncpy(STR,6); +STR2 = strncpy(STR,8); +STR3 = strncpy(STR,10); +STR4 = strncpy(STR,12); +STR5 = strncpy(STR,14); +STR6 = strncpy(STR,16); +STRS = [STR1,STR2,STR3;STR4,STR5,STR6]; +REF = [STR1,STR1,STR1;STR1,STR1,STR1]; +if strncpy(STRS,6) <> REF then bugmes();quit;end +//=============================== +STRS = [STR,STR,STR;STR,STR,STR]; +STR1 = strncpy(STR,1); +STR2 = strncpy(STR,2); +STR3 = strncpy(STR,3); +STR4 = strncpy(STR,4); +STR5 = strncpy(STR,5); +STR6 = strncpy(STR,6); +REF = [STR1,STR2,STR3;STR4,STR5,STR6]; +if strncpy(STRS,[1,2,3;4,5,6])<> REF then bugmes();quit;end +//=============================== +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; +for i=1:size(tab_ref,'*') + r = strncpy(tab_ref(i),i); + if r <> part(tab_ref(i),1:i) then bugmes();quit;end +end diff --git a/modules/string/tests/unit_tests/strncpy.tst b/modules/string/tests/unit_tests/strncpy.tst new file mode 100755 index 000000000..f944d571c --- /dev/null +++ b/modules/string/tests/unit_tests/strncpy.tst @@ -0,0 +1,64 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +str1 = "Scilab string 1"; +str2 = "Scilab string 2"; +if strncpy(str1,0) <> strncpy(str2,0) then pause,end +//=============================== +if (strncpy(str1,0) <> '') then pause,end +//=============================== +if (strncpy(str1,length(str1)) <> str1) then pause,end +//=============================== +STR = [str1,str2;str2,str1]; +if strncpy(STR,length(STR)) <> STR then pause,end +//=============================== +REF = ['Sc','Sc';'Sc','Sc']; +if strncpy(STR,2) <> REF then pause,end +//=============================== +if strncpy('I try to crash scilab',-1) <> '' then pause,end +//=============================== +REF = ['S','Sc';'Sci','Scil']; +if strncpy(STR,[1,2;3,4]) <> REF then pause,end +//=============================== +STR = 'scilab is The open source platform for numerical computation.'; +if strncpy(STR,6)<> 'scilab' then pause,end; +//=============================== +STR1 = strncpy(STR,6); +STR2 = strncpy(STR,8); +STR3 = strncpy(STR,10); +STR4 = strncpy(STR,12); +STR5 = strncpy(STR,14); +STR6 = strncpy(STR,16); +STRS = [STR1,STR2,STR3;STR4,STR5,STR6]; +REF = [STR1,STR1,STR1;STR1,STR1,STR1]; +if strncpy(STRS,6) <> REF then pause,end +//=============================== +STRS = [STR,STR,STR;STR,STR,STR]; +STR1 = strncpy(STR,1); +STR2 = strncpy(STR,2); +STR3 = strncpy(STR,3); +STR4 = strncpy(STR,4); +STR5 = strncpy(STR,5); +STR6 = strncpy(STR,6); +REF = [STR1,STR2,STR3;STR4,STR5,STR6]; +if strncpy(STRS,[1,2,3;4,5,6])<> REF then pause,end +//=============================== +tab_ref = [ +"世界您好", +"азеазея", +"ハロー・ワールド", +"เฮลโลเวิลด์", +"حريات وحقوق", +"תוכנית"]; + +for i=1:size(tab_ref,'*') + r = strncpy(tab_ref(i),i); + if r <> part(tab_ref(i),1:i) then pause,end +end diff --git a/modules/string/tests/unit_tests/strrchr.dia.ref b/modules/string/tests/unit_tests/strrchr.dia.ref new file mode 100755 index 000000000..d5425f32b --- /dev/null +++ b/modules/string/tests/unit_tests/strrchr.dia.ref @@ -0,0 +1,22 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +if strrchr('Scilab','l') <> 'lab' then bugmes();quit;end +//=============================== +if strrchr('Scilab',' ')<> '' then bugmes();quit;end +//=============================== +STR = 'Scilab string module'; +STR_MAT = [STR,STR;STR,STR]; +if strrchr(STR_MAT,'l') <> ['le','le';'le','le'] then bugmes();quit;end +//=============================== +REF = ['le','string module';'ring module','ab string module']; +if strrchr(STR_MAT,['l','s';'r','a']) <> REF then bugmes();quit;end +//=============================== +STR_MAT = ["STR1","STR2";"STR3","STR4"]; +if strrchr(STR_MAT,["1","2";"3","4"]) <> ["1","2";"3","4"] then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/strrchr.tst b/modules/string/tests/unit_tests/strrchr.tst new file mode 100755 index 000000000..b96b5387c --- /dev/null +++ b/modules/string/tests/unit_tests/strrchr.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +if strrchr('Scilab','l') <> 'lab' then pause,end +//=============================== +if strrchr('Scilab',' ')<> '' then pause,end +//=============================== +STR = 'Scilab string module'; +STR_MAT = [STR,STR;STR,STR]; +if strrchr(STR_MAT,'l') <> ['le','le';'le','le'] then pause,end +//=============================== +REF = ['le','string module';'ring module','ab string module']; +if strrchr(STR_MAT,['l','s';'r','a']) <> REF then pause,end +//=============================== +STR_MAT = ["STR1","STR2";"STR3","STR4"]; +if strrchr(STR_MAT,["1","2";"3","4"]) <> ["1","2";"3","4"] then pause,end +//=============================== + diff --git a/modules/string/tests/unit_tests/strrev.dia.ref b/modules/string/tests/unit_tests/strrev.dia.ref new file mode 100755 index 000000000..2c9fb6b9b --- /dev/null +++ b/modules/string/tests/unit_tests/strrev.dia.ref @@ -0,0 +1,61 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//============================================================================== +str = "Madam,in Eden I''m Adam "; +str_clean = strsubst(str,' ',''); +str_clean = strsubst(str_clean,',',''); +str_clean = strsubst(str_clean,'''',''); +str_clean = convstr(str_clean,'l'); +r = strrev(str_clean); +if r<>str_clean then bugmes();quit;end +//============================================================================== +str = "la mere gide digere mal"; +str_without_blanks = strsubst(str,' ',''); +r = strrev(str_without_blanks); +if r<>str_without_blanks then bugmes();quit;end +//============================================================================== +str = "a man, a plan, a canal : panama"; +str_clean = strsubst(str,' ',''); +str_clean = strsubst(str_clean,',',''); +str_clean = strsubst(str_clean,':',''); +r = strrev(str_clean); +if r<>str_clean then bugmes();quit;end +//============================================================================== +s = strrev(''); +if s <> '' then bugmes();quit;end +//============================================================================== +str1 = "Madam,in Eden I''m Adam"; +str2 = "la mere gide digere mal"; +str3 = "a man, a plan, a canal : panama"; +str1_rev = "madA m''I nedE ni,madaM"; +str2_rev = "lam eregid edig erem al"; +str3_rev = "amanap : lanac a ,nalp a ,nam a"; +if strrev(str1) <> str1_rev then bugmes();quit;end +if strrev(str2) <> str2_rev then bugmes();quit;end +if strrev(str3) <> str3_rev then bugmes();quit;end +if strrev(str1_rev) <> str1 then bugmes();quit;end +if strrev(str2_rev) <> str2 then bugmes();quit;end +if strrev(str3_rev) <> str3 then bugmes();quit;end +//================= +str_test = [ str1 str2 str3 ]; +str_test_rev = [ str1_rev str2_rev str3_rev ]; +if strrev(str_test) <> str_test_rev then bugmes();quit;end +if strrev(str_test) <> [ str1_rev str2_rev str3_rev ] then bugmes();quit;end +if strrev(str_test) <> [ strrev(str1) strrev(str2) strrev(str3) ] then bugmes();quit;end +//================= +str_test = [ str1 ; str2 ; str3 ]; +str_test_rev = [ str1_rev ; str2_rev ; str3_rev ]; +if strrev(str_test) <> str_test_rev then bugmes();quit;end +if strrev(str_test) <> [ str1_rev ; str2_rev ; str3_rev ] then bugmes();quit;end +if strrev(str_test) <> [ strrev(str1) ; strrev(str2) ; strrev(str3) ] then bugmes();quit;end +//================= +str_test = [ str1 str2 ; str3 str1 ]; +str_test_rev = [ str1_rev str2_rev ; str3_rev str1_rev ]; +if strrev(str_test) <> str_test_rev then bugmes();quit;end +if strrev(str_test) <> [ str1_rev str2_rev ; str3_rev str1_rev ] then bugmes();quit;end +if strrev(str_test) <> [ strrev(str1) strrev(str2) ; strrev(str3) strrev(str1) ] then bugmes();quit;end diff --git a/modules/string/tests/unit_tests/strrev.tst b/modules/string/tests/unit_tests/strrev.tst new file mode 100755 index 000000000..50b373c83 --- /dev/null +++ b/modules/string/tests/unit_tests/strrev.tst @@ -0,0 +1,85 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//============================================================================== + +str = "Madam,in Eden I''m Adam "; +str_clean = strsubst(str,' ',''); +str_clean = strsubst(str_clean,',',''); +str_clean = strsubst(str_clean,'''',''); +str_clean = convstr(str_clean,'l'); +r = strrev(str_clean); +if r<>str_clean then pause,end + +//============================================================================== + +str = "la mere gide digere mal"; +str_without_blanks = strsubst(str,' ',''); +r = strrev(str_without_blanks); +if r<>str_without_blanks then pause,end + +//============================================================================== + +str = "a man, a plan, a canal : panama"; +str_clean = strsubst(str,' ',''); +str_clean = strsubst(str_clean,',',''); +str_clean = strsubst(str_clean,':',''); +r = strrev(str_clean); +if r<>str_clean then pause,end + +//============================================================================== + +s = strrev(''); +if s <> '' then pause,end + +//============================================================================== + +str1 = "Madam,in Eden I''m Adam"; +str2 = "la mere gide digere mal"; +str3 = "a man, a plan, a canal : panama"; + +str1_rev = "madA m''I nedE ni,madaM"; +str2_rev = "lam eregid edig erem al"; +str3_rev = "amanap : lanac a ,nalp a ,nam a"; + + +if strrev(str1) <> str1_rev then pause,end +if strrev(str2) <> str2_rev then pause,end +if strrev(str3) <> str3_rev then pause,end + +if strrev(str1_rev) <> str1 then pause,end +if strrev(str2_rev) <> str2 then pause,end +if strrev(str3_rev) <> str3 then pause,end + +//================= + +str_test = [ str1 str2 str3 ]; +str_test_rev = [ str1_rev str2_rev str3_rev ]; + +if strrev(str_test) <> str_test_rev then pause,end +if strrev(str_test) <> [ str1_rev str2_rev str3_rev ] then pause,end +if strrev(str_test) <> [ strrev(str1) strrev(str2) strrev(str3) ] then pause,end + +//================= + +str_test = [ str1 ; str2 ; str3 ]; +str_test_rev = [ str1_rev ; str2_rev ; str3_rev ]; + +if strrev(str_test) <> str_test_rev then pause,end +if strrev(str_test) <> [ str1_rev ; str2_rev ; str3_rev ] then pause,end +if strrev(str_test) <> [ strrev(str1) ; strrev(str2) ; strrev(str3) ] then pause,end + +//================= + +str_test = [ str1 str2 ; str3 str1 ]; +str_test_rev = [ str1_rev str2_rev ; str3_rev str1_rev ]; + +if strrev(str_test) <> str_test_rev then pause,end +if strrev(str_test) <> [ str1_rev str2_rev ; str3_rev str1_rev ] then pause,end +if strrev(str_test) <> [ strrev(str1) strrev(str2) ; strrev(str3) strrev(str1) ] then pause,end diff --git a/modules/string/tests/unit_tests/strsplit.dia.ref b/modules/string/tests/unit_tests/strsplit.dia.ref new file mode 100755 index 000000000..070c64c03 --- /dev/null +++ b/modules/string/tests/unit_tests/strsplit.dia.ref @@ -0,0 +1,186 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests strsplit +//=============================== +STR_SPLITED = ['strsplit splits';'a string';'into';'a vector of strings']; +STR = 'strsplit splits a string into a vector of strings'; +INDICES = [15 25 30]; +R = stripblanks(strsplit(STR,INDICES)); +assert_checkequal(R, STR_SPLITED); +//=============================== +assert_checkequal(strsplit([],[1 1 1]), []); +//=============================== +// Scilab 4.x +//if execstr('strsplit([],[3 2 1])','errcatch') <> 99 then bugmes();quit;end +// Scilab 5.x +assert_checkequal(strsplit([],[3 2 1]), []); +//=============================== +assert_checkequal(execstr('strsplit('',[0 1])','errcatch'), 31); +// Scilab 4.x +//if execstr('strsplit([])','errcatch') <> 39 then bugmes();quit;end +// Scilab 5.1 +//if execstr('strsplit([])','errcatch') <> 77 then bugmes();quit;end +// Scilab 5.2 +assert_checkequal(execstr('strsplit([])','errcatch'), 0); +assert_checkequal(strsplit([]), []); +//=============================== +ref_1 = ["toto"]; +ref_2 = []; +[r_1, r_2] = strsplit("toto","a"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +// request 663 +ref_1 = ["a";"b";"c";"d";"e";"f"]; +ref_2 = ["";"";"";"";"";""]; +[r_1, r_2] = strsplit("abcdef"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1, ""), "abcdef"); +//=============================== +[r_1, r_2] = strsplit("abcdef",""); +[r_3, r_4] = strsplit("abcdef"); +assert_checkequal(r_1, r_3); +assert_checkequal(r_2, r_4); +//=============================== +ref_1 = ["a";"bcdef"]; +ref_2 = [""]; +[r_1, r_2] = strsplit("abcdef","",1); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,""), "abcdef"); +//=============================== +ref_1 = ["abcdef";"ghijkl";"mnopqr";"stuvw";"xyz"]; +ref_2 = [",";",";",";","]; +[r_1, r_2] = strsplit("abcdef,ghijkl,mnopqr,stuvw,xyz",","); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,","), "abcdef,ghijkl,mnopqr,stuvw,xyz"); +//=============================== +ref_1 = ["abc";"";"";"def";"";"ghijkl";"";"mno"]; +ref_2 = [":";":";":";":";":";":";":"]; +[r_1, r_2] = strsplit("abc:::def::ghijkl::mno",":"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,":"), "abc:::def::ghijkl::mno"); +//=============================== +ref_1 = ["abcdef";"ghijkl";"mnopqr";"stuvw";"xyz"]; +ref_2 = ["~~~";"~~~";"~~~";"~~~"] ; +[r_1, r_2] = strsplit("abcdef~~~ghijkl~~~mnopqr~~~stuvw~~~xyz","~~~"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,"~~~"), "abcdef~~~ghijkl~~~mnopqr~~~stuvw~~~xyz"); +//=============================== +ref_1 = ["abcdef";"ghijkl";"mnopqr";"stuvw";"xyz"]; +ref_2 = ["2";"3";"6";"7"]; +[r_1, r_2] = strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_2 = ["scilab";"scilab"]; +ref_1 = ["";" a numerical tools ";"oraty"]; +[r_1, r_2] = strsplit("scilab a numerical tools scilaboraty","/scilab/"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["abcdef";"ghijkl";"mnopqr";"stuvw";"xyz"]; +ref_2 = [ascii(9);ascii(9);ascii(9);ascii(9)]; +[r_1, r_2] = strsplit("abcdef"+ascii(9)+"ghijkl" + ascii(9)+"mnopqr"+ascii(9)+"stuvw" + ascii(9)+"xyz","/\t/") ; +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,ascii(9)), "abcdef" + ascii(9) + "ghijkl" + ascii(9) + "mnopqr" + ascii(9) + "stuvw" + ascii(9) + "xyz"); +//=============================== +ref_1 = ["server.name";"scilab.org"]; +ref_2 = " = "; +linestr = "server.name = scilab.org"; +[r_1, r_2] = strsplit(linestr, "/\s*=\s*/"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,r_2), "server.name = scilab.org"); +//=============================== +ierr = execstr("strsplit(''root:x:0:0:root:/root:/bin/bash'','':'',0)","errcatch"); +assert_checkequal(ierr, 999); +//=============================== +ref_1 = ["root";"x:0:0:root:/root:/bin/bash"]; +ref_2 = ":"; +[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",1); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["root";"x";"0";"0";"root";"/root:/bin/bash"]; +ref_2 = [":";":";":";":";":"]; +[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",5); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",7); +[r_3, r_4] = strsplit("root:x:0:0:root:/root:/bin/bash",":",50); +assert_checkequal(r_1, r_3); +assert_checkequal(r_2, r_4); +//=============================== +ref_1 = ["abc";""]; +ref_2 = ','; +[r_1, r_2] = strsplit("abc,",","); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["abc";""]; +ref_2 = ','; +[r_1, r_2] = strsplit("abc,",",",1); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +[r_1, r_2] = strsplit("abc,",",",1); +[r_3, r_4] = strsplit("abc,",",",10); +assert_checkequal(r_1, r_3); +assert_checkequal(r_2, r_4); +//=============================== +ref_1 = ["abc";"def";"ijk";"";"lmo"]; +ref_2 = [",";":";",";":"]; +[r_1, r_2] = strsplit("abc,def:ijk,:lmo","/:|,/"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["abc";"def";"ijk";"";"lmo"]; +ref_2 = [",";":";",";":"]; +[r_1, r_2] = strsplit("abc,def:ijk,:lmo",[":";","]); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["abc";"def";"ijk,:lmo"]; +ref_2 = [",";":"]; +[r_1, r_2] = strsplit("abc,def:ijk,:lmo",[":";","],2); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +v = "世界您好"; +c = "您"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== +v = "азеаея"; +c = "з"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== +v = "ድቅስድስግ"; +c = "ቅ"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== +v = "ハロー・ワールド"; +c = "ド"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== +v = "תוכנית"; +c = "י"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== diff --git a/modules/string/tests/unit_tests/strsplit.tst b/modules/string/tests/unit_tests/strsplit.tst new file mode 100755 index 000000000..6dfbcbcf8 --- /dev/null +++ b/modules/string/tests/unit_tests/strsplit.tst @@ -0,0 +1,188 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// Copyright (C) 2009 - DIGITEO - Allan CORNET +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests strsplit +//=============================== +STR_SPLITED = ['strsplit splits';'a string';'into';'a vector of strings']; +STR = 'strsplit splits a string into a vector of strings'; +INDICES = [15 25 30]; +R = stripblanks(strsplit(STR,INDICES)); +assert_checkequal(R, STR_SPLITED); +//=============================== +assert_checkequal(strsplit([],[1 1 1]), []); +//=============================== +// Scilab 4.x +//if execstr('strsplit([],[3 2 1])','errcatch') <> 99 then pause,end +// Scilab 5.x +assert_checkequal(strsplit([],[3 2 1]), []); +//=============================== +assert_checkequal(execstr('strsplit('',[0 1])','errcatch'), 31); +// Scilab 4.x +//if execstr('strsplit([])','errcatch') <> 39 then pause,end +// Scilab 5.1 +//if execstr('strsplit([])','errcatch') <> 77 then pause,end +// Scilab 5.2 +assert_checkequal(execstr('strsplit([])','errcatch'), 0); +assert_checkequal(strsplit([]), []); +//=============================== +ref_1 = ["toto"]; +ref_2 = []; +[r_1, r_2] = strsplit("toto","a"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +// request 663 +ref_1 = ["a";"b";"c";"d";"e";"f"]; +ref_2 = ["";"";"";"";"";""]; +[r_1, r_2] = strsplit("abcdef"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1, ""), "abcdef"); +//=============================== +[r_1, r_2] = strsplit("abcdef",""); +[r_3, r_4] = strsplit("abcdef"); +assert_checkequal(r_1, r_3); +assert_checkequal(r_2, r_4); +//=============================== +ref_1 = ["a";"bcdef"]; +ref_2 = [""]; +[r_1, r_2] = strsplit("abcdef","",1); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,""), "abcdef"); +//=============================== +ref_1 = ["abcdef";"ghijkl";"mnopqr";"stuvw";"xyz"]; +ref_2 = [",";",";",";","]; +[r_1, r_2] = strsplit("abcdef,ghijkl,mnopqr,stuvw,xyz",","); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,","), "abcdef,ghijkl,mnopqr,stuvw,xyz"); +//=============================== +ref_1 = ["abc";"";"";"def";"";"ghijkl";"";"mno"]; +ref_2 = [":";":";":";":";":";":";":"]; +[r_1, r_2] = strsplit("abc:::def::ghijkl::mno",":"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,":"), "abc:::def::ghijkl::mno"); +//=============================== +ref_1 = ["abcdef";"ghijkl";"mnopqr";"stuvw";"xyz"]; +ref_2 = ["~~~";"~~~";"~~~";"~~~"] ; +[r_1, r_2] = strsplit("abcdef~~~ghijkl~~~mnopqr~~~stuvw~~~xyz","~~~"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,"~~~"), "abcdef~~~ghijkl~~~mnopqr~~~stuvw~~~xyz"); +//=============================== +ref_1 = ["abcdef";"ghijkl";"mnopqr";"stuvw";"xyz"]; +ref_2 = ["2";"3";"6";"7"]; +[r_1, r_2] = strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_2 = ["scilab";"scilab"]; +ref_1 = ["";" a numerical tools ";"oraty"]; +[r_1, r_2] = strsplit("scilab a numerical tools scilaboraty","/scilab/"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["abcdef";"ghijkl";"mnopqr";"stuvw";"xyz"]; +ref_2 = [ascii(9);ascii(9);ascii(9);ascii(9)]; +[r_1, r_2] = strsplit("abcdef"+ascii(9)+"ghijkl" + ascii(9)+"mnopqr"+ascii(9)+"stuvw" + ascii(9)+"xyz","/\t/") ; +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,ascii(9)), "abcdef" + ascii(9) + "ghijkl" + ascii(9) + "mnopqr" + ascii(9) + "stuvw" + ascii(9) + "xyz"); +//=============================== +ref_1 = ["server.name";"scilab.org"]; +ref_2 = " = "; +linestr = "server.name = scilab.org"; +[r_1, r_2] = strsplit(linestr, "/\s*=\s*/"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +assert_checkequal(strcat(r_1,r_2), "server.name = scilab.org"); +//=============================== +ierr = execstr("strsplit(''root:x:0:0:root:/root:/bin/bash'','':'',0)","errcatch"); +assert_checkequal(ierr, 999); +//=============================== +ref_1 = ["root";"x:0:0:root:/root:/bin/bash"]; +ref_2 = ":"; +[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",1); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["root";"x";"0";"0";"root";"/root:/bin/bash"]; +ref_2 = [":";":";":";":";":"]; +[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",5); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",7); +[r_3, r_4] = strsplit("root:x:0:0:root:/root:/bin/bash",":",50); +assert_checkequal(r_1, r_3); +assert_checkequal(r_2, r_4); +//=============================== +ref_1 = ["abc";""]; +ref_2 = ','; +[r_1, r_2] = strsplit("abc,",","); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["abc";""]; +ref_2 = ','; +[r_1, r_2] = strsplit("abc,",",",1); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +[r_1, r_2] = strsplit("abc,",",",1); +[r_3, r_4] = strsplit("abc,",",",10); +assert_checkequal(r_1, r_3); +assert_checkequal(r_2, r_4); +//=============================== +ref_1 = ["abc";"def";"ijk";"";"lmo"]; +ref_2 = [",";":";",";":"]; +[r_1, r_2] = strsplit("abc,def:ijk,:lmo","/:|,/"); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["abc";"def";"ijk";"";"lmo"]; +ref_2 = [",";":";",";":"]; +[r_1, r_2] = strsplit("abc,def:ijk,:lmo",[":";","]); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +ref_1 = ["abc";"def";"ijk,:lmo"]; +ref_2 = [",";":"]; +[r_1, r_2] = strsplit("abc,def:ijk,:lmo",[":";","],2); +assert_checkequal(ref_1, r_1); +assert_checkequal(ref_2, r_2); +//=============================== +v = "世界您好"; +c = "您"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== +v = "азеаея"; +c = "з"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== +v = "ድቅስድስግ"; +c = "ቅ"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== +v = "ハロー・ワールド"; +c = "ド"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== +v = "תוכנית"; +c = "י"; +[r_1,r_2] = strsplit(v,c); +assert_checkequal(strcat(r_1,r_2), v); +//=============================== diff --git a/modules/string/tests/unit_tests/strspn.dia.ref b/modules/string/tests/unit_tests/strspn.dia.ref new file mode 100755 index 000000000..d5645a422 --- /dev/null +++ b/modules/string/tests/unit_tests/strspn.dia.ref @@ -0,0 +1,28 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +if strspn('fcba73','fcb') <> 3 then bugmes();quit;end +//=============================== +if strspn('fcba73','f') <> 1 then bugmes();quit;end +//=============================== +if strspn('fcba73','') <> 0 then bugmes();quit;end +//=============================== +if strspn('129th','1234567890') <> 3 then bugmes();quit;end +//=============================== +STR1 = 'Scilab'; +STR2 = 'The Numerical Tool for Engineers'; +STR = [STR1,STR2;STR2,STR1]; +if strspn(STR,'i') <> [ 0 , 0 ; 0 , 0] then bugmes();quit;end +if strspn(STR,'The') <> [ 0 , 3 ; 3 , 0 ] then bugmes();quit;end +if strspn(STR,['Sci','The';'u','a']) <> [ 3 , 3 ; 0 , 0 ] then bugmes();quit;end +//=============================== +STR1 = 'Scilab'; +STR2 = 'The Numerical Tool for Engineers'; +STR = [STR1,STR2]; +if strspn(STR,['Scilab','Tool']) <> [ 6 , 1 ] then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/strspn.tst b/modules/string/tests/unit_tests/strspn.tst new file mode 100755 index 000000000..90812b3e3 --- /dev/null +++ b/modules/string/tests/unit_tests/strspn.tst @@ -0,0 +1,30 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +if strspn('fcba73','fcb') <> 3 then pause,end +//=============================== +if strspn('fcba73','f') <> 1 then pause,end +//=============================== +if strspn('fcba73','') <> 0 then pause,end +//=============================== +if strspn('129th','1234567890') <> 3 then pause,end +//=============================== +STR1 = 'Scilab'; +STR2 = 'The Numerical Tool for Engineers'; +STR = [STR1,STR2;STR2,STR1]; +if strspn(STR,'i') <> [ 0 , 0 ; 0 , 0] then pause,end +if strspn(STR,'The') <> [ 0 , 3 ; 3 , 0 ] then pause,end +if strspn(STR,['Sci','The';'u','a']) <> [ 3 , 3 ; 0 , 0 ] then pause,end +//=============================== +STR1 = 'Scilab'; +STR2 = 'The Numerical Tool for Engineers'; +STR = [STR1,STR2]; +if strspn(STR,['Scilab','Tool']) <> [ 6 , 1 ] then pause,end +//=============================== diff --git a/modules/string/tests/unit_tests/strstr.dia.ref b/modules/string/tests/unit_tests/strstr.dia.ref new file mode 100755 index 000000000..8119b0393 --- /dev/null +++ b/modules/string/tests/unit_tests/strstr.dia.ref @@ -0,0 +1,33 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +str = "This is a simple string"; +r = strstr (str,"simple"); +if r <> 'simple string' then bugmes();quit;end; +//=============================== +r = strstr (str,"sample"); +if r <> '' then bugmes();quit;end; +//=============================== +if strstr('','')<>'' then bugmes();quit;end; +//=============================== +str1 ='1A2s 2'; +str2 ='1B3sc2'; +str3 ='1C4sci2'; +STR = [str1;str2;str3]; +r = strstr (STR,"s"); +if r <> ['s 2';'sc2';'sci2'] then bugmes();quit;end; +//=============================== +r = strstr (STR,''); +if r <> STR then bugmes();quit;end; +//=============================== +r = strstr (STR,['A';'3';'i']); +if r <> ['A2s 2';'3sc2';'sci2'] then bugmes();quit;end; +//=============================== +r = strstr (STR,['';'';'']); +if r <> STR then bugmes();quit;end; +//=============================== diff --git a/modules/string/tests/unit_tests/strstr.tst b/modules/string/tests/unit_tests/strstr.tst new file mode 100755 index 000000000..c6d85bf72 --- /dev/null +++ b/modules/string/tests/unit_tests/strstr.tst @@ -0,0 +1,35 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +str = "This is a simple string"; +r = strstr (str,"simple"); +if r <> 'simple string' then pause,end; +//=============================== +r = strstr (str,"sample"); +if r <> '' then pause,end; +//=============================== +if strstr('','')<>'' then pause,end; +//=============================== +str1 ='1A2s 2'; +str2 ='1B3sc2'; +str3 ='1C4sci2'; +STR = [str1;str2;str3]; +r = strstr (STR,"s"); +if r <> ['s 2';'sc2';'sci2'] then pause,end; +//=============================== +r = strstr (STR,''); +if r <> STR then pause,end; +//=============================== +r = strstr (STR,['A';'3';'i']); +if r <> ['A2s 2';'3sc2';'sci2'] then pause,end; +//=============================== +r = strstr (STR,['';'';'']); +if r <> STR then pause,end; +//===============================
\ No newline at end of file diff --git a/modules/string/tests/unit_tests/strsubst.dia.ref b/modules/string/tests/unit_tests/strsubst.dia.ref new file mode 100755 index 000000000..66c435c16 --- /dev/null +++ b/modules/string/tests/unit_tests/strsubst.dia.ref @@ -0,0 +1,392 @@ +//======================================================================================== +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +//======================================================================================== +// <-- CLI SHELL MODE --> +//======================================================================================== +// unit tests strsubst +//======================================================================================== +if strsubst('abc,abd,aa,bxe',',',';')<>'abc;abd;aa;bxe' then bugmes();quit;end +//======================================================================================== +if strsubst('abc,abd,aa,bxe',',',emptystr())<>'abcabdaabxe' then bugmes();quit;end +//======================================================================================== +if strsubst(',abc,abd,aa,bxe',',',emptystr())<>'abcabdaabxe' then bugmes();quit;end +//======================================================================================== +if strsubst('abc',',',';')<>'abc' then bugmes();quit;end +//======================================================================================== +if strsubst('SCI/demos/scicos','SCI','.') <> './demos/scicos' then bugmes();quit;end +//======================================================================================== +if strsubst('SCI/demos/scicos','/',' ') <> 'SCI demos scicos' then bugmes();quit;end +//======================================================================================== +if strsubst([],'/',' ') <> [] then bugmes();quit;end +//======================================================================================== +if strsubst([],' ','') <> [] then bugmes();quit;end +//======================================================================================== +if strsubst('',' ','') <> '' then bugmes();quit;end +//======================================================================================== +if strsubst("2","3","1") <> "2" then bugmes();quit;end +//======================================================================================== +if strsubst(["2","3"],"3","1") <> ['2' '1'] then bugmes();quit;end +//======================================================================================== +r = strsubst(['Scilab','Mathlab';'Octlab','Rlab'],'lab',''); +ref = ['Sci','Math';'Oct','R']; +if (r <> ref) then bugmes();quit;end +//======================================================================================== +if strsubst('xbc','/abc/',' ','r') <> 'xbc' then bugmes();quit;end +if strsubst('axc','/abc/',' ','r') <> 'axc' then bugmes();quit;end +if strsubst('xaccy','/abc/',' ','r') <> 'xaccy' then bugmes();quit;end +if strsubst('abc','/ab*c/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab*bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abbc','/ab*bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abbbbc','/ab*bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abbbbc','/.{1}/',' ','r') <> ' bbbbc' then bugmes();quit;end +if strsubst('abbbbc','/.{3,4}/',' ','r') <> ' bc' then bugmes();quit;end +if strsubst('abbbbc','/ab{0,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbc','/ab+bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abc','/ab+bc/','^','r') <> 'abc' then bugmes();quit;end +if strsubst('abq','/ab+bc/','^','r') <> 'abq' then bugmes();quit;end +if strsubst('abbc','/ab{1,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab+bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab{1,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbc','/ab{1,3}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab{3,4}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab{4,5}bc/','^','r') <> 'abbbbc' then bugmes();quit;end +if strsubst('abbc','/ab?bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab?bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab{0,1}bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('xaccy','/ab?bc/',' ','r') <> 'xaccy' then bugmes();quit;end +if strsubst('abc','/ab?c/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab{0,1}c/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abbc','/ab*bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/^abc$/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abcc','/^abc$/',' ','r') <> 'abcc' then bugmes();quit;end +if strsubst('aabc','/^abc&/',' ','r') <> 'aabc' then bugmes();quit;end +if strsubst('abbbbc','/ab{0,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('aabc','/abc$/','^','r') <> 'a^' then bugmes();quit;end +if strsubst('abc','/ab+bc/','^','r') <> 'abc' then bugmes();quit;end +if strsubst('abq','/ab+bc/','^','r') <> 'abq' then bugmes();quit;end +if strsubst('abbc','/ab{1,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab+bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab{1,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then bugmes();quit;end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then bugmes();quit;end +if strsubst('yz','/\by\B/','^','r') <> '^z' then bugmes();quit;end +if strsubst('e','/a|b|c|d|e/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abcdefg','/abcd*efg/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('xaccy','/abc/',' ','r') <> 'xaccy' then bugmes();quit;end +if strsubst('xabyabbbz','/ab*/',' ','r') <> 'x yabbbz' then bugmes();quit;end +if strsubst('hij','/[abhgefdc]ij/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abcde','/^(ab|cd)e/',' ','r') <> 'abcde' then bugmes();quit;end +if strsubst('abbbbc','/ab*bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abbbbc','/.{1}/',' ','r') <> ' bbbbc' then bugmes();quit;end +if strsubst('abbbbc','/.{3,4}/',' ','r') <> ' bc' then bugmes();quit;end +if strsubst('effg','/(bc+d$|ef*g.|h?i(j|k))/','^','r') <> 'effg' then bugmes();quit;end +if strsubst('aa','/((((((((((a))))))))))\10/','^','r') <> '^' then bugmes();quit;end +if strsubst('a!','/((((((((((a))))))))))\041/','^','r') <> '^' then bugmes();quit;end +if strsubst('a','/(((((((((a)))))))))/','^','r') <> '^' then bugmes();quit;end +if strsubst('multiple words, yeah','/multiple words/','^','r') <> '^, yeah' then bugmes();quit;end +if strsubst('ac','/a[-]?c/','^','r') <> '^' then bugmes();quit;end +if strsubst('a','/(a)|\1/','^','r') <> '^' then bugmes();quit;end +if strsubst('A-','/a[-b]/i','^','r') <> '^' then bugmes();quit;end +if strsubst('A-','/a[b-]/i','^','r') <> '^' then bugmes();quit;end +if strsubst('A]','/a]/i','^','r') <> '^' then bugmes();quit;end +if strsubst('abbc','/ab?bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab?bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab{0,1}bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('xaccy','/ab?bc/',' ','r') <> 'xaccy' then bugmes();quit;end +if strsubst('abc','/ab?c/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab{0,1}c/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abbc','/ab*bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/^abc$/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abcc','/^abc$/',' ','r') <> 'abcc' then bugmes();quit;end +if strsubst('aabc','/^abc&/',' ','r') <> 'aabc' then bugmes();quit;end +if strsubst('abbbbc','/ab{0,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('aabc','/abc$/','^','r') <> 'a^' then bugmes();quit;end +if strsubst('abc','/ab+bc/','^','r') <> 'abc' then bugmes();quit;end +if strsubst('abq','/ab+bc/','^','r') <> 'abq' then bugmes();quit;end +if strsubst('abbc','/ab{1,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab+bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab{1,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then bugmes();quit;end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then bugmes();quit;end +if strsubst('yz','/\by\B/','^','r') <> '^z' then bugmes();quit;end +if strsubst('e','/a|b|c|d|e/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abcdefg','/abcd*efg/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('xaccy','/abc/',' ','r') <> 'xaccy' then bugmes();quit;end +if strsubst('xabyabbbz','/ab*/',' ','r') <> 'x yabbbz' then bugmes();quit;end +if strsubst('hij','/[abhgefdc]ij/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abcde','/^(ab|cd)e/',' ','r') <> 'abcde' then bugmes();quit;end +if strsubst('abbbbc','/ab*bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abbbbc','/.{1}/',' ','r') <> ' bbbbc' then bugmes();quit;end +if strsubst('abbbbc','/.{3,4}/',' ','r') <> ' bc' then bugmes();quit;end +if strsubst('effg','/(bc+d$|ef*g.|h?i(j|k))/','^','r') <> 'effg' then bugmes();quit;end +if strsubst('aa','/((((((((((a))))))))))\10/','^','r') <> '^' then bugmes();quit;end +if strsubst('a!','/((((((((((a))))))))))\041/','^','r') <> '^' then bugmes();quit;end +if strsubst('a','/(((((((((a)))))))))/','^','r') <> '^' then bugmes();quit;end +if strsubst('multiple words, yeah','/multiple words/','^','r') <> '^, yeah' then bugmes();quit;end +if strsubst('ac','/a[-]?c/','^','r') <> '^' then bugmes();quit;end +if strsubst('a','/(a)|\1/','^','r') <> '^' then bugmes();quit;end +if strsubst('A-','/a[-b]/i','^','r') <> '^' then bugmes();quit;end +if strsubst('A-','/a[b-]/i','^','r') <> '^' then bugmes();quit;end +if strsubst('A]','/a]/i','^','r') <> '^' then bugmes();quit;end +if strsubst('abbc','/ab?bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab?bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab{0,1}bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('xaccy','/ab?bc/',' ','r') <> 'xaccy' then bugmes();quit;end +if strsubst('abc','/ab?c/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/ab{0,1}c/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abbc','/ab*bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abc','/^abc$/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abcc','/^abc$/',' ','r') <> 'abcc' then bugmes();quit;end +if strsubst('aabc','/^abc&/',' ','r') <> 'aabc' then bugmes();quit;end +if strsubst('abbbbc','/ab{0,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('aabc','/abc$/','^','r') <> 'a^' then bugmes();quit;end +if strsubst('abc','/ab+bc/','^','r') <> 'abc' then bugmes();quit;end +if strsubst('abq','/ab+bc/','^','r') <> 'abq' then bugmes();quit;end +if strsubst('abbc','/ab{1,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab+bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('abbbbc','/ab{1,}bc/','^','r') <> '^' then bugmes();quit;end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then bugmes();quit;end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then bugmes();quit;end +if strsubst('yz','/\by\B/','^','r') <> '^z' then bugmes();quit;end +if strsubst('e','/a|b|c|d|e/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abcdefg','/abcd*efg/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('xaccy','/abc/',' ','r') <> 'xaccy' then bugmes();quit;end +if strsubst('xabyabbbz','/ab*/',' ','r') <> 'x yabbbz' then bugmes();quit;end +if strsubst('hij','/[abhgefdc]ij/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abcde','/^(ab|cd)e/',' ','r') <> 'abcde' then bugmes();quit;end +if strsubst('abbbbc','/ab*bc/',' ','r') <> ' ' then bugmes();quit;end +if strsubst('abbbbc','/.{1}/',' ','r') <> ' bbbbc' then bugmes();quit;end +if strsubst('abbbbc','/.{3,4}/',' ','r') <> ' bc' then bugmes();quit;end +if strsubst('effg','/(bc+d$|ef*g.|h?i(j|k))/','^','r') <> 'effg' then bugmes();quit;end +if strsubst('aa','/((((((((((a))))))))))\10/','^','r') <> '^' then bugmes();quit;end +if strsubst('a!','/((((((((((a))))))))))\041/','^','r') <> '^' then bugmes();quit;end +if strsubst('a','/(((((((((a)))))))))/','^','r') <> '^' then bugmes();quit;end +if strsubst('multiple words, yeah','/multiple words/','^','r') <> '^, yeah' then bugmes();quit;end +if strsubst('ac','/a[-]?c/','^','r') <> '^' then bugmes();quit;end +if strsubst('a','/(a)|\1/','^','r') <> '^' then bugmes();quit;end +if strsubst('A-','/a[-b]/i','^','r') <> '^' then bugmes();quit;end +if strsubst('A-','/a[b-]/i','^','r') <> '^' then bugmes();quit;end +if strsubst('A]','/a]/i','^','r') <> '^' then bugmes();quit;end +if strsubst('abc','/abc/',' ','r') <> ' ' then bugmes();quit;end +//======================================================================================== +if strsubst('......abef','/.*a(?!(b|cd)*e).*f/' ,' ' ,'r') <> '......abef' then bugmes();quit;end +if strsubst('fools','/(foo|fool|x.|money|parted)$/' ,' ' ,'r') <> 'fools' then bugmes();quit;end +if strsubst('fools','/(x.|foo|fool|x.|money|parted|y.)$/' ,' ' ,'r') <> 'fools' then bugmes();quit;end +if strsubst('fools','/(foo|fool|money|parted)$/' ,' ' ,'r') <> 'fools' then bugmes();quit;end +if strsubst('Oo','/^(o)(?!.*\1)/i' ,' ' ,'r') <> 'Oo' then bugmes();quit;end +if strsubst('AbCd','/ab(?i)cd/' ,' ' ,'r') <> 'AbCd' then bugmes();quit;end +if strsubst('a\nb\n','/a\Z/' ,' ' ,'r') <> 'a\nb\n' then bugmes();quit;end +if strsubst('a\nb\n','/a\z/' ,' ' ,'r') <> 'a\nb\n' then bugmes();quit;end +if strsubst('a\nb\n','/a$/' ,' ' ,'r') <> 'a\nb\n' then bugmes();quit;end +if strsubst('b\na\n','/a\z/' ,' ' ,'r') <> 'b\na\n' then bugmes();quit;end +if strsubst('a\nb\n','/a\Z/m' ,' ' ,'r') <> 'a\nb\n' then bugmes();quit;end +if strsubst('a\nb\n','/a\z/m' ,' ' ,'r') <> 'a\nb\n' then bugmes();quit;end +if strsubst('b\na\n','/a\z/m' ,' ' ,'r') <> 'b\na\n' then bugmes();quit;end +if strsubst('aa\nb\n','/aa\Z/' ,' ' ,'r') <> 'aa\nb\n' then bugmes();quit;end +if strsubst('aa\nb\n','/aa\z/' ,' ' ,'r') <> 'aa\nb\n' then bugmes();quit;end +if strsubst('aa\nb\n','/aa$/' ,' ' ,'r') <> 'aa\nb\n' then bugmes();quit;end +if strsubst('b\naa\n','/aa\z/' ,' ' ,'r') <> 'b\naa\n' then bugmes();quit;end +if strsubst('aa\nb\n','/aa\Z/m' ,' ' ,'r') <> 'aa\nb\n' then bugmes();quit;end +if strsubst('aa\nb\n','/aa\z/m' ,' ' ,'r') <> 'aa\nb\n' then bugmes();quit;end +if strsubst('b\naa\n','/aa\z/m' ,' ' ,'r') <> 'b\naa\n' then bugmes();quit;end +if strsubst('ac\nb\n','/aa\Z/' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n','/aa\z/' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n','/aa$/' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('b\nac\n','/aa\Z/' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n','/aa\z/' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n','/aa$/' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac' ,'/aa\Z/' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/aa\z/' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/aa$/' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('ac\nb\n','/aa\Z/m' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n','/aa\z/m' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n','/aa$/m' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('b\nac\n','/aa\Z/m' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n','/aa\z/m' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n','/aa$/m' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac' ,'/aa\Z/m' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/aa\z/m' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/aa$/m' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('ca\nb\n','/aa\Z/' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n','/aa\z/' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n','/aa$/' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('b\nca\n','/aa\Z/' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n','/aa\z/' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n','/aa$/' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca' ,'/aa\Z/' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/aa\z/' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/aa$/' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('ca\nb\n','/aa\Z/m' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n','/aa\z/m' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n','/aa$/m' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('b\nca\n','/aa\Z/m' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n','/aa\z/m' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n','/aa$/m' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca' ,'/aa\Z/m' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/aa\z/m' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/aa$/m' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('ab\nb\n','/ab\Z/' ,' ' ,'r') <> 'ab\nb\n' then bugmes();quit;end +if strsubst('ab\nb\n','/ab\z/' ,' ' ,'r') <> 'ab\nb\n' then bugmes();quit;end +if strsubst('ab\nb\n','/ab$/' ,' ' ,'r') <> 'ab\nb\n' then bugmes();quit;end +if strsubst('b\nab\n','/ab\z/' ,' ' ,'r') <> 'b\nab\n' then bugmes();quit;end +if strsubst('ab\nb\n','/ab\Z/m' ,' ' ,'r') <> 'ab\nb\n' then bugmes();quit;end +if strsubst('ab\nb\n','/ab\z/m' ,' ' ,'r') <> 'ab\nb\n' then bugmes();quit;end +if strsubst('b\nab\n','/ab\z/m' ,' ' ,'r') <> 'b\nab\n' then bugmes();quit;end +if strsubst('ac\nb\n','/ab\Z/' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n','/ab\z/' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n','/ab$/' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('b\nac\n','/ab\Z/' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n','/ab\z/' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n','/ab$/' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac' ,'/ab\Z/' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/ab\z/' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/ab$/' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('ac\nb\n','/ab\Z/m' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n','/ab\z/m' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n','/ab$/m' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('b\nac\n','/ab\Z/m' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n','/ab\z/m' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n','/ab$/m' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac' ,'/ab\Z/m' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/ab\z/m' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/ab$/m' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('ca\nb\n','/ab\Z/' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n','/ab\z/' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n','/ab$/' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('b\nca\n','/ab\Z/' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n','/ab\z/' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n','/ab$/' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca' ,'/ab\Z/' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/ab\z/' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/ab$/' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('ca\nb\n','/ab\Z/m' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n','/ab\z/m' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n','/ab$/m' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('b\nca\n','/ab\Z/m' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n' ,'/ab\z/m' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n','/ab$/m' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca' ,'/ab\Z/m' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/ab\z/m' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/ab$/m' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('abb\nb\n' ,'/abb\Z/' ,' ' ,'r') <> 'abb\nb\n' then bugmes();quit;end +if strsubst('abb\nb\n' ,'/abb\z/' ,' ' ,'r') <> 'abb\nb\n' then bugmes();quit;end +if strsubst('abb\nb\n' ,'/abb$/' ,' ' ,'r') <> 'abb\nb\n' then bugmes();quit;end +if strsubst('b\nabb\n' ,'/abb\z/' ,' ' ,'r') <> 'b\nabb\n' then bugmes();quit;end +if strsubst('abb\nb\n' ,'/abb\Z/m' ,' ' ,'r') <> 'abb\nb\n' then bugmes();quit;end +if strsubst('abb\nb\n' ,'/abb\z/m' ,' ' ,'r') <> 'abb\nb\n' then bugmes();quit;end +if strsubst('b\nabb\n','/abb\z/m' ,' ' ,'r') <> 'b\nabb\n' then bugmes();quit;end +if strsubst('ac\nb\n' ,'/abb\Z/' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n' ,'/abb\z/' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n' ,'/abb$/' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('b\nac\n' ,'/abb\Z/' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n' ,'/abb\z/' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n' ,'/abb$/' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac' ,'/abb\Z/' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/abb\z/' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/abb$/' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('ac\nb\n' ,'/abb\Z/m' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n' ,'/abb\z/m' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('ac\nb\n' ,'/abb$/m' ,' ' ,'r') <> 'ac\nb\n' then bugmes();quit;end +if strsubst('b\nac\n' ,'/abb\Z/m' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n' ,'/abb\z/m' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac\n' ,'/abb$/m' ,' ' ,'r') <> 'b\nac\n' then bugmes();quit;end +if strsubst('b\nac' ,'/abb\Z/m' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/abb\z/m' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('b\nac' ,'/abb$/m' ,' ' ,'r') <> 'b\nac' then bugmes();quit;end +if strsubst('ca\nb\n' ,'/abb\Z/' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n' ,'/abb\z/' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n' ,'/abb$/' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('b\nca\n' ,'/abb\Z/' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n' ,'/abb\z/' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n' ,'/abb$/' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca' ,'/abb\Z/' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/abb\z/' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/abb$/' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('ca\nb\n' ,'/abb\Z/m' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n' ,'/abb\z/m' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('ca\nb\n' ,'/abb$/m' ,' ' ,'r') <> 'ca\nb\n' then bugmes();quit;end +if strsubst('b\nca\n' ,'/abb\Z/m' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n' ,'/abb\z/m' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca\n' ,'/abb$/m' ,' ' ,'r') <> 'b\nca\n' then bugmes();quit;end +if strsubst('b\nca' ,'/abb\Z/m' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/abb\z/m' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('b\nca' ,'/abb$/m' ,' ' ,'r') <> 'b\nca' then bugmes();quit;end +if strsubst('aaab' ,'/^(?=(a+?))\1ab/' ,' ' ,'r') <> 'aaab' then bugmes();quit;end +if strsubst('aaab' ,'/^(?=(a+?))\1ab/' ,' ' ,'r') <> 'aaab' then bugmes();quit;end +if strsubst('abcd:' ,'/([\w:]+::)?(\w+)$/' ,' ' ,'r') <> 'abcd:' then bugmes();quit;end +if strsubst('abcd:' ,'/([\w:]+::)?(\w+)$/' ,' ' ,'r') <> 'abcd:' then bugmes();quit;end +if strsubst('aaab' ,'/(>a+)ab/' ,' ' ,'r') <> 'aaab' then bugmes();quit;end +//======================================================================================== +v = "世界您好"; +c = "您"; +if strsubst(v,c,'ç')<>'世界ç好' then bugmes();quit;end +v = "азеазея"; +c = "з"; +if strsubst(v,c,'ç')<>'аçеаçея' then bugmes();quit;end +v = "ድቅስድቅስግ"; +c = "ቅ"; +if strsubst(v,c,'ç')<> 'ድçስድçስግ' then bugmes();quit;end +v = "ハロー・ワールド"; +c = "ド"; +if strsubst(v,c,'ç')<> 'ハロー・ワールç' then bugmes();quit;end +v = "เฮลโลเวิลด์"; +c = "เ"; +if strsubst(v,c,'ç')<> 'çฮลโลçวิลด์' then bugmes();quit;end +v = "حريات وحقوق"; +c = "قوق"; +if strsubst(v,c,'ç')<> 'حريات وحç' then bugmes();quit;end +v = "ഹലോ വേള്ഡ"; +c = "ഡ"; +if strsubst(v,c,'ç')<>'ഹലോ വേള്ç' then bugmes();quit;end +v = "תוכנית"; +c = "י"; +if strsubst(v,c,'ç')<>'תוכנçת' then bugmes();quit;end +//=============================== +// Chinese +str = '世界您好'; +if strsubst(str,'/^世界/','ç','r') <> 'ç您好' then bugmes();quit;end +if strsubst(str,'/世界$/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/您好$/','ç','r') <> '世界ç' then bugmes();quit;end +if strsubst(str,'/^您好/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/界您/','ç','r') <> '世ç好' then bugmes();quit;end +if strsubst(str,'/界_您/','ç','r') <> str then bugmes();quit;end +//======================================================================================== +// Russian +str = 'привет мир'; +if strsubst(str,'/^привет/','ç','r') <> 'ç мир' then bugmes();quit;end +if strsubst(str,'/привет$/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/мир$/','ç','r') <> 'привет ç' then bugmes();quit;end +if strsubst(str,'/^мир/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/вет\sм/','ç','r') <> 'приçир' then bugmes();quit;end +if strsubst(str,'/вет_м/','ç','r') <> 'привет мир' then bugmes();quit;end +//======================================================================================== +// Cyrilic +str = 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ'; +if strsubst(str,'/^АБВГДЄЖЅЗИІКЛМНОПҀР/','ç','r') <> 'çСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ' then bugmes();quit;end +if strsubst(str,'/АБВГДЄЖЅЗИІКЛМНОПҀР$/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ$/','ç','r') <> 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦç' then bugmes();quit;end +if strsubst(str,'/^ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/ИІКЛМНОПҀРСТѸФХѠЦЧШЩЪ/','ç','r') <> 'АБВГДЄЖЅЗçЪІЬѢЮѦѨѪѬѮѰѲѴѤ' then bugmes();quit;end +if strsubst(str,'/ИІКЛМНОПҀ_РСТѸФХѠЦЧШЩЪ/','ç','r') <> str then bugmes();quit;end +//======================================================================================== +// Japanese +str = '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃'; +if strsubst(str,'/^丑丞串乃之乎也云亘亙些亦/','ç','r') <> 'ç亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃' then bugmes();quit;end +if strsubst(str,'/丑丞串乃之乎也云亘亙些亦$/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/凰凱函刹劉劫勁勃$/','ç','r') <> '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪ç' then bugmes();quit;end +if strsubst(str,'/^凰凱函刹劉劫勁勃/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/亨亮仔伊伎伍伽佃佑伶侃/','ç','r') <> '丑丞串乃之乎也云亘亙些亦亥ç侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃' then bugmes();quit;end +if strsubst(str,'/亨亮仔伊_伎伍伽佃佑伶侃/','ç','r') <> str then bugmes();quit;end +//======================================================================================== +// Thaï +str = 'มกระดุกกระดิก'; +if strsubst(str,'/^มกระดุกกร/','ç','r')<>'çะดิก' then bugmes();quit;end +if strsubst(str,'/มกระดุกกร$/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/กกระดิก$/','ç','r')<>'มกระดุç' then bugmes();quit;end +if strsubst(str,'/^กกระดิก/','ç','r') <> str then bugmes();quit;end +if strsubst(str,'/ดุกก/','ç','r')<>'มกระçระดิก' then bugmes();quit;end +if strsubst(str,'/ดุก_ก/','ç','r') <> str then bugmes();quit;end +//======================================================================================== diff --git a/modules/string/tests/unit_tests/strsubst.tst b/modules/string/tests/unit_tests/strsubst.tst new file mode 100755 index 000000000..e964cc29e --- /dev/null +++ b/modules/string/tests/unit_tests/strsubst.tst @@ -0,0 +1,428 @@ +//======================================================================================== +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +//======================================================================================== + +// <-- CLI SHELL MODE --> + +//======================================================================================== +// unit tests strsubst +//======================================================================================== +if strsubst('abc,abd,aa,bxe',',',';')<>'abc;abd;aa;bxe' then pause,end +//======================================================================================== +if strsubst('abc,abd,aa,bxe',',',emptystr())<>'abcabdaabxe' then pause,end +//======================================================================================== +if strsubst(',abc,abd,aa,bxe',',',emptystr())<>'abcabdaabxe' then pause,end +//======================================================================================== +if strsubst('abc',',',';')<>'abc' then pause,end +//======================================================================================== +if strsubst('SCI/demos/scicos','SCI','.') <> './demos/scicos' then pause,end +//======================================================================================== +if strsubst('SCI/demos/scicos','/',' ') <> 'SCI demos scicos' then pause,end +//======================================================================================== +if strsubst([],'/',' ') <> [] then pause,end +//======================================================================================== +if strsubst([],' ','') <> [] then pause,end +//======================================================================================== +if strsubst('',' ','') <> '' then pause,end +//======================================================================================== +if strsubst("2","3","1") <> "2" then pause,end +//======================================================================================== +if strsubst(["2","3"],"3","1") <> ['2' '1'] then pause,end +//======================================================================================== +r = strsubst(['Scilab','Mathlab';'Octlab','Rlab'],'lab',''); +ref = ['Sci','Math';'Oct','R']; +if (r <> ref) then pause,end +//======================================================================================== +if strsubst('xbc','/abc/',' ','r') <> 'xbc' then pause,end +if strsubst('axc','/abc/',' ','r') <> 'axc' then pause,end +if strsubst('xaccy','/abc/',' ','r') <> 'xaccy' then pause,end +if strsubst('abc','/ab*c/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab*bc/',' ','r') <> ' ' then pause,end +if strsubst('abbc','/ab*bc/',' ','r') <> ' ' then pause,end +if strsubst('abbbbc','/ab*bc/',' ','r') <> ' ' then pause,end +if strsubst('abbbbc','/.{1}/',' ','r') <> ' bbbbc' then pause,end +if strsubst('abbbbc','/.{3,4}/',' ','r') <> ' bc' then pause,end +if strsubst('abbbbc','/ab{0,}bc/','^','r') <> '^' then pause,end +if strsubst('abbc','/ab+bc/','^','r') <> '^' then pause,end +if strsubst('abc','/ab+bc/','^','r') <> 'abc' then pause,end +if strsubst('abq','/ab+bc/','^','r') <> 'abq' then pause,end +if strsubst('abbc','/ab{1,}bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab+bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab{1,}bc/','^','r') <> '^' then pause,end +if strsubst('abbc','/ab{1,3}bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab{3,4}bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab{4,5}bc/','^','r') <> 'abbbbc' then pause,end +if strsubst('abbc','/ab?bc/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab?bc/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab{0,1}bc/',' ','r') <> ' ' then pause,end +if strsubst('xaccy','/ab?bc/',' ','r') <> 'xaccy' then pause,end +if strsubst('abc','/ab?c/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab{0,1}c/',' ','r') <> ' ' then pause,end +if strsubst('abbc','/ab*bc/',' ','r') <> ' ' then pause,end +if strsubst('abc','/^abc$/',' ','r') <> ' ' then pause,end +if strsubst('abcc','/^abc$/',' ','r') <> 'abcc' then pause,end +if strsubst('aabc','/^abc&/',' ','r') <> 'aabc' then pause,end +if strsubst('abbbbc','/ab{0,}bc/','^','r') <> '^' then pause,end +if strsubst('aabc','/abc$/','^','r') <> 'a^' then pause,end +if strsubst('abc','/ab+bc/','^','r') <> 'abc' then pause,end +if strsubst('abq','/ab+bc/','^','r') <> 'abq' then pause,end +if strsubst('abbc','/ab{1,}bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab+bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab{1,}bc/','^','r') <> '^' then pause,end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then pause,end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then pause,end +if strsubst('yz','/\by\B/','^','r') <> '^z' then pause,end +if strsubst('e','/a|b|c|d|e/',' ','r') <> ' ' then pause,end +if strsubst('abcdefg','/abcd*efg/',' ','r') <> ' ' then pause,end +if strsubst('xaccy','/abc/',' ','r') <> 'xaccy' then pause,end +if strsubst('xabyabbbz','/ab*/',' ','r') <> 'x yabbbz' then pause,end +if strsubst('hij','/[abhgefdc]ij/',' ','r') <> ' ' then pause,end +if strsubst('abcde','/^(ab|cd)e/',' ','r') <> 'abcde' then pause,end +if strsubst('abbbbc','/ab*bc/',' ','r') <> ' ' then pause,end +if strsubst('abbbbc','/.{1}/',' ','r') <> ' bbbbc' then pause,end +if strsubst('abbbbc','/.{3,4}/',' ','r') <> ' bc' then pause,end +if strsubst('effg','/(bc+d$|ef*g.|h?i(j|k))/','^','r') <> 'effg' then pause,end +if strsubst('aa','/((((((((((a))))))))))\10/','^','r') <> '^' then pause,end +if strsubst('a!','/((((((((((a))))))))))\041/','^','r') <> '^' then pause,end +if strsubst('a','/(((((((((a)))))))))/','^','r') <> '^' then pause,end +if strsubst('multiple words, yeah','/multiple words/','^','r') <> '^, yeah' then pause,end +if strsubst('ac','/a[-]?c/','^','r') <> '^' then pause,end +if strsubst('a','/(a)|\1/','^','r') <> '^' then pause,end +if strsubst('A-','/a[-b]/i','^','r') <> '^' then pause,end +if strsubst('A-','/a[b-]/i','^','r') <> '^' then pause,end +if strsubst('A]','/a]/i','^','r') <> '^' then pause,end +if strsubst('abbc','/ab?bc/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab?bc/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab{0,1}bc/',' ','r') <> ' ' then pause,end +if strsubst('xaccy','/ab?bc/',' ','r') <> 'xaccy' then pause,end +if strsubst('abc','/ab?c/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab{0,1}c/',' ','r') <> ' ' then pause,end +if strsubst('abbc','/ab*bc/',' ','r') <> ' ' then pause,end +if strsubst('abc','/^abc$/',' ','r') <> ' ' then pause,end +if strsubst('abcc','/^abc$/',' ','r') <> 'abcc' then pause,end +if strsubst('aabc','/^abc&/',' ','r') <> 'aabc' then pause,end +if strsubst('abbbbc','/ab{0,}bc/','^','r') <> '^' then pause,end +if strsubst('aabc','/abc$/','^','r') <> 'a^' then pause,end +if strsubst('abc','/ab+bc/','^','r') <> 'abc' then pause,end +if strsubst('abq','/ab+bc/','^','r') <> 'abq' then pause,end +if strsubst('abbc','/ab{1,}bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab+bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab{1,}bc/','^','r') <> '^' then pause,end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then pause,end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then pause,end +if strsubst('yz','/\by\B/','^','r') <> '^z' then pause,end +if strsubst('e','/a|b|c|d|e/',' ','r') <> ' ' then pause,end +if strsubst('abcdefg','/abcd*efg/',' ','r') <> ' ' then pause,end +if strsubst('xaccy','/abc/',' ','r') <> 'xaccy' then pause,end +if strsubst('xabyabbbz','/ab*/',' ','r') <> 'x yabbbz' then pause,end +if strsubst('hij','/[abhgefdc]ij/',' ','r') <> ' ' then pause,end +if strsubst('abcde','/^(ab|cd)e/',' ','r') <> 'abcde' then pause,end +if strsubst('abbbbc','/ab*bc/',' ','r') <> ' ' then pause,end +if strsubst('abbbbc','/.{1}/',' ','r') <> ' bbbbc' then pause,end +if strsubst('abbbbc','/.{3,4}/',' ','r') <> ' bc' then pause,end +if strsubst('effg','/(bc+d$|ef*g.|h?i(j|k))/','^','r') <> 'effg' then pause,end +if strsubst('aa','/((((((((((a))))))))))\10/','^','r') <> '^' then pause,end +if strsubst('a!','/((((((((((a))))))))))\041/','^','r') <> '^' then pause,end +if strsubst('a','/(((((((((a)))))))))/','^','r') <> '^' then pause,end +if strsubst('multiple words, yeah','/multiple words/','^','r') <> '^, yeah' then pause,end +if strsubst('ac','/a[-]?c/','^','r') <> '^' then pause,end +if strsubst('a','/(a)|\1/','^','r') <> '^' then pause,end +if strsubst('A-','/a[-b]/i','^','r') <> '^' then pause,end +if strsubst('A-','/a[b-]/i','^','r') <> '^' then pause,end +if strsubst('A]','/a]/i','^','r') <> '^' then pause,end +if strsubst('abbc','/ab?bc/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab?bc/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab{0,1}bc/',' ','r') <> ' ' then pause,end +if strsubst('xaccy','/ab?bc/',' ','r') <> 'xaccy' then pause,end +if strsubst('abc','/ab?c/',' ','r') <> ' ' then pause,end +if strsubst('abc','/ab{0,1}c/',' ','r') <> ' ' then pause,end +if strsubst('abbc','/ab*bc/',' ','r') <> ' ' then pause,end +if strsubst('abc','/^abc$/',' ','r') <> ' ' then pause,end +if strsubst('abcc','/^abc$/',' ','r') <> 'abcc' then pause,end +if strsubst('aabc','/^abc&/',' ','r') <> 'aabc' then pause,end +if strsubst('abbbbc','/ab{0,}bc/','^','r') <> '^' then pause,end +if strsubst('aabc','/abc$/','^','r') <> 'a^' then pause,end +if strsubst('abc','/ab+bc/','^','r') <> 'abc' then pause,end +if strsubst('abq','/ab+bc/','^','r') <> 'abq' then pause,end +if strsubst('abbc','/ab{1,}bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab+bc/','^','r') <> '^' then pause,end +if strsubst('abbbbc','/ab{1,}bc/','^','r') <> '^' then pause,end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then pause,end +if strsubst('xy','/\By\b/','^','r') <> 'x^' then pause,end +if strsubst('yz','/\by\B/','^','r') <> '^z' then pause,end +if strsubst('e','/a|b|c|d|e/',' ','r') <> ' ' then pause,end +if strsubst('abcdefg','/abcd*efg/',' ','r') <> ' ' then pause,end +if strsubst('xaccy','/abc/',' ','r') <> 'xaccy' then pause,end +if strsubst('xabyabbbz','/ab*/',' ','r') <> 'x yabbbz' then pause,end +if strsubst('hij','/[abhgefdc]ij/',' ','r') <> ' ' then pause,end +if strsubst('abcde','/^(ab|cd)e/',' ','r') <> 'abcde' then pause,end +if strsubst('abbbbc','/ab*bc/',' ','r') <> ' ' then pause,end +if strsubst('abbbbc','/.{1}/',' ','r') <> ' bbbbc' then pause,end +if strsubst('abbbbc','/.{3,4}/',' ','r') <> ' bc' then pause,end +if strsubst('effg','/(bc+d$|ef*g.|h?i(j|k))/','^','r') <> 'effg' then pause,end +if strsubst('aa','/((((((((((a))))))))))\10/','^','r') <> '^' then pause,end +if strsubst('a!','/((((((((((a))))))))))\041/','^','r') <> '^' then pause,end +if strsubst('a','/(((((((((a)))))))))/','^','r') <> '^' then pause,end +if strsubst('multiple words, yeah','/multiple words/','^','r') <> '^, yeah' then pause,end +if strsubst('ac','/a[-]?c/','^','r') <> '^' then pause,end +if strsubst('a','/(a)|\1/','^','r') <> '^' then pause,end +if strsubst('A-','/a[-b]/i','^','r') <> '^' then pause,end +if strsubst('A-','/a[b-]/i','^','r') <> '^' then pause,end +if strsubst('A]','/a]/i','^','r') <> '^' then pause,end +if strsubst('abc','/abc/',' ','r') <> ' ' then pause,end +//======================================================================================== +if strsubst('......abef','/.*a(?!(b|cd)*e).*f/' ,' ' ,'r') <> '......abef' then pause,end +if strsubst('fools','/(foo|fool|x.|money|parted)$/' ,' ' ,'r') <> 'fools' then pause,end +if strsubst('fools','/(x.|foo|fool|x.|money|parted|y.)$/' ,' ' ,'r') <> 'fools' then pause,end +if strsubst('fools','/(foo|fool|money|parted)$/' ,' ' ,'r') <> 'fools' then pause,end +if strsubst('Oo','/^(o)(?!.*\1)/i' ,' ' ,'r') <> 'Oo' then pause,end +if strsubst('AbCd','/ab(?i)cd/' ,' ' ,'r') <> 'AbCd' then pause,end +if strsubst('a\nb\n','/a\Z/' ,' ' ,'r') <> 'a\nb\n' then pause,end +if strsubst('a\nb\n','/a\z/' ,' ' ,'r') <> 'a\nb\n' then pause,end +if strsubst('a\nb\n','/a$/' ,' ' ,'r') <> 'a\nb\n' then pause,end +if strsubst('b\na\n','/a\z/' ,' ' ,'r') <> 'b\na\n' then pause,end +if strsubst('a\nb\n','/a\Z/m' ,' ' ,'r') <> 'a\nb\n' then pause,end +if strsubst('a\nb\n','/a\z/m' ,' ' ,'r') <> 'a\nb\n' then pause,end +if strsubst('b\na\n','/a\z/m' ,' ' ,'r') <> 'b\na\n' then pause,end +if strsubst('aa\nb\n','/aa\Z/' ,' ' ,'r') <> 'aa\nb\n' then pause,end +if strsubst('aa\nb\n','/aa\z/' ,' ' ,'r') <> 'aa\nb\n' then pause,end +if strsubst('aa\nb\n','/aa$/' ,' ' ,'r') <> 'aa\nb\n' then pause,end +if strsubst('b\naa\n','/aa\z/' ,' ' ,'r') <> 'b\naa\n' then pause,end +if strsubst('aa\nb\n','/aa\Z/m' ,' ' ,'r') <> 'aa\nb\n' then pause,end +if strsubst('aa\nb\n','/aa\z/m' ,' ' ,'r') <> 'aa\nb\n' then pause,end +if strsubst('b\naa\n','/aa\z/m' ,' ' ,'r') <> 'b\naa\n' then pause,end +if strsubst('ac\nb\n','/aa\Z/' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n','/aa\z/' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n','/aa$/' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('b\nac\n','/aa\Z/' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n','/aa\z/' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n','/aa$/' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac' ,'/aa\Z/' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/aa\z/' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/aa$/' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('ac\nb\n','/aa\Z/m' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n','/aa\z/m' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n','/aa$/m' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('b\nac\n','/aa\Z/m' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n','/aa\z/m' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n','/aa$/m' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac' ,'/aa\Z/m' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/aa\z/m' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/aa$/m' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('ca\nb\n','/aa\Z/' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n','/aa\z/' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n','/aa$/' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('b\nca\n','/aa\Z/' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n','/aa\z/' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n','/aa$/' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca' ,'/aa\Z/' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/aa\z/' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/aa$/' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('ca\nb\n','/aa\Z/m' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n','/aa\z/m' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n','/aa$/m' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('b\nca\n','/aa\Z/m' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n','/aa\z/m' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n','/aa$/m' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca' ,'/aa\Z/m' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/aa\z/m' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/aa$/m' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('ab\nb\n','/ab\Z/' ,' ' ,'r') <> 'ab\nb\n' then pause,end +if strsubst('ab\nb\n','/ab\z/' ,' ' ,'r') <> 'ab\nb\n' then pause,end +if strsubst('ab\nb\n','/ab$/' ,' ' ,'r') <> 'ab\nb\n' then pause,end +if strsubst('b\nab\n','/ab\z/' ,' ' ,'r') <> 'b\nab\n' then pause,end +if strsubst('ab\nb\n','/ab\Z/m' ,' ' ,'r') <> 'ab\nb\n' then pause,end +if strsubst('ab\nb\n','/ab\z/m' ,' ' ,'r') <> 'ab\nb\n' then pause,end +if strsubst('b\nab\n','/ab\z/m' ,' ' ,'r') <> 'b\nab\n' then pause,end +if strsubst('ac\nb\n','/ab\Z/' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n','/ab\z/' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n','/ab$/' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('b\nac\n','/ab\Z/' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n','/ab\z/' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n','/ab$/' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac' ,'/ab\Z/' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/ab\z/' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/ab$/' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('ac\nb\n','/ab\Z/m' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n','/ab\z/m' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n','/ab$/m' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('b\nac\n','/ab\Z/m' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n','/ab\z/m' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n','/ab$/m' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac' ,'/ab\Z/m' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/ab\z/m' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/ab$/m' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('ca\nb\n','/ab\Z/' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n','/ab\z/' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n','/ab$/' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('b\nca\n','/ab\Z/' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n','/ab\z/' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n','/ab$/' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca' ,'/ab\Z/' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/ab\z/' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/ab$/' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('ca\nb\n','/ab\Z/m' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n','/ab\z/m' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n','/ab$/m' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('b\nca\n','/ab\Z/m' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n' ,'/ab\z/m' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n','/ab$/m' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca' ,'/ab\Z/m' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/ab\z/m' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/ab$/m' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('abb\nb\n' ,'/abb\Z/' ,' ' ,'r') <> 'abb\nb\n' then pause,end +if strsubst('abb\nb\n' ,'/abb\z/' ,' ' ,'r') <> 'abb\nb\n' then pause,end +if strsubst('abb\nb\n' ,'/abb$/' ,' ' ,'r') <> 'abb\nb\n' then pause,end +if strsubst('b\nabb\n' ,'/abb\z/' ,' ' ,'r') <> 'b\nabb\n' then pause,end +if strsubst('abb\nb\n' ,'/abb\Z/m' ,' ' ,'r') <> 'abb\nb\n' then pause,end +if strsubst('abb\nb\n' ,'/abb\z/m' ,' ' ,'r') <> 'abb\nb\n' then pause,end +if strsubst('b\nabb\n','/abb\z/m' ,' ' ,'r') <> 'b\nabb\n' then pause,end +if strsubst('ac\nb\n' ,'/abb\Z/' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n' ,'/abb\z/' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n' ,'/abb$/' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('b\nac\n' ,'/abb\Z/' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n' ,'/abb\z/' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n' ,'/abb$/' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac' ,'/abb\Z/' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/abb\z/' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/abb$/' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('ac\nb\n' ,'/abb\Z/m' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n' ,'/abb\z/m' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('ac\nb\n' ,'/abb$/m' ,' ' ,'r') <> 'ac\nb\n' then pause,end +if strsubst('b\nac\n' ,'/abb\Z/m' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n' ,'/abb\z/m' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac\n' ,'/abb$/m' ,' ' ,'r') <> 'b\nac\n' then pause,end +if strsubst('b\nac' ,'/abb\Z/m' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/abb\z/m' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('b\nac' ,'/abb$/m' ,' ' ,'r') <> 'b\nac' then pause,end +if strsubst('ca\nb\n' ,'/abb\Z/' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n' ,'/abb\z/' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n' ,'/abb$/' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('b\nca\n' ,'/abb\Z/' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n' ,'/abb\z/' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n' ,'/abb$/' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca' ,'/abb\Z/' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/abb\z/' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/abb$/' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('ca\nb\n' ,'/abb\Z/m' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n' ,'/abb\z/m' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('ca\nb\n' ,'/abb$/m' ,' ' ,'r') <> 'ca\nb\n' then pause,end +if strsubst('b\nca\n' ,'/abb\Z/m' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n' ,'/abb\z/m' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca\n' ,'/abb$/m' ,' ' ,'r') <> 'b\nca\n' then pause,end +if strsubst('b\nca' ,'/abb\Z/m' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/abb\z/m' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('b\nca' ,'/abb$/m' ,' ' ,'r') <> 'b\nca' then pause,end +if strsubst('aaab' ,'/^(?=(a+?))\1ab/' ,' ' ,'r') <> 'aaab' then pause,end +if strsubst('aaab' ,'/^(?=(a+?))\1ab/' ,' ' ,'r') <> 'aaab' then pause,end +if strsubst('abcd:' ,'/([\w:]+::)?(\w+)$/' ,' ' ,'r') <> 'abcd:' then pause,end +if strsubst('abcd:' ,'/([\w:]+::)?(\w+)$/' ,' ' ,'r') <> 'abcd:' then pause,end +if strsubst('aaab' ,'/(>a+)ab/' ,' ' ,'r') <> 'aaab' then pause,end +//======================================================================================== +v = "世界您好"; +c = "您"; +if strsubst(v,c,'ç')<>'世界ç好' then pause,end + +v = "азеазея"; +c = "з"; +if strsubst(v,c,'ç')<>'аçеаçея' then pause,end + +v = "ድቅስድቅስግ"; +c = "ቅ"; +if strsubst(v,c,'ç')<> 'ድçስድçስግ' then pause,end + +v = "ハロー・ワールド"; +c = "ド"; +if strsubst(v,c,'ç')<> 'ハロー・ワールç' then pause,end + +v = "เฮลโลเวิลด์"; +c = "เ"; +if strsubst(v,c,'ç')<> 'çฮลโลçวิลด์' then pause,end + +v = "حريات وحقوق"; +c = "قوق"; +if strsubst(v,c,'ç')<> 'حريات وحç' then pause,end + +v = "ഹലോ വേള്ഡ"; +c = "ഡ"; +if strsubst(v,c,'ç')<>'ഹലോ വേള്ç' then pause,end + +v = "תוכנית"; +c = "י"; +if strsubst(v,c,'ç')<>'תוכנçת' then pause,end +//=============================== +// Chinese +str = '世界您好'; +if strsubst(str,'/^世界/','ç','r') <> 'ç您好' then pause,end + +if strsubst(str,'/世界$/','ç','r') <> str then pause,end + +if strsubst(str,'/您好$/','ç','r') <> '世界ç' then pause,end + +if strsubst(str,'/^您好/','ç','r') <> str then pause,end + +if strsubst(str,'/界您/','ç','r') <> '世ç好' then pause,end + +if strsubst(str,'/界_您/','ç','r') <> str then pause,end +//======================================================================================== +// Russian +str = 'привет мир'; +if strsubst(str,'/^привет/','ç','r') <> 'ç мир' then pause,end + +if strsubst(str,'/привет$/','ç','r') <> str then pause,end + +if strsubst(str,'/мир$/','ç','r') <> 'привет ç' then pause,end + +if strsubst(str,'/^мир/','ç','r') <> str then pause,end + +if strsubst(str,'/вет\sм/','ç','r') <> 'приçир' then pause,end + +if strsubst(str,'/вет_м/','ç','r') <> 'привет мир' then pause,end +//======================================================================================== +// Cyrilic +str = 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ'; + +if strsubst(str,'/^АБВГДЄЖЅЗИІКЛМНОПҀР/','ç','r') <> 'çСТѸФХѠЦЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ' then pause,end + +if strsubst(str,'/АБВГДЄЖЅЗИІКЛМНОПҀР$/','ç','r') <> str then pause,end + +if strsubst(str,'/ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ$/','ç','r') <> 'АБВГДЄЖЅЗИІКЛМНОПҀРСТѸФХѠЦç' then pause,end + +if strsubst(str,'/^ЧШЩЪЪІЬѢЮѦѨѪѬѮѰѲѴѤ/','ç','r') <> str then pause,end + +if strsubst(str,'/ИІКЛМНОПҀРСТѸФХѠЦЧШЩЪ/','ç','r') <> 'АБВГДЄЖЅЗçЪІЬѢЮѦѨѪѬѮѰѲѴѤ' then pause,end + +if strsubst(str,'/ИІКЛМНОПҀ_РСТѸФХѠЦЧШЩЪ/','ç','r') <> str then pause,end +//======================================================================================== +// Japanese +str = '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃'; + +if strsubst(str,'/^丑丞串乃之乎也云亘亙些亦/','ç','r') <> 'ç亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃' then pause,end + +if strsubst(str,'/丑丞串乃之乎也云亘亙些亦$/','ç','r') <> str then pause,end + +if strsubst(str,'/凰凱函刹劉劫勁勃$/','ç','r') <> '丑丞串乃之乎也云亘亙些亦亥亨亮仔伊伎伍伽佃佑伶侃侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪ç' then pause,end + +if strsubst(str,'/^凰凱函刹劉劫勁勃/','ç','r') <> str then pause,end + +if strsubst(str,'/亨亮仔伊伎伍伽佃佑伶侃/','ç','r') <> '丑丞串乃之乎也云亘亙些亦亥ç侑俄侠俣俐侶倭俺倶倦倖偲僅傭儲允兎兜其冥冴冶凄凌凜凛凧凪凰凱函刹劉劫勁勃' then pause,end + +if strsubst(str,'/亨亮仔伊_伎伍伽佃佑伶侃/','ç','r') <> str then pause,end +//======================================================================================== +// Thaï +str = 'มกระดุกกระดิก'; +if strsubst(str,'/^มกระดุกกร/','ç','r')<>'çะดิก' then pause,end + +if strsubst(str,'/มกระดุกกร$/','ç','r') <> str then pause,end + +if strsubst(str,'/กกระดิก$/','ç','r')<>'มกระดุç' then pause,end + +if strsubst(str,'/^กกระดิก/','ç','r') <> str then pause,end + +if strsubst(str,'/ดุกก/','ç','r')<>'มกระçระดิก' then pause,end + +if strsubst(str,'/ดุก_ก/','ç','r') <> str then pause,end +//======================================================================================== diff --git a/modules/string/tests/unit_tests/strtod.dia.ref b/modules/string/tests/unit_tests/strtod.dia.ref new file mode 100755 index 000000000..aa482afbe --- /dev/null +++ b/modules/string/tests/unit_tests/strtod.dia.ref @@ -0,0 +1,252 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// strtod +//=============================== +// Without optional argument +N = 666.666; +STREND = " is a double"; +STR = string(N)+STREND; +d = strtod(STR); +assert_checkequal(d, N); +[d,s] = strtod(STR); +assert_checkequal(d, N); +assert_checkequal(s, STREND); +//=============================== +STR = "1"; +[d,s] = strtod(STR); +assert_checkequal(s, ""); +assert_checkequal(d, 1); +//=============================== +STR = "string"; +[d,s] = strtod(STR); +assert_checkequal(s, STR); +assert_checkequal(d, %nan); +//=============================== +STR1 = "1A"; +STR2 = "2B"; +STR3 = "3C"; +STR4 = "4d"; +STR = [STR1,STR2;STR3,STR4]; +[d,s] = strtod(STR); +assert_checkequal(s, ["A","B";"C","d"]); +assert_checkequal(d, [1,2;3,4]); +//=============================== +[d,s] = strtod(""); +assert_checkequal(s, ""); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" "); +assert_checkequal(s, " "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" 123"); +assert_checkequal(s, ""); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" 123 "); +assert_checkequal(s, " "); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" sdf "); +assert_checkequal(s, " sdf "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod([]); +assert_checkequal(s, ""); +assert_checkequal(d, []); +//=============================== +[d,s] = strtod("-3 sdf"); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -3); +//=============================== +[d,s] = strtod("abc -3 sdf"); +assert_checkequal(s, "abc -3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("- 3 sdf"); +assert_checkequal(s, "- 3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" -.3 sdf"); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -0.3); +//=============================== +[d,s] = strtod("abs .01sdf"); +assert_checkequal(s, "abs .01sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("-.4e-3 sdf"); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -.4e-3); +//=============================== +[d,s] = strtod(["2,1","2.1"]); +assert_checkequal(s, [",1" ""]); +assert_checkequal(d, [2 2.1]); +//=============================== +// With point as optional argument +N = 666.666; +STREND = " is a double"; +STR = string(N)+STREND; +d = strtod(STR,"."); +assert_checkequal(d, N); +[d,s] = strtod(STR,"."); +assert_checkequal(d, N); +assert_checkequal(s, STREND); +//=============================== +STR = "1"; +[d,s] = strtod(STR,"."); +assert_checkequal(s, ""); +assert_checkequal(d, 1); +//=============================== +STR = "string"; +[d,s] = strtod(STR,"."); +assert_checkequal(s, STR); +assert_checkequal(d, %nan); +//=============================== +STR1 = "1A"; +STR2 = "2B"; +STR3 = "3C"; +STR4 = "4d"; +STR = [STR1,STR2;STR3,STR4]; +[d,s] = strtod(STR,"."); +assert_checkequal(s, ["A","B";"C","d"]); +assert_checkequal(d, [1,2;3,4]); +//=============================== +[d,s] = strtod("","."); +assert_checkequal(s, ""); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" ","."); +assert_checkequal(s, " "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" 123","."); +assert_checkequal(s, ""); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" 123 ","."); +assert_checkequal(s, " "); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" sdf ","."); +assert_checkequal(s, " sdf "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod([],"."); +assert_checkequal(s, ""); +assert_checkequal(d, []); +//=============================== +[d,s] = strtod("-3 sdf","."); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -3); +//=============================== +[d,s] = strtod("abc -3 sdf","."); +assert_checkequal(s, "abc -3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("- 3 sdf","."); +assert_checkequal(s, "- 3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" -.3 sdf","."); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -0.3); +//=============================== +[d,s] = strtod("abs .01sdf","."); +assert_checkequal(s, "abs .01sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("-.4e-3 sdf","."); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -.4e-3); +//=============================== +[d,s] = strtod(["2,1","2.1"],"."); +assert_checkequal(s, [",1" ""]); +assert_checkequal(d, [2 2.1]); +//=============================== +// With comma as optional argument +STREND = " is a double"; +STR = "666,666"+STREND; +d = strtod(STR,","); +assert_checkequal(d, N); +[d,s] = strtod(STR,","); +assert_checkequal(d, N); +assert_checkequal(s, STREND); +//=============================== +STR = "1"; +[d,s] = strtod(STR,","); +assert_checkequal(s, ""); +assert_checkequal(d, 1); +//=============================== +STR = "string"; +[d,s] = strtod(STR,","); +assert_checkequal(s, STR); +assert_checkequal(d, %nan); +//=============================== +STR1 = "1A"; +STR2 = "2B"; +STR3 = "3C"; +STR4 = "4d"; +STR = [STR1,STR2;STR3,STR4]; +[d,s] = strtod(STR,","); +assert_checkequal(s, ["A","B";"C","d"]); +assert_checkequal(d, [1,2;3,4]); +//=============================== +[d,s] = strtod("",","); +assert_checkequal(s, ""); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" ",","); +assert_checkequal(s, " "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" 123",","); +assert_checkequal(s, ""); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" 123 ",","); +assert_checkequal(s, " "); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" sdf ",","); +assert_checkequal(s, " sdf "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod([],","); +assert_checkequal(s, ""); +assert_checkequal(d, []); +//=============================== +[d,s] = strtod("-3 sdf",","); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -3); +//=============================== +[d,s] = strtod("abc -3 sdf",","); +assert_checkequal(s, "abc -3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("- 3 sdf",","); +assert_checkequal(s, "- 3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" -,3 sdf",","); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -0.3); +//=============================== +[d,s] = strtod("abs ,01sdf",","); +assert_checkequal(s, "abs ,01sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("-,4e-3 sdf",","); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -.4e-3); +//=============================== +[d,s] = strtod(["2,1","2.1"],","); +assert_checkequal(s, ["" ".1"]); +assert_checkequal(d, [2.1 2]); +//=============================== diff --git a/modules/string/tests/unit_tests/strtod.tst b/modules/string/tests/unit_tests/strtod.tst new file mode 100755 index 000000000..7d0d82b1e --- /dev/null +++ b/modules/string/tests/unit_tests/strtod.tst @@ -0,0 +1,258 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// strtod +//=============================== +// Without optional argument +N = 666.666; +STREND = " is a double"; +STR = string(N)+STREND; +d = strtod(STR); +assert_checkequal(d, N); +[d,s] = strtod(STR); +assert_checkequal(d, N); +assert_checkequal(s, STREND); +//=============================== +STR = "1"; +[d,s] = strtod(STR); +assert_checkequal(s, ""); +assert_checkequal(d, 1); +//=============================== +STR = "string"; +[d,s] = strtod(STR); +assert_checkequal(s, STR); +assert_checkequal(d, %nan); +//=============================== +STR1 = "1A"; +STR2 = "2B"; +STR3 = "3C"; +STR4 = "4d"; +STR = [STR1,STR2;STR3,STR4]; +[d,s] = strtod(STR); +assert_checkequal(s, ["A","B";"C","d"]); +assert_checkequal(d, [1,2;3,4]); +//=============================== +[d,s] = strtod(""); +assert_checkequal(s, ""); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" "); +assert_checkequal(s, " "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" 123"); +assert_checkequal(s, ""); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" 123 "); +assert_checkequal(s, " "); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" sdf "); +assert_checkequal(s, " sdf "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod([]); +assert_checkequal(s, ""); +assert_checkequal(d, []); +//=============================== +[d,s] = strtod("-3 sdf"); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -3); +//=============================== +[d,s] = strtod("abc -3 sdf"); +assert_checkequal(s, "abc -3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("- 3 sdf"); +assert_checkequal(s, "- 3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" -.3 sdf"); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -0.3); +//=============================== +[d,s] = strtod("abs .01sdf"); +assert_checkequal(s, "abs .01sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("-.4e-3 sdf"); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -.4e-3); +//=============================== +[d,s] = strtod(["2,1","2.1"]); +assert_checkequal(s, [",1" ""]); +assert_checkequal(d, [2 2.1]); +//=============================== + + +// With point as optional argument +N = 666.666; +STREND = " is a double"; +STR = string(N)+STREND; +d = strtod(STR,"."); +assert_checkequal(d, N); +[d,s] = strtod(STR,"."); +assert_checkequal(d, N); +assert_checkequal(s, STREND); +//=============================== +STR = "1"; +[d,s] = strtod(STR,"."); +assert_checkequal(s, ""); +assert_checkequal(d, 1); +//=============================== +STR = "string"; +[d,s] = strtod(STR,"."); +assert_checkequal(s, STR); +assert_checkequal(d, %nan); +//=============================== +STR1 = "1A"; +STR2 = "2B"; +STR3 = "3C"; +STR4 = "4d"; +STR = [STR1,STR2;STR3,STR4]; +[d,s] = strtod(STR,"."); +assert_checkequal(s, ["A","B";"C","d"]); +assert_checkequal(d, [1,2;3,4]); +//=============================== +[d,s] = strtod("","."); +assert_checkequal(s, ""); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" ","."); +assert_checkequal(s, " "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" 123","."); +assert_checkequal(s, ""); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" 123 ","."); +assert_checkequal(s, " "); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" sdf ","."); +assert_checkequal(s, " sdf "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod([],"."); +assert_checkequal(s, ""); +assert_checkequal(d, []); +//=============================== +[d,s] = strtod("-3 sdf","."); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -3); +//=============================== +[d,s] = strtod("abc -3 sdf","."); +assert_checkequal(s, "abc -3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("- 3 sdf","."); +assert_checkequal(s, "- 3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" -.3 sdf","."); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -0.3); +//=============================== +[d,s] = strtod("abs .01sdf","."); +assert_checkequal(s, "abs .01sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("-.4e-3 sdf","."); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -.4e-3); +//=============================== +[d,s] = strtod(["2,1","2.1"],"."); +assert_checkequal(s, [",1" ""]); +assert_checkequal(d, [2 2.1]); +//=============================== + + +// With comma as optional argument +STREND = " is a double"; +STR = "666,666"+STREND; +d = strtod(STR,","); +assert_checkequal(d, N); +[d,s] = strtod(STR,","); +assert_checkequal(d, N); +assert_checkequal(s, STREND); +//=============================== +STR = "1"; +[d,s] = strtod(STR,","); +assert_checkequal(s, ""); +assert_checkequal(d, 1); +//=============================== +STR = "string"; +[d,s] = strtod(STR,","); +assert_checkequal(s, STR); +assert_checkequal(d, %nan); +//=============================== +STR1 = "1A"; +STR2 = "2B"; +STR3 = "3C"; +STR4 = "4d"; +STR = [STR1,STR2;STR3,STR4]; +[d,s] = strtod(STR,","); +assert_checkequal(s, ["A","B";"C","d"]); +assert_checkequal(d, [1,2;3,4]); +//=============================== +[d,s] = strtod("",","); +assert_checkequal(s, ""); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" ",","); +assert_checkequal(s, " "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" 123",","); +assert_checkequal(s, ""); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" 123 ",","); +assert_checkequal(s, " "); +assert_checkequal(d, 123); +//=============================== +[d,s] = strtod(" sdf ",","); +assert_checkequal(s, " sdf "); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod([],","); +assert_checkequal(s, ""); +assert_checkequal(d, []); +//=============================== +[d,s] = strtod("-3 sdf",","); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -3); +//=============================== +[d,s] = strtod("abc -3 sdf",","); +assert_checkequal(s, "abc -3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("- 3 sdf",","); +assert_checkequal(s, "- 3 sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod(" -,3 sdf",","); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -0.3); +//=============================== +[d,s] = strtod("abs ,01sdf",","); +assert_checkequal(s, "abs ,01sdf"); +assert_checkequal(d, %nan); +//=============================== +[d,s] = strtod("-,4e-3 sdf",","); +assert_checkequal(s, " sdf"); +assert_checkequal(d, -.4e-3); +//=============================== +[d,s] = strtod(["2,1","2.1"],","); +assert_checkequal(s, ["" ".1"]); +assert_checkequal(d, [2.1 2]); +//=============================== diff --git a/modules/string/tests/unit_tests/strtok.dia.ref b/modules/string/tests/unit_tests/strtok.dia.ref new file mode 100755 index 000000000..7d37437fa --- /dev/null +++ b/modules/string/tests/unit_tests/strtok.dia.ref @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//================================================= +if strtok('') <> '' then bugmes();quit;end +//================================================= +if strtok('','') <> '' then bugmes();quit;end +//================================================= +if strtok('','a') <> '' then bugmes();quit;end +if strtok('a') <> '' then bugmes();quit;end +//================================================= +TOKENS = []; +token = strtok("A string of ,,tokens and some more tokens"," ,"); +TOKENS = [TOKENS,token]; +while( token <> '' ) + token = strtok(" ,"); + TOKENS = [TOKENS,token]; +end +REF = 'A string of tokens and some more tokens '; +if strcat(TOKENS,' ')<> REF then bugmes();quit;end +//================================================= diff --git a/modules/string/tests/unit_tests/strtok.tst b/modules/string/tests/unit_tests/strtok.tst new file mode 100755 index 000000000..922540622 --- /dev/null +++ b/modules/string/tests/unit_tests/strtok.tst @@ -0,0 +1,27 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//================================================= +if strtok('') <> '' then pause,end +//================================================= +if strtok('','') <> '' then pause,end +//================================================= +if strtok('','a') <> '' then pause,end +if strtok('a') <> '' then pause,end +//================================================= +TOKENS = []; +token = strtok("A string of ,,tokens and some more tokens"," ,"); +TOKENS = [TOKENS,token]; +while( token <> '' ) + token = strtok(" ,"); + TOKENS = [TOKENS,token]; +end +REF = 'A string of tokens and some more tokens '; +if strcat(TOKENS,' ')<> REF then pause,end +//================================================= diff --git a/modules/string/tests/unit_tests/text.txt b/modules/string/tests/unit_tests/text.txt new file mode 100755 index 000000000..12cfca57e --- /dev/null +++ b/modules/string/tests/unit_tests/text.txt @@ -0,0 +1,417 @@ +Scilab est un logiciel de calcul numérique fournissant un environnement de calcul pour des applications scientifiques. Développé depuis 1990 par des chercheurs de l’INRIA et de l’ENPC, il est, depuis la création du Scilab Consortium en mai 2003, développé et maintenu par l'INRIA. + +La syntaxe et les possibilités offertes par Scilab sont similaires à celles de Matlab, mais les deux logiciels ne sont pas compatibles même si un traducteur Matlab vers Scilab existe. + +Distribué gratuitement et avec son code source via l’Internet depuis 1994, il est disponible précompilé pour un grand nombre d’architectures. Néanmoins (contrairement à ce qui est prétendu sur son site) il ne s’agit ni d’un logiciel Open source selon l'Open Source Initiative ni d’un Logiciel libre. En effet, la licence de Scilab n’autorise pas la distribution commerciale d’une version modifiée. Selon la classification de la FSF, il s'agirait donc plutôt d'un logiciel semi-libre [1]. + +Sommaire [masquer] +1 Présentation succincte de l’utilisation +1.1 Syntaxe élémentaire en ligne de commande +1.1.1 Booléens +1.1.2 Polynômes et fractions rationnelles +1.1.3 Caractère +1.1.4 Matrices +1.2 Calcul numérique +1.3 Tracé de fonction +1.3.1 Tracé 2D +1.3.2 Carte d’un champ +1.3.3 Tracé 3D +1.3.4 Représentation de données statistiques +1.3.5 Dessin +1.3.6 Mise en forme, axes et fenêtrage +1.3.7 Exemple +1.4 Programmation +1.5 Environnement +2 Voir aussi +2.1 Logiciels similaires +2.2 Liens externes + + + + Présentation succincte de l’utilisation [modifier] +Scilab peut exécuter des instructions en ligne de commande, ainsi que des fichiers de commande (scripts) contenant des instructions (format texte). On peut également exécuter des programmes Fortran ou C à partir de Scilab. Scilab est complétée par un environnement graphique Scicos comparable à l'environnement graphique Simulink fourni avec Matlab. + + + Syntaxe élémentaire en ligne de commande [modifier] +L’invite de la ligne de commande (prompt) est constituée d’une « flèche » : deux tirets et un signe supérieur -->. L’instruction est tapée puis validée avec la touche de retour chariot (Enter, Return). Le résultat est affiché à la suite, sauf si la ligne se termine par un point-virgule auquel cas le résultat est caché. Par exemple : + +-->a = 1; +-->A = 2; +-->a + A +ans = + +3. +La première commande associe la valeur « 1 » à la variable « a » (résultat caché), la seconde commande associe la valeur « 2 » à la variable « A » (la syntaxe est sensible à la casse), la troisième commande calcule la somme des deux (ans est l’abréviation de answer qui signifie « réponse » en anglais). + +On peut écrire plusieurs instructions sur la même ligne en les séparant d’une virgule, ou d’un point-virgule si l’on ne veut pas en afficher le résultat. On peut aussi mettre une instruction sur plusieurs lignes (par exemple pour des raisons de présentation) en mettant trois points « ... » avant de presser la touche de retour chariot. + +Scilab utilise les fonctions et opérateurs classiques (+, -, *, /, ^ ou **, sqrt() pour la racine carrée, cos() pour le cosinus, int() pour la partie entière, round() pour l’arrondi au plus proche, abs() pour la valeur absolue…) et quelques autres (par exemple rand pour avoir un nombre aléatoire entre 0 et 1). La fonction who affiche les variables déclarées. La variable ans contient le dernier résultat. + +Le séparateur décimal est le point. Pour entrer l’imaginaire i, il faut utiliser %i ; il figure simplement sous la forme « i » dans les résultats. Pour entrer l’infini 8, il faut utiliser %inf ; il figure simplement sous la forme « inf » dans les résultats. La valeur de p s’obtient par %pi, et la constante de Neper e par %e. + + + Booléens [modifier] +Lorsque l’on assigne une valeur booléenne, on utilise %t pour « vrai » (true) et %f pour « faux » (false). Le résultat de l’opération affiché est respectivement T ou F. + +L’opérateur Ou est noté « | » (tube), Et est noté « & » (esperluette), Non est noté « ~ » (tilde). Exemple + +-->(%t & %f) | %f +ans = + +F. +Un booléen peut également s’obtenir en comparant deux valeurs, avec les relations d’égalité == et de différence <> ou ~=, et les relations d'ordre <, <=, > et >=. + + + Polynômes et fractions rationnelles [modifier] +Il s’agit ici non pas de fonctions polynômes qui ne permettraient que leur évaluation numérique, mais de polynômes formels. + +La déclaration d’un polynôme se fait avec deux fonctions. La première fonction, x = poly(0, 'x') qui définit « x » comme l’indéterminée d’un polynôme, puis l’énoncé du polynôme utilisant cette indéterminée. Exemple + +-->x = poly(0, 'x'); p = x ^ 2 + 2 * x + 1 +p = + + 2 +1 + 2x + x +La fonction roots(p) donne les racines du polynôme p, la fonction coeff(p) donne une matrice dont les coefficients sont les coefficients du polynôme p. La fonction varn(p) renvoie le nom de l’indéterminée de p (ici, x). + +En fait, la commande x = poly(0, 'x') définit que x est le polynôme le plus simple dont l’indéterminée est le caractère « x » et dont la racine est 0, c’est-à-dire le monôme x. La commande x = poly(2, 'x') définit de même le polynôme le plus simple ayant pour racine 2, c’est-à-dire x - 2. + +Cette fonction permet de définir un polynôme ayant plusieurs racines, en utilisant une matrice ligne au lieu d’un simple nombre. Par exemple, x=poly([1 2],'x') définit le polynôme le plus simple ayant pour racines 1 et 2, soit le polynôme x2 - 3x + 2. + +On peut aussi utiliser cette fonction pour générer un polynôme dont les coefficients sont contenus dans une matrice ligne, en ajoutant le caractère 'c' à la fin des arguments. Par exemple, x = poly([a0, a1, …, an], 'x', 'c') définit le polynôme a0 + a1·x + … + an·xn. + +Scilab gère de la même manière les fractions rationnelles. Il suffit de déclarer un monôme avec poly() et définir ensuite la fraction rationnelle. Exemple + +-->x = poly(0, 'x'); f = (1 + x) / (1 - x) +f = + +1 + x +----- +1 - x + +-->1/f +ans = + +1 - x +----- +1 + x +Pour avoir le numérateur de f, il suffit de taper f.num ; le dénominateur de f s’obtient avec f.den. + +La fonction derivat(p) donne la dérivation formelle du polynôme ou d’une fraction rationnelle p. La fonction simp(q) fait la simplification de la fraction rationnelle q. + +L’utilisation du polynôme ou d’une fraction rationnelle en tant que fonction se fait par la fonction horner : horner(p,2) calcule p(2). + + + Caractère [modifier] +Les caractères isolés ou les chaînes de caractères sont notés entre apostrophes simples, ou bien entre guillemets : 'abc' ou "abc". + +L'apostrophe indique la fin d'une chaîne ; pour mettre une apostrophe dans une chaîne, il faut en écrire deux accolées ''. + +L’addition + sur des chaînes de caractères produit la concaténation. Une chaîne de caractère peut être évaluée, c’est-à-dire transformée en commande Scilab, par la fonction evstr(). + + + Matrices [modifier] +Scilab a été conçu pour le calcul matriciel. Toutes les fonctions s’appliquent à des matrices ; par exemple si M est une matrice, alors log(M) sera la matrice dont les coefficients sont les logarithmes des coefficients de M. Les éléments des matrices peuvent être de tout type (nombre réel, nombre complexe, booléen, polynôme, fraction rationnelle, chaîne de caractères…). + +Pour définir une matrice à partir de ses coefficients, on les place entre deux crochets […]. Les éléments d’une ligne sont séparés d’un espace ou d’une virgule, les lignes sont séparées d’un point-virgule. À l’affichage, la matrice est représentée comme un tableau encadré par des points d’exclamation. Par exemple : + +-->[1,0,0;0,1,0;0,0,1] +ans = + +! 1. 0. 0. ! +! 0. 1. 0. ! +! 0. 0. 1. ! +La matrice vide est notée par []. L’expression M(i,j) désigne l’élément (i, j) de la matrice M. Le caractère : (deux-points) signifie « tous les indices », par exemple M(1, :) est la première ligne de la matrice (c’est un vecteur ligne). Le caractère $ (dollar) désigne le dernier indice (ligne ou colonne) d’une matrice. + +L’expression N1:N2 permet de générer une matrice-ligne dont le premier coefficient est N1, le dernier est inférieur ou égal à N2, et le pas entre les coefficients est 1. L’expression N1:pas:N2 permet de générer une matrice-ligne en choisissant le pas. Par exemple + +-->1.1:5.2 +ans = + +! 1.1 2.1 3.1 4.1 5.1 ! + +--> 1:2:5 +ans = + +! 1 3 5 ! + +-->'a' :'d' +ans = + +abcd +La fonction zeros(m,n) crée une matrice m×n remplie de 0 ; la fonction ones(m,n) crée une matrice m×n remplie de 1. La fonction eye(n,n) crée une matrice unité n×n. On peut aussi passer une matrice M en paramètre de ces fonctions ; elles créent alors une matrice de même dimension que la matrice M. Par exemple, M=zeros(M) met tous les coefficients de M à zéro. + +Si f est une fonction extérieure (c’est-à-dire par définie par deff ou par function, voir ci-après), et que x et y sont des vecteurs, alors la fonction feval permet de bâtir une matrice z = f(x, y) + +z = feval(x, y, f) : on a z(i, j) = f(x(i), y(j)) +La fonction size(M) renvoie la taille de la matrice sous la forme d’une matrice 2×1 contenant le nombre de lignes puis le nombre de colonnes. + +Les opérations spécifiques aux matrices classiques sont : + +la transposition : il suffit de mettre une apostrophe ’ après la matrice ; +le produit de matrices : * ; +produit et rapport élément par élément : .* et ./ ; +le produit tensoriel .*. ; +le déterminant d’une matrice carrée M : det(M) (determ() pour une matrice de polynômes et detr() pour une matrice de fraction rationnelle) ; +la trace d’une matrice carrée M : trace(M) ; +l’inverse d’une matrice inversible M : inv(M). +Un vecteur est une matrice ligne ou colonne (matrice 1 × n ou n × 1) ; l’expression V(i) désigne la composante i du vecteur V. Si V1 et V2 sont des vecteurs colonnes, alors le produit scalaire est V1' * V2 ; si ce sont des vecteurs lignes, le produit scalaire est V1 * V2'. + + + Calcul numérique [modifier] +Scilab peut effectuer des calculs numériques. + +On peut en faire une utilisation triviale comme calculatrice, en entrant simplement les opérations à effectuer. + +La fonction deff permet de définir de nouvelles fonctions (appelées « fonctions externes ») pouvant s’exprimer avec les opérateurs déjà prédéfinis (les « fonctions primitives »). On passe deux chaînes de caractères comme paramètre ; la première indique le nom de la fonction et les variables utilisées en entrée et en sortie, et la deuxième indique la formule. Par exemple, la fonction + +f(x) = 2 · x +peut se définir par + +deff('[y] = f(x)', 'y = 2 * x') +(voir aussi la section Programmation). + +Intégration +integrate('expression', 'x', x0, x1) calcule l’intégrale de la fonction décrite par expression (c’est une chaîne de caractères interprétable par Scilab, comme par exemple 'sin(x)'), x étant la variable d’intégration, entre les valeurs x0 et x1. +Résolution d'équations +Scilab dispose de plusieurs primitives permettant la résolution d'équations (voir Solveur d'équations), entres autres : +linsolve : résolution d'un système d'équations linéaires, +syntaxe : [x0,kerA]=linsolve(A,b) +où A est la matrice réelle des coefficients du système d'équations, et b un vecteur de constantes ; les solutions de A×x + b = 0 sont de la forme x0 + w×kerA, w étant un réel arbitraire ; +solve : résolution symbolique d'un système linéaire, +syntaxe : w = solve(A,b) +où A est une matrice triangulaire supérieure de caractères (les coefficients du système d'équation), b est un vecteur de caractères (la partie à droite des signes égal), et w est la matrice résultat de A×w = b ; +ode : résolution d'une d'équation différentielle ordinaire (ordinary differential equation) ; si l'équation différentielle est dy/dt = ƒ(t), alors ƒ ayant été définie (fonction externe), la syntaxe pour déterminer y(t) est +y = ode(y0,t0,t,f) +oùy0 et t0 sont les valeurs initiales du système, t est un vecteur de valeurs pour lesquelles on calcule les solutions, et y est le vecteur de solutions (plot(t,y) permet de tracer le graphique des solutions) ; +la primitive ode admet des arguments permettant de résoudre des situations spécifiques : 'roots' pour rajouter une équation g(t,y) = 0, 'discrete' pour calculer de manière récursive y(k+1)=ƒ(k,y(k)) à partir d'un état initial y(k0). +Il existe d'autres primitives pour des systèmes spécifiques. + + Tracé de fonction [modifier] + + Tracé 2D [modifier] +Le tracé d’une fonction se fait en deux étapes + +définir l’étendue de la variable abscisse et le pas, sous la forme d’un vecteur colonne, par exemple x = [début:pas:fin]' ; +tracer la fonction avec la commande plot(x, f(x)) si ƒ est la fonction. +On peut tracer simultanément plusieurs fonctions en les mettant dans une matrice, par exemple plot(x, [f1(x) f2(x) f3(x)]). + +On note en fait que ƒ(x) est elle-même un vecteur. On peut de manière générale définir un vecteur des valeurs de x et un vecteur des valeurs de y, et la fonction plot(x, y) tracera le nuage de points. + +Si ƒ est une fonction externe (par exemple définie avec deff, voir ci-dessus, ou function, voir ci-après), alors on peut tracer directement la fonction avec fplot2d(x, f). On peut aussi définir y par y = feval(x, f), puis tracer avec plot(x,y). + +La fonction xgrid permet d’afficher une grille correspondant aux graduations. + +Les fonctions plot2di, utilisées à la place de plot, permettent de faire varier l’apparence générale du tracé : + +plot2d : trait « normal » ; identique à plot, mais permet l’utilisation de marqueurs ; +plot2d2 : trait en escalier ; +plot2d3 : tracé en barres ; +plot2d4 : tracé en « flèches » (pour un champ de vecteurs) ; +Ces fonctions plot2di acceptent des arguments modifiant le tracé, sous la forme plot2di(x, y, arguments). Les arguments sont de la forme mot-clef = valeur, et sont séparés par des virgules. + +Pour placer des marqueurs, on utilise l’argument style = n ou n est un entier positif ou négatif (par exemple plot2d(x, y, style = 1)) ; un nombre négatif remplace les points par des marqueurs (une étoile pour -10, des ronds pour -9, …, des petits points pour 0, la liste s'obtient en tapant la commande getsymbol) et un nombre positif indique un trait plein mais de couleur déterminée (selon la carte de couleur définie, voir ci-après). + +Si le tracé comporte plusieurs courbes (donc mis dans une matrice ligne Y), l’argument style est une matrice, la valeur de chaque élément indiquant le style de chaque courbe, par exemple + +Y = [cos(x), sin(x)]; plot2d(x, Y, style = [-2, -1]) +Dans ce cas-là, on peut inscrire une légende sous le graphique pour chaque symbole, avec l’argument leg = ('texte1@texte2'), l’arobase servant à séparer les légendes, par exemple + +plot2d(x, Y, style = [-2, -1], leg = 'cosinus@sinus') +Pour une échelle logarithmique, on utilise l’argument logflag = type où type est une chaîne de deux caractères, « n » (pour normal) ou « l » (pour logarithmique), le premier caractère correspondant à l’axe des x et le second à l’axe des y. Par exemple + +plot2d(x, y, logflag = 'nl') pour un axe des x linéaire et un axe des y logarithmique ; +plot2d(x, y, logflag = 'll') pour avoir deux échelles logarithmiques. +On peut choisir le type d’axe avec l’argument axesflag=n où n est un entier positif : 0 pour ne pas avoir d’axe, 1 pour des axes « classiques » se recoupant en bas à droite, 4 pour des axes « classiques » se coupant au centre, 5 pour des axes se coupant en (0, 0)… + +On peut définir le nombre de graduations et de sous-graduations des axes avec l’argument nax = [nx, Nx, ny, Ny] où Nx est le nombre de graduations de l’axe x, nx le nombre de sous-graduations… + +L’argument rect = [xmin, ymin, xmax, ymax] permet de limiter le tracé à la zone comprise dans le rectangle défini par les valeurs dans la matrice. + +La fonction polarplot réalise un tracé en coordonnées polaires. La fonction r(theta) se trace par la commande : + +polarplot(r,theta) +où r et theta sont deux matrices de même dimension. + + + Carte d’un champ [modifier] +Si x est un vecteur colonne de m éléments, y un vecteur colonne de n éléments et z une matrice m×n, alors la fonction + +grayplot(x, y, z) +va associer une couleur à chaque valeur de z et tracer une carte de couleurs, chaque point (x(i), y(j)) ayant la couleur associée au coefficient z(i, j). + +Les niveaux de couleur sont indiqués par la fonction + +xset('colormap', cmap) +où cmap est une matrice de trois colonnes dont chaque ligne contient la couleur associée à un niveau, sous la forme RVB (les éléments de la matrice allant de 0 à 1). La première ligne de la matrice correspond au plus bas niveau, la dernière ligne au plus haut. Cette matrice peut être générée de manière automatique par les fonctions colormap : + +graycolormap(n), où n est un entier, génère n niveaux de gris entre le noir et le blanc ; +jetcolormap(n), où n est un entier, génère n niveaux de couleur entre le bleu et le rouge ; +hotcolormap(n), où n est un entier, génère n niveaux de couleur entre le rouge et le jaune. +On peut par exemple utiliser xset('colormap',graycolormap(32)) pour avoir 32 niveaux de gris. On peut réaliser un dégradé du noir vers le rouge avec + +cmap = graycolormap(32); cmap(:, 2:3) = 0 ou avec r = [0:32 / 31:32]' / 32; cmap = [r zeros(32, 2)] +et un dégradé du bleu vers le blanc avec + +cmap = graycolormap(32); cmap(:, 2:3) = 1 ou avec r = [0:32 / 31:32]' / 32; cmap = [r ones(32, 2)] +Les niveaux de couleur sont également utilisés lorsque l’on trace plusieurs courbes sur le même graphique. Dans ce cas-là, des dégradés ne fournissent pas un contraste permettant de distinguer facilement des courbes voisines ; on peut obtenir les niveaux de couleur par défaut avec get(sdf(), 'color_map'). + +On peut tracer une courbe de niveaux avec la fonction + +contour2d(x, y, z, n) +où n est le nombre de niveaux que l’on veut voir figurer ; on peut aussi donner les valeurs des niveaux z1, z2, …, zn par un vecteur + +contour2d(x, y, z, [z1,z2,...,zn]) +On peut également tracer un champ de vecteurs. Pour cela, il faut une matrice vx ayant les composantes selon x du champ de vecteur, une matrice vy ayant les composantes selon y de ce champ, et utiliser la fonction + +champ(x, y, vx, vy) +Avec la fonction champ1, les vecteurs tracés ont tous la même longueur, la norme du champ est indiquée par la couleur du vecteur, suivant le principe exposé pour grayplot. + + + Tracé 3D [modifier] +Scilab permet également le tracé de surfaces à trois dimensions (x, y, z). Si x est une matrice colonne de m éléments, y une matrice colonne de n éléments, et z une matrice m×n, alors la fonction + +plot3d(x, y, z) +va tracer la surface des points (x(i), y(j), z(i, j)). S’il s’agit d’une surface représentative d’une fonction ƒ, on a + +z(i, j) = f(x(i), y(j)). +Si ƒ est une fonction « externe » (par exemple définie par deff ou function), on peut définir z avec la fonction feval (voir plus haut), ou bien utiliser fplot3d(x, y, f). + +La fonction param3d(fx(t), fy(t), fz(t)) trace la courbe paramétrique ; t est un vecteur contenant les valeurs successives du paramètre. + +Les fonctions plot3d1, fplot3d1 et param3d1 permettent d’utiliser des niveaux de couleurs pour indiquer la valeur de z. L’utilisation est identique à celle de plot3d, mais les niveaux de couleur sont indiqués par la fonction + +xset('colormap', cmap) +(voir ci-dessus). + +Le point de vue de la surface 3D est défini par deux angles en degrés, ?, rotation autour de l’axe des Z, et a, rotation autour de l’axe des Y (voir aussi Angles d'Euler) : plot3d(x, y, z, theta, alpha), param3d(x, y, z, theta, alpha)… ; + +plot3d(x, y, z, 0, 0) donne une vue de dessus, semblable aux cartes 2D, projection de la surface sur le planXY selon l’axe Z ; +plot3d(x, y, z, 90, 0) donne une vue de face, projection de la surface sur le planXZ selon l’axe Y ; +plot3d(x, y, z, 0, 90) donne une vue de côté, projection de la surface sur le planYZ selon l’axe X ; +plot3d(x, y, z, 45, 45) est la vue par défaut, de type perspective isométrique. +On peut également définir les limites des axes avec le mot-clef ebox : + +plot3d(x, y, z, ebox=[xmin, xmax, ymin, ymax, zmin, zmax]) +plot3d(x, y, z, theta, alpha, ebox=[xmin, xmax, ymin, ymax, zmin, zmax]) + + Représentation de données statistiques [modifier] +Si x est un vecteur, la fonction histplot(n, x), n étant un entier, va découper l’intervalle de valeurs prises par les coefficients de x en n tranches d’égale largeur, et tracer l’histogramme de répartition des valeurs selon ces tranches. Si n est un vecteur dont les coefficients sont strictement croissants, les valeurs des coefficients de n servent à déterminer les tranches. + +Si x est une matrice, hist3d(x) trace un histogramme 3D tel que le parallélépipède situé en (i, j) a pour hauteur x(i, j). Comme pour toutes les fonctions de tracé en trois dimensions, on peut définir l’angle de vue avec ? et a. + + + Dessin [modifier] +Il est possible de dessiner directement des figures géométriques sur le graphique. + +La fonction xpoly(x,y,'lines',1) permet de tracer un polygone fermé, x étant la liste des abscisses des sommets (sous la forme d'un vecteur ou d'une matrice) et y étant la liste des ordonnées des sommets (c'est une matrice de même dimension que x). La fonction xfpoly(x,y,'lines',1) permet de tracer un polygone rempli. + +La fonction xrect(x,y,l,h) trace un rectangle dont le point en haut à gauche est (x, y), de largeur l et de hauteur h. La fonction xfrect(x,y,l,h) trace un rectangle rempli. + +La fonction xstring(x,y,'chaîne') écrit la chaîne de caractère chaîne sur le graphique, le point en bas à gauche du texte étant au point (x,y). + +La fonction xarc(x,y,l,h,a1,a2) trace un arc d'ellipse compris dans le rectangle dont le point en haut à gauche est (x, y), de largeur l et de hauteur h. Chaque degré d'angle est divisé en 64 secteurs, l'arc part de l'angle trigonométrique a1×64 ° et va jusqu'à l'angle (a1+a2)×64 °. La fonction xfarc(x,y,l,h) trace un arc d'ellipse rempli. + +Pour changer les propriétés des traits des dessins, il faut utiliser la commande set('propriété',valeur). Les principales propriétés d'un objet sont : + +line_style : type de trait ; c'est un entier, 0 pour un trait plein, 2 pour des pointillés longs, trois pour des pointillés courts, 4 pour un trait d'axe (alternance trait-point)… +thickness : épaisseur du trait, sous la forme d'un entier positif ; +mark_size : dans le cas d'un tracé par marqueurs, taille des marqueurs. +On peut aussi associer une variable à l'élément dessiné ; cela se fait avec la fonction +variable = get('hdl') +hdl signifiant handle (littéralement « poignée », intermédiaire d'action). Pour définir la propriété de cet élément, on fait + +variable.propriété = valeur +Ces deux méthodes sont valables quel que soit l'objet (courbe, polygone, arc d'ellipse…). + +Par exemple + +xarc(0,1,0.5,0.5,0,360*64) // ellipse +set('line_style',2) // pointillés +ou bien + +xarc(0,1,0.5,0.5,0,360*64) // ellipse +a=get('hdl') +a.line_style=2 // pointillés + + Mise en forme, axes et fenêtrage [modifier] +La fonction xset permet de définir l’apparence : + +police des graduations et titres : xset('font', type, taille), où +taille est un nombre désignant la taille des caractères, en unité arbitraire ; +type est un nombre désignant le type de police : 1 pour les lettres grecques (police Symbol), 2–5 pour une police avec empattements type Times (2 pour des lettre romanes, 3 en italique, 4 en gras, 5 en gras italique) ; 6–9 pour une police sans empattement type Arial (6 pour des lettres romaines, 7 en italique, 8 en gras, 9 en gras italique) ; +épaisseur des traits d’axe et du tracé : xset('thickness', e) où e est un nombre désignant l’épaisseur en unité arbitraire ; +taille des marqueurs (le cas échéant, voir ci-après) avec xset('mark size', taille). +Comme pour tous les objets graphiques, on peut changer les propriétés des axes en les affectant à une variable par la commande var=get('current_axes'). Les principales propriétés sont : + +x_location et y_location : prennent les valeurs 'top', 'middle' ou 'bottom' selon que l'on veut que l'axe soit en haut, passe par l'origine, ou soit en bas ; +isoview : vaut 'on' si l'on veut que les échelles soient identiques sur les axes, 'off' si l'échelle est libre ; +sub_ticks : matrice [nx,ny] où nx et ny est le nombr ede sous-graduation (il faut 4 sous-graduations pour que la graduation principale soit divisée en 5) ; +Exemple + +a=get('current_axes') +a.x_location='middle' +a.y_location='middle' +a.isoview='on' +a.sub_ticks=[4,4] +On peut placer plusieurs tracés côte à côte avec l’instruction subplot : + +subplot(m, n, i) place le tracé qui suit l’instruction dans la i e case (dans l’ordre de lecture européen) d’un tableau m×n ; le tracé peut comporter plusieurs instructions plot, xset, xtitle. +La fonction xtitle('nom du graphique','axe des x', 'axe des y') met un titre au graphique et aux axe. La fonction titlepage('titre') met un titre au milieu du graphique. La fonction clf efface la fenêtre graphique. + + + Exemple [modifier] + +Exemple de graphique obtenu avec ScilabVoici le graphique que l’on obtient avec les instructions ci-dessous. + +clear; clf; + +deff('[z] = f(x, y)', 'z = sin(x) * cos(y)') + +xset('colormap', jetcolormap(32)) + +x = %pi * [-1:0.05:1]'; +y = x; +z = feval(x, y, f); + +subplot(2, 2, 1) +grayplot(x, y, z) + +subplot(2, 2, 2) +contour2d(x, y, z, 5) + +subplot(2, 2, 3) +plot3d1(x, y, z, 0, 90) + +subplot(2, 2, 4) +plot3d1(x, y, z, 70, 70) + + Programmation [modifier] +Scilab accepte un certain nombre d’instructions : + +exécution conditionnelle if condition then, …, else, …, end +boucle itérative for variable = début : fin, …, end ou for variable = début : pas : fin, …, end +boucle itérative antéconditionnée : while condition do, …, end ou while condition do, …, else, …, end +Il est possible de définir des fonctions avec passage de paramètres. La fonction est un sous-programme avec ses variables propres, et qui peut contenir des boucles, des branchements conditionnels... Par exemple, pour définir une fonction f(x) : + +-->function [y] = f(x) +--> … +--> endfunction +Le paramètre x est passé à la fonction f ; la valeur retournée par f sera celle qui est attribuée à y dans la fonction. + +On peut enregistrer l’environnement, c’est-à-dire l’ensemble des variables, dont notamment les fonctions, avec la commande save('fichier'). Ceci crée un fichier binaire (Scilab n’ajoute pas d’extension). Cet environnement peut être rechargé avec la fonction load('fichier'). + +On peut également écrire les instructions dans un fichier texte, puis faire du copier/coller depuis l’éditeur de texte vers la ligne de commande de Scilab. Le code source peut contenir des commentaires introduits par deux barres de fraction //. + + + Environnement [modifier] +Dans Scilab, l’environnement est l’ensemble des variables (y compris les fonctions) qui ont été définies ; l’environnement contient un certain nombre de variables prédéfinies. L’ensemble des variables est donné par la commande who. + +Lorsque l’on utilise une fonction, l’exécution de la fonction se fait dans un nouvel environnement, copie de l’environnement initial. Les variables qui y sont modifiées ne le sont pas dans l’environnement initial (on ne travaille qu’en variables locales), seul le résultat de la fonction est renvoyé. + +On peut ouvrir à dessein un environnement, avec la fonction pause ; l’invite devient alors -1->, indiquant que l’on est dans le premier niveau de sous-environnement. On est également dans une telle configuration lorsque l’on interrompt l’exécution d’une fonction (par exemple avec la combinaison de touches CTRL+C). Pour revenir à l’environnement précédent, il faut utiliser la commande return. + +Si l’on utilise return sans argument, les variables ne sont pas transmises à l’environnement père. Il est possible de transmettre les variables a1, a2, …, an dans l’environnement père, avec la syntaxe (x1, x2, …, xn)=return(a1, a2, …, an), où x1, x2, …, xn sont les noms des variables dans l’environnement père. + +La commande clear permet de « nettoyer » un environnement, c’est-à-dire de supprimer toutes les variables. + diff --git a/modules/string/tests/unit_tests/tokens.dia.ref b/modules/string/tests/unit_tests/tokens.dia.ref new file mode 100755 index 000000000..7e5e5f6a7 --- /dev/null +++ b/modules/string/tests/unit_tests/tokens.dia.ref @@ -0,0 +1,65 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- CLI SHELL MODE --> +//=============================== +// unit tests tokens +//=============================== +if tokens('This is a character string') <> ['This'; 'is'; 'a'; 'character'; 'string'] then bugmes();quit;end +if tokens('SCI/demos/scicos','/') <> ['SCI';'demos';'scicos'] then bugmes();quit;end +if tokens('y=a+b*2',['=','+','*']) <> ['y';'a';'b';'2'] then bugmes();quit;end +if length(tokens('',['=','+','*'])) <> 0 then bugmes();quit;end +//=============================== +if tokens(' ',' ') <> [] then bugmes();quit;end +//=============================== +s = tokens(' '+ascii(9)+' ',ascii(9)); +if s <> [' '; ' '] then bugmes();quit;end +//=============================== +s = tokens(' '+ascii(9)+' ',' '); +if s <> ascii(9) then bugmes();quit;end +//=============================== +s = tokens(' '+ascii(9)+' ',ascii(9)); +if s <> [' '; ' '] then bugmes();quit;end +//=============================== +s = tokens(' '+ascii(9)+' ',' '); +if s <> ascii(9) then bugmes();quit;end +//=============================== +str = "世界您好"; +ch = "界"; +r = tokens(str,ch); +ref = ["世";"您好"]; +if and(ref <> r) then bugmes();quit;end +//=============================== +str = "азеазея"; +ch = "з"; +r = tokens(str,ch); +ref = ["а";"еа";"ея"]; +if and(ref <> r) then bugmes();quit;end +//=============================== +str = "ハロー・ワールド"; +ch = "ワ"; +r = tokens(str,ch); +ref = ["ハロー・";"ールド"]; +if and(ref <> r) then bugmes();quit;end +//=============================== +str = "เฮลโลเวิลด์"; +ch = "ฮ"; +r = tokens(str,ch); +ref = ["เ";"ลโลเวิลด์ "]; +if and(ref <> r) then bugmes();quit;end +//=============================== +str = "حريات وحقوق"; +ch = "و"; +r = tokens(str,ch); +ref = ["حريات";"حق";"ق"]; +if and(ref <> r) then bugmes();quit;end +//=============================== +str = "תוכנית"; +ch = "ו"; +r = tokens(str,ch); +ref = ["ת";"כנית"]; +if and(ref <> r) then bugmes();quit;end +//=============================== diff --git a/modules/string/tests/unit_tests/tokens.tst b/modules/string/tests/unit_tests/tokens.tst new file mode 100755 index 000000000..2d6da91b8 --- /dev/null +++ b/modules/string/tests/unit_tests/tokens.tst @@ -0,0 +1,67 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> + +//=============================== +// unit tests tokens +//=============================== +if tokens('This is a character string') <> ['This'; 'is'; 'a'; 'character'; 'string'] then pause,end +if tokens('SCI/demos/scicos','/') <> ['SCI';'demos';'scicos'] then pause,end +if tokens('y=a+b*2',['=','+','*']) <> ['y';'a';'b';'2'] then pause,end +if length(tokens('',['=','+','*'])) <> 0 then pause,end +//=============================== +if tokens(' ',' ') <> [] then pause,end +//=============================== +s = tokens(' '+ascii(9)+' ',ascii(9)); +if s <> [' '; ' '] then pause,end +//=============================== +s = tokens(' '+ascii(9)+' ',' '); +if s <> ascii(9) then pause,end +//=============================== +s = tokens(' '+ascii(9)+' ',ascii(9)); +if s <> [' '; ' '] then pause,end +//=============================== +s = tokens(' '+ascii(9)+' ',' '); +if s <> ascii(9) then pause,end +//=============================== +str = "世界您好"; +ch = "界"; +r = tokens(str,ch); +ref = ["世";"您好"]; +if and(ref <> r) then pause,end +//=============================== +str = "азеазея"; +ch = "з"; +r = tokens(str,ch); +ref = ["а";"еа";"ея"]; +if and(ref <> r) then pause,end +//=============================== +str = "ハロー・ワールド"; +ch = "ワ"; +r = tokens(str,ch); +ref = ["ハロー・";"ールド"]; +if and(ref <> r) then pause,end +//=============================== +str = "เฮลโลเวิลด์"; +ch = "ฮ"; +r = tokens(str,ch); +ref = ["เ";"ลโลเวิลด์ "]; +if and(ref <> r) then pause,end +//=============================== +str = "حريات وحقوق"; +ch = "و"; +r = tokens(str,ch); +ref = ["حريات";"حق";"ق"]; +if and(ref <> r) then pause,end +//=============================== +str = "תוכנית"; +ch = "ו"; +r = tokens(str,ch); +ref = ["ת";"כנית"]; +if and(ref <> r) then pause,end +//===============================
\ No newline at end of file |