add functions to return string's internal pointers
authorLouis Brandy <ldbrandy@fb.com>
Wed, 11 Sep 2013 16:15:59 +0000 (09:15 -0700)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:44:26 +0000 (18:44 -0700)
commite3a49e3d201be73c383fceb5e226f4ed54461d4b
treebfab9bb348de936b1cf4116fbc266e5c962c7eba
parent524d0e74dbcd615e3704be2a119cd63f6c69d3fd
add functions to return string's internal pointers

Summary: See title. This avoids unnecessary copies when needing to access string data directly. These will throw if the dynamic isn't a string.

@override-unit-failures

Test Plan: Unit test.

Reviewed By: delong.j@fb.com

FB internal diff: D986331
folly/dynamic-inl.h
folly/dynamic.h
folly/test/DynamicTest.cpp