MCPcopy Create free account
hub / github.com/PerroEngine/Perro / set_hlayout_spacing

Function set_hlayout_spacing

perro_editor/res/scripts/ui/editor_ui.rs:4032–4042  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    name: &str,
    spacing: f32,
)

Source from the content-addressed store, hash-verified

4030 } else if ch.is_whitespace() || ch == '-' || ch == '.' {
4031 out.push('_');
4032 }
4033 }
4034 if out.chars().next().is_some_and(|ch| ch.is_ascii_digit()) {
4035 out.insert(0, '_');
4036 }
4037 out
4038}
4039
4040pub fn parse_project_name(text: &str) -> Option<String> {
4041 let mut in_project = false;
4042 for line in text.lines() {
4043 let trimmed = line.trim();
4044 if trimmed == "[project]" {
4045 in_project = true;

Callers 1

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected