This is a continuation of our paper \cite{AP2}. We prove that for functions f in the Hölder class Ł\a(R) and 1<p<\be, the operator f(A)−f(B) belongs to \bSp/\a, whenever A and B are self-adjoint operators with A−B∈\bSp. We also obtain sharp estimates for the Schatten--von Neumann norms f(A)−f(B)\bSp/\a in terms of ∥A−B∥\bSp and establish similar results for other operator ideals. We also estimate Schatten--von Neumann norms of higher order differences j=0∑m(−1)m−j(m\j)f(A+jK). We prove that analogous results hold for functions on the unit circle and unitary operators and for analytic functions in the unit disk and contractions. Then we find necessary conditions on f for f(A)−f(B) to belong to \bSq under the assumption that A−B∈\bSp. We also obtain Schatten--von Neumann estimates for quasicommutators f(A)Q−Qf(B), and introduce a spectral shift function and find a trace formula for operators of the form f(A−K)−2f(A)+f(A+K).