This repository has been archived by the owner on Feb 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhowto.html
105 lines (105 loc) · 3.66 KB
/
howto.html
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
<!DOCTYPE html>
<html>
<head>
<title>StringUtils howto guide.</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<h1><span class="glyphicon glyphicon-info-sign"></span> How to use the StringUtils hook:</h1>
<div class="panel panel-info">
<div class="alert alert-info">
What is it for?
</div>
<div class="panel-body">
<ul>
<li>This plugin allows you to manipulate text fields using hooks.</li>
</ul>
</div>
</div>
<div>
<div class="alert alert-warning">
Limitations
</div>
<div class="panel-body">
<ul>
<li>The hook field MUST be on the same instrument as the source field.</li>
</ul>
</div>
</div>
<div class="panel panel-success">
<div class="panel-heading">
Using the hook
</div>
<div class="panel-body">
Create a field with one of the following hooks:
<table class="table">
<thead>
<tr>
<td>Hook</td>
<td>Usage</td>
</tr>
</thead>
<tbody>
<tr>
<td>
@TOLOWER={sourcefieldnamehere}
</td>
<td>
Converts the field in to its lowercase equivalent.
</td>
</tr>
<tr>
<td>
@TOUPPER={sourcefieldnamehere}
</td>
<td>
Converts the field in to its uppercase equivalent.
</td>
</tr>
<tr>
<td>
@STRLEN={sourcefieldnamehere}
</td>
<td>
Calculated the length of a field.
</td>
</tr>
<tr>
<td>
@TRIM={sourcefieldnamehere}
</td>
<td>
Trims the text of a field of whitespaces.
</td>
</tr>
<tr>
<td>
@LTRIM={sourcefieldnamehere}
</td>
<td>
Trims the left side of text of a field of whitespaces.
</td>
</tr>
<tr>
<td>
@SUBSTR={sourcefieldnamehere1},start,end
</td>
<td>
Takes a part of a string from start to end. Start and end must be valid integers.
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>