mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
generator: Replace use of Str.split with String.nsplit.
Faster and equivalent.
This commit is contained in:
@@ -98,7 +98,7 @@ let non_daemon_functions, daemon_functions =
|
||||
List.fold_left (
|
||||
fun a b ->
|
||||
a ^ String.uppercase_ascii (Str.first_chars b 1) ^ Str.string_after b 1
|
||||
) "" (Str.split (Str.regexp "_") name)
|
||||
) "" (String.nsplit "_" name)
|
||||
in
|
||||
let make_camel_case_if_not_set f =
|
||||
if f.camel_name = "" then
|
||||
|
||||
Reference in New Issue
Block a user