libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
|
#include "core.h"
Go to the source code of this file.
Functions | |
const char * | icao2cc (const char *icao) |
const char * | icao2lang (const char *icao) |
Translation functionality to convert ICAO airport codes into country codes and language codes. This is useful for building flight information systems.
Definition in file icao2cc.h.
const char * icao2cc | ( | const char * | icao | ) |
Converts an ICAO code to a country code. This performs a simple prefix match using the icao2cc_table.
const char * icao2lang | ( | const char * | icao | ) |
Grabs an ICAO airport code and tries to map it to language code of the principal language spoken at that airport. This shouldn't be relied upon to be very accurate, since in reality the airport-to-language mapping is anything but clear cut.