DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 2176 (0x880) Types: TextFile Names: »B«
└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13 └─ ⟦124ff5788⟧ »DATA« └─⟦this⟧ └─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11 └─ ⟦129cab021⟧ »DATA« └─⟦this⟧ └─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16 └─ ⟦6f12a12be⟧ »DATA« └─⟦this⟧ └─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04 └─ ⟦d65440be7⟧ »DATA« └─⟦this⟧
package body Verif_Input is subtype Digit is Character range '0' .. '9'; subtype Lower is Character range 'a' .. 'f'; subtype Upper is Character range 'A' .. 'F'; function Is_Binary_Byte_Value (Value : String) return Boolean is Binary : Boolean := True; begin if Value'Last > 8 and Value'Last = 0 then return False; else for I in Value'Range loop if Value (I) /= '1' and Value (I) /= '0' then Binary := False; end if; exit when not Binary; end loop; return Binary; end if; end Is_Binary_Byte_Value; function Is_Hexadecimal_Byte_Value (Value : String) return Boolean is Hexa_Val : Boolean := True; begin if Value'Last > 2 and Value'Last = 0 then return False; else for I in Value'Range loop if (Value (I) not in Lower) and (Value (I) not in Upper) and (Value (I) not in Digit) then Hexa_Val := False; end if; exit when not Hexa_Val; end loop; return Hexa_Val; end if; end Is_Hexadecimal_Byte_Value; function Is_Hexadecimal_Word_Value (Value : String) return Boolean is Hexa_Val : Boolean := True; begin if Value'Last > 4 and Value'Last = 0 then return False; else for I in Value'Range loop if (Value (I) not in Lower) and (Value (I) not in Upper) and (Value (I) not in Digit) then Hexa_Val := False; end if; exit when not Hexa_Val; end loop; return Hexa_Val; end if; end Is_Hexadecimal_Word_Value; function Is_Digit (Value : String) return Boolean is begin if Value'Last /= 1 then return False; else if Value (1) not in Digit then return False; else return True; end if; end if; end Is_Digit; end Verif_Input;