It shall be lawful for the marshal or any policeman of the city to arrest without warrant any person committing an offense against the ordinances of the city or the laws of the state in his presence, or if the offender is endeavoring to escape, or if for any cause there is likely to be a failure of justice for want of an officer to issue a warrant, and said marshal or policeman is authorized to hold such person so arrested until a hearing of the matter can be had before the proper officers. To this end said arresting officers are authorized to confine any person arrested by them in the city prison or in the jail of Brooks County for a reasonable length of time. The marshal and policemen of the 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. The marshal and policemen of the city are also authorized to arrest anywhere within the limits of this state, upon warrant, any person charged with violating any of the ordinances of the city.