STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
Slug.cpp File Reference
#include <cctype>
#include "script/StateScript.hpp"
Include dependency graph for Slug.cpp:

Go to the source code of this file.

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::script

Functions

std::string fsw::script::slugify (const std::string &name)
 Canonical name -> slug: trim, uppercase, collapse internal whitespace runs to a single '_'.
bool fsw::script::is_valid_slug (const std::string &slug)
 True when a slug is usable as a bare identifier: ^[A-Z][A-Z0-9_]*$.