code: private void format( CssFormatter formatter ) {
          String fmt = get( 0 ).stringValue( formatter );
          int idx = 1;
          for( int i = 0; i < fmt.length(); i++ ) {
              char ch = fmt.charAt( i );
              if( ch == '%' ) {
                  ch = fmt.charAt( ++i );
                  switch( ch ){
                      case '%':
                          formatter.append( ch );
                          break;
                      case 'a':
                      case 'd':
                          get( idx++ ).appendTo( formatter );
                          break;
                      case 'A':
                      case 'D':
                          String str = get( idx++ ).stringValue( formatter );
                          try {
                              str = new URI( null, null, str, null ).getRawPath();
                          } catch( URISyntaxException e ) {
                              e.printStackTrace();
                          }
                          formatter.append( str );
                          break;
                      case 's':
                          formatter.setInlineMode( true );
                          get( idx++ ).appendTo( formatter );
                          formatter.setInlineMode( false );
                          break;
                      case 'S':
                          formatter.setInlineMode( true );
                          str = get( idx++ ).stringValue( formatter );
                          try {
                              str = new URI( null, null, str, null ).getRawPath();
                          } catch( URISyntaxException e ) {
                              e.printStackTrace();
                          }
                          formatter.append( str );
                          formatter.setInlineMode( false );
                          break;
                      default:
                          formatter.append( ch );
                  }
              } else {
                  formatter.append( ch );
              }
          }
      }
docs: Implements the format function "%"
  
  @param formatter the current formation context