Class: CountryRecord
- Inherits:
-
BiffRecord
- Object
- BiffRecord
- CountryRecord
- Defined in:
- lib/surpass/biff_record.rb
Overview
This record stores two Windows country identifiers. The first represents the user interface language of the Excel version that has saved the file, and the second represents the system regional settings at the time the file was saved.
Record COUNTRY, BIFF3-BIFF8:
Offset Size Contents 0 2 Windows country identifier of the user interface language of Excel 2 2 Windows country identifier of the system regional settings
The following table shows most of the used country identifiers. Most of these identifiers are equal to the international country calling codes.
1 USA 2 Canada 7 Russia
Constant Summary collapse
- RECORD_ID =
0x00DA
Constants inherited from BiffRecord
BiffRecord::BIFF_LIMIT, BiffRecord::CONTINUE_RECORD_ID
Instance Attribute Summary
Attributes inherited from BiffRecord
Instance Method Summary collapse
-
#initialize(ui_id, sys_settings_id) ⇒ CountryRecord
constructor
A new instance of CountryRecord.
Methods inherited from BiffRecord
Constructor Details
#initialize(ui_id, sys_settings_id) ⇒ CountryRecord
Returns a new instance of CountryRecord.
402 403 404 |
# File 'lib/surpass/biff_record.rb', line 402 def initialize(ui_id, sys_settings_id) @record_data = [ui_id, sys_settings_id].pack('v2') end |