ezeio2:scriptref:strval

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ezeio2:scriptref:strval [2019-09-02 21:45] andrehezeio2:scriptref:strval [2024-02-05 23:20] (current) andreh
Line 5: Line 5:
 === Description === === Description ===
  
-<code>strval( const string[], index=0 )</code>+<code>strval( const string[], index=0, limit=15 )</code>
  
-strval will evaluate all digits starting at the index position until it encounters a non-digit.+strval will evaluate all digits starting at the index position until it encounters a non-digit or evaluated ''limit'' characters whichever comes first.
  
 === Parameters === === Parameters ===
Line 13: Line 13:
 | ''string'' | The buffer to be evaluated | | ''string'' | The buffer to be evaluated |
 | ''index'' | The offset in the buffer to start looking for a number. | | ''index'' | The offset in the buffer to start looking for a number. |
 +| ''limit'' | The max number of digits to evaluate, starting after ''index''. |
  
 === Return value === === Return value ===
Line 30: Line 31:
 </code> </code>
  
- +<wrap hi>NOTE: The ''limit'' parameter requires firmware 24020101 or newer.</wrap>
- +
  • ezeio2/scriptref/strval.txt
  • Last modified: 2024-02-05 23:20
  • by andreh