mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Add models for WordUtils and StrTokenizer
Both of these have commons-text and commons-lang variants.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package org.apache.commons.lang3.text;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.commons.lang3.text;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
||||
public class WordUtils {
|
||||
public WordUtils() {
|
||||
}
|
||||
|
||||
public static String wrap(final String str, final int wrapLength) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String wrap(final String str, final int wrapLength, final String newLineStr, final boolean wrapLongWords) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String wrap(final String str, int wrapLength, String newLineStr, final boolean wrapLongWords, String wrapOn) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String capitalize(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String capitalize(final String str, final char... delimiters) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String capitalizeFully(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String capitalizeFully(String str, final char... delimiters) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String uncapitalize(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String uncapitalize(final String str, final char... delimiters) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String swapCase(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String initials(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String initials(final String str, final char... delimiters) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean containsAllWords(final CharSequence word, final CharSequence... words) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -16,8 +16,12 @@
|
||||
*/
|
||||
package org.apache.commons.text;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
|
||||
public class StrTokenizer implements ListIterator<String>, Cloneable {
|
||||
public static StrTokenizer getCSVInstance() {
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.commons.text;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
||||
public class WordUtils {
|
||||
public WordUtils() {
|
||||
}
|
||||
|
||||
public static String wrap(final String str, final int wrapLength) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String wrap(final String str,
|
||||
final int wrapLength,
|
||||
final String newLineStr,
|
||||
final boolean wrapLongWords) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String wrap(final String str,
|
||||
int wrapLength,
|
||||
String newLineStr,
|
||||
final boolean wrapLongWords,
|
||||
String wrapOn) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String capitalize(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String capitalize(final String str, final char... delimiters) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String capitalizeFully(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String capitalizeFully(String str, final char... delimiters) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String uncapitalize(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String uncapitalize(final String str, final char... delimiters) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String swapCase(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String initials(final String str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String initials(final String str, final char... delimiters) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean containsAllWords(final CharSequence word, final CharSequence... words) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isDelimiter(final char ch, final char[] delimiters) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isDelimiter(final int codePoint, final char[] delimiters) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static String abbreviate(final String str, int lower, int upper, final String appendToEnd) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user