It shall be lawful for the marshal or any policeman of said city, lawfully appointed, to arrest without warrant any and all persons, within the corporate limits of said city, who are, at the time of said arrest, or who, before that time, have been guilty within said limits, of the violation of any of the ordinances of said city; and to hold said persons so arrested until a hearing of the matter before the proper officer can be had; and to this end said arresting officers are authorized to imprison and to confine any person arrested by them in the city prison or the jail of Meriwether County for a reasonable length of time. The marshal and policemen of said city are authorized to the same extent as sheriffs of this state to execute warrants placed in their hands charging any person or persons with violating the criminal laws of this state.