locale_event_get_country()

Get the current country from a LOCALE_INFO event.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

event

The LOCALE_INFO event to extract the current country from.

Library:

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

Description:

The locale_event_get_country() function extracts the current country (e.g., US, GB, FR, etc.) from the specified LOCALE_INFO event.

The country returned is from the country codes defined by ISO 3166-1 ( http://en.wikipedia.org/wiki/ISO_3166-1 ), using the rules set by BCP47 ( http://tools.ietf.org/html/bcp47 ).

Returns:

The current country.