test_class.file: collect_app/src/test/java/org/odk/collect/android/utilities/RegexUtilsTest.java
test_class.identifier: RegexUtilsTest
test_case.body: @Test
      public void normalizeFormNameTest() {
          assertNull(normalizeFormName(null, false));
          assertEquals("Lorem", normalizeFormName("Lorem", false));
          assertEquals("Lorem ipsum", normalizeFormName("Lorem ipsum", false));
          assertEquals("Lorem ipsum", normalizeFormName("Lorem\nipsum", false));
          assertEquals("Lorem  ipsum", normalizeFormName("Lorem\n\nipsum", false));
          assertEquals(" Lorem ipsum ", normalizeFormName("\nLorem\nipsum\n", false));
  
          assertNull(normalizeFormName(null, true));
          assertNull(normalizeFormName("Lorem", true));
          assertNull(normalizeFormName("Lorem ipsum", true));
          assertEquals("Lorem ipsum", normalizeFormName("Lorem\nipsum", true));
          assertEquals("Lorem  ipsum", normalizeFormName("Lorem\n\nipsum", true));
          assertEquals(" Lorem ipsum ", normalizeFormName("\nLorem\nipsum\n", true));
      }
test_case.class_method_signature: RegexUtilsTest.normalizeFormNameTest()
test_case.full_signature: @Test public void normalizeFormNameTest()
test_case.identifier: normalizeFormNameTest
test_case.invocations: assertNull normalizeFormName assertEquals normalizeFormName assertEquals normalizeFormName assertEquals normalizeFormName assertEquals normalizeFormName assertEquals normalizeFormName assertNull normalizeFormName assertNull normalizeFormName assertNull normalizeFormName assertEquals normalizeFormName assertEquals normalizeFormName assertEquals normalizeFormName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void normalizeFormNameTest()
focal_class.declarator: CONTROL_CHAR_REGEX = "[\\p{Cntrl}]"
focal_class.modifier: private static final
focal_class.original_string: private static final String CONTROL_CHAR_REGEX = "[\\p{Cntrl}]";
focal_class.type: String
focal_class.var_name: CONTROL_CHAR_REGEX
focal_class.declarator: CONTROL_CHAR_PATTERN = Pattern.compile(CONTROL_CHAR_REGEX)
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern CONTROL_CHAR_PATTERN = Pattern.compile(CONTROL_CHAR_REGEX);
focal_class.type: Pattern
focal_class.var_name: CONTROL_CHAR_PATTERN
focal_class.file: collect_app/src/main/java/org/odk/collect/android/utilities/RegexUtils.java
focal_class.identifier: RegexUtils
focal_class.class_method_signature: RegexUtils.RegexUtils()
focal_class.full_signature: private  RegexUtils()
focal_class.identifier: RegexUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  RegexUtils()
focal_class.class_method_signature: RegexUtils.normalizeFormName(String formName, boolean returnNullIfNothingChanged)
focal_class.full_signature: public static String normalizeFormName(String formName, boolean returnNullIfNothingChanged)
focal_class.identifier: normalizeFormName
focal_class.modifiers: public static
focal_class.parameters: (String formName, boolean returnNullIfNothingChanged)
focal_class.return: String
focal_class.signature: String normalizeFormName(String formName, boolean returnNullIfNothingChanged)
focal_method.body: public static String normalizeFormName(String formName, boolean returnNullIfNothingChanged) {
          if (formName == null) {
              return null;
          }
  
          Matcher matcher = CONTROL_CHAR_PATTERN.matcher(formName);
          return matcher.find()
                  ? matcher.replaceAll(" ")
                  : (returnNullIfNothingChanged ? null : formName);
      }
focal_method.class_method_signature: RegexUtils.normalizeFormName(String formName, boolean returnNullIfNothingChanged)
focal_method.full_signature: public static String normalizeFormName(String formName, boolean returnNullIfNothingChanged)
focal_method.identifier: normalizeFormName
focal_method.invocations: matcher find replaceAll
focal_method.modifiers: public static
focal_method.parameters: (String formName, boolean returnNullIfNothingChanged)
focal_method.return: String
focal_method.signature: String normalizeFormName(String formName, boolean returnNullIfNothingChanged)