region_event_get_script()

Get the current script from a REGION_INFO event.

Synopsis:

#include <bps/region.h>
 
BPS_API const char* region_event_get_script(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The REGION_INFO event to extract the current script from.

Library:

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

Description:

The region_event_get_language() function extracts the current script (e.g., Hans, Hant, etc.) from the specified REGION_INFO event.

The script returned is from the language codes defined by ISO 639-1 ( http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ), using the rules set by BCP47 ( http://tools.ietf.org/html/bcp47 ).

Returns:

The current script.