(5) When any statute of this state refers to the award of "costs and attorney's fees," attorney's fees are an item and component of the costs to be awarded and are allowable as costs pursuant to subparagraph (B) of paragraph (10) of subdivision (a). Any claim not based upon the court's established schedule of attorney's fees for actions on a contract shall bear the burden of proof. Attorney's fees allowable as costs pursuant to subparagraph (B) of paragraph (10) of subdivision (a) may be fixed as follows: (A) upon a noticed motion, (B) at the time a statement of decision is rendered, (C) upon application supported by affidavit made concurrently with a claim for other costs, or (D) upon entry of default judgment. Attorney's fees allowable as costs pursuant to subparagraph (A) or (C) of paragraph (10) of subdivision (a) shall be fixed either upon a noticed motion or upon entry of a default judgment, unless otherwise provided by stipulation of the parties.
Attorney's fees awarded pursuant to Section 1717 of the Civil Code are allowable costs under Section 1032 of this code as authorized by subparagraph (A) of paragraph (10) of subdivision (a).