File: starts_with.md

package info (click to toggle)
jsoncons 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,584 kB
  • sloc: cpp: 136,382; sh: 33; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 279 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### starts_with

```
boolean starts_with(string source, string prefix)
```

Returns true if the source string starts with the prefix string, otherwise false.

It is a type error if 

- the provided source is not a string, or
- the provided prefix is not a string

### Examples