original_string: protected function parseRules()
      {
          // Break apart the rule data on line breaks:
          $lines = explode("\n", $this->getRawRules());
  
          // Each group of data is split by a blank line -- process one group
          // at a time:
          $currentGroup = array();
          foreach ($lines as $currentLine) {
              if (empty($currentLine) && !empty($currentGroup)) {
                  $this->processRuleGroup($currentGroup);
                  $currentGroup = array();
              } else {
                  $currentGroup[] = preg_replace("/\s+/", " ", $currentLine);
              }
          }
  
          // Still have unprocessed data after the loop?  Handle it now:
          if (!empty($currentGroup)) {
              $this->processRuleGroup($currentGroup);
          }
      }
code: protected function parseRules()
      {
          // Break apart the rule data on line breaks:
          $lines = explode("\n", $this->getRawRules());
  
          // Each group of data is split by a blank line -- process one group
          // at a time:
          $currentGroup = array();
          foreach ($lines as $currentLine) {
              if (empty($currentLine) && !empty($currentGroup)) {
                  $this->processRuleGroup($currentGroup);
                  $currentGroup = array();
              } else {
                  $currentGroup[] = preg_replace("/\s+/", " ", $currentLine);
              }
          }
  
          // Still have unprocessed data after the loop?  Handle it now:
          if (!empty($currentGroup)) {
              $this->processRuleGroup($currentGroup);
          }
      }
code_tokens: protected function parseRules ( ) { // Break apart the rule data on line breaks: $ lines = explode ( "\n" , $ this -> getRawRules ( ) ) ; // Each group of data is split by a blank line -- process one group // at a time: $ currentGroup = array ( ) ; foreach ( $ lines as $ currentLine ) { if ( empty ( $ currentLine ) && ! empty ( $ currentGroup ) ) { $ this -> processRuleGroup ( $ currentGroup ) ; $ currentGroup = array ( ) ; } else { $ currentGroup [ ] = preg_replace ( "/\s+/" , " " , $ currentLine ) ; } } // Still have unprocessed data after the loop?  Handle it now: if ( ! empty ( $ currentGroup ) ) { $ this -> processRuleGroup ( $ currentGroup ) ; } }
docstring: Support method for constructor to load MARC rules.
  
  @return void
docstring_tokens: Support method for constructor to load MARC rules .