Reference · Rules and helpers · rules.rs
parse_page_range Function
"2, 5-7, 10-" (1-based, as typed) → 0-based pages in order, no repeats. "5-" runs to the last page, "-3" from the first. None when a part does not parse or lies outside 1…count.
func parsePageRange(text: String, count: UInt32) -> [UInt32]?public static uint[]? ParsePageRange(string text, uint count)pub fn parse_page_range(text: String, count: u32) -> Option<Vec<u32>>Parameters
| Name | Type | Swift / C# |
|---|---|---|
text | String | text |
count | u32 | count |
Returns
Option<Vec<u32>>
Errors
Does not throw.
Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.