(Cap. 224) or defined in section 321, 322, 339, 340, 350, 351, 360, 361 or 362 of the Penal Code may order any woman or girl in respect of whom the offence is alleged to have been committed to be detained temporarily until the determination of the proceedings against the person ...