-
Notifications
You must be signed in to change notification settings - Fork 6
/
StringUtils.xml
153 lines (153 loc) · 5.29 KB
/
StringUtils.xml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?xml version="1.0" encoding="utf-8"?>
<!-- This file along with its dll needs to be installed to ...InstallDir...\RuntimeData\FormulaAddIn to run. -->
<FormulaAddIn>
<!--
<Function>
<Name>STARTSWITH</Name>
<NumParams variable="false">2</NumParams>
<Category>String</Category>
<InsertText>STARTSWITH(String, String)</InsertText>
<Description>Does A String Start With Another.</Description>
<Formula>LEFT(P1,LENGTH(P2))=P2</Formula>
</Function>
<Function>
<Name>ENDSWITH</Name>
<NumParams variable="false">2</NumParams>
<Category>String</Category>
<InsertText>ENDSWITH(String, String)</InsertText>
<Description>Does A String End With Another.</Description>
<Formula>RIGHT(P1,LENGTH(P2))=P2</Formula>
</Function>
<Function>
<Name>CONTAINS</Name>
<NumParams variable="false">2</NumParams>
<Category>String</Category>
<InsertText>CONTAINS(String, String)</InsertText>
<Description>Does A String Contain Another.</Description>
<Formula>FINDSTRING(P1,P2)!=-1</Formula>
</Function>
//-->
<Function>
<Name>LEFTPART</Name>
<NumParams variable="false">2</NumParams>
<Category>String</Category>
<InsertText>LeftPart(String, Separator)</InsertText>
<Description>Get The Left Part Upto A Separator</Description>
<Formula>IIF(FINDSTRING(P1,P2) == -1, P1, LEFT(P1, FINDSTRING(P1,P2)))</Formula>
</Function>
<Function>
<Name>RIGHTPART</Name>
<NumParams variable="false">2</NumParams>
<Category>String</Category>
<InsertText>RightPart(String, Separator)</InsertText>
<Description>Get The Rest Of The String After First Separator</Description>
<Formula>IIF(FINDSTRING(P1,P2) == -1, P1, SUBSTRING(P1, FINDSTRING(P1,P2) + LENGTH(P2)))</Formula>
</Function>
<Function>
<Name>SPLIT</Name>
<NumParams variable="false">3</NumParams>
<Category>String</Category>
<InsertText>Split(String, Delimeter, Index)</InsertText>
<Description>Get a part of a delimeted string</Description>
<Dll>
<Name>AlteryxAbacus.dll</Name>
<EntryPoint>Split</EntryPoint>
</Dll>
</Function>
<Function>
<Name>RANDOMSEED</Name>
<NumParams variable="true">0</NumParams>
<Category>Generator</Category>
<InsertText>RandomSeed(Seed)</InsertText>
<Description>Sets the Random generator seed</Description>
<Dll>
<Name>AlteryxAbacus.dll</Name>
<EntryPoint>RandomSeed</EntryPoint>
</Dll>
</Function>
<Function>
<Name>RANDOM</Name>
<NumParams variable="false">0</NumParams>
<Category>Generator</Category>
<InsertText>Random()</InsertText>
<Description>Get a random number between 0 and 1</Description>
<Dll>
<Name>AlteryxAbacus.dll</Name>
<EntryPoint>Random</EntryPoint>
</Dll>
</Function>
<Function>
<Name>RANDOMINT</Name>
<NumParams variable="true">1</NumParams>
<Category>Generator</Category>
<InsertText>RandomInt(Max)</InsertText>
<Description>Get a random integer between 0 and Max or Min and Max</Description>
<Dll>
<Name>AlteryxAbacus.dll</Name>
<EntryPoint>RandomInt</EntryPoint>
</Dll>
</Function>
<Function>
<Name>RANDOMSTRING</Name>
<NumParams variable="true">1</NumParams>
<Category>Generator</Category>
<InsertText>RandomString(Pattern, CharSet1, ...)</InsertText>
<Description>Get a random string</Description>
<Dll>
<Name>AlteryxAbacus.dll</Name>
<EntryPoint>RandomString</EntryPoint>
</Dll>
</Function>
<Function>
<Name>RANDOMIPADDRESS</Name>
<NumParams variable="true">0</NumParams>
<Category>Generator</Category>
<InsertText>RandomIPAddress(CIDR)</InsertText>
<Description>Get a random IP address within a CIDR block</Description>
<Dll>
<Name>AlteryxAbacus.dll</Name>
<EntryPoint>RandomIPAddress</EntryPoint>
</Dll>
</Function>
<Function>
<Name>RANDOMITEM</Name>
<NumParams variable="true">1</NumParams>
<Category>Generator</Category>
<InsertText>RandomItem(Item1, Item2, Item3)</InsertText>
<Description>Get a random item from a list</Description>
<Dll>
<Name>AlteryxAbacus.dll</Name>
<EntryPoint>RandomItem</EntryPoint>
</Dll>
</Function>
<Function>
<Name>TOROMAN</Name>
<NumParams variable="false">1</NumParams>
<Category>String</Category>
<InsertText>ToRoman(Value)</InsertText>
<Description>Get a Roman Numeral Version of a Number</Description>
<Dll>
<Name>AlteryxAbacus.dll</Name>
<EntryPoint>ToRoman</EntryPoint>
</Dll>
</Function>
<Function>
<Name>FROMROMAN</Name>
<NumParams variable="false">1</NumParams>
<Category>String</Category>
<InsertText>FromRoman(Value)</InsertText>
<Description>Given a Roman Numeral Get Number</Description>
<Dll>
<Name>AlteryxAbacus.dll</Name>
<EntryPoint>FromRoman</EntryPoint>
</Dll>
</Function>
<Function>
<Name>FINDSTRINGLAST</Name>
<NumParams variable="false">2</NumParams>
<Category>String</Category>
<InsertText>FindStringLast(String, Target)</InsertText>
<Description>Searches for the occurrence of Target within String from end and returns the numeric position of it.</Description>
<Formula>IIF(IsNull(P2),0,IIF(CONTAINS(P1,P2),LENGTH(P1) - LENGTH(P2) - FINDSTRING(REVERSESTRING(P1),REVERSESTRING(P2)),-1))</Formula>
</Function>
</FormulaAddIn>