(
mc: &'gc Mutation<'gc>,
receiver: Value<'gc>,
_args: Vec<Value<'gc>>,
)
| 85 | } |
| 86 | |
| 87 | fn trim_start<'gc>( |
| 88 | mc: &'gc Mutation<'gc>, |
| 89 | receiver: Value<'gc>, |
| 90 | _args: Vec<Value<'gc>>, |
| 91 | ) -> Result<Value<'gc>, VmError> { |
| 92 | let s = receiver.as_string_value()?; |
| 93 | let trimmed = s.as_str().trim_start(); |
| 94 | // Ok(Value::String(mc.intern(trimmed.as_bytes()))) |
| 95 | Ok(Value::IoString(Gc::new(mc, trimmed.to_owned()))) |
| 96 | } |
| 97 | |
| 98 | fn trim_end<'gc>( |
| 99 | mc: &'gc Mutation<'gc>, |
nothing calls this directly
no test coverage detected