Android: support escapes in multiline strings definitions
This adds support for escape characters in multiline strings definitions (where the variable name and the string literal are on different lines, not for string literals which span multiple lines). This also simplifies STRING_RE because it no longer needs to contain a regex for the string literal. This also adds tests for empty string. This hardens the regex to avoid mistaking multiple string literals (which is often used to split a string literal across multiple lines) with a complete string expression. This also removes _ToUpper and _GetClassName because these are unused by this class. Fixed: 1129591 Test: vpython build/android/gyp/java_cpp_strings_tests.py Change-Id: Ib4b6dcc2bbe70081ebaaa3552b4cb6d36dc0ffe9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2417488Reviewed-by:Andrew Grieve <agrieve@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#808180}
Showing
Please register or sign in to comment