12. Burglary.
(1) A person is guilty of burglary if he or she -
(a) enters any building or part of a building as a trespasser and with intent to commit an arrestable offence, or
(b) having entered any building or part of a building as a trespasser, commits or attempts to commit any such offence therein.
(2) References in subsection (1) to a building shall apply also to an inhabited vehicle or vessel and to any other inhabited temporary or movable structure, and shall apply to any such vehicle, vessel or structure at times when the person having a habitation in it is not there as well as at times when the person is there.
(3) A person guilty of burglary is liable on conviction on indictment to a fine or imprisonment for a term not exceeding 14 years or both.
(4) In this section, "arrestable offence" means an offence for which a person of full age and not previously convicted may be punished by imprisonment for a term of five years or by a more severe penalty.