Examples of ASCIITextWidthCounter


Examples of net.sourceforge.argparse4j.helper.ASCIITextWidthCounter

            boolean addHelp, String prefixChars, String fromFilePrefix) {
        return new ArgumentParserImpl(prog, addHelp, prefixChars,
                fromFilePrefix, cjkWidthHack_
                        && cjkWidthLangs_.contains(Locale.getDefault()
                                .getLanguage()) ? new CJKTextWidthCounter()
                        : new ASCIITextWidthCounter());
    }
View Full Code Here

Examples of net.sourceforge.argparse4j.helper.ASCIITextWidthCounter

    private static final Pattern SHORT_OPTS_PATTERN = Pattern
            .compile("-[^-].*");

    public ArgumentParserImpl(String prog) {
        this(prog, true, ArgumentParsers.DEFAULT_PREFIX_CHARS, null,
                new ASCIITextWidthCounter(), null, null);
    }
View Full Code Here

Examples of net.sourceforge.argparse4j.helper.ASCIITextWidthCounter

                new ASCIITextWidthCounter(), null, null);
    }

    public ArgumentParserImpl(String prog, boolean addHelp) {
        this(prog, addHelp, ArgumentParsers.DEFAULT_PREFIX_CHARS, null,
                new ASCIITextWidthCounter(), null, null);
    }
View Full Code Here

Examples of net.sourceforge.argparse4j.helper.ASCIITextWidthCounter

        this(prog, addHelp, ArgumentParsers.DEFAULT_PREFIX_CHARS, null,
                new ASCIITextWidthCounter(), null, null);
    }

    public ArgumentParserImpl(String prog, boolean addHelp, String prefixChars) {
        this(prog, addHelp, prefixChars, null, new ASCIITextWidthCounter(),
                null, null);
    }
View Full Code Here

Examples of net.sourceforge.argparse4j.helper.ASCIITextWidthCounter

    }

    public ArgumentParserImpl(String prog, boolean addHelp, String prefixChars,
            String fromFilePrefix) {
        this(prog, addHelp, prefixChars, fromFilePrefix,
                new ASCIITextWidthCounter(), null, null);
    }
View Full Code Here

Examples of net.sourceforge.argparse4j.helper.ASCIITextWidthCounter

            title = "-" + title; // prefer "--libjars" long arg style over "-libjars" style but retain "-D foo" short arg style
          }
          String help = line.substring(i, line.length()).trim();
          StringWriter strWriter = new StringWriter();
          PrintWriter writer = new PrintWriter(strWriter, true);
          TextHelper.printHelp(writer, title, help, new ASCIITextWidthCounter(), ArgumentParsers.getFormatWidth());
          result.append(strWriter.toString());
        }
      }
    }
  }
View Full Code Here

Examples of net.sourceforge.argparse4j.helper.ASCIITextWidthCounter

            title = "-" + title; // prefer "--libjars" long arg style over "-libjars" style but retain "-D foo" short arg style       
          }
          String help = line.substring(i, line.length()).trim();
          StringWriter strWriter = new StringWriter();
          PrintWriter writer = new PrintWriter(strWriter, true);
          TextHelper.printHelp(writer, title, help, new ASCIITextWidthCounter(), ArgumentParsers.getFormatWidth());
          result.append(strWriter.toString());         
        }       
      }
    }
  }
View Full Code Here

Examples of net.sourceforge.argparse4j.helper.ASCIITextWidthCounter

            title = "-" + title; // prefer "--libjars" long arg style over "-libjars" style but retain "-D foo" short arg style       
          }
          String help = line.substring(i, line.length()).trim();
          StringWriter strWriter = new StringWriter();
          PrintWriter writer = new PrintWriter(strWriter, true);
          TextHelper.printHelp(writer, title, help, new ASCIITextWidthCounter(), ArgumentParsers.getFormatWidth());
          result.append(strWriter.toString());         
        }       
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.