Home
last modified time | relevance | path

Searched refs:snake_to_camel (Results 1 – 25 of 40) sorted by relevance

12

/dports/devel/py-graphql-core/graphql-core-3.1.6/tests/pyutils/
H A Dtest_convert_case.py1 from graphql.pyutils import camel_to_snake, snake_to_camel
28 result = snake_to_camel("snake_case")
30 result = snake_to_camel("input_object_type_extension_node")
34 result = snake_to_camel("Snake_case")
38 result = snake_to_camel("slow_xml_parser")
40 result = snake_to_camel("fast_graph_ql_parser")
44 result = snake_to_camel("CamelCase")
48 result = snake_to_camel("snake_case", upper=False)
50 result = snake_to_camel("input_object_type_extension_node", False)
/dports/games/dose-response/dose-response-179c326/cargo-crates/wayland-scanner-0.21.4/src/
H A Dcommon_gen.rs235 snake_to_camel(&new_iface) in write_messagegroup()
272 snake_to_camel(&msg.name) in write_messagegroup()
508 snake_to_camel(&entry.name), in write_enums()
518 snake_to_camel(&enu.name) in write_enums()
523 snake_to_camel(&enu.name) in write_enums()
546 snake_to_camel(&enu.name) in write_enums()
562 snake_to_camel(&entry.name), in write_enums()
572 snake_to_camel(&enu.name) in write_enums()
580 snake_to_camel(&enu.name), in write_enums()
586 snake_to_camel(&entry.name) in write_enums()
[all …]
H A Dutil.rs17 pub fn snake_to_camel(input: &str) -> String { in snake_to_camel() function
36 (Some(module), Some(name)) => format!("super::{}::{}", module, snake_to_camel(name)), in dotted_to_relname()
37 (Some(name), None) => snake_to_camel(name), in dotted_to_relname()
H A Dc_code_gen.rs29 let iface_name = snake_to_camel(&iface.name); in write_protocol_client()
88 let iface_name = snake_to_camel(&iface.name); in write_protocol_server()
151 snake_to_camel(&msg.name) in messagegroup_c_addon()
213 snake_to_camel(iface), in messagegroup_c_addon()
238 snake_to_camel(iface), in messagegroup_c_addon()
244 …, client, super::{}::{}::c_interface(), version, _args[{}].n);", iface, snake_to_camel(iface), j)?; in messagegroup_c_addon()
249 snake_to_camel(iface) in messagegroup_c_addon()
289 write!(out, " {}::{} ", name, snake_to_camel(&msg.name))?; in messagegroup_c_addon()
/dports/shells/ion/ion-a8872014dbce730ccd00aaa722397dc394a52bf4/cargo-crates/wayland-scanner-0.21.13/src/
H A Dutil.rs20 pub fn snake_to_camel(input: &str) -> String { in snake_to_camel() function
42 let ident = Ident::new(&snake_to_camel(name), Span::call_site()); in dotted_to_relname()
45 … (Some(name), None) => Ident::new(&snake_to_camel(name), Span::call_site()).into_token_stream(), in dotted_to_relname()
H A Dcommon_gen.rs34 let ident = Ident::new(&snake_to_camel(&self.name), Span::call_site()); in to_tokens()
50 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
95 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
125 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
208 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
302 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
352 let new_iface_type = Ident::new(&snake_to_camel(new_iface), Span::call_site()); in gen_messagegroup()
370 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
484 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
718 let iface_type = Ident::new(&snake_to_camel(&iface), Span::call_site()); in method_prototype()
[all …]
/dports/security/gpg-tui/gpg-tui-0.8.2/cargo-crates/wayland-scanner-0.28.6/src/
H A Dutil.rs24 pub fn snake_to_camel(input: &str) -> String { in snake_to_camel() function
52 let ident = Ident::new(&snake_to_camel(name), Span::call_site()); in dotted_to_relname()
56 Ident::new(&snake_to_camel(name), Span::call_site()).into_token_stream() in dotted_to_relname()
H A Dcommon_gen.rs31 let ident = Ident::new(&snake_to_camel(&self.name), Span::call_site()); in to_tokens()
43 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
84 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
111 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
190 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
213 Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_messagegroup()
237 Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_messagegroup()
296 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
369 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
490 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
[all …]
H A Dc_code_gen.rs18 let iface_name = Ident::new(&snake_to_camel(&iface.name), Span::call_site()); in generate_protocol_client()
95 let iface_name = Ident::new(&snake_to_camel(&iface.name), Span::call_site()); in generate_protocol_server()
130 &Ident::new(&snake_to_camel(&iface.name), Span::call_site()), in generate_protocol_server()
183 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in messagegroup_c_addon()
250 … let iface_type = Ident::new(&snake_to_camel(iface), Span::call_site()); in messagegroup_c_addon()
274 … let iface_type = Ident::new(&snake_to_camel(iface), Span::call_site()); in messagegroup_c_addon()
349 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in messagegroup_c_addon()
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/wayland-scanner-0.23.6/src/
H A Dutil.rs27 pub fn snake_to_camel(input: &str) -> String { in snake_to_camel() function
55 let ident = Ident::new(&snake_to_camel(name), Span::call_site()); in dotted_to_relname()
58 … (Some(name), None) => Ident::new(&snake_to_camel(name), Span::call_site()).into_token_stream(), in dotted_to_relname()
H A Dcommon_gen.rs31 let ident = Ident::new(&snake_to_camel(&self.name), Span::call_site()); in to_tokens()
47 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
92 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
124 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
207 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
316 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
392 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
509 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
792 let iface_type = Ident::new(&snake_to_camel(&iface), Span::call_site()); in method_prototype()
842 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_object_methods()
[all …]
H A Dc_code_gen.rs14 let iface_name = Ident::new(&snake_to_camel(&iface.name), Span::call_site()); in generate_protocol_client()
102 let iface_name = Ident::new(&snake_to_camel(&iface.name), Span::call_site()); in generate_protocol_server()
125 &Ident::new(&snake_to_camel(&iface.name), Span::call_site()), in generate_protocol_server()
180 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in messagegroup_c_addon()
247 … let iface_type = Ident::new(&snake_to_camel(iface), Span::call_site()); in messagegroup_c_addon()
271 … let iface_type = Ident::new(&snake_to_camel(iface), Span::call_site()); in messagegroup_c_addon()
346 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in messagegroup_c_addon()
/dports/x11/alacritty/alacritty-0.9.0/cargo-crates/wayland-scanner-0.28.6/src/
H A Dutil.rs24 pub fn snake_to_camel(input: &str) -> String { in snake_to_camel() function
52 let ident = Ident::new(&snake_to_camel(name), Span::call_site()); in dotted_to_relname()
56 Ident::new(&snake_to_camel(name), Span::call_site()).into_token_stream() in dotted_to_relname()
H A Dcommon_gen.rs31 let ident = Ident::new(&snake_to_camel(&self.name), Span::call_site()); in to_tokens()
43 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
84 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
111 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
190 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
213 Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_messagegroup()
237 Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_messagegroup()
296 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
369 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
490 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
[all …]
H A Dc_code_gen.rs18 let iface_name = Ident::new(&snake_to_camel(&iface.name), Span::call_site()); in generate_protocol_client()
95 let iface_name = Ident::new(&snake_to_camel(&iface.name), Span::call_site()); in generate_protocol_server()
130 &Ident::new(&snake_to_camel(&iface.name), Span::call_site()), in generate_protocol_server()
183 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in messagegroup_c_addon()
250 … let iface_type = Ident::new(&snake_to_camel(iface), Span::call_site()); in messagegroup_c_addon()
274 … let iface_type = Ident::new(&snake_to_camel(iface), Span::call_site()); in messagegroup_c_addon()
349 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in messagegroup_c_addon()
/dports/audio/ncspot/ncspot-0.9.3/cargo-crates/wayland-scanner-0.27.0/src/
H A Dutil.rs24 pub fn snake_to_camel(input: &str) -> String { in snake_to_camel() function
52 let ident = Ident::new(&snake_to_camel(name), Span::call_site()); in dotted_to_relname()
56 Ident::new(&snake_to_camel(name), Span::call_site()).into_token_stream() in dotted_to_relname()
H A Dcommon_gen.rs31 let ident = Ident::new(&snake_to_camel(&self.name), Span::call_site()); in to_tokens()
43 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
84 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
111 &format!("{}{}", prefix, snake_to_camel(&entry.name)), in to_tokens()
190 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
213 Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_messagegroup()
237 Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_messagegroup()
296 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
369 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
490 let msg_type = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_messagegroup()
[all …]
H A Dc_code_gen.rs18 let iface_name = Ident::new(&snake_to_camel(&iface.name), Span::call_site()); in generate_protocol_client()
95 let iface_name = Ident::new(&snake_to_camel(&iface.name), Span::call_site()); in generate_protocol_server()
130 &Ident::new(&snake_to_camel(&iface.name), Span::call_site()), in generate_protocol_server()
183 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in messagegroup_c_addon()
250 … let iface_type = Ident::new(&snake_to_camel(iface), Span::call_site()); in messagegroup_c_addon()
274 … let iface_type = Ident::new(&snake_to_camel(iface), Span::call_site()); in messagegroup_c_addon()
349 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in messagegroup_c_addon()
/dports/accessibility/wl-gammarelay-rs/wl-gammarelay-rs-0.2.1/cargo-crates/wayland-scanner-0.30.0-alpha5/src/
H A Dcommon.rs17 let ident = Ident::new(&snake_to_camel(&self.name), Span::call_site()); in to_tokens()
28 let ident = format_ident!("{}{}", prefix, snake_to_camel(&entry.name)); in to_tokens()
68 let variant = format_ident!("{}{}", prefix, snake_to_camel(&entry.name)); in to_tokens()
92 let variant = format_ident!("{}{}", prefix, snake_to_camel(&entry.name)); in to_tokens()
168 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_message_enum()
190 Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_message_enum()
211 Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_message_enum()
292 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_parse_body()
340 … let created_iface_type = Ident::new(&snake_to_camel(created_interface), Span::call_site()); in gen_parse_body()
440 let msg_name = Ident::new(&snake_to_camel(&msg.name), Span::call_site()); in gen_write_body()
[all …]
H A Dutil.rs79 pub fn snake_to_camel(input: &str) -> String { in snake_to_camel() function
107 let ident = Ident::new(&snake_to_camel(name), Span::call_site()); in dotted_to_relname()
111 Ident::new(&snake_to_camel(name), Span::call_site()).into_token_stream() in dotted_to_relname()
H A Dclient_gen.rs7 util::{dotted_to_relname, is_keyword, snake_to_camel},
18 let iface_name = Ident::new(&snake_to_camel(&interface.name), Span::call_site()); in generate_objects_for()
126 let enum_variant = Ident::new(&snake_to_camel(&request.name), Span::call_site()); in gen_methods()
158 Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_methods()
196 … let created_iface_type = Ident::new(&snake_to_camel(created_interface), Span::call_site()); in gen_methods()
H A Dserver_gen.rs7 util::{dotted_to_relname, is_keyword, snake_to_camel},
23 let iface_name = Ident::new(&snake_to_camel(&interface.name), Span::call_site()); in generate_objects_for()
140 let enum_variant = Ident::new(&snake_to_camel(&request.name), Span::call_site()); in gen_methods()
172 let iface_type = Ident::new(&snake_to_camel(iface), Span::call_site()); in gen_methods()
/dports/graphics/gegl/gegl-0.4.34/tools/
H A Dgobj2dot.py76 def snake_to_camel(name): function
80 return snake_to_camel('_'.join(name.split('_TYPE_')).lower())
107 '\t' + snake_to_camel(match.groups()[0]) +
/dports/devel/py-b2sdk/b2sdk-1.12.0/test/unit/v0/
H A Dtest_file_metadata.py15 def snake_to_camel(name): function
29 INFO_DICT = {snake_to_camel(k): v for k, v in KWARGS.items()}
/dports/devel/py-b2sdk/b2sdk-1.12.0/test/unit/v1/
H A Dtest_file_metadata.py15 def snake_to_camel(name): function
29 INFO_DICT = {snake_to_camel(k): v for k, v in KWARGS.items()}

12