s_metar/src/utils/utils library

Functions

sanitizeChangeIndicator(String code) → String
Sanitize the PROB[34]0 TEMPO to get match with the regular expression of the change indicator in TAF like reports. Args: code (String): the report or section to sanitize. Returns: String: the sanitized report or section.
sanitizeVisibility(String code) → String
Sanitize the visibility in sea miles to get macth with the regular expresion of visibility in METAR like reports.
sanitizeWindshear(String code) → String
Sanitize the windshear in to get macth with the regular expresion of windshear in METAR like reports.
splitSentence(String sentence, List<String> keywords, {bool all = false, String space = ''}) → List<String>
Split the sentence given by the list of words without lost that words.