-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathstring.ndbx
More file actions
29 lines (29 loc) · 2.68 KB
/
string.ndbx
File metadata and controls
29 lines (29 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ndbx type="file" uuid="9eb894f5-3b8b-40e4-9b56-4aaf0242eba7">
<link href="java:nodebox.function.StringFunctions" rel="functions"/>
<node description="Create and manipulate text." name="root" renderedChild="length">
<node description="Create a string value that can be used as a variable." function="string/string" name="string" outputType="string" position="1.00,3.00" category="string">
<port name="value" type="string" description="The input string."/>
</node>
<node description="Add strings together." function="string/concatenate" name="concatenate" outputType="string" position="1.00,3.00" category="string">
<port name="string1" range="value" type="string" value="" widget="string" description="The first string."/>
<port name="string2" range="value" type="string" value="" widget="string" description="The second string."/>
<port name="string3" range="value" type="string" value="" widget="string" description="The third string."/>
<port name="string4" range="value" type="string" value="" widget="string" description="The fourth string."/>
</node>
<node description="Count the number of characters in a string." function="string/length" name="length" outputType="int" position="1.00,2.00" category="string">
<port name="string" range="value" type="string" value="" widget="string" description="The input string."/>
</node>
<node description="Create a list of strings." function="string/makeStrings" name="make_strings" outputRange="list" outputType="string" position="1.00,1.00" category="string">
<port name="string" range="value" type="string" value="Alpha;Beta;Gamma" widget="string" description="The input string."/>
<port name="separator" range="value" type="string" value=";" widget="string" description="The character that separates the numbers."/>
</node>
<node description="Count the number of words in a string." function="string/wordCount" name="word_count" outputType="int" position="1.00,4.00" category="string">
<port name="string" range="value" type="string" value="" widget="string" description="The input string."/>
</node>
<node description="Represent a numeric value as a string in a specific way." function="string/formatNumber" name="format_number" outputType="string" position="1.00,6.00" category="string">
<port name="value" range="value" type="float" description="The input value"/>
<port name="format" range="value" type="string" value="%.2f" widget="string" description="The format template"/>
</node>
</node>
</ndbx>