lofty/tag/items/
lang.rs

1/// A three character language code, as specified by [ISO-639-2].
2///
3/// For now, this is used exclusively in ID3v2.
4///
5/// Excerpt from <https://mutagen-specs.readthedocs.io/en/latest/id3/id3v2.4.0-structure.html>:
6///
7/// > The three byte language field, present in several frames, is used to describe
8/// > the language of the frame’s content, according to [ISO-639-2].
9/// > The language should be represented in lower case. If the language is not known
10/// > the string “XXX” should be used.
11///
12/// [ISO-639-2]: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes.
13pub type Lang = [u8; 3];
14
15/// English language code
16pub const ENGLISH: Lang = *b"eng";
17
18/// Unknown/unspecified language
19pub const UNKNOWN_LANGUAGE: [u8; 3] = *b"XXX";