You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/api_en/include/String.xml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -44,13 +44,13 @@ println(quoted); // This one has "quotes"
44
44
</example>
45
45
46
46
<description><![CDATA[
47
-
A string is a sequence of characters. The class <b>String</b> includes methods for examining individual characters, comparing strings, searching strings, extracting parts of strings, and for converting an entire string uppercase and lowercase. Strings are always defined inside double quotes ("Abc"), and characters are always defined inside single quotes ('A').<br/>
47
+
A string is a sequence of characters. The class <b>String</b> includes methods for examining individual characters, comparing strings, searching strings, extracting parts of strings, and for converting an entire string uppercase and lowercase. Strings are always defined inside double quotes (<b>"Abc"</b>), and characters are always defined inside single quotes (<b>'A'</b>).<br/>
48
48
<br/>
49
-
To compare the contents of two Strings, use the <b>equals()</b> method, as in "if (a.equals(b))", instead of "if (a == b)". A String is an Object, so comparing them with the == operator only compares whether both Strings are stored in the same memory location. Using the <b>equals()</b> method will ensure that the actual contents are compared. (The <a href="http://wiki.processing.org/w/Troubleshooting#Why_don.27t_these_Strings_equal.3F">troubleshooting</a> reference has a longer explanation.)<br />
49
+
To compare the contents of two Strings, use the <b>equals()</b> method, as in <b>if (a.equals(b))</b>, instead of <b>if (a == b)</b>. A String is an Object, so comparing them with the <b>==</b> operator only compares whether both Strings are stored in the same memory location. Using the <b>equals()</b> method will ensure that the actual contents are compared. (The <a href="http://wiki.processing.org/w/Troubleshooting#Why_don.27t_these_Strings_equal.3F">troubleshooting</a> reference has a longer explanation.)<br />
50
50
<br />
51
-
Because a String is defined between quotation marks, to include such marks within the String itself you must use the \ (backslash) character. (See the third example above.) This is known as an <em>escape sequence</em>. Other escape sequences include \t for the tab character and \n for new line. Because backslash is the escape character, to include a single backslash within a String, you must use two consecutive backslashes, as in: \\<br/>
51
+
Because a String is defined between double quotation marks, to include such marks within the String itself you must use the <b>\</b> (backslash) character. (See the third example above.) This is known as an <em>escape sequence</em>. Other escape sequences include <b>\t</b> for the tab character and <b>\n</b> for new line. Because backslash is the escape character, to include a single backslash within a String, you must use two consecutive backslashes, as in: <b>\\</b><br/>
52
52
<br/>
53
-
There are more string methods than those linked from this page. Additional documentation is located online in the <a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html">official Java documentation.</a>.
53
+
There are more string methods than those linked from this page. Additional documentation is located online in the <a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html">official Java documentation</a>.
54
54
]]></description>
55
55
56
56
<syntax></syntax>
@@ -67,7 +67,7 @@ There are more string methods than those linked from this page. Additional docum
67
67
68
68
<method>
69
69
<mname>indexOf()</mname>
70
-
<mdescription>Returns the index value of the first occurance of a character within the input string</mdescription>
70
+
<mdescription>Returns the index value of the first occurrence of a substring within the input string</mdescription>
Tests to see if a substring is embedded in a string and returns the index position of the first occurance of the substring defined in the <b>str</b> parameter. If the <b>str</b> parameter is not found in the string, -1 is returned.
24
+
Tests to see if a substring is embedded in a String, and returns the index position of the first occurrence of the substring defined in the <b>str</b> parameter. If the <b>str</b> substring is not found within the String, <b>-1</b> is returned.
Copy file name to clipboardExpand all lines: content/static/shop/index.html
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,38 @@
3
3
4
4
<tr>
5
5
<tdwidth="625" valign="top">
6
-
<h1class="large-header"><spanclass="black">Shop.</span> A percentage of sales supports future Processing Development.</h1>
6
+
<h1class="large-header"><spanclass="black">T-Shirts.</span> 100% of the profits from these shirts fund the Processing Foundation.</h1>
7
+
To commemorate the release of Processing 2, <ahref="http://wireandtwine.com/processing/">these new tees</a> are available for pre-order
8
+
until October 1, 2013. Every shirt is handprinted on American Apparel 100% cotton shirts. Orders begin shipping the second week of October.
9
+
Some shirts will remain available, but to make sure you get the size and style you want, order before 1 October. The shirts are printed and distributed
10
+
through our partner WIRE & TWINE. Thanks to Kyle McDonald for the short piece of code, to Douglas Repetto for permission to mangle the Dorkbot tagline,
11
+
and the Readme festival for the original "strange things" software shirt.<br/>
12
+
<br/>
13
+
<ahref="http://wireandtwine.com/processing/">More information and order from WIRE & TWINE.</a><br/>
If you're interested in buying a book about Processing, please consider buying
9
-
it here. A percentage of the sales supports future Processing Development.
10
-
There's more information about each book on the <ahref="../books/">Books page</a>.<br/>
19
+
<br/>
11
20
</td>
12
21
</tr>
13
22
</table>
14
23
15
24
<br/>
16
25
17
26
<tablewidth="656" border="0">
27
+
<tr>
28
+
<tdwidth="625" valign="top">
29
+
<h1class="large-header"><spanclass="black">Books.</span> If you're interested in buying a book about Processing, please consider buying
30
+
it here. A percentage of the sales supports future Processing Development. There's more information about each book <ahref="/books/">on the Books page</a>.<br/>
Copy file name to clipboardExpand all lines: download/_downloads.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@
91
91
<p>Earlier releases have been removed because we can only support the current versions of the software. To update old code, read the <a href="http://wiki.processing.org/w/Changes">changes</a> page. Per-release changes can be found in <a href="https://raw.github.com/processing/processing/master/build/shared/revisions.txt">revisions.txt</a>. If you have problems with the current release, please <a href="https://github.com/processing/processing/issues?state=open">file a bug</a> so that we can fix it. Older releases can also be <a href="https://github.com/processing/processing">built from the source</a>. <a href="http://wiki.processing.org/w/FAQ#What.27s_with_the_version_numbers.3F">Read More</a> about the releases and their numbering. Note that <a href="http://wiki.processing.org/w/Android">Android mode</a> no longer works in Processing 1.5, you'll need to use a 2.0 release to do Android development.</p>
92
92
</div>
93
93
94
-
<!-- Pre Releases -->
94
+
<!--
95
95
<div class="releases">
96
96
<h3>Pre-Releases</h3>
97
97
<ul>
@@ -125,6 +125,7 @@
125
125
</ul>
126
126
<p>The 2.0 pre-releases contain significant changes, be sure to <a href="http://wiki.processing.org/w/Changes">read about them</a>. </p>
0 commit comments