Add bilingual manual and localized docs routes

This commit is contained in:
2026-08-14 11:16:37 +09:00
parent 3645a2cc2d
commit cda32cc260
85 changed files with 2316 additions and 71 deletions
@@ -0,0 +1,30 @@
# String
`String` is the primitive type constraint for string values.
A string literal is enclosed in `"`.
```dcdl
"hello"
"line 1\nline 2"
```
`$`, `{`, and `}` have no special meaning inside a string; Decodal does not perform string interpolation.
## Examples
```dcdl
name = String;
greeting = String default "hello";
```
## Constraint composition
`String` can be composed with string constraints.
```dcdl
message = String & /Hello! .*/;
```
Enable regex-constraint validation with the Rust crate's `regex` feature.
Without that feature, a regex constraint cannot be validated against a concrete string and produces a diagnostic.