Merge pull request #3371 from rtfeldman/starts-with-scalar

Str.startsWithCodePt -> Str.startsWithScalar
This commit is contained in:
Folkert de Vries 2022-07-03 00:22:21 +02:00 committed by GitHub
commit d2c07f350d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 139 additions and 123 deletions

View file

@ -5327,14 +5327,14 @@ fn run_low_level<'a, 'ctx, 'env>(
call_bitcode_fn(env, &[string, prefix], bitcode::STR_STARTS_WITH)
}
StrStartsWithCodePt => {
// Str.startsWithCodePt : Str, U32 -> Bool
StrStartsWithScalar => {
// Str.startsWithScalar : Str, U32 -> Bool
debug_assert_eq!(args.len(), 2);
let string = load_symbol(scope, &args[0]);
let prefix = load_symbol(scope, &args[1]);
call_bitcode_fn(env, &[string, prefix], bitcode::STR_STARTS_WITH_CODE_PT)
call_bitcode_fn(env, &[string, prefix], bitcode::STR_STARTS_WITH_SCALAR)
}
StrEndsWith => {
// Str.startsWith : Str, Str -> Bool