-
-
Notifications
You must be signed in to change notification settings - Fork 5
Length
Taiizor edited this page Mar 1, 2023
·
6 revisions
The Length
class provides helper functions for working with string lengths and clamping integers.
Returns the given string if its length is less than or equal to SMI.TextLength
, or the provided backup string if it is longer.
string Text(string Value, string Back)
Returns the given string if its length is less than or equal to SMI.ParameterLength
, or the provided backup string if it is longer.
string Parameter(string Value, string Back)
Clamps the given integer between the minimum and maximum values.
int Clamp(int Value, int MinValue, int MaxValue)
- Tax
- Url
- Web
- Ping
- Port
- Text
- Time
- Hash
- Word
- Color
- Speed
- Lottery
- Storage
- Browser
- Unicode
- Password
- JavaScript
- Cryptology
- Typography
- Temperature
- Compression
- Decompression
- Cascading Style Sheets
- JavaScript Object Notation
- Hypertext Markup Language
- Extensible Markup Language
- Extensible HyperText Markup Language