mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Initial commit
This commit is contained in:
32
arm9/source/core/StringUtil.h
Normal file
32
arm9/source/core/StringUtil.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
class StringUtil
|
||||
{
|
||||
public:
|
||||
/// @brief Copies the null terminated string in src to the
|
||||
/// dst buffer of size dstSize. If dstSize > 0 the dst
|
||||
/// buffer is guarenteed to be null terminated, even
|
||||
/// if src is truncated to fit in dst.
|
||||
/// @param dst The destination buffer.
|
||||
/// @param src The source string (null terminated).
|
||||
/// @param dstLength The length of the destination buffer in characters.
|
||||
static u32 Copy(char* dst, const char* src, u32 dstLength);
|
||||
|
||||
/// @brief Copies the null terminated string in src to the
|
||||
/// dst buffer of size dstSize. If dstSize > 0 the dst
|
||||
/// buffer is guarenteed to be null terminated, even
|
||||
/// if src is truncated to fit in dst.
|
||||
/// @param dst The destination buffer.
|
||||
/// @param src The source string (null terminated).
|
||||
/// @param dstLength The length of the destination buffer in char16_t characters.
|
||||
static u32 Copy(char16_t* dst, const char16_t* src, u32 dstLength);
|
||||
|
||||
/// @brief Copies the null terminated string in src to the
|
||||
/// dst buffer of size dstSize. If dstSize > 0 the dst
|
||||
/// buffer is guarenteed to be null terminated, even
|
||||
/// if src is truncated to fit in dst.
|
||||
/// @param dst The destination buffer.
|
||||
/// @param src The source string (null terminated).
|
||||
/// @param dstLength The length of the destination buffer in char16_t characters.
|
||||
static u32 Copy(char16_t* dst, const char* src, u32 dstLength);
|
||||
};
|
||||
Reference in New Issue
Block a user