Skip to content

Commit a82e770

Browse files
author
Jens Ivar Jordre
committed
Update indentation
1 parent 53d4c00 commit a82e770

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

lib/Strings.sol

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ library Strings {
2525
* @return string The resulting string from combinging the base and value
2626
*/
2727
function concat(string memory _base, string memory _value)
28-
internal
29-
pure
30-
returns (string memory) {
28+
internal
29+
pure
30+
returns (string memory) {
3131
bytes memory _baseBytes = bytes(_base);
3232
bytes memory _valueBytes = bytes(_value);
3333

@@ -65,9 +65,9 @@ library Strings {
6565
* in the case of no matches found
6666
*/
6767
function indexOf(string memory _base, string memory _value)
68-
internal
69-
pure
70-
returns (int) {
68+
internal
69+
pure
70+
returns (int) {
7171
return _indexOf(_base, _value, 0);
7272
}
7373

@@ -88,9 +88,9 @@ library Strings {
8888
* in the case of no matches found
8989
*/
9090
function _indexOf(string memory _base, string memory _value, uint _offset)
91-
internal
92-
pure
93-
returns (int) {
91+
internal
92+
pure
93+
returns (int) {
9494
bytes memory _baseBytes = bytes(_base);
9595
bytes memory _valueBytes = bytes(_value);
9696

@@ -102,7 +102,7 @@ library Strings {
102102
}
103103
}
104104

105-
return - 1;
105+
return -1;
106106
}
107107

108108
/**
@@ -115,9 +115,9 @@ library Strings {
115115
* @return uint The length of the passed string
116116
*/
117117
function length(string memory _base)
118-
internal
119-
pure
120-
returns (uint) {
118+
internal
119+
pure
120+
returns (uint) {
121121
bytes memory _baseBytes = bytes(_base);
122122
return _baseBytes.length;
123123
}
@@ -134,9 +134,9 @@ library Strings {
134134
* @return string The extracted sub string
135135
*/
136136
function substring(string memory _base, int _length)
137-
internal
138-
pure
139-
returns (string memory) {
137+
internal
138+
pure
139+
returns (string memory) {
140140
return _substring(_base, _length, 0);
141141
}
142142

@@ -154,9 +154,9 @@ library Strings {
154154
* @return string The extracted sub string
155155
*/
156156
function _substring(string memory _base, int _length, int _offset)
157-
internal
158-
pure
159-
returns (string memory) {
157+
internal
158+
pure
159+
returns (string memory) {
160160
bytes memory _baseBytes = bytes(_base);
161161

162162
assert(uint(_offset + _length) <= _baseBytes.length);
@@ -187,9 +187,9 @@ library Strings {
187187
* do not container the delimiter.
188188
*/
189189
function split(string memory _base, string memory _value)
190-
internal
191-
pure
192-
returns (string[] memory splitArr) {
190+
internal
191+
pure
192+
returns (string[] memory splitArr) {
193193
bytes memory _baseBytes = bytes(_base);
194194

195195
uint _offset = 0;
@@ -240,9 +240,9 @@ library Strings {
240240
* @return bool Simply notates if the two string have an equivalent
241241
*/
242242
function compareTo(string memory _base, string memory _value)
243-
internal
244-
pure
245-
returns (bool) {
243+
internal
244+
pure
245+
returns (bool) {
246246
bytes memory _baseBytes = bytes(_base);
247247
bytes memory _valueBytes = bytes(_value);
248248

@@ -273,9 +273,9 @@ library Strings {
273273
* discarding case
274274
*/
275275
function compareToIgnoreCase(string memory _base, string memory _value)
276-
internal
277-
pure
278-
returns (bool) {
276+
internal
277+
pure
278+
returns (bool) {
279279
bytes memory _baseBytes = bytes(_base);
280280
bytes memory _valueBytes = bytes(_value);
281281

@@ -304,9 +304,9 @@ library Strings {
304304
* @return string
305305
*/
306306
function upper(string memory _base)
307-
internal
308-
pure
309-
returns (string memory) {
307+
internal
308+
pure
309+
returns (string memory) {
310310
bytes memory _baseBytes = bytes(_base);
311311
for (uint i = 0; i < _baseBytes.length; i++) {
312312
_baseBytes[i] = _upper(_baseBytes[i]);
@@ -325,9 +325,9 @@ library Strings {
325325
* @return string
326326
*/
327327
function lower(string memory _base)
328-
internal
329-
pure
330-
returns (string memory) {
328+
internal
329+
pure
330+
returns (string memory) {
331331
bytes memory _baseBytes = bytes(_base);
332332
for (uint i = 0; i < _baseBytes.length; i++) {
333333
_baseBytes[i] = _lower(_baseBytes[i]);
@@ -346,9 +346,9 @@ library Strings {
346346
* and in a lower case otherwise returns the original value
347347
*/
348348
function _upper(bytes1 _b1)
349-
private
350-
pure
351-
returns (bytes1) {
349+
private
350+
pure
351+
returns (bytes1) {
352352

353353
if (_b1 >= 0x61 && _b1 <= 0x7A) {
354354
return bytes1(uint8(_b1) - 32);
@@ -368,9 +368,9 @@ library Strings {
368368
* and in a upper case otherwise returns the original value
369369
*/
370370
function _lower(bytes1 _b1)
371-
private
372-
pure
373-
returns (bytes1) {
371+
private
372+
pure
373+
returns (bytes1) {
374374

375375
if (_b1 >= 0x41 && _b1 <= 0x5A) {
376376
return bytes1(uint8(_b1) + 32);

0 commit comments

Comments
 (0)