Measurement of D^{*±} meson production in jets from pp collisions at sqrt[s]=7  TeV with the ATLAS detector