cynic Fri Jan 26 07:37:56 2001 EDT
Modified files:
/phpdoc/cs/functions strings.xml
Log:
a few words here and there
Index: phpdoc/cs/functions/strings.xml
diff -u phpdoc/cs/functions/strings.xml:1.3 phpdoc/cs/functions/strings.xml:1.4
--- phpdoc/cs/functions/strings.xml:1.3 Thu Jan 25 22:39:53 2001
+++ phpdoc/cs/functions/strings.xml Fri Jan 26 07:37:56 2001
@@ -1337,7 +1337,7 @@
<refentry id="function.sscanf">
<refnamediv>
<refname>sscanf</refname>
- <refpurpose>Parses input from a string according to a format</refpurpose>
+ <refpurpose>Parsovat vstupní řetězec podle formátu</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
@@ -1352,11 +1352,11 @@
</funcprototype>
</funcsynopsis>
<para>
- The function <function>sscanf</function> is the input analog of
- <function>printf</function>. <function>Sscanf</function> reads from
- the string <parameter>str</parameter> and interprets it according to
- the specified <parameter>format</parameter>. If only two parameters were
- passed to this function, the values parsed will be returned as an array.
+ Funkce <function>sscanf</function> je vstupní obdobou
+ <function>printf</function>. <function>sscanf</function> čte řetězec
+ <parameter>str</parameter> a interpretuje ho podle specifikovaného
+ <parameter>format</parameter>-u. Pokud dostane pouze dva argumenty,
+ vrátí rozparsované hodnoty jako pole.
<example>
<title>Ukázka <function>Sscanf</function> Example</title>
<programlisting role="php">
@@ -2554,8 +2554,8 @@
<funcsynopsis>
<funcprototype>
<funcdef>string <function>strtok</function></funcdef>
- <paramdef>string <parameter>arg1</parameter></paramdef>
- <paramdef>string <parameter>arg2</parameter></paramdef>
+ <paramdef>string <parameter>token</parameter></paramdef>
+ <paramdef>string <parameter>string</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
@@ -2576,7 +2576,14 @@
</example>
</para>
<para>
- Note that only the first call to strtok uses the string argument.
+ Pozn.: Pouze první volání <function>strtok</function> používá
+ <parameter>string</parameter>. Všechna následná volání
+ <function>strtok</function> potřebují pouze <parameter>token</parameter>,
+ protože <function>strtok</function> si pamatuje, kde v současném
+ <parameter>string</parameter> je. Pokud chcete začít znovu, nebo tokenizovat
+ nový řetězec, stačí zavolat znovu <function>strtok</function> s argumentem
+ <parameter>string</parameter>, čímž ji inicializujete.
+ Pozn.: Do argumentu
Every subsequent call to strtok only needs the token to use, as
it keeps track of where it is in the current string. To start
over, or to tokenize a new string you simply call strtok with the
@@ -2703,8 +2710,8 @@
</para>
<note>
<para>
- <function>Str_replace</function> was added in PHP 3.0.6, but was
- buggy up until PHP 3.0.8.
+ <function>str_replace</function> byla přidána v PHP 3.0.6, ale nefungovala
+ správně až do PHP 3.0.8.
</para>
</note>
<para>
@@ -2717,7 +2724,7 @@
<refentry id="function.strtr">
<refnamediv>
<refname>strtr</refname>
- <refpurpose>Přeložit určité znaky</refpurpose>
+ <refpurpose>Nahradit určité znaky</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
@@ -2731,7 +2738,7 @@
</funcsynopsis>
<para>
Tato funkce upraví <parameter>str</parameter> tak, že všechny výskyty
- všech znaků ve <parameter>from</parameter> přeloží na odpovídající znaky v
+ všech znaků ve <parameter>from</parameter> nahradí odpovídajícími znaky v
<parameter>to</parameter> a vrátí výsledek.
</para>
<para>
@@ -2847,8 +2854,7 @@
</informalexample>
</para>
<para>
- Viz také <function>strrchr</function> a
- <function>ereg</function>.
+ Viz také <function>strrchr</function> a <function>ereg</function>.
</para>
</refsect1>
</refentry>
@@ -2877,7 +2883,7 @@
<example>
<title>Ukázka <function>substr_count</function></title>
<programlisting>
-print substr_count("This is a test", "is"); // prints out 2
+print substr_count("This is a test", "is"); // vytiskne 2
</programlisting>
</example>
</para>