For the purposes of this part 2, any reference to custody, confinement, charged with, held for, convicted of, a felony, misdemeanor, or petty offense includes a juvenile who is detained or committed for the commission of an act that would constitute such a felony, misdemeanor, or petty offense if committed by an adult or who is the subject of a petition filed pursuant to article 2.5 of title 19 alleging the commission of such a delinquent act or a juvenile who has been adjudicated a juvenile delinquent pursuant to article 2.5 of title 19 for an act that would constitute a felony, misdemeanor, or petty offense if committed by an adult.
C.R.S. § 18-8-210.1