PART II
BILL OF RIGHTS
DIVISION 3 - PROTECTION OF THE FUNDAMENTAL RIGHTS AND FREEDOMS
Subdivision A - Protection Generally
17 Personal liberty
(4) A person who is detained —
(a) for the purpose of bringing him before a court; or
(b) on reasonable suspicion of having committed, or being about to commit, an offence; or
(c) for temporary purposes, in accordance with subsection (2)(f) or (g), and who is not released, shall be brought without undue delay before a court, and unless the court, in accordance with law, orders his continued detention it shall order his release.
Rights during investigation - arbitrary arrest or detention and deprivation of liberty
EDIT.