MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / String_Init

Function String_Init

src/String_.h:22–24  ·  view source on GitHub ↗

Constructs a string from the given arguments. */

Source from the content-addressed store, hash-verified

20extern const cc_string String_Empty;
21/* Constructs a string from the given arguments. */
22static CC_INLINE cc_string String_Init(STRING_REF char* buffer, int length, int capacity) {
23 cc_string s; s.buffer = buffer; s.length = length; s.capacity = capacity; return s;
24}
25
26/* Counts number of characters until a '\0' is found, up to capacity. */
27CC_API int String_CalcLen(const char* raw, int capacity);

Callers 15

ShowErrorMessageFunction · 0.85
TextGroupWidget_GetUrlFunction · 0.85
Json_ConsumeNumberFunction · 0.85
String_FromRawFunction · 0.85
String_FromReadonlyFunction · 0.85
String_UNSAFE_SubstringFunction · 0.85
StringsBuffer_UNSAFE_GetFunction · 0.85
ConnectToServerErrorFunction · 0.85
UNSAFE_GetStringFunction · 0.85
DialogCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected