SC_String_NewWithLength()

Creates a string instance, which is a subset of the given array of chars.

Synopsis:

#include <scoreloop/sc_string.h>
 
SC_DEPRECATED SC_PUBLISHED SC_Error_t SC_String_NewWithLength(SC_String_h *pSelf, const char *text, unsigned int length)

Since:

BlackBerry 10.0.0

Deprecated in BlackBerry 10.3.0

Arguments:

pSelf

Opaque handle of the string instance created.

text

A pointer to the UTF-8 encoded char data.

length

Number of chars to copy.

Library:

libscoreloopcore (For the qcc command, use the -l scoreloopcore option to link against this library)

Description:

This method creates an instance of SC_String, copying the length from a given buffer. The string instance is created with a reference count equal to 1.

Returns:

SC_Error_t A return code (a value of SC_OK indicates success, any other value indicates an error).

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus