Skip to main content

java_substring

Function java_substring 

Source
pub fn java_substring(s: &str, start: i32, end: i32) -> &str
Expand description

Mirrors Java String.substring with explicit bound checks.

Keeping this helper centralizes the end-exclusive indexing contract used throughout the port and makes parity bugs easier to audit.