system/src/sc/lang/pattern/Pattern.java
public boolean updateMap(String fromStr, Map<String,Object> resultMap) {
      ReplaceResult res = doMatch(fromStr, false, resultMap, true);
      if (res == null) {
         if (resultMap != null)
            resultMap.clear();
         return false;
      }
      // Should be a match with nothing left over
      boolean stat = res.matchedLen == fromStr.length();
      if (!stat) {
         if (resultMap != null)
            resultMap.clear();
      }
      return stat;
   }
/** Do the match and store matched values in resultMap. If the match fails, the map is cleared. */
Do the match and store matched values in resultMap. If the match fails, the map is cleared.
Do the match and store matched values in resultMap . If the match fails the map is cleared .
public boolean updateMap(String fromStr, Map<String,Object> resultMap) {
      ReplaceResult res = doMatch(fromStr, false, resultMap, true);
      if (res == null) {
         if (resultMap != null)
            resultMap.clear();
         return false;
      }
      boolean stat = res.matchedLen == fromStr.length();
      if (!stat) {
         if (resultMap != null)
            resultMap.clear();
      }
      return stat;
   }
public boolean updateMap ( String fromStr , Map < String , Object > resultMap ) { ReplaceResult res = doMatch ( fromStr , false , resultMap , true ) ; if ( res == null ) { if ( resultMap != null ) resultMap . clear ( ) ; return false ; } boolean stat = res . matchedLen == fromStr . length ( ) ; if ( ! stat ) { if ( resultMap != null ) resultMap . clear ( ) ; } return stat ; }
Do the match and store matched values in resultMap.
Do the match and store matched values in resultMap .
// Should be a match with nothing left over