functionstarts_wordpure
pure logical function starts_word(s, word)
True if s starts with word word: followed by anything but a letter, digit or _.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| s | character(len=*) | in | the text | |
| word | character(len=*) | in | the word |
Result
| Name | Type | Attributes | Description |
|---|---|---|---|
| starts_word | logical |
Calls
Source
Show the code
pure logical function starts_word(s, word)
character(len=*), intent(in) :: s !! the text
character(len=*), intent(in) :: word !! the word
starts_word = word_at(s, 1, word)
end function starts_word