mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix indentation
This commit is contained in:
@@ -41,7 +41,7 @@ Returns:
|
|||||||
*/
|
*/
|
||||||
@(deprecated="Prefer clone. It now returns an optional allocator error")
|
@(deprecated="Prefer clone. It now returns an optional allocator error")
|
||||||
clone_safe :: proc(s: string, allocator := context.allocator, loc := #caller_location) -> (res: string, err: mem.Allocator_Error) {
|
clone_safe :: proc(s: string, allocator := context.allocator, loc := #caller_location) -> (res: string, err: mem.Allocator_Error) {
|
||||||
return clone(s, allocator, loc)
|
return clone(s, allocator, loc)
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
Clones a string and appends a null-byte to make it a cstring
|
Clones a string and appends a null-byte to make it a cstring
|
||||||
@@ -629,7 +629,7 @@ Returns:
|
|||||||
*/
|
*/
|
||||||
@(deprecated="Prefer join. It now returns an optional allocator error")
|
@(deprecated="Prefer join. It now returns an optional allocator error")
|
||||||
join_safe :: proc(a: []string, sep: string, allocator := context.allocator) -> (res: string, err: mem.Allocator_Error) {
|
join_safe :: proc(a: []string, sep: string, allocator := context.allocator) -> (res: string, err: mem.Allocator_Error) {
|
||||||
return join(a, sep, allocator)
|
return join(a, sep, allocator)
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
Returns a combined string from the slice of strings `a` without a separator
|
Returns a combined string from the slice of strings `a` without a separator
|
||||||
@@ -689,7 +689,7 @@ The concatenated string, and an error if allocation fails
|
|||||||
*/
|
*/
|
||||||
@(deprecated="Prefer concatenate. It now returns an optional allocator error")
|
@(deprecated="Prefer concatenate. It now returns an optional allocator error")
|
||||||
concatenate_safe :: proc(a: []string, allocator := context.allocator) -> (res: string, err: mem.Allocator_Error) {
|
concatenate_safe :: proc(a: []string, allocator := context.allocator) -> (res: string, err: mem.Allocator_Error) {
|
||||||
return concatenate(a, allocator)
|
return concatenate(a, allocator)
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
Returns a substring of the input string `s` with the specified rune offset and length
|
Returns a substring of the input string `s` with the specified rune offset and length
|
||||||
|
|||||||
Reference in New Issue
Block a user