Description
Return a matching CMake bracket-argument closing delimiter.
Build and configuration formats have dialect-specific quoting, whitespace and escaping rules. A local prefix or character transformation handles only the declared fragment, leaving full parsing, evaluation and precedence to the consuming implementation.
Return a matching CMake bracket-argument closing delimiter.
When to use this tool
Use Cmake Bracket Argument Delimiter Count when inspecting the stated text or configuration fragment.
How to use the tool and how it works
- Enter opening. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read equals, closing. Use the output convention below.
Return a matching CMake bracket-argument closing delimiter. Require an opening bracket, zero or more equals signs and another bracket; count equals and return the symmetric closing spelling.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| opening | Opening | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| equals | Equals | Required. Safe integer. |
| closing | Closing | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"opening": "[==["
},
"output": {
"equals": 2,
"closing": "]==]"
}
} Limitations and assumptions
- Argument content, delimiter collisions and complete CMake parsing are not checked.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use the appropriate full parser and actual configuration context for reliable interpretation or application.
References
Similar or alternative tools
- EditorConfig Section Glob Bracket Token
Extract an EditorConfig section's interior pattern.
- Dotenv Single Assignment Quote Mode
Classify one restricted dotenv assignment's quote mode.