(
mc: &'gc Mutation<'gc>,
receiver: Value<'gc>,
_args: Vec<Value<'gc>>,
)
| 63 | } |
| 64 | |
| 65 | fn to_lowercase<'gc>( |
| 66 | mc: &'gc Mutation<'gc>, |
| 67 | receiver: Value<'gc>, |
| 68 | _args: Vec<Value<'gc>>, |
| 69 | ) -> Result<Value<'gc>, VmError> { |
| 70 | let lower = receiver.as_string_value()?.as_str().to_lowercase(); |
| 71 | // Ok(Value::String(mc.intern(lower.as_bytes()))) |
| 72 | Ok(Value::IoString(Gc::new(mc, lower))) |
| 73 | } |
| 74 | |
| 75 | // Trim functions |
| 76 | fn trim<'gc>( |
nothing calls this directly
no test coverage detected