In any case in which a district attorney could act as the civil or criminal prosecutor under the provisions of this title, the elected city attorney of any charter city may act as the civil or criminal prosecutor with respect to any violations of this title occurring within the city.
Ca. Gov. Code § 91001.5