Pointwise regularity associated with function spaces and multifractal analysis