findAllStringsInList method

String findAllStringsInList(
  1. String sF,
  2. List<String> _l
)

Find All Strings s1 that are in List l. TODO Usage: findAllStringsInList(String sF, List

Implementation

String findAllStringsInList(String sF, List<String> _l) {
  int _count = 0;
  StringBuffer buf = new StringBuffer();
  for (var x in _l) {
    String _s = findStrInStr(sF, x);
    if (_s.length > 0) {
      _count++;
      buf.write('$_s '); // Remark: This also adds ' ' to end of String
    }
  }
  String countS = _count.toString();
  buf.write('=$countS');
  return buf.toString();
}