mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	
							parent
							
								
									f54779fe09
								
							
						
					
					
						commit
						cf2258a536
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -256,6 +256,7 @@ bool zstring::contains(zstring const& other) const {
 | 
			
		|||
 | 
			
		||||
int zstring::indexof(zstring const& other, int offset) const {
 | 
			
		||||
    SASSERT(offset >= 0);
 | 
			
		||||
    if (static_cast<unsigned>(offset) <= length() && other.length() == 0) return offset;
 | 
			
		||||
    if (static_cast<unsigned>(offset) == length()) return -1;
 | 
			
		||||
    if (other.length() + offset > length()) return -1;
 | 
			
		||||
    unsigned last = length() - other.length();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue