Logo Search packages:      
Sourcecode: zbar version File versions  Download package

const char* zbar_get_symbol_name ( zbar_symbol_type_t  sym  ) 

retrieve string name for symbol encoding.

Parameters:
sym symbol type encoding
Returns:
the static string name for the specified symbol type, or "UNKNOWN" if the encoding is not recognized

Definition at line 32 of file symbol.c.

References ZBAR_CODE128, ZBAR_CODE39, ZBAR_EAN13, ZBAR_EAN8, zbar_get_symbol_name(), ZBAR_I25, ZBAR_ISBN10, ZBAR_ISBN13, ZBAR_PDF417, ZBAR_QRCODE, ZBAR_SYMBOL, ZBAR_UPCA, and ZBAR_UPCE.

Referenced by zbar::Decoder::get_symbol_name(), zbar::Symbol::get_type_name(), zbar_get_symbol_name(), and zbar_symbol_xml().

{
    switch(sym & ZBAR_SYMBOL) {
    case ZBAR_EAN8: return("EAN-8");
    case ZBAR_UPCE: return("UPC-E");
    case ZBAR_ISBN10: return("ISBN-10");
    case ZBAR_UPCA: return("UPC-A");
    case ZBAR_EAN13: return("EAN-13");
    case ZBAR_ISBN13: return("ISBN-13");
    case ZBAR_I25: return("I2/5");
    case ZBAR_CODE39: return("CODE-39");
    case ZBAR_CODE128: return("CODE-128");
    case ZBAR_PDF417: return("PDF417");
    case ZBAR_QRCODE: return("QR-Code");
    default: return("UNKNOWN");
    }
}


Generated by  Doxygen 1.6.0   Back to index