code: public static int getReplaceMultipleResultLength (@Nonnull final char [] aInputString,
                                                      @Nonnull @Nonempty final char [] aSearchChars,
                                                      @Nonnull @Nonempty final char [] [] aReplacementStrings)
    {
      int nResultLen = 0;
      boolean bAnyReplacement = false;
      for (final char cInput : aInputString)
      {
        // In case no replacement is found use a single char
        int nReplacementLength = 1;
        for (int nIndex = 0; nIndex < aSearchChars.length; nIndex++)
          if (cInput == aSearchChars[nIndex])
          {
            nReplacementLength = aReplacementStrings[nIndex].length;
            bAnyReplacement = true;
            break;
          }
        nResultLen += nReplacementLength;
      }
      return bAnyReplacement ? nResultLen : CGlobal.ILLEGAL_UINT;
    }
docs: Get the result length (in characters) when replacing all patterns with the
  replacements on the passed input array.
  
  @param aInputString
  Input char array. May not be <code>null</code>.
  @param aSearchChars
  The one-character search patterns. May not be <code>null</code>.
  @param aReplacementStrings
  The replacements to be performed. May not be <code>null</code>. The
  first dimension of this array must have exactly the same amount of
  elements as the patterns parameter array.
  @return {@link CGlobal#ILLEGAL_UINT} if no replacement was needed, and
  therefore the length of the input array could be used.