mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Remove String clipping constructors.
				
					
				
			Callers should instead call constructors with explicit encoding names, with known length `Span`.
This commit is contained in:
		
							parent
							
								
									b377562b52
								
							
						
					
					
						commit
						a23f630781
					
				
					 12 changed files with 24 additions and 41 deletions
				
			
		|  | @ -182,7 +182,7 @@ Error GDScriptTokenizerBuffer::set_code_buffer(const Vector<uint8_t> &p_buffer) | |||
| 			cs.write[j] = decode_uint32(tmp); | ||||
| 		} | ||||
| 
 | ||||
| 		String s(reinterpret_cast<const char32_t *>(cs.ptr()), len); | ||||
| 		String s = String::utf32(Span(reinterpret_cast<const char32_t *>(cs.ptr()), len)); | ||||
| 		b += len * 4; | ||||
| 		total_len -= len * 4; | ||||
| 		identifiers.write[i] = s; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Tenbrink
						Lukas Tenbrink