On the various decompositions of continuous and some weakly continuous functions