public static List<Pair<String, String>> scanForCoordinates(final Collection<String> texts, final Collection<Pair<String, String>> excludePairs) {
        final List<Pair<String, String>> result = new ArrayList<>();
        final Set<String> patternsFound = new HashSet<>();
        if (excludePairs != null) {
            for (Pair<String, String> p : excludePairs) {
                patternsFound.add(pairToKey(p));
            }
        }
        for (String text : texts) {
            scanCoordinatePattern(text, result, patternsFound);
        }
        Collections.sort(result, (p1, p2) -> TextUtils.COLLATOR.compare(pairToKey(p1), pairToKey(p2)));
        return result;
    }
Holds implementations for functions in Formula
main/src/main/java/cgeo/geocaching/utils/formulas/FormulaUtils.java