Text this: Deep Neural Networks are Adaptive to Function Regularity and Data Distribution in Approximation and Estimation