(
mc: &'gc Mutation<'gc>,
receiver: Value<'gc>,
_args: Vec<Value<'gc>>,
)
| 96 | } |
| 97 | |
| 98 | fn trim_end<'gc>( |
| 99 | mc: &'gc Mutation<'gc>, |
| 100 | receiver: Value<'gc>, |
| 101 | _args: Vec<Value<'gc>>, |
| 102 | ) -> Result<Value<'gc>, VmError> { |
| 103 | let s = receiver.as_string_value()?; |
| 104 | let trimmed = s.as_str().trim_end(); |
| 105 | // Ok(Value::String(mc.intern(trimmed.as_bytes()))) |
| 106 | Ok(Value::IoString(Gc::new(mc, trimmed.to_owned()))) |
| 107 | } |
| 108 | |
| 109 | // Contains and position functions |
| 110 | fn contains<'gc>( |
nothing calls this directly
no test coverage detected