searchPrefixes method

void searchPrefixes(
  1. List<UcumConcept> concepts,
  2. List<Prefix> prefixes,
  3. String text,
  4. bool isRegex,
)

Implementation

void searchPrefixes(List<UcumConcept> concepts, List<Prefix> prefixes,
    String text, bool isRegex) {
  for (final Prefix concept in prefixes) {
    if (matchesUcumConcept(concept, text, isRegex)) {
      concepts.add(concept);
    }
  }
}