protected String resolveIOSPlaceholders ( String original ) { int index = 1 ; String resolved = original ; final Pattern pattern = Pattern . compile ( "%[a-zA-Z@]" ) ; final Matcher matcher = pattern . matcher ( original ) ; while ( matcher . find ( ) ) { String placeholderIOS = matcher . group ( ) ; String placeholderAndroid = placeholderMap . get ( placeholderIOS ) ; if ( placeholderAndroid != null ) { placeholderAndroid = String . format ( placeholderAndroid , index ++ ) ; resolved = resolved . replaceFirst ( placeholderIOS , placeholderAndroid ) ; } } return resolved ; }
Returns a string with resolved iOS placeholders .