fixup! replace own regex class with std::regex
This commit is contained in:
		
							parent
							
								
									b05b98df75
								
							
						
					
					
						commit
						c935e8eeaf
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1635,7 +1635,10 @@ static void prim_match(EvalState & state, const Pos & pos, Value * * args, Value
 | 
			
		|||
    const size_t len = match.size() - 1;
 | 
			
		||||
    state.mkList(v, len);
 | 
			
		||||
    for (size_t i = 0; i < len; ++i) {
 | 
			
		||||
        mkString(*(v.listElems()[i] = state.allocValue()), match[i + 1].str().c_str());
 | 
			
		||||
        if (!match[i+1].matched)
 | 
			
		||||
            mkNull(*(v.listElems()[i] = state.allocValue()));
 | 
			
		||||
        else
 | 
			
		||||
            mkString(*(v.listElems()[i] = state.allocValue()), match[i + 1].str().c_str());
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue