|
@@ -58,10 +58,14 @@ Small delphi/Firemonkey(Windows, Linux, Android, OSX & IOS) and fpc(Windows & Li
|
|
* **Quick.Template:** String template replacing with dictionary or delegate.
|
|
* **Quick.Template:** String template replacing with dictionary or delegate.
|
|
* **Quick.Debug.Utils:** Simple debugging and code benchmark utils.
|
|
* **Quick.Debug.Utils:** Simple debugging and code benchmark utils.
|
|
* **Quick.Parameters:** Work with commandline parameters like a class.
|
|
* **Quick.Parameters:** Work with commandline parameters like a class.
|
|
|
|
+* **Quick.Url.Utils:** Simple url manipulation
|
|
|
|
+* **Quick.RegEx.Utils:** Commonly used RegEx comparison (email verification, password complexity, etc)
|
|
|
|
|
|
|
|
|
|
**Updates:**
|
|
**Updates:**
|
|
|
|
|
|
|
|
+* NEW: Commonly used RegEx validations
|
|
|
|
+* NEW: Url manipulation utils
|
|
* NEW: QuickParameters to work with commandline arguments like a class.
|
|
* NEW: QuickParameters to work with commandline arguments like a class.
|
|
* NEW: HttpServer custom and dynamic error pages.
|
|
* NEW: HttpServer custom and dynamic error pages.
|
|
* NEW: Debug utils
|
|
* NEW: Debug utils
|
|
@@ -1284,14 +1288,14 @@ type
|
|
end;
|
|
end;
|
|
|
|
|
|
```
|
|
```
|
|
-And pass to de commandline extension:
|
|
|
|
|
|
+Use param:
|
|
```delphi
|
|
```delphi
|
|
-services.AddCommandline<TArguments>;
|
|
|
|
|
|
+params := TMyParameter.Create;
|
|
```
|
|
```
|
|
When you call your exe with --help you get documentation. If you need to check for a switch or value, you can do like this:
|
|
When you call your exe with --help you get documentation. If you need to check for a switch or value, you can do like this:
|
|
```delphi
|
|
```delphi
|
|
-if services.Commandline<TArguments>.Port = 0 then ...
|
|
|
|
-if services.Commandline<TArguments>.Silent then ...
|
|
|
|
|
|
+if params.Port = 0 then ...
|
|
|
|
+if params.Silent then ...
|
|
```
|
|
```
|
|
QuickParameters uses custom attributes to define special parameter conditions:
|
|
QuickParameters uses custom attributes to define special parameter conditions:
|
|
|
|
|
|
@@ -1344,4 +1348,14 @@ Arguments:
|
|
--Help, -h Show this documentation
|
|
--Help, -h Show this documentation
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+**Quick.Url.Utils:**
|
|
|
|
+--
|
|
|
|
+- **GetProtocol:** Get protocol from an url.
|
|
|
|
+- **GetHost:** Get hostname from an url.
|
|
|
|
+- **GetPath:** Get path from an url.
|
|
|
|
+- **GetQuery:** Get Query part from an url.
|
|
|
|
+- **RemoveProtocol:** Remove protocol from an url.
|
|
|
|
+- **RemoveQuery:** Remove query part from an url.
|
|
|
|
+- **EncodeUrl:** Encode path and query from and url.
|
|
|
|
+
|
|
>Do you want to learn delphi or improve your skills? [learndelphi.org](https://learndelphi.org)
|
|
>Do you want to learn delphi or improve your skills? [learndelphi.org](https://learndelphi.org)
|