—(1) Whenever —
a person is arrested by a police officer under a warrant which does not provide for the taking of bail or under a warrant which provides for the taking of bail but the person arrested cannot furnish bail; or
a person is arrested without warrant by a police officer or a private person under a warrant and the person arrested cannot legally be admitted to bail or is unable to furnish bail,
the police officer making the arrest or, when the arrest is made by a private person, the police officer to whom the private person hands over the person arrested, may search the person arrested and place in safe custody all articles other than necessary wearing apparel found upon him.
(2) A police officer investigating an arrestable offence under Part IV may —
enter any place belonging to or under the control of any person who —
is under arrest in connection with the offence;
is reasonably believed to be connected with the offence; or
is reasonably believed to have given shelter to the person under arrest; and
search the place for any evidence of the offence.