|
4 | 4 |
|
5 | 5 | [](https://www.vipm.io/package/nevstop_lib_csm_api_string_arguments_support/) |
6 | 6 | [](https://www.vipm.io/package/nevstop_lib_csm_api_string_arguments_support/) |
| 7 | +[](https://opensource.org/licenses/Apache-2.0) |
7 | 8 | [](https://github.com/NEVSTOP-LAB/CSM-API-String-Arguments-Support/releases) |
8 | 9 |
|
9 | | -This library enhances the API parameters for the Communicable State Machine (CSM) framework by enabling the inclusion of various data types in plain text format. |
| 10 | +This library enhances the API parameters for the Communicable State Machine (CSM) framework by enabling the inclusion of various data types in plain text format and is specially optimized for manual input experience. |
10 | 11 |
|
11 | | -The library also provides two additional templates that include "Data: Get Configuration", "Data: Set Configuration", and "Data: Get Internal Data" states. These templates serve as a starting point for building CSM modules with the ability to access data stored in the '>> internal data >>' shift register. |
| 12 | +The library also provides two additional templates that include "Data: Get Configuration" and "Data: Set Configuration" states. These templates serve as a starting point for building CSM modules with the ability to access data stored in the '>> internal data >>' shift register. |
12 | 13 |
|
13 | 14 |  |
14 | 15 |
|
@@ -218,6 +219,12 @@ Example: Enum = {1- AAA, 5 - BBBB, 9 - CCCC} |
218 | 219 | - String "5" converts to Enum(5 - BBBB), IntegerValue = 1 |
219 | 220 | - String "9 - CCCC" converts to Enum(9 - CCCC), IntegerValue = 2 |
220 | 221 |
|
| 222 | +> [!NOTE] |
| 223 | +> - String matching is case-insensitive. |
| 224 | +> - String matching performs regex matching from the first element in the enum list until the first match is found. Therefore, partial writing is supported. |
| 225 | +> For example: 0x00 -- Spring | 0x01 -- Summer | 0x02 -- Autumn | 0x03 -- Winter |
| 226 | +> Input string "aut" will match to "Autumn". |
| 227 | +
|
221 | 228 | ### Array |
222 | 229 |
|
223 | 230 | Commas (',') are used as element separators, and semicolons (';') are used as row separators. Square brackets ('[' and ']') serve as boundary symbols but can be omitted for simple data types. |
@@ -303,4 +310,4 @@ In Non-Tag mode, the input string consists only of data values separated by semi |
303 | 310 |
|
304 | 311 | ### Other Data Types |
305 | 312 |
|
306 | | -Other data types are treated as variants and transformed using CSM-HexStr. |
| 313 | +Other data types are first converted to variants and then transformed using CSM-HexStr. |
0 commit comments