When an accused a. has been convicted or acquitted, or b. the case against him dismissed or otherwise terminated 1) without his consent 2) by a court of competent jurisdiction, 3) upon a valid complaint or information or other formal charge sufficient in form and substance to sustain a conviction and c. after the accused had plea