@sankhyalabs/core-docs 2.5.1 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/classes/StringUtils.md +52 -0
- package/package.json +1 -1
package/classes/StringUtils.md
CHANGED
@@ -14,11 +14,13 @@
|
|
14
14
|
|
15
15
|
- [compare](StringUtils.md#compare)
|
16
16
|
- [decodeHtmlEntities](StringUtils.md#decodehtmlentities)
|
17
|
+
- [formatBytes](StringUtils.md#formatbytes)
|
17
18
|
- [getBooleanValue](StringUtils.md#getbooleanvalue)
|
18
19
|
- [hashCode](StringUtils.md#hashcode)
|
19
20
|
- [isEmpty](StringUtils.md#isempty)
|
20
21
|
- [padEnd](StringUtils.md#padend)
|
21
22
|
- [padStart](StringUtils.md#padstart)
|
23
|
+
- [prettyPrecision](StringUtils.md#prettyprecision)
|
22
24
|
- [replaceAccentuatedChars](StringUtils.md#replaceaccentuatedchars)
|
23
25
|
- [replaceAccentuatedCharsKeepSymbols](StringUtils.md#replaceaccentuatedcharskeepsymbols)
|
24
26
|
- [replaceAccentuatedCharsLower](StringUtils.md#replaceaccentuatedcharslower)
|
@@ -90,6 +92,31 @@ src/utils/StringUtils.ts:53
|
|
90
92
|
|
91
93
|
___
|
92
94
|
|
95
|
+
### formatBytes
|
96
|
+
|
97
|
+
▸ `Static` **formatBytes**(`bytes`): `string`
|
98
|
+
|
99
|
+
Utilitário para formatar bytes em string legível, convertendo para
|
100
|
+
múltiplos maiores caso necessário.
|
101
|
+
|
102
|
+
#### Parameters
|
103
|
+
|
104
|
+
| Name | Type |
|
105
|
+
| :------ | :------ |
|
106
|
+
| `bytes` | `number` |
|
107
|
+
|
108
|
+
#### Returns
|
109
|
+
|
110
|
+
`string`
|
111
|
+
|
112
|
+
string formatada de acordo com a unidade.
|
113
|
+
|
114
|
+
#### Defined in
|
115
|
+
|
116
|
+
src/utils/StringUtils.ts:303
|
117
|
+
|
118
|
+
___
|
119
|
+
|
93
120
|
### getBooleanValue
|
94
121
|
|
95
122
|
▸ `Static` **getBooleanValue**(`value`, `defaultValue?`): `boolean`
|
@@ -255,6 +282,31 @@ src/utils/StringUtils.ts:177
|
|
255
282
|
|
256
283
|
___
|
257
284
|
|
285
|
+
### prettyPrecision
|
286
|
+
|
287
|
+
▸ `Static` `Private` **prettyPrecision**(`strNumber`): `string`
|
288
|
+
|
289
|
+
Método interno. Remove zeros depois da vírgula diminuindo o tamanho
|
290
|
+
da string.
|
291
|
+
|
292
|
+
#### Parameters
|
293
|
+
|
294
|
+
| Name | Type | Description |
|
295
|
+
| :------ | :------ | :------ |
|
296
|
+
| `strNumber` | `string` | representação textual do número a ser ajustado. |
|
297
|
+
|
298
|
+
#### Returns
|
299
|
+
|
300
|
+
`string`
|
301
|
+
|
302
|
+
simplificação do strNumber, sem os zeros à direita depois do ponto.
|
303
|
+
|
304
|
+
#### Defined in
|
305
|
+
|
306
|
+
src/utils/StringUtils.ts:329
|
307
|
+
|
308
|
+
___
|
309
|
+
|
258
310
|
### replaceAccentuatedChars
|
259
311
|
|
260
312
|
▸ `Static` **replaceAccentuatedChars**(`text`, `removeSpecialChars?`): `string`
|