mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	Everywhere: Rename to_{string => deprecated_string}() where applicable
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
This commit is contained in:
		
							parent
							
								
									6e19ab2bbc
								
							
						
					
					
						commit
						57dc179b1f
					
				
					 597 changed files with 1973 additions and 1972 deletions
				
			
		|  | @ -161,14 +161,14 @@ size_t Tuple::length() const | |||
|     return len; | ||||
| } | ||||
| 
 | ||||
| DeprecatedString Tuple::to_string() const | ||||
| DeprecatedString Tuple::to_deprecated_string() const | ||||
| { | ||||
|     StringBuilder builder; | ||||
|     for (auto& part : m_data) { | ||||
|         if (!builder.is_empty()) { | ||||
|             builder.append('|'); | ||||
|         } | ||||
|         builder.append(part.to_string()); | ||||
|         builder.append(part.to_deprecated_string()); | ||||
|     } | ||||
|     if (pointer() != 0) { | ||||
|         builder.appendff(":{}", pointer()); | ||||
|  | @ -176,11 +176,11 @@ DeprecatedString Tuple::to_string() const | |||
|     return builder.build(); | ||||
| } | ||||
| 
 | ||||
| Vector<DeprecatedString> Tuple::to_string_vector() const | ||||
| Vector<DeprecatedString> Tuple::to_deprecated_string_vector() const | ||||
| { | ||||
|     Vector<DeprecatedString> ret; | ||||
|     for (auto& value : m_data) { | ||||
|         ret.append(value.to_string()); | ||||
|         ret.append(value.to_deprecated_string()); | ||||
|     } | ||||
|     return ret; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh