1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
21 NameRecord(uint16_t platformID
, uint16_t encodingID
,
22 uint16_t languageID
, uint16_t nameID
)
23 : platform_id(platformID
),
24 encoding_id(encodingID
),
25 language_id(languageID
),
35 bool operator<(const NameRecord
& rhs
) const {
36 if (platform_id
< rhs
.platform_id
) return true;
37 if (platform_id
> rhs
.platform_id
) return false;
38 if (encoding_id
< rhs
.encoding_id
) return true;
39 if (encoding_id
> rhs
.encoding_id
) return false;
40 if (language_id
< rhs
.language_id
) return true;
41 if (language_id
> rhs
.language_id
) return false;
42 return name_id
< rhs
.name_id
;
47 std::vector
<NameRecord
> names
;
48 std::vector
<std::string
> lang_tags
;