id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
34,400
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/RuleCharacterIterator.java
RuleCharacterIterator._advance
private void _advance(int count) { if (buf != null) { bufPos += count; if (bufPos == buf.length) { buf = null; } } else { pos.setIndex(pos.getIndex() + count); if (pos.getIndex() > text.length()) { pos.setIndex(t...
java
private void _advance(int count) { if (buf != null) { bufPos += count; if (bufPos == buf.length) { buf = null; } } else { pos.setIndex(pos.getIndex() + count); if (pos.getIndex() > text.length()) { pos.setIndex(t...
[ "private", "void", "_advance", "(", "int", "count", ")", "{", "if", "(", "buf", "!=", "null", ")", "{", "bufPos", "+=", "count", ";", "if", "(", "bufPos", "==", "buf", ".", "length", ")", "{", "buf", "=", "null", ";", "}", "}", "else", "{", "po...
Advances the position by the given amount. @param count the number of 16-bit code units to advance past
[ "Advances", "the", "position", "by", "the", "given", "amount", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/RuleCharacterIterator.java#L336-L348
34,401
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/LocaleIDs.java
LocaleIDs.getISO3Country
public static String getISO3Country(String country){ int offset = findIndex(_countries, country); if(offset>=0){ return _countries3[offset]; }else{ offset = findIndex(_obsoleteCountries, country); if(offset>=0){ return _obsoleteCountries3[offs...
java
public static String getISO3Country(String country){ int offset = findIndex(_countries, country); if(offset>=0){ return _countries3[offset]; }else{ offset = findIndex(_obsoleteCountries, country); if(offset>=0){ return _obsoleteCountries3[offs...
[ "public", "static", "String", "getISO3Country", "(", "String", "country", ")", "{", "int", "offset", "=", "findIndex", "(", "_countries", ",", "country", ")", ";", "if", "(", "offset", ">=", "0", ")", "{", "return", "_countries3", "[", "offset", "]", ";"...
Returns a three-letter abbreviation for the provided country. If the provided country is empty, returns the empty string. Otherwise, returns an uppercase ISO 3166 3-letter country code. @exception MissingResourceException Throws MissingResourceException if the three-letter country abbreviation is not available for th...
[ "Returns", "a", "three", "-", "letter", "abbreviation", "for", "the", "provided", "country", ".", "If", "the", "provided", "country", "is", "empty", "returns", "the", "empty", "string", ".", "Otherwise", "returns", "an", "uppercase", "ISO", "3166", "3", "-",...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/LocaleIDs.java#L50-L62
34,402
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/LocaleIDs.java
LocaleIDs.findIndex
private static int findIndex(String[] array, String target){ for (int i = 0; i < array.length; i++) { if (target.equals(array[i])) { return i; } } return -1; }
java
private static int findIndex(String[] array, String target){ for (int i = 0; i < array.length; i++) { if (target.equals(array[i])) { return i; } } return -1; }
[ "private", "static", "int", "findIndex", "(", "String", "[", "]", "array", ",", "String", "target", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "array", ".", "length", ";", "i", "++", ")", "{", "if", "(", "target", ".", "equals", ...
linear search of the string array. the arrays are unfortunately ordered by the two-letter target code, not the three-letter search code, which seems backwards.
[ "linear", "search", "of", "the", "string", "array", ".", "the", "arrays", "are", "unfortunately", "ordered", "by", "the", "two", "-", "letter", "target", "code", "not", "the", "three", "-", "letter", "search", "code", "which", "seems", "backwards", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/LocaleIDs.java#L122-L129
34,403
google/j2objc
jre_emul/android/platform/libcore/luni/src/main/java/org/xml/sax/helpers/XMLFilterImpl.java
XMLFilterImpl.setFeature
public void setFeature (String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parent != null) { parent.setFeature(name, value); } else { throw new SAXNotRecognizedException("Feature: " + name); } }
java
public void setFeature (String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (parent != null) { parent.setFeature(name, value); } else { throw new SAXNotRecognizedException("Feature: " + name); } }
[ "public", "void", "setFeature", "(", "String", "name", ",", "boolean", "value", ")", "throws", "SAXNotRecognizedException", ",", "SAXNotSupportedException", "{", "if", "(", "parent", "!=", "null", ")", "{", "parent", ".", "setFeature", "(", "name", ",", "value...
Set the value of a feature. <p>This will always fail if the parent is null.</p> @param name The feature name. @param value The requested feature value. @exception org.xml.sax.SAXNotRecognizedException If the feature value can't be assigned or retrieved from the parent. @exception org.xml.sax.SAXNotSupportedException ...
[ "Set", "the", "value", "of", "a", "feature", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/luni/src/main/java/org/xml/sax/helpers/XMLFilterImpl.java#L149-L157
34,404
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/axes/FilterExprWalker.java
FilterExprWalker.init
public void init(Compiler compiler, int opPos, int stepType) throws javax.xml.transform.TransformerException { super.init(compiler, opPos, stepType); // Smooth over an anomily in the opcode map... switch (stepType) { case OpCodes.OP_FUNCTION : case OpCodes.OP_EXTFUNCTION : m_m...
java
public void init(Compiler compiler, int opPos, int stepType) throws javax.xml.transform.TransformerException { super.init(compiler, opPos, stepType); // Smooth over an anomily in the opcode map... switch (stepType) { case OpCodes.OP_FUNCTION : case OpCodes.OP_EXTFUNCTION : m_m...
[ "public", "void", "init", "(", "Compiler", "compiler", ",", "int", "opPos", ",", "int", "stepType", ")", "throws", "javax", ".", "xml", ".", "transform", ".", "TransformerException", "{", "super", ".", "init", "(", "compiler", ",", "opPos", ",", "stepType"...
Init a FilterExprWalker. @param compiler non-null reference to the Compiler that is constructing. @param opPos positive opcode position for this step. @param stepType The type of step. @throws javax.xml.transform.TransformerException
[ "Init", "a", "FilterExprWalker", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/axes/FilterExprWalker.java#L62-L103
34,405
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/axes/FilterExprWalker.java
FilterExprWalker.setRoot
public void setRoot(int root) { super.setRoot(root); m_exprObj = FilterExprIteratorSimple.executeFilterExpr(root, m_lpi.getXPathContext(), m_lpi.getPrefixResolver(), m_lpi.getIsTopLevel(), m_lpi.m_stackFrame, m_expr); }
java
public void setRoot(int root) { super.setRoot(root); m_exprObj = FilterExprIteratorSimple.executeFilterExpr(root, m_lpi.getXPathContext(), m_lpi.getPrefixResolver(), m_lpi.getIsTopLevel(), m_lpi.m_stackFrame, m_expr); }
[ "public", "void", "setRoot", "(", "int", "root", ")", "{", "super", ".", "setRoot", "(", "root", ")", ";", "m_exprObj", "=", "FilterExprIteratorSimple", ".", "executeFilterExpr", "(", "root", ",", "m_lpi", ".", "getXPathContext", "(", ")", ",", "m_lpi", "....
Set the root node of the TreeWalker. @param root non-null reference to the root, or starting point of the query.
[ "Set", "the", "root", "node", "of", "the", "TreeWalker", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/axes/FilterExprWalker.java#L126-L135
34,406
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/axes/FilterExprWalker.java
FilterExprWalker.acceptNode
public short acceptNode(int n) { try { if (getPredicateCount() > 0) { countProximityPosition(0); if (!executePredicates(n, m_lpi.getXPathContext())) return DTMIterator.FILTER_SKIP; } return DTMIterator.FILTER_ACCEPT; } catch (javax.xml.transform.Tra...
java
public short acceptNode(int n) { try { if (getPredicateCount() > 0) { countProximityPosition(0); if (!executePredicates(n, m_lpi.getXPathContext())) return DTMIterator.FILTER_SKIP; } return DTMIterator.FILTER_ACCEPT; } catch (javax.xml.transform.Tra...
[ "public", "short", "acceptNode", "(", "int", "n", ")", "{", "try", "{", "if", "(", "getPredicateCount", "(", ")", ">", "0", ")", "{", "countProximityPosition", "(", "0", ")", ";", "if", "(", "!", "executePredicates", "(", "n", ",", "m_lpi", ".", "get...
This method needs to override AxesWalker.acceptNode because FilterExprWalkers don't need to, and shouldn't, do a node test. @param n The node to check to see if it passes the filter or not. @return a constant to determine whether the node is accepted, rejected, or skipped, as defined above .
[ "This", "method", "needs", "to", "override", "AxesWalker", ".", "acceptNode", "because", "FilterExprWalkers", "don", "t", "need", "to", "and", "shouldn", "t", "do", "a", "node", "test", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/axes/FilterExprWalker.java#L162-L181
34,407
google/j2objc
jre_emul/openjdk/src/share/classes/java/math/BitSieve.java
BitSieve.sieveSearch
private int sieveSearch(int limit, int start) { if (start >= limit) return -1; int index = start; do { if (!get(index)) return index; index++; } while(index < limit-1); return -1; }
java
private int sieveSearch(int limit, int start) { if (start >= limit) return -1; int index = start; do { if (!get(index)) return index; index++; } while(index < limit-1); return -1; }
[ "private", "int", "sieveSearch", "(", "int", "limit", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "limit", ")", "return", "-", "1", ";", "int", "index", "=", "start", ";", "do", "{", "if", "(", "!", "get", "(", "index", ")", ")", "...
This method returns the index of the first clear bit in the search array that occurs at or after start. It will not search past the specified limit. It returns -1 if there is no such clear bit.
[ "This", "method", "returns", "the", "index", "of", "the", "first", "clear", "bit", "in", "the", "search", "array", "that", "occurs", "at", "or", "after", "start", ".", "It", "will", "not", "search", "past", "the", "specified", "limit", ".", "It", "return...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/openjdk/src/share/classes/java/math/BitSieve.java#L166-L177
34,408
google/j2objc
jre_emul/openjdk/src/share/classes/java/math/BitSieve.java
BitSieve.sieveSingle
private void sieveSingle(int limit, int start, int step) { while(start < limit) { set(start); start += step; } }
java
private void sieveSingle(int limit, int start, int step) { while(start < limit) { set(start); start += step; } }
[ "private", "void", "sieveSingle", "(", "int", "limit", ",", "int", "start", ",", "int", "step", ")", "{", "while", "(", "start", "<", "limit", ")", "{", "set", "(", "start", ")", ";", "start", "+=", "step", ";", "}", "}" ]
Sieve a single set of multiples out of the sieve. Begin to remove multiples of the specified step starting at the specified start index, up to the specified limit.
[ "Sieve", "a", "single", "set", "of", "multiples", "out", "of", "the", "sieve", ".", "Begin", "to", "remove", "multiples", "of", "the", "specified", "step", "starting", "at", "the", "specified", "start", "index", "up", "to", "the", "specified", "limit", "."...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/openjdk/src/share/classes/java/math/BitSieve.java#L184-L189
34,409
google/j2objc
jre_emul/openjdk/src/share/classes/java/math/BitSieve.java
BitSieve.retrieve
BigInteger retrieve(BigInteger initValue, int certainty, java.util.Random random) { // Examine the sieve one long at a time to find possible primes int offset = 1; for (int i=0; i<bits.length; i++) { long nextLong = ~bits[i]; for (int j=0; j<64; j++) { if ...
java
BigInteger retrieve(BigInteger initValue, int certainty, java.util.Random random) { // Examine the sieve one long at a time to find possible primes int offset = 1; for (int i=0; i<bits.length; i++) { long nextLong = ~bits[i]; for (int j=0; j<64; j++) { if ...
[ "BigInteger", "retrieve", "(", "BigInteger", "initValue", ",", "int", "certainty", ",", "java", ".", "util", ".", "Random", "random", ")", "{", "// Examine the sieve one long at a time to find possible primes", "int", "offset", "=", "1", ";", "for", "(", "int", "i...
Test probable primes in the sieve and return successful candidates.
[ "Test", "probable", "primes", "in", "the", "sieve", "and", "return", "successful", "candidates", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/openjdk/src/share/classes/java/math/BitSieve.java#L194-L211
34,410
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java
Logger.getPlatformLogger
static Logger getPlatformLogger(String name) { LogManager manager = LogManager.getLogManager(); // all loggers in the system context will default to // the system logger's resource bundle Logger result = manager.demandSystemLogger(name, SYSTEM_LOGGER_RB_NAME); return result; ...
java
static Logger getPlatformLogger(String name) { LogManager manager = LogManager.getLogManager(); // all loggers in the system context will default to // the system logger's resource bundle Logger result = manager.demandSystemLogger(name, SYSTEM_LOGGER_RB_NAME); return result; ...
[ "static", "Logger", "getPlatformLogger", "(", "String", "name", ")", "{", "LogManager", "manager", "=", "LogManager", ".", "getLogManager", "(", ")", ";", "// all loggers in the system context will default to", "// the system logger's resource bundle", "Logger", "result", "...
i.e. caller of sun.util.logging.PlatformLogger.getLogger
[ "i", ".", "e", ".", "caller", "of", "sun", ".", "util", ".", "logging", ".", "PlatformLogger", ".", "getLogger" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java#L489-L496
34,411
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java
Logger.isLoggable
public boolean isLoggable(Level level) { if (level.intValue() < levelValue || levelValue == offValue) { return false; } return true; }
java
public boolean isLoggable(Level level) { if (level.intValue() < levelValue || levelValue == offValue) { return false; } return true; }
[ "public", "boolean", "isLoggable", "(", "Level", "level", ")", "{", "if", "(", "level", ".", "intValue", "(", ")", "<", "levelValue", "||", "levelValue", "==", "offValue", ")", "{", "return", "false", ";", "}", "return", "true", ";", "}" ]
Check if a message of the given level would actually be logged by this logger. This check is based on the Loggers effective level, which may be inherited from its parent. @param level a message logging level @return true if the given message level is currently being logged.
[ "Check", "if", "a", "message", "of", "the", "given", "level", "would", "actually", "be", "logged", "by", "this", "logger", ".", "This", "check", "is", "based", "on", "the", "Loggers", "effective", "level", "which", "may", "be", "inherited", "from", "its", ...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java#L1312-L1317
34,412
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java
Logger.findResourceBundle
private synchronized ResourceBundle findResourceBundle(String name, boolean useCallersClassLoader) { // For all lookups, we first check the thread context class loader // if it is set. If not, we use the system classloader. If we // st...
java
private synchronized ResourceBundle findResourceBundle(String name, boolean useCallersClassLoader) { // For all lookups, we first check the thread context class loader // if it is set. If not, we use the system classloader. If we // st...
[ "private", "synchronized", "ResourceBundle", "findResourceBundle", "(", "String", "name", ",", "boolean", "useCallersClassLoader", ")", "{", "// For all lookups, we first check the thread context class loader", "// if it is set. If not, we use the system classloader. If we", "// still ...
Private utility method to map a resource bundle name to an actual resource bundle, using a simple one-entry cache. Returns null for a null name. May also return null if we can't find the resource bundle and there is no suitable previous cached value. @param name the ResourceBundle to locate @param userCallersClassLoad...
[ "Private", "utility", "method", "to", "map", "a", "resource", "bundle", "name", "to", "an", "actual", "resource", "bundle", "using", "a", "simple", "one", "-", "entry", "cache", ".", "Returns", "null", "for", "a", "null", "name", ".", "May", "also", "ret...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java#L1430-L1500
34,413
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java
Logger.setupResourceInfo
private synchronized void setupResourceInfo(String name, Class<?> callersClass) { if (name == null) { return; } /* J2ObjC removed. setCallersClassLoaderRef(callersClass); */ if (findResourceBundle(name, true) ==...
java
private synchronized void setupResourceInfo(String name, Class<?> callersClass) { if (name == null) { return; } /* J2ObjC removed. setCallersClassLoaderRef(callersClass); */ if (findResourceBundle(name, true) ==...
[ "private", "synchronized", "void", "setupResourceInfo", "(", "String", "name", ",", "Class", "<", "?", ">", "callersClass", ")", "{", "if", "(", "name", "==", "null", ")", "{", "return", ";", "}", "/* J2ObjC removed.\n setCallersClassLoaderRef(callersClass);\...
Synchronized to prevent races in setting the fields.
[ "Synchronized", "to", "prevent", "races", "in", "setting", "the", "fields", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java#L1549-L1567
34,414
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java
Logger.doSetParent
private void doSetParent(Logger newParent) { // System.err.println("doSetParent \"" + getName() + "\" \"" // + newParent.getName() + "\""); synchronized (treeLock) { // Remove ourself from any previous parent. LogManager.LoggerWeakRef ref =...
java
private void doSetParent(Logger newParent) { // System.err.println("doSetParent \"" + getName() + "\" \"" // + newParent.getName() + "\""); synchronized (treeLock) { // Remove ourself from any previous parent. LogManager.LoggerWeakRef ref =...
[ "private", "void", "doSetParent", "(", "Logger", "newParent", ")", "{", "// System.err.println(\"doSetParent \\\"\" + getName() + \"\\\" \\\"\"", "// + newParent.getName() + \"\\\"\");", "synchronized", "(", "treeLock", ")", "{", "// Remove ourself from any...
Logger onto a parent logger.
[ "Logger", "onto", "a", "parent", "logger", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java#L1611-L1653
34,415
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java
Logger.updateEffectiveLevel
private void updateEffectiveLevel() { // assert Thread.holdsLock(treeLock); // Figure out our current effective level. int newLevelValue; if (levelObject != null) { newLevelValue = levelObject.intValue(); } else { if (parent != null) { new...
java
private void updateEffectiveLevel() { // assert Thread.holdsLock(treeLock); // Figure out our current effective level. int newLevelValue; if (levelObject != null) { newLevelValue = levelObject.intValue(); } else { if (parent != null) { new...
[ "private", "void", "updateEffectiveLevel", "(", ")", "{", "// assert Thread.holdsLock(treeLock);", "// Figure out our current effective level.", "int", "newLevelValue", ";", "if", "(", "levelObject", "!=", "null", ")", "{", "newLevelValue", "=", "levelObject", ".", "intVa...
recursively for our children.
[ "recursively", "for", "our", "children", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java#L1673-L1708
34,416
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java
Logger.getEffectiveResourceBundleName
private String getEffectiveResourceBundleName() { Logger target = this; while (target != null) { String rbn = target.getResourceBundleName(); if (rbn != null) { return rbn; } target = target.getParent(); } return null; }
java
private String getEffectiveResourceBundleName() { Logger target = this; while (target != null) { String rbn = target.getResourceBundleName(); if (rbn != null) { return rbn; } target = target.getParent(); } return null; }
[ "private", "String", "getEffectiveResourceBundleName", "(", ")", "{", "Logger", "target", "=", "this", ";", "while", "(", "target", "!=", "null", ")", "{", "String", "rbn", "=", "target", ".", "getResourceBundleName", "(", ")", ";", "if", "(", "rbn", "!=",...
May return null
[ "May", "return", "null" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/logging/Logger.java#L1714-L1724
34,417
google/j2objc
translator/src/main/java/com/google/devtools/j2objc/gen/ObjectiveCHeaderGenerator.java
ObjectiveCHeaderGenerator.pushIgnoreNullabilityPragmas
protected void pushIgnoreNullabilityPragmas() { if (getGenerationUnit().options().nullability() || getGenerationUnit().hasNullabilityAnnotations()) { newline(); println("#if __has_feature(nullability)"); println("#pragma clang diagnostic push"); println("#pragma GCC diagnostic ignore...
java
protected void pushIgnoreNullabilityPragmas() { if (getGenerationUnit().options().nullability() || getGenerationUnit().hasNullabilityAnnotations()) { newline(); println("#if __has_feature(nullability)"); println("#pragma clang diagnostic push"); println("#pragma GCC diagnostic ignore...
[ "protected", "void", "pushIgnoreNullabilityPragmas", "(", ")", "{", "if", "(", "getGenerationUnit", "(", ")", ".", "options", "(", ")", ".", "nullability", "(", ")", "||", "getGenerationUnit", "(", ")", ".", "hasNullabilityAnnotations", "(", ")", ")", "{", "...
Ignores nullability warnings. This method should be paired with popIgnoreNullabilityPragmas. <p>-Wnullability: In Java, conflicting nullability annotations do not cause compilation issues (e.g.changing a parameter from {@code @Nullable} to {@code @NonNull} in an overriding method). In Objective-C, they generate compil...
[ "Ignores", "nullability", "warnings", ".", "This", "method", "should", "be", "paired", "with", "popIgnoreNullabilityPragmas", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/translator/src/main/java/com/google/devtools/j2objc/gen/ObjectiveCHeaderGenerator.java#L160-L170
34,418
google/j2objc
translator/src/main/java/com/google/devtools/j2objc/gen/ObjectiveCHeaderGenerator.java
ObjectiveCHeaderGenerator.popIgnoreNullabilityPragmas
protected void popIgnoreNullabilityPragmas() { if (getGenerationUnit().options().nullability() || getGenerationUnit().hasNullabilityAnnotations()) { newline(); println("#if __has_feature(nullability)"); println("#pragma clang diagnostic pop"); println("#endif"); } }
java
protected void popIgnoreNullabilityPragmas() { if (getGenerationUnit().options().nullability() || getGenerationUnit().hasNullabilityAnnotations()) { newline(); println("#if __has_feature(nullability)"); println("#pragma clang diagnostic pop"); println("#endif"); } }
[ "protected", "void", "popIgnoreNullabilityPragmas", "(", ")", "{", "if", "(", "getGenerationUnit", "(", ")", ".", "options", "(", ")", ".", "nullability", "(", ")", "||", "getGenerationUnit", "(", ")", ".", "hasNullabilityAnnotations", "(", ")", ")", "{", "n...
Restores warnings after a call to pushIgnoreNullabilityPragmas.
[ "Restores", "warnings", "after", "a", "call", "to", "pushIgnoreNullabilityPragmas", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/translator/src/main/java/com/google/devtools/j2objc/gen/ObjectiveCHeaderGenerator.java#L173-L181
34,419
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie.java
Trie.getSerializedDataSize
public int getSerializedDataSize() { // includes signature, option, dataoffset and datalength output int result = (4 << 2); result += (m_dataOffset_ << 1); if (isCharTrie()) { result += (m_dataLength_ << 1); } else if (isIntTrie()) { result += ...
java
public int getSerializedDataSize() { // includes signature, option, dataoffset and datalength output int result = (4 << 2); result += (m_dataOffset_ << 1); if (isCharTrie()) { result += (m_dataLength_ << 1); } else if (isIntTrie()) { result += ...
[ "public", "int", "getSerializedDataSize", "(", ")", "{", "// includes signature, option, dataoffset and datalength output", "int", "result", "=", "(", "4", "<<", "2", ")", ";", "result", "+=", "(", "m_dataOffset_", "<<", "1", ")", ";", "if", "(", "isCharTrie", "...
Gets the serialized data file size of the Trie. This is used during trie data reading for size checking purposes. @return size size of serialized trie data file in terms of the number of bytes
[ "Gets", "the", "serialized", "data", "file", "size", "of", "the", "Trie", ".", "This", "is", "used", "during", "trie", "data", "reading", "for", "size", "checking", "purposes", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie.java#L128-L140
34,420
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie.java
Trie.getBMPOffset
protected final int getBMPOffset(char ch) { return (ch >= UTF16.LEAD_SURROGATE_MIN_VALUE && ch <= UTF16.LEAD_SURROGATE_MAX_VALUE) ? getRawOffset(LEAD_INDEX_OFFSET_, ch) : getRawOffset(0, ch); // using a getRawOffset(ch) makes no diff }
java
protected final int getBMPOffset(char ch) { return (ch >= UTF16.LEAD_SURROGATE_MIN_VALUE && ch <= UTF16.LEAD_SURROGATE_MAX_VALUE) ? getRawOffset(LEAD_INDEX_OFFSET_, ch) : getRawOffset(0, ch); // using a getRawOffset(ch) makes no diff }
[ "protected", "final", "int", "getBMPOffset", "(", "char", "ch", ")", "{", "return", "(", "ch", ">=", "UTF16", ".", "LEAD_SURROGATE_MIN_VALUE", "&&", "ch", "<=", "UTF16", ".", "LEAD_SURROGATE_MAX_VALUE", ")", "?", "getRawOffset", "(", "LEAD_INDEX_OFFSET_", ",", ...
Gets the offset to data which the BMP character points to Treats a lead surrogate as a normal code point. @param ch BMP character @return offset to data
[ "Gets", "the", "offset", "to", "data", "which", "the", "BMP", "character", "points", "to", "Treats", "a", "lead", "surrogate", "as", "a", "normal", "code", "point", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie.java#L310-L317
34,421
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie.java
Trie.checkHeader
private final boolean checkHeader(int signature) { // check the signature // Trie in big-endian US-ASCII (0x54726965). // Magic number to authenticate the data. if (signature != HEADER_SIGNATURE_) { return false; } if ((m_options_ & HEADER_OPTIONS_SHIFT_M...
java
private final boolean checkHeader(int signature) { // check the signature // Trie in big-endian US-ASCII (0x54726965). // Magic number to authenticate the data. if (signature != HEADER_SIGNATURE_) { return false; } if ((m_options_ & HEADER_OPTIONS_SHIFT_M...
[ "private", "final", "boolean", "checkHeader", "(", "int", "signature", ")", "{", "// check the signature", "// Trie in big-endian US-ASCII (0x54726965).", "// Magic number to authenticate the data.", "if", "(", "signature", "!=", "HEADER_SIGNATURE_", ")", "{", "return", "fals...
Authenticates raw data header. Checking the header information, signature and options. @param signature This contains the options and type of a Trie @return true if the header is authenticated valid
[ "Authenticates", "raw", "data", "header", ".", "Checking", "the", "header", "information", "signature", "and", "options", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie.java#L441-L458
34,422
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/objects/XObjectFactory.java
XObjectFactory.create
static public XObject create(Object val) { XObject result; if (val instanceof XObject) { result = (XObject) val; } else if (val instanceof String) { result = new XString((String) val); } else if (val instanceof Boolean) { result = new XBoolean((Boolean)val); ...
java
static public XObject create(Object val) { XObject result; if (val instanceof XObject) { result = (XObject) val; } else if (val instanceof String) { result = new XString((String) val); } else if (val instanceof Boolean) { result = new XBoolean((Boolean)val); ...
[ "static", "public", "XObject", "create", "(", "Object", "val", ")", "{", "XObject", "result", ";", "if", "(", "val", "instanceof", "XObject", ")", "{", "result", "=", "(", "XObject", ")", "val", ";", "}", "else", "if", "(", "val", "instanceof", "String...
Create the right XObject based on the type of the object passed. This function can not make an XObject that exposes DOM Nodes, NodeLists, and NodeIterators to the XSLT stylesheet as node-sets. @param val The java object which this object will wrap. @return the right XObject based on the type of the object passed.
[ "Create", "the", "right", "XObject", "based", "on", "the", "type", "of", "the", "object", "passed", ".", "This", "function", "can", "not", "make", "an", "XObject", "that", "exposes", "DOM", "Nodes", "NodeLists", "and", "NodeIterators", "to", "the", "XSLT", ...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/objects/XObjectFactory.java#L43-L70
34,423
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/RevocationChecker.java
RevocationChecker.certCanSignCrl
static boolean certCanSignCrl(X509Certificate cert) { // if the cert doesn't include the key usage ext, or // the key usage ext asserts cRLSigning, return true, // otherwise return false. boolean[] keyUsage = cert.getKeyUsage(); if (keyUsage != null) { return keyUsage...
java
static boolean certCanSignCrl(X509Certificate cert) { // if the cert doesn't include the key usage ext, or // the key usage ext asserts cRLSigning, return true, // otherwise return false. boolean[] keyUsage = cert.getKeyUsage(); if (keyUsage != null) { return keyUsage...
[ "static", "boolean", "certCanSignCrl", "(", "X509Certificate", "cert", ")", "{", "// if the cert doesn't include the key usage ext, or", "// the key usage ext asserts cRLSigning, return true,", "// otherwise return false.", "boolean", "[", "]", "keyUsage", "=", "cert", ".", "getK...
Checks that a cert can be used to verify a CRL. @param cert an X509Certificate to check @return a boolean specifying if the cert is allowed to vouch for the validity of a CRL
[ "Checks", "that", "a", "cert", "can", "be", "used", "to", "verify", "a", "CRL", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/RevocationChecker.java#L768-L777
34,424
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/LocaleUtility.java
LocaleUtility.getLocaleFromName
public static Locale getLocaleFromName(String name) { String language = ""; String country = ""; String variant = ""; int i1 = name.indexOf('_'); if (i1 < 0) { language = name; } else { language = name.substring(0, i1); ++i1; ...
java
public static Locale getLocaleFromName(String name) { String language = ""; String country = ""; String variant = ""; int i1 = name.indexOf('_'); if (i1 < 0) { language = name; } else { language = name.substring(0, i1); ++i1; ...
[ "public", "static", "Locale", "getLocaleFromName", "(", "String", "name", ")", "{", "String", "language", "=", "\"\"", ";", "String", "country", "=", "\"\"", ";", "String", "variant", "=", "\"\"", ";", "int", "i1", "=", "name", ".", "indexOf", "(", "'", ...
A helper function to convert a string of the form aa_BB_CC to a locale object. Why isn't this in Locale?
[ "A", "helper", "function", "to", "convert", "a", "string", "of", "the", "form", "aa_BB_CC", "to", "a", "locale", "object", ".", "Why", "isn", "t", "this", "in", "Locale?" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/LocaleUtility.java#L27-L48
34,425
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java
Trie2Writable.set
public Trie2Writable set(int c, int value) { if (c<0 || c>0x10ffff) { throw new IllegalArgumentException("Invalid code point."); } set(c, true, value); fHash = 0; return this; }
java
public Trie2Writable set(int c, int value) { if (c<0 || c>0x10ffff) { throw new IllegalArgumentException("Invalid code point."); } set(c, true, value); fHash = 0; return this; }
[ "public", "Trie2Writable", "set", "(", "int", "c", ",", "int", "value", ")", "{", "if", "(", "c", "<", "0", "||", "c", ">", "0x10ffff", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Invalid code point.\"", ")", ";", "}", "set", "(", "c"...
Set a value for a code point. @param c the code point @param value the value
[ "Set", "a", "value", "for", "a", "code", "point", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java#L295-L302
34,426
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java
Trie2Writable.fillBlock
private void fillBlock(int block, /*UChar32*/ int start, /*UChar32*/ int limit, int value, int initialValue, boolean overwrite) { int i; int pLimit = block+limit; if(overwrite) { for (i=block+start; i<pLimit; i++) { data[i] = value; } ...
java
private void fillBlock(int block, /*UChar32*/ int start, /*UChar32*/ int limit, int value, int initialValue, boolean overwrite) { int i; int pLimit = block+limit; if(overwrite) { for (i=block+start; i<pLimit; i++) { data[i] = value; } ...
[ "private", "void", "fillBlock", "(", "int", "block", ",", "/*UChar32*/", "int", "start", ",", "/*UChar32*/", "int", "limit", ",", "int", "value", ",", "int", "initialValue", ",", "boolean", "overwrite", ")", "{", "int", "i", ";", "int", "pLimit", "=", "b...
initialValue is ignored if overwrite=TRUE @hide draft / provisional / internal are hidden on Android
[ "initialValue", "is", "ignored", "if", "overwrite", "=", "TRUE" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java#L364-L379
34,427
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java
Trie2Writable.setRange
public Trie2Writable setRange(Trie2.Range range, boolean overwrite) { fHash = 0; if (range.leadSurrogate) { for (int c=range.startCodePoint; c<=range.endCodePoint; c++) { if (overwrite || getFromU16SingleLead((char)c) == this.initialValue) { set...
java
public Trie2Writable setRange(Trie2.Range range, boolean overwrite) { fHash = 0; if (range.leadSurrogate) { for (int c=range.startCodePoint; c<=range.endCodePoint; c++) { if (overwrite || getFromU16SingleLead((char)c) == this.initialValue) { set...
[ "public", "Trie2Writable", "setRange", "(", "Trie2", ".", "Range", "range", ",", "boolean", "overwrite", ")", "{", "fHash", "=", "0", ";", "if", "(", "range", ".", "leadSurrogate", ")", "{", "for", "(", "int", "c", "=", "range", ".", "startCodePoint", ...
Set the values from a Trie2.Range. All code points within the range will get the value if overwrite is TRUE or if the old value is the initial value. Ranges with the lead surrogate flag set will set the alternate lead-surrogate values in the Trie, rather than the code point values. This function is intended to work ...
[ "Set", "the", "values", "from", "a", "Trie2", ".", "Range", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java#L528-L540
34,428
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java
Trie2Writable.toTrie2_16
public Trie2_16 toTrie2_16() { Trie2_16 frozenTrie = new Trie2_16(); freeze(frozenTrie, ValueWidth.BITS_16); return frozenTrie; }
java
public Trie2_16 toTrie2_16() { Trie2_16 frozenTrie = new Trie2_16(); freeze(frozenTrie, ValueWidth.BITS_16); return frozenTrie; }
[ "public", "Trie2_16", "toTrie2_16", "(", ")", "{", "Trie2_16", "frozenTrie", "=", "new", "Trie2_16", "(", ")", ";", "freeze", "(", "frozenTrie", ",", "ValueWidth", ".", "BITS_16", ")", ";", "return", "frozenTrie", ";", "}" ]
Produce an optimized, read-only Trie2_16 from this writable Trie. The data values outside of the range that will fit in a 16 bit unsigned value will be truncated.
[ "Produce", "an", "optimized", "read", "-", "only", "Trie2_16", "from", "this", "writable", "Trie", ".", "The", "data", "values", "outside", "of", "the", "range", "that", "will", "fit", "in", "a", "16", "bit", "unsigned", "value", "will", "be", "truncated",...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java#L986-L990
34,429
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java
Trie2Writable.toTrie2_32
public Trie2_32 toTrie2_32() { Trie2_32 frozenTrie = new Trie2_32(); freeze(frozenTrie, ValueWidth.BITS_32); return frozenTrie; }
java
public Trie2_32 toTrie2_32() { Trie2_32 frozenTrie = new Trie2_32(); freeze(frozenTrie, ValueWidth.BITS_32); return frozenTrie; }
[ "public", "Trie2_32", "toTrie2_32", "(", ")", "{", "Trie2_32", "frozenTrie", "=", "new", "Trie2_32", "(", ")", ";", "freeze", "(", "frozenTrie", ",", "ValueWidth", ".", "BITS_32", ")", ";", "return", "frozenTrie", ";", "}" ]
Produce an optimized, read-only Trie2_32 from this writable Trie.
[ "Produce", "an", "optimized", "read", "-", "only", "Trie2_32", "from", "this", "writable", "Trie", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Trie2Writable.java#L997-L1001
34,430
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeUnitFormat.java
TimeUnitFormat.setLocale
@Deprecated public TimeUnitFormat setLocale(ULocale locale) { if (locale != this.locale){ mf = mf.withLocale(locale); // Needed for getLocale(ULocale.VALID_LOCALE) setLocale(locale, locale); this.locale = locale; isReady = false; } ...
java
@Deprecated public TimeUnitFormat setLocale(ULocale locale) { if (locale != this.locale){ mf = mf.withLocale(locale); // Needed for getLocale(ULocale.VALID_LOCALE) setLocale(locale, locale); this.locale = locale; isReady = false; } ...
[ "@", "Deprecated", "public", "TimeUnitFormat", "setLocale", "(", "ULocale", "locale", ")", "{", "if", "(", "locale", "!=", "this", ".", "locale", ")", "{", "mf", "=", "mf", ".", "withLocale", "(", "locale", ")", ";", "// Needed for getLocale(ULocale.VALID_LOCA...
Set the locale used for formatting or parsing. @param locale locale of this time unit formatter. @return this, for chaining. @deprecated ICU 53 see {@link MeasureFormat}.
[ "Set", "the", "locale", "used", "for", "formatting", "or", "parsing", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeUnitFormat.java#L192-L203
34,431
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeUnitFormat.java
TimeUnitFormat.format
@Deprecated public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) { return mf.format(obj, toAppendTo, pos); }
java
@Deprecated public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) { return mf.format(obj, toAppendTo, pos); }
[ "@", "Deprecated", "public", "StringBuffer", "format", "(", "Object", "obj", ",", "StringBuffer", "toAppendTo", ",", "FieldPosition", "pos", ")", "{", "return", "mf", ".", "format", "(", "obj", ",", "toAppendTo", ",", "pos", ")", ";", "}" ]
Format a TimeUnitAmount. @see java.text.Format#format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition) @deprecated ICU 53 see {@link MeasureFormat}.
[ "Format", "a", "TimeUnitAmount", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeUnitFormat.java#L249-L253
34,432
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeUnitFormat.java
TimeUnitFormat.parseObject
@Deprecated @Override public TimeUnitAmount parseObject(String source, ParsePosition pos) { if (!isReady) { setup(); } Number resultNumber = null; TimeUnit resultTimeUnit = null; int oldPos = pos.getIndex(); int newPos = -1; int longestParseDis...
java
@Deprecated @Override public TimeUnitAmount parseObject(String source, ParsePosition pos) { if (!isReady) { setup(); } Number resultNumber = null; TimeUnit resultTimeUnit = null; int oldPos = pos.getIndex(); int newPos = -1; int longestParseDis...
[ "@", "Deprecated", "@", "Override", "public", "TimeUnitAmount", "parseObject", "(", "String", "source", ",", "ParsePosition", "pos", ")", "{", "if", "(", "!", "isReady", ")", "{", "setup", "(", ")", ";", "}", "Number", "resultNumber", "=", "null", ";", "...
Parse a TimeUnitAmount. @see java.text.Format#parseObject(java.lang.String, java.text.ParsePosition) @deprecated ICU 53 see {@link MeasureFormat}.
[ "Parse", "a", "TimeUnitAmount", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeUnitFormat.java#L260-L346
34,433
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeUnitFormat.java
TimeUnitFormat.searchInTree
private void searchInTree(String resourceKey, int styl, TimeUnit timeUnit, String srcPluralCount, String searchPluralCount, Map<String, Object[]> countToPatterns) { ULocale parentLocale = locale; String srcTimeUnitName = timeUnit.toString(); while (parentLocale != null) { ...
java
private void searchInTree(String resourceKey, int styl, TimeUnit timeUnit, String srcPluralCount, String searchPluralCount, Map<String, Object[]> countToPatterns) { ULocale parentLocale = locale; String srcTimeUnitName = timeUnit.toString(); while (parentLocale != null) { ...
[ "private", "void", "searchInTree", "(", "String", "resourceKey", ",", "int", "styl", ",", "TimeUnit", "timeUnit", ",", "String", "srcPluralCount", ",", "String", "searchPluralCount", ",", "Map", "<", "String", ",", "Object", "[", "]", ">", "countToPatterns", "...
then, "other" is the searchPluralCount.
[ "then", "other", "is", "the", "searchPluralCount", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/TimeUnitFormat.java#L506-L569
34,434
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormatSymbols.java
DecimalFormatSymbols.initialize
private void initialize( ULocale locale ) { this.requestedLocale = locale.toLocale(); this.ulocale = locale; CacheData data = cachedLocaleData.getInstance(locale, null /* unused */); setLocale(data.validLocale, data.validLocale); setDigitStrings(data.digits); String[] num...
java
private void initialize( ULocale locale ) { this.requestedLocale = locale.toLocale(); this.ulocale = locale; CacheData data = cachedLocaleData.getInstance(locale, null /* unused */); setLocale(data.validLocale, data.validLocale); setDigitStrings(data.digits); String[] num...
[ "private", "void", "initialize", "(", "ULocale", "locale", ")", "{", "this", ".", "requestedLocale", "=", "locale", ".", "toLocale", "(", ")", ";", "this", ".", "ulocale", "=", "locale", ";", "CacheData", "data", "=", "cachedLocaleData", ".", "getInstance", ...
Initializes the symbols from the locale data.
[ "Initializes", "the", "symbols", "from", "the", "locale", "data", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormatSymbols.java#L1213-L1268
34,435
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java
BasicChecker.init
@Override public void init(boolean forward) throws CertPathValidatorException { if (!forward) { prevPubKey = trustedPubKey; if (PKIX.isDSAPublicKeyWithoutParams(prevPubKey)) { // If TrustAnchor is a DSA public key and it has no params, it // cannot be ...
java
@Override public void init(boolean forward) throws CertPathValidatorException { if (!forward) { prevPubKey = trustedPubKey; if (PKIX.isDSAPublicKeyWithoutParams(prevPubKey)) { // If TrustAnchor is a DSA public key and it has no params, it // cannot be ...
[ "@", "Override", "public", "void", "init", "(", "boolean", "forward", ")", "throws", "CertPathValidatorException", "{", "if", "(", "!", "forward", ")", "{", "prevPubKey", "=", "trustedPubKey", ";", "if", "(", "PKIX", ".", "isDSAPublicKeyWithoutParams", "(", "p...
Initializes the internal state of the checker from parameters specified in the constructor.
[ "Initializes", "the", "internal", "state", "of", "the", "checker", "from", "parameters", "specified", "in", "the", "constructor", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java#L100-L115
34,436
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java
BasicChecker.verifySignature
private void verifySignature(X509Certificate cert) throws CertPathValidatorException { String msg = "signature"; if (debug != null) debug.println("---checking " + msg + "..."); try { if (sigProvider != null) { cert.verify(prevPubKey, sigProvid...
java
private void verifySignature(X509Certificate cert) throws CertPathValidatorException { String msg = "signature"; if (debug != null) debug.println("---checking " + msg + "..."); try { if (sigProvider != null) { cert.verify(prevPubKey, sigProvid...
[ "private", "void", "verifySignature", "(", "X509Certificate", "cert", ")", "throws", "CertPathValidatorException", "{", "String", "msg", "=", "\"signature\"", ";", "if", "(", "debug", "!=", "null", ")", "debug", ".", "println", "(", "\"---checking \"", "+", "msg...
Verifies the signature on the certificate using the previous public key. @param cert the X509Certificate @throws CertPathValidatorException if certificate does not verify
[ "Verifies", "the", "signature", "on", "the", "certificate", "using", "the", "previous", "public", "key", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java#L158-L181
34,437
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java
BasicChecker.verifyTimestamp
private void verifyTimestamp(X509Certificate cert) throws CertPathValidatorException { String msg = "timestamp"; if (debug != null) debug.println("---checking " + msg + ":" + date.toString() + "..."); try { cert.checkValidity(date); } catch (Certifica...
java
private void verifyTimestamp(X509Certificate cert) throws CertPathValidatorException { String msg = "timestamp"; if (debug != null) debug.println("---checking " + msg + ":" + date.toString() + "..."); try { cert.checkValidity(date); } catch (Certifica...
[ "private", "void", "verifyTimestamp", "(", "X509Certificate", "cert", ")", "throws", "CertPathValidatorException", "{", "String", "msg", "=", "\"timestamp\"", ";", "if", "(", "debug", "!=", "null", ")", "debug", ".", "println", "(", "\"---checking \"", "+", "msg...
Internal method to verify the timestamp on a certificate
[ "Internal", "method", "to", "verify", "the", "timestamp", "on", "a", "certificate" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java#L186-L205
34,438
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java
BasicChecker.verifyNameChaining
private void verifyNameChaining(X509Certificate cert) throws CertPathValidatorException { if (prevSubject != null) { String msg = "subject/issuer name chaining"; if (debug != null) debug.println("---checking " + msg + "..."); X500Principal currIs...
java
private void verifyNameChaining(X509Certificate cert) throws CertPathValidatorException { if (prevSubject != null) { String msg = "subject/issuer name chaining"; if (debug != null) debug.println("---checking " + msg + "..."); X500Principal currIs...
[ "private", "void", "verifyNameChaining", "(", "X509Certificate", "cert", ")", "throws", "CertPathValidatorException", "{", "if", "(", "prevSubject", "!=", "null", ")", "{", "String", "msg", "=", "\"subject/issuer name chaining\"", ";", "if", "(", "debug", "!=", "n...
Internal method to check that cert has a valid DN to be next in a chain
[ "Internal", "method", "to", "check", "that", "cert", "has", "a", "valid", "DN", "to", "be", "next", "in", "a", "chain" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java#L210-L238
34,439
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java
BasicChecker.updateState
private void updateState(X509Certificate currCert) throws CertPathValidatorException { PublicKey cKey = currCert.getPublicKey(); if (debug != null) { debug.println("BasicChecker.updateState issuer: " + currCert.getIssuerX500Principal().toString() + "; subject: " +...
java
private void updateState(X509Certificate currCert) throws CertPathValidatorException { PublicKey cKey = currCert.getPublicKey(); if (debug != null) { debug.println("BasicChecker.updateState issuer: " + currCert.getIssuerX500Principal().toString() + "; subject: " +...
[ "private", "void", "updateState", "(", "X509Certificate", "currCert", ")", "throws", "CertPathValidatorException", "{", "PublicKey", "cKey", "=", "currCert", ".", "getPublicKey", "(", ")", ";", "if", "(", "debug", "!=", "null", ")", "{", "debug", ".", "println...
Internal method to manage state information at each iteration
[ "Internal", "method", "to", "manage", "state", "information", "at", "each", "iteration" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java#L243-L261
34,440
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java
BasicChecker.makeInheritedParamsKey
static PublicKey makeInheritedParamsKey(PublicKey keyValueKey, PublicKey keyParamsKey) throws CertPathValidatorException { if (!(keyValueKey instanceof DSAPublicKey) || !(keyParamsKey instanceof DSAPublicKey)) throw new CertPathValidatorException("Input key is not " + ...
java
static PublicKey makeInheritedParamsKey(PublicKey keyValueKey, PublicKey keyParamsKey) throws CertPathValidatorException { if (!(keyValueKey instanceof DSAPublicKey) || !(keyParamsKey instanceof DSAPublicKey)) throw new CertPathValidatorException("Input key is not " + ...
[ "static", "PublicKey", "makeInheritedParamsKey", "(", "PublicKey", "keyValueKey", ",", "PublicKey", "keyParamsKey", ")", "throws", "CertPathValidatorException", "{", "if", "(", "!", "(", "keyValueKey", "instanceof", "DSAPublicKey", ")", "||", "!", "(", "keyParamsKey",...
Internal method to create a new key with inherited key parameters. @param keyValueKey key from which to obtain key value @param keyParamsKey key from which to obtain key parameters @return new public key having value and parameters @throws CertPathValidatorException if keys are not appropriate types for this operation
[ "Internal", "method", "to", "create", "a", "new", "key", "with", "inherited", "key", "parameters", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/provider/certpath/BasicChecker.java#L272-L296
34,441
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
ElemNumber.getCountMatchPattern
XPath getCountMatchPattern(XPathContext support, int contextNode) throws javax.xml.transform.TransformerException { XPath countMatchPattern = m_countMatchPattern; DTM dtm = support.getDTM(contextNode); if (null == countMatchPattern) { switch (dtm.getNodeType(contextNode)) { ...
java
XPath getCountMatchPattern(XPathContext support, int contextNode) throws javax.xml.transform.TransformerException { XPath countMatchPattern = m_countMatchPattern; DTM dtm = support.getDTM(contextNode); if (null == countMatchPattern) { switch (dtm.getNodeType(contextNode)) { ...
[ "XPath", "getCountMatchPattern", "(", "XPathContext", "support", ",", "int", "contextNode", ")", "throws", "javax", ".", "xml", ".", "transform", ".", "TransformerException", "{", "XPath", "countMatchPattern", "=", "m_countMatchPattern", ";", "DTM", "dtm", "=", "s...
Get the count match pattern, or a default value. @param support The XPath runtime state for this. @param contextNode The node that "." expresses. @return the count match pattern, or a default value. @throws javax.xml.transform.TransformerException
[ "Get", "the", "count", "match", "pattern", "or", "a", "default", "value", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java#L718-L775
34,442
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
ElemNumber.getPreviousNode
public int getPreviousNode(XPathContext xctxt, int pos) throws TransformerException { XPath countMatchPattern = getCountMatchPattern(xctxt, pos); DTM dtm = xctxt.getDTM(pos); if (Constants.NUMBERLEVEL_ANY == m_level) { XPath fromMatchPattern = m_fromMatchPattern; // Do a backw...
java
public int getPreviousNode(XPathContext xctxt, int pos) throws TransformerException { XPath countMatchPattern = getCountMatchPattern(xctxt, pos); DTM dtm = xctxt.getDTM(pos); if (Constants.NUMBERLEVEL_ANY == m_level) { XPath fromMatchPattern = m_fromMatchPattern; // Do a backw...
[ "public", "int", "getPreviousNode", "(", "XPathContext", "xctxt", ",", "int", "pos", ")", "throws", "TransformerException", "{", "XPath", "countMatchPattern", "=", "getCountMatchPattern", "(", "xctxt", ",", "pos", ")", ";", "DTM", "dtm", "=", "xctxt", ".", "ge...
Get the previous node to be counted. @param xctxt The XPath runtime state for this. @param pos The current node @return the previous node to be counted. @throws TransformerException
[ "Get", "the", "previous", "node", "to", "be", "counted", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java#L852-L930
34,443
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
ElemNumber.getTargetNode
public int getTargetNode(XPathContext xctxt, int sourceNode) throws TransformerException { int target = DTM.NULL; XPath countMatchPattern = getCountMatchPattern(xctxt, sourceNode); if (Constants.NUMBERLEVEL_ANY == m_level) { target = findPrecedingOrAncestorOrSelf(xctxt, m_fromMatchPa...
java
public int getTargetNode(XPathContext xctxt, int sourceNode) throws TransformerException { int target = DTM.NULL; XPath countMatchPattern = getCountMatchPattern(xctxt, sourceNode); if (Constants.NUMBERLEVEL_ANY == m_level) { target = findPrecedingOrAncestorOrSelf(xctxt, m_fromMatchPa...
[ "public", "int", "getTargetNode", "(", "XPathContext", "xctxt", ",", "int", "sourceNode", ")", "throws", "TransformerException", "{", "int", "target", "=", "DTM", ".", "NULL", ";", "XPath", "countMatchPattern", "=", "getCountMatchPattern", "(", "xctxt", ",", "so...
Get the target node that will be counted.. @param xctxt The XPath runtime state for this. @param sourceNode non-null reference to the <a href="http://www.w3.org/TR/xslt#dt-current-node">current source node</a>. @return the target node that will be counted @throws TransformerException
[ "Get", "the", "target", "node", "that", "will", "be", "counted", ".." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java#L942-L962
34,444
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
ElemNumber.getMatchingAncestors
NodeVector getMatchingAncestors( XPathContext xctxt, int node, boolean stopAtFirstFound) throws javax.xml.transform.TransformerException { NodeSetDTM ancestors = new NodeSetDTM(xctxt.getDTMManager()); XPath countMatchPattern = getCountMatchPattern(xctxt, node); DTM dtm = xctxt.getDT...
java
NodeVector getMatchingAncestors( XPathContext xctxt, int node, boolean stopAtFirstFound) throws javax.xml.transform.TransformerException { NodeSetDTM ancestors = new NodeSetDTM(xctxt.getDTMManager()); XPath countMatchPattern = getCountMatchPattern(xctxt, node); DTM dtm = xctxt.getDT...
[ "NodeVector", "getMatchingAncestors", "(", "XPathContext", "xctxt", ",", "int", "node", ",", "boolean", "stopAtFirstFound", ")", "throws", "javax", ".", "xml", ".", "transform", ".", "TransformerException", "{", "NodeSetDTM", "ancestors", "=", "new", "NodeSetDTM", ...
Get the ancestors, up to the root, that match the pattern. @param xctxt The XPath runtime state for this. @param node Count this node and it's ancestors. @param stopAtFirstFound Flag indicating to stop after the first node is found (difference between level = single or multiple) @return The number of ancestors that ma...
[ "Get", "the", "ancestors", "up", "to", "the", "root", "that", "match", "the", "pattern", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java#L977-L1020
34,445
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
ElemNumber.getLocale
Locale getLocale(TransformerImpl transformer, int contextNode) throws TransformerException { Locale locale = null; if (null != m_lang_avt) { XPathContext xctxt = transformer.getXPathContext(); String langValue = m_lang_avt.evaluate(xctxt, contextNode, this); if (null != lang...
java
Locale getLocale(TransformerImpl transformer, int contextNode) throws TransformerException { Locale locale = null; if (null != m_lang_avt) { XPathContext xctxt = transformer.getXPathContext(); String langValue = m_lang_avt.evaluate(xctxt, contextNode, this); if (null != lang...
[ "Locale", "getLocale", "(", "TransformerImpl", "transformer", ",", "int", "contextNode", ")", "throws", "TransformerException", "{", "Locale", "locale", "=", "null", ";", "if", "(", "null", "!=", "m_lang_avt", ")", "{", "XPathContext", "xctxt", "=", "transformer...
Get the locale we should be using. @param transformer non-null reference to the the current transform-time state. @param contextNode The node that "." expresses. @return The locale to use. May be specified by "lang" attribute, but if not, use default locale on the system. @throws TransformerException
[ "Get", "the", "locale", "we", "should", "be", "using", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java#L1033-L1069
34,446
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
ElemNumber.getNumberFormatter
private DecimalFormat getNumberFormatter( TransformerImpl transformer, int contextNode) throws TransformerException { // Patch from Steven Serocki // Maybe we really want to do the clone in getLocale() and return // a clone of the default Locale?? Locale locale = (Locale)getLocale(transfor...
java
private DecimalFormat getNumberFormatter( TransformerImpl transformer, int contextNode) throws TransformerException { // Patch from Steven Serocki // Maybe we really want to do the clone in getLocale() and return // a clone of the default Locale?? Locale locale = (Locale)getLocale(transfor...
[ "private", "DecimalFormat", "getNumberFormatter", "(", "TransformerImpl", "transformer", ",", "int", "contextNode", ")", "throws", "TransformerException", "{", "// Patch from Steven Serocki", "// Maybe we really want to do the clone in getLocale() and return ", "// a clone of the defa...
Get the number formatter to be used the format the numbers @param transformer non-null reference to the the current transform-time state. @param contextNode The node that "." expresses. ($objectName$) @return The number formatter to be used @throws TransformerException
[ "Get", "the", "number", "formatter", "to", "be", "used", "the", "format", "the", "numbers" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java#L1081-L1142
34,447
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
ElemNumber.formatNumberList
String formatNumberList( TransformerImpl transformer, long[] list, int contextNode) throws TransformerException { String numStr; FastStringBuffer formattedNumber = StringBufferPool.get(); try { int nNumbers = list.length, numberWidth = 1; char numberType = '1'; ...
java
String formatNumberList( TransformerImpl transformer, long[] list, int contextNode) throws TransformerException { String numStr; FastStringBuffer formattedNumber = StringBufferPool.get(); try { int nNumbers = list.length, numberWidth = 1; char numberType = '1'; ...
[ "String", "formatNumberList", "(", "TransformerImpl", "transformer", ",", "long", "[", "]", "list", ",", "int", "contextNode", ")", "throws", "TransformerException", "{", "String", "numStr", ";", "FastStringBuffer", "formattedNumber", "=", "StringBufferPool", ".", "...
Format a vector of numbers into a formatted string. @param transformer non-null reference to the the current transform-time state. @param list Array of one or more long integer numbers. @param contextNode The node that "." expresses. @return String that represents list according to %conversion-atts; attributes. TODO: ...
[ "Format", "a", "vector", "of", "numbers", "into", "a", "formatted", "string", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java#L1157-L1295
34,448
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
ElemNumber.int2singlealphaCount
protected String int2singlealphaCount(long val, CharArrayWrapper table) { int radix = table.getLength(); // TODO: throw error on out of range input if (val > radix) { return getZeroString(); } else return (new Character(table.getChar((int)val - 1))).toString(); // index into ta...
java
protected String int2singlealphaCount(long val, CharArrayWrapper table) { int radix = table.getLength(); // TODO: throw error on out of range input if (val > radix) { return getZeroString(); } else return (new Character(table.getChar((int)val - 1))).toString(); // index into ta...
[ "protected", "String", "int2singlealphaCount", "(", "long", "val", ",", "CharArrayWrapper", "table", ")", "{", "int", "radix", "=", "table", ".", "getLength", "(", ")", ";", "// TODO: throw error on out of range input", "if", "(", "val", ">", "radix", ")", "{",...
Convert a long integer into alphabetic counting, in other words count using the sequence A B C ... Z. @param val Value to convert -- must be greater than zero. @param table a table containing one character for each digit in the radix @return String representing alpha count of number. @see TransformerImpl#DecimalToRoma...
[ "Convert", "a", "long", "integer", "into", "alphabetic", "counting", "in", "other", "words", "count", "using", "the", "sequence", "A", "B", "C", "...", "Z", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java#L1592-L1604
34,449
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java
ElemNumber.long2roman
protected String long2roman(long val, boolean prefixesAreOK) { if (val <= 0) { return getZeroString(); } String roman = ""; int place = 0; if (val <= 3999L) { do { while (val >= m_romanConvertTable[place].m_postValue) { roman += m_romanConvert...
java
protected String long2roman(long val, boolean prefixesAreOK) { if (val <= 0) { return getZeroString(); } String roman = ""; int place = 0; if (val <= 3999L) { do { while (val >= m_romanConvertTable[place].m_postValue) { roman += m_romanConvert...
[ "protected", "String", "long2roman", "(", "long", "val", ",", "boolean", "prefixesAreOK", ")", "{", "if", "(", "val", "<=", "0", ")", "{", "return", "getZeroString", "(", ")", ";", "}", "String", "roman", "=", "\"\"", ";", "int", "place", "=", "0", "...
Convert a long integer into roman numerals. @param val Value to convert. @param prefixesAreOK true_ to enable prefix notation (e.g. 4 = "IV"), false_ to disable prefix notation (e.g. 4 = "IIII"). @return Roman numeral string. @see DecimalToRoman @see m_romanConvertTable
[ "Convert", "a", "long", "integer", "into", "roman", "numerals", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/templates/ElemNumber.java#L1930-L1970
34,450
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/AuthorityKeyIdentifierExtension.java
AuthorityKeyIdentifierExtension.encodeThis
private void encodeThis() throws IOException { if (id == null && names == null && serialNum == null) { this.extensionValue = null; return; } DerOutputStream seq = new DerOutputStream(); DerOutputStream tmp = new DerOutputStream(); if (id != null) { ...
java
private void encodeThis() throws IOException { if (id == null && names == null && serialNum == null) { this.extensionValue = null; return; } DerOutputStream seq = new DerOutputStream(); DerOutputStream tmp = new DerOutputStream(); if (id != null) { ...
[ "private", "void", "encodeThis", "(", ")", "throws", "IOException", "{", "if", "(", "id", "==", "null", "&&", "names", "==", "null", "&&", "serialNum", "==", "null", ")", "{", "this", ".", "extensionValue", "=", "null", ";", "return", ";", "}", "DerOut...
Encode only the extension value
[ "Encode", "only", "the", "extension", "value" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/AuthorityKeyIdentifierExtension.java#L83-L114
34,451
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/AuthorityKeyIdentifierExtension.java
AuthorityKeyIdentifierExtension.getEncodedKeyIdentifier
public byte[] getEncodedKeyIdentifier() throws IOException { if (id != null) { DerOutputStream derOut = new DerOutputStream(); id.encode(derOut); return derOut.toByteArray(); } return null; }
java
public byte[] getEncodedKeyIdentifier() throws IOException { if (id != null) { DerOutputStream derOut = new DerOutputStream(); id.encode(derOut); return derOut.toByteArray(); } return null; }
[ "public", "byte", "[", "]", "getEncodedKeyIdentifier", "(", ")", "throws", "IOException", "{", "if", "(", "id", "!=", "null", ")", "{", "DerOutputStream", "derOut", "=", "new", "DerOutputStream", "(", ")", ";", "id", ".", "encode", "(", "derOut", ")", ";...
Return the encoded key identifier, or null if not specified.
[ "Return", "the", "encoded", "key", "identifier", "or", "null", "if", "not", "specified", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/sun/security/x509/AuthorityKeyIdentifierExtension.java#L314-L321
34,452
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java
Normalizer2Impl.getFCD16
public int getFCD16(int c) { if(c<0) { return 0; } else if(c<0x180) { return tccc180[c]; } else if(c<=0xffff) { if(!singleLeadMightHaveNonZeroFCD16(c)) { return 0; } } return getFCD16FromNormData(c); }
java
public int getFCD16(int c) { if(c<0) { return 0; } else if(c<0x180) { return tccc180[c]; } else if(c<=0xffff) { if(!singleLeadMightHaveNonZeroFCD16(c)) { return 0; } } return getFCD16FromNormData(c); }
[ "public", "int", "getFCD16", "(", "int", "c", ")", "{", "if", "(", "c", "<", "0", ")", "{", "return", "0", ";", "}", "else", "if", "(", "c", "<", "0x180", ")", "{", "return", "tccc180", "[", "c", "]", ";", "}", "else", "if", "(", "c", "<=",...
Returns the FCD data for code point c. @param c A Unicode code point. @return The lccc(c) in bits 15..8 and tccc(c) in bits 7..0.
[ "Returns", "the", "FCD", "data", "for", "code", "point", "c", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java#L709-L718
34,453
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java
Normalizer2Impl.getFCD16FromNormData
public int getFCD16FromNormData(int c) { // Only loops for 1:1 algorithmic mappings. for(;;) { int norm16=getNorm16(c); if(norm16<=minYesNo) { // no decomposition or Hangul syllable, all zeros return 0; } else if(norm16>=MIN_NORMAL_MAYB...
java
public int getFCD16FromNormData(int c) { // Only loops for 1:1 algorithmic mappings. for(;;) { int norm16=getNorm16(c); if(norm16<=minYesNo) { // no decomposition or Hangul syllable, all zeros return 0; } else if(norm16>=MIN_NORMAL_MAYB...
[ "public", "int", "getFCD16FromNormData", "(", "int", "c", ")", "{", "// Only loops for 1:1 algorithmic mappings.", "for", "(", ";", ";", ")", "{", "int", "norm16", "=", "getNorm16", "(", "c", ")", ";", "if", "(", "norm16", "<=", "minYesNo", ")", "{", "// n...
Gets the FCD value from the regular normalization data.
[ "Gets", "the", "FCD", "value", "from", "the", "regular", "normalization", "data", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java#L730-L762
34,454
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java
Normalizer2Impl.getDecomposition
public String getDecomposition(int c) { int decomp=-1; int norm16; for(;;) { if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) { // c does not decompose } else if(isHangul(norm16)) { // Hangul syllable: decompose algorithmically ...
java
public String getDecomposition(int c) { int decomp=-1; int norm16; for(;;) { if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) { // c does not decompose } else if(isHangul(norm16)) { // Hangul syllable: decompose algorithmically ...
[ "public", "String", "getDecomposition", "(", "int", "c", ")", "{", "int", "decomp", "=", "-", "1", ";", "int", "norm16", ";", "for", "(", ";", ";", ")", "{", "if", "(", "c", "<", "minDecompNoCP", "||", "isDecompYes", "(", "norm16", "=", "getNorm16", ...
Gets the decomposition for one code point. @param c code point @return c's decomposition, if it has one; returns null if it does not have a decomposition
[ "Gets", "the", "decomposition", "for", "one", "code", "point", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java#L769-L794
34,455
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java
Normalizer2Impl.getRawDecomposition
public String getRawDecomposition(int c) { // We do not loop in this method because an algorithmic mapping itself // becomes a final result rather than having to be decomposed recursively. int norm16; if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) { // c does not dec...
java
public String getRawDecomposition(int c) { // We do not loop in this method because an algorithmic mapping itself // becomes a final result rather than having to be decomposed recursively. int norm16; if(c<minDecompNoCP || isDecompYes(norm16=getNorm16(c))) { // c does not dec...
[ "public", "String", "getRawDecomposition", "(", "int", "c", ")", "{", "// We do not loop in this method because an algorithmic mapping itself", "// becomes a final result rather than having to be decomposed recursively.", "int", "norm16", ";", "if", "(", "c", "<", "minDecompNoCP", ...
Gets the raw decomposition for one code point. @param c code point @return c's raw decomposition, if it has one; returns null if it does not have a decomposition
[ "Gets", "the", "raw", "decomposition", "for", "one", "code", "point", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java#L801-L837
34,456
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java
Normalizer2Impl.decompose
public Appendable decompose(CharSequence s, StringBuilder dest) { decompose(s, 0, s.length(), dest, s.length()); return dest; }
java
public Appendable decompose(CharSequence s, StringBuilder dest) { decompose(s, 0, s.length(), dest, s.length()); return dest; }
[ "public", "Appendable", "decompose", "(", "CharSequence", "s", ",", "StringBuilder", "dest", ")", "{", "decompose", "(", "s", ",", "0", ",", "s", ".", "length", "(", ")", ",", "dest", ",", "s", ".", "length", "(", ")", ")", ";", "return", "dest", "...
NFD without an NFD Normalizer2 instance.
[ "NFD", "without", "an", "NFD", "Normalizer2", "instance", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java#L930-L933
34,457
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java
Normalizer2Impl.decompose
public void decompose(CharSequence s, int src, int limit, StringBuilder dest, int destLengthEstimate) { if(destLengthEstimate<0) { destLengthEstimate=limit-src; } dest.setLength(0); ReorderingBuffer buffer=new ReorderingBuffer(this, dest, destLengthEstimate...
java
public void decompose(CharSequence s, int src, int limit, StringBuilder dest, int destLengthEstimate) { if(destLengthEstimate<0) { destLengthEstimate=limit-src; } dest.setLength(0); ReorderingBuffer buffer=new ReorderingBuffer(this, dest, destLengthEstimate...
[ "public", "void", "decompose", "(", "CharSequence", "s", ",", "int", "src", ",", "int", "limit", ",", "StringBuilder", "dest", ",", "int", "destLengthEstimate", ")", "{", "if", "(", "destLengthEstimate", "<", "0", ")", "{", "destLengthEstimate", "=", "limit"...
Decomposes s[src, limit[ and writes the result to dest. limit can be NULL if src is NUL-terminated. destLengthEstimate is the initial dest buffer capacity and can be -1.
[ "Decomposes", "s", "[", "src", "limit", "[", "and", "writes", "the", "result", "to", "dest", ".", "limit", "can", "be", "NULL", "if", "src", "is", "NUL", "-", "terminated", ".", "destLengthEstimate", "is", "the", "initial", "dest", "buffer", "capacity", ...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java#L939-L947
34,458
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java
Normalizer2Impl.hasDecompBoundary
public boolean hasDecompBoundary(int c, boolean before) { for(;;) { if(c<minDecompNoCP) { return true; } int norm16=getNorm16(c); if(isHangul(norm16) || isDecompYesAndZeroCC(norm16)) { return true; } else if(norm16>MIN_N...
java
public boolean hasDecompBoundary(int c, boolean before) { for(;;) { if(c<minDecompNoCP) { return true; } int norm16=getNorm16(c); if(isHangul(norm16) || isDecompYesAndZeroCC(norm16)) { return true; } else if(norm16>MIN_N...
[ "public", "boolean", "hasDecompBoundary", "(", "int", "c", ",", "boolean", "before", ")", "{", "for", "(", ";", ";", ")", "{", "if", "(", "c", "<", "minDecompNoCP", ")", "{", "return", "true", ";", "}", "int", "norm16", "=", "getNorm16", "(", "c", ...
at the cost of building the FCD trie for a decomposition normalizer.
[ "at", "the", "cost", "of", "building", "the", "FCD", "trie", "for", "a", "decomposition", "normalizer", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java#L1579-L1612
34,459
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java
Normalizer2Impl.decomposeShort
public void decomposeShort(CharSequence s, int src, int limit, ReorderingBuffer buffer) { while(src<limit) { int c=Character.codePointAt(s, src); src+=Character.charCount(c); decompose(c, getNorm16(c), buffer); } }
java
public void decomposeShort(CharSequence s, int src, int limit, ReorderingBuffer buffer) { while(src<limit) { int c=Character.codePointAt(s, src); src+=Character.charCount(c); decompose(c, getNorm16(c), buffer); } }
[ "public", "void", "decomposeShort", "(", "CharSequence", "s", ",", "int", "src", ",", "int", "limit", ",", "ReorderingBuffer", "buffer", ")", "{", "while", "(", "src", "<", "limit", ")", "{", "int", "c", "=", "Character", ".", "codePointAt", "(", "s", ...
Public in Java for collation implementation code.
[ "Public", "in", "Java", "for", "collation", "implementation", "code", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java#L1765-L1772
34,460
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java
Normalizer2Impl.combine
private static int combine(String compositions, int list, int trail) { int key1, firstUnit; if(trail<COMP_1_TRAIL_LIMIT) { // trail character is 0..33FF // result entry may have 2 or 3 units key1=(trail<<1); while(key1>(firstUnit=compositions.charAt(list))...
java
private static int combine(String compositions, int list, int trail) { int key1, firstUnit; if(trail<COMP_1_TRAIL_LIMIT) { // trail character is 0..33FF // result entry may have 2 or 3 units key1=(trail<<1); while(key1>(firstUnit=compositions.charAt(list))...
[ "private", "static", "int", "combine", "(", "String", "compositions", ",", "int", "list", ",", "int", "trail", ")", "{", "int", "key1", ",", "firstUnit", ";", "if", "(", "trail", "<", "COMP_1_TRAIL_LIMIT", ")", "{", "// trail character is 0..33FF", "// result ...
Finds the recomposition result for a forward-combining "lead" character, specified with a pointer to its compositions list, and a backward-combining "trail" character. <p>If the lead and trail characters combine, then this function returns the following "compositeAndFwd" value: <pre> Bits 21..1 composite character Bi...
[ "Finds", "the", "recomposition", "result", "for", "a", "forward", "-", "combining", "lead", "character", "specified", "with", "a", "pointer", "to", "its", "compositions", "list", "and", "a", "backward", "-", "combining", "trail", "character", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/Normalizer2Impl.java#L1830-L1873
34,461
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.isGroupingPosition
private boolean isGroupingPosition(int pos) { boolean result = false; if (isGroupingUsed() && (pos > 0) && (groupingSize > 0)) { if ((groupingSize2 > 0) && (pos > groupingSize)) { result = ((pos - groupingSize) % groupingSize2) == 0; } else { resul...
java
private boolean isGroupingPosition(int pos) { boolean result = false; if (isGroupingUsed() && (pos > 0) && (groupingSize > 0)) { if ((groupingSize2 > 0) && (pos > groupingSize)) { result = ((pos - groupingSize) % groupingSize2) == 0; } else { resul...
[ "private", "boolean", "isGroupingPosition", "(", "int", "pos", ")", "{", "boolean", "result", "=", "false", ";", "if", "(", "isGroupingUsed", "(", ")", "&&", "(", "pos", ">", "0", ")", "&&", "(", "groupingSize", ">", "0", ")", ")", "{", "if", "(", ...
Returns true if a grouping separator belongs at the given position, based on whether grouping is in use and the values of the primary and secondary grouping interval. @param pos the number of integer digits to the right of the current position. Zero indicates the position after the rightmost integer digit. @return tru...
[ "Returns", "true", "if", "a", "grouping", "separator", "belongs", "at", "the", "given", "position", "based", "on", "whether", "grouping", "is", "in", "use", "and", "the", "values", "of", "the", "primary", "and", "secondary", "grouping", "interval", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L1237-L1247
34,462
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.getEquivalentDecimals
private UnicodeSet getEquivalentDecimals(String decimal, boolean strictParse) { UnicodeSet equivSet = UnicodeSet.EMPTY; if (strictParse) { if (strictDotEquivalents.contains(decimal)) { equivSet = strictDotEquivalents; } else if (strictCommaEquivalents.contains(dec...
java
private UnicodeSet getEquivalentDecimals(String decimal, boolean strictParse) { UnicodeSet equivSet = UnicodeSet.EMPTY; if (strictParse) { if (strictDotEquivalents.contains(decimal)) { equivSet = strictDotEquivalents; } else if (strictCommaEquivalents.contains(dec...
[ "private", "UnicodeSet", "getEquivalentDecimals", "(", "String", "decimal", ",", "boolean", "strictParse", ")", "{", "UnicodeSet", "equivSet", "=", "UnicodeSet", ".", "EMPTY", ";", "if", "(", "strictParse", ")", "{", "if", "(", "strictDotEquivalents", ".", "cont...
Returns a set of characters equivalent to the given desimal separator used for parsing number. This method may return an empty set.
[ "Returns", "a", "set", "of", "characters", "equivalent", "to", "the", "given", "desimal", "separator", "used", "for", "parsing", "number", ".", "This", "method", "may", "return", "an", "empty", "set", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L2824-L2840
34,463
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.skipPadding
private final int skipPadding(String text, int position) { while (position < text.length() && text.charAt(position) == pad) { ++position; } return position; }
java
private final int skipPadding(String text, int position) { while (position < text.length() && text.charAt(position) == pad) { ++position; } return position; }
[ "private", "final", "int", "skipPadding", "(", "String", "text", ",", "int", "position", ")", "{", "while", "(", "position", "<", "text", ".", "length", "(", ")", "&&", "text", ".", "charAt", "(", "position", ")", "==", "pad", ")", "{", "++", "positi...
Starting at position, advance past a run of pad characters, if any. Return the index of the first character after position that is not a pad character. Result is >= position.
[ "Starting", "at", "position", "advance", "past", "a", "run", "of", "pad", "characters", "if", "any", ".", "Return", "the", "index", "of", "the", "first", "character", "after", "position", "that", "is", "not", "a", "pad", "character", ".", "Result", "is", ...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L2847-L2852
34,464
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.compareAffix
private int compareAffix(String text, int pos, boolean isNegative, boolean isPrefix, String affixPat, boolean complexCurrencyParsing, int type, Currency[] currency) { if (currency != null || currencyChoice != null || (currencySignCount != CURRENCY_SIGN_COUNT_ZERO && complexCurrencyP...
java
private int compareAffix(String text, int pos, boolean isNegative, boolean isPrefix, String affixPat, boolean complexCurrencyParsing, int type, Currency[] currency) { if (currency != null || currencyChoice != null || (currencySignCount != CURRENCY_SIGN_COUNT_ZERO && complexCurrencyP...
[ "private", "int", "compareAffix", "(", "String", "text", ",", "int", "pos", ",", "boolean", "isNegative", ",", "boolean", "isPrefix", ",", "String", "affixPat", ",", "boolean", "complexCurrencyParsing", ",", "int", "type", ",", "Currency", "[", "]", "currency"...
Returns the length matched by the given affix, or -1 if none. Runs of white space in the affix, match runs of white space in the input. Pattern white space and input white space are determined differently; see code. @param text input text @param pos offset into input at which to begin matching @param isNegative @param...
[ "Returns", "the", "length", "matched", "by", "the", "given", "affix", "or", "-", "1", "if", "none", ".", "Runs", "of", "white", "space", "in", "the", "affix", "match", "runs", "of", "white", "space", "in", "the", "input", ".", "Pattern", "white", "spac...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L2871-L2882
34,465
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.trimMarksFromAffix
private static String trimMarksFromAffix(String affix) { boolean hasBidiMark = false; int idx = 0; for (; idx < affix.length(); idx++) { if (isBidiMark(affix.charAt(idx))) { hasBidiMark = true; break; } } if (!hasBidiMark) {...
java
private static String trimMarksFromAffix(String affix) { boolean hasBidiMark = false; int idx = 0; for (; idx < affix.length(); idx++) { if (isBidiMark(affix.charAt(idx))) { hasBidiMark = true; break; } } if (!hasBidiMark) {...
[ "private", "static", "String", "trimMarksFromAffix", "(", "String", "affix", ")", "{", "boolean", "hasBidiMark", "=", "false", ";", "int", "idx", "=", "0", ";", "for", "(", ";", "idx", "<", "affix", ".", "length", "(", ")", ";", "idx", "++", ")", "{"...
Remove bidi marks from affix
[ "Remove", "bidi", "marks", "from", "affix" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L2894-L2918
34,466
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.compareSimpleAffix
private static int compareSimpleAffix(String affix, String input, int pos) { int start = pos; // Affixes here might consist of sign, currency symbol and related spacing, etc. // For more efficiency we should keep lazily-created trimmed affixes around in // instance variables instead of t...
java
private static int compareSimpleAffix(String affix, String input, int pos) { int start = pos; // Affixes here might consist of sign, currency symbol and related spacing, etc. // For more efficiency we should keep lazily-created trimmed affixes around in // instance variables instead of t...
[ "private", "static", "int", "compareSimpleAffix", "(", "String", "affix", ",", "String", "input", ",", "int", "pos", ")", "{", "int", "start", "=", "pos", ";", "// Affixes here might consist of sign, currency symbol and related spacing, etc.", "// For more efficiency we sho...
Return the length matched by the given affix, or -1 if none. Runs of white space in the affix, match runs of white space in the input. Pattern white space and input white space are determined differently; see code. @param affix pattern string, taken as a literal @param input input text @param pos offset into input at ...
[ "Return", "the", "length", "matched", "by", "the", "given", "affix", "or", "-", "1", "if", "none", ".", "Runs", "of", "white", "space", "in", "the", "affix", "match", "runs", "of", "white", "space", "in", "the", "input", ".", "Pattern", "white", "space...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L2930-L3000
34,467
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.skipPatternWhiteSpace
private static int skipPatternWhiteSpace(String text, int pos) { while (pos < text.length()) { int c = UTF16.charAt(text, pos); if (!PatternProps.isWhiteSpace(c)) { break; } pos += UTF16.getCharCount(c); } return pos; }
java
private static int skipPatternWhiteSpace(String text, int pos) { while (pos < text.length()) { int c = UTF16.charAt(text, pos); if (!PatternProps.isWhiteSpace(c)) { break; } pos += UTF16.getCharCount(c); } return pos; }
[ "private", "static", "int", "skipPatternWhiteSpace", "(", "String", "text", ",", "int", "pos", ")", "{", "while", "(", "pos", "<", "text", ".", "length", "(", ")", ")", "{", "int", "c", "=", "UTF16", ".", "charAt", "(", "text", ",", "pos", ")", ";"...
Skips over a run of zero or more Pattern_White_Space characters at pos in text.
[ "Skips", "over", "a", "run", "of", "zero", "or", "more", "Pattern_White_Space", "characters", "at", "pos", "in", "text", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L3011-L3020
34,468
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.skipBidiMarks
private static int skipBidiMarks(String text, int pos) { while (pos < text.length()) { int c = UTF16.charAt(text, pos); if (!isBidiMark(c)) { break; } pos += UTF16.getCharCount(c); } return pos; }
java
private static int skipBidiMarks(String text, int pos) { while (pos < text.length()) { int c = UTF16.charAt(text, pos); if (!isBidiMark(c)) { break; } pos += UTF16.getCharCount(c); } return pos; }
[ "private", "static", "int", "skipBidiMarks", "(", "String", "text", ",", "int", "pos", ")", "{", "while", "(", "pos", "<", "text", ".", "length", "(", ")", ")", "{", "int", "c", "=", "UTF16", ".", "charAt", "(", "text", ",", "pos", ")", ";", "if"...
Skips over a run of zero or more bidi marks at pos in text.
[ "Skips", "over", "a", "run", "of", "zero", "or", "more", "bidi", "marks", "at", "pos", "in", "text", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L3039-L3048
34,469
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.setDecimalFormatSymbols
public void setDecimalFormatSymbols(DecimalFormatSymbols newSymbols) { symbols = (DecimalFormatSymbols) newSymbols.clone(); setCurrencyForSymbols(); expandAffixes(null); }
java
public void setDecimalFormatSymbols(DecimalFormatSymbols newSymbols) { symbols = (DecimalFormatSymbols) newSymbols.clone(); setCurrencyForSymbols(); expandAffixes(null); }
[ "public", "void", "setDecimalFormatSymbols", "(", "DecimalFormatSymbols", "newSymbols", ")", "{", "symbols", "=", "(", "DecimalFormatSymbols", ")", "newSymbols", ".", "clone", "(", ")", ";", "setCurrencyForSymbols", "(", ")", ";", "expandAffixes", "(", "null", ")"...
Sets the decimal format symbols used by this format. The format uses a copy of the provided symbols. @param newSymbols desired DecimalFormatSymbols @see DecimalFormatSymbols
[ "Sets", "the", "decimal", "format", "symbols", "used", "by", "this", "format", ".", "The", "format", "uses", "a", "copy", "of", "the", "provided", "symbols", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L3244-L3248
34,470
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.setCurrencyForSymbols
private void setCurrencyForSymbols() { // Bug 4212072 Update the affix strings according to symbols in order to keep the // affix strings up to date. [Richard/GCL] // With the introduction of the Currency object, the currency symbols in the DFS // object are ignored. For backward comp...
java
private void setCurrencyForSymbols() { // Bug 4212072 Update the affix strings according to symbols in order to keep the // affix strings up to date. [Richard/GCL] // With the introduction of the Currency object, the currency symbols in the DFS // object are ignored. For backward comp...
[ "private", "void", "setCurrencyForSymbols", "(", ")", "{", "// Bug 4212072 Update the affix strings according to symbols in order to keep the", "// affix strings up to date. [Richard/GCL]", "// With the introduction of the Currency object, the currency symbols in the DFS", "// object are ignored....
Update the currency object to match the symbols. This method is used only when the caller has passed in a symbols object that may not be the default object for its locale.
[ "Update", "the", "currency", "object", "to", "match", "the", "symbols", ".", "This", "method", "is", "used", "only", "when", "the", "caller", "has", "passed", "in", "a", "symbols", "object", "that", "may", "not", "be", "the", "default", "object", "for", ...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L3255-L3274
34,471
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.setRoundingMode
@Override public void setRoundingMode(int roundingMode) { if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) { throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode); } this.roundingMode = roundingMode; resetActua...
java
@Override public void setRoundingMode(int roundingMode) { if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) { throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode); } this.roundingMode = roundingMode; resetActua...
[ "@", "Override", "public", "void", "setRoundingMode", "(", "int", "roundingMode", ")", "{", "if", "(", "roundingMode", "<", "BigDecimal", ".", "ROUND_UP", "||", "roundingMode", ">", "BigDecimal", ".", "ROUND_UNNECESSARY", ")", "{", "throw", "new", "IllegalArgume...
Sets the rounding mode. This has no effect unless the rounding increment is greater than zero. @param roundingMode A rounding mode, between <code>BigDecimal.ROUND_UP</code> and <code>BigDecimal.ROUND_UNNECESSARY</code>. @exception IllegalArgumentException if <code>roundingMode</code> is unrecognized. @see #setRounding...
[ "Sets", "the", "rounding", "mode", ".", "This", "has", "no", "effect", "unless", "the", "rounding", "increment", "is", "greater", "than", "zero", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L3504-L3512
34,472
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java
DecimalFormat.formatAffix2Attribute
private void formatAffix2Attribute(boolean isPrefix, Field fieldType, StringBuffer buf, int offset, int symbolSize) { int begin; begin = offset; if (!isPrefix) { begin += buf.length(); } addAttribute(fieldType, begin, begin + symbolSize); }
java
private void formatAffix2Attribute(boolean isPrefix, Field fieldType, StringBuffer buf, int offset, int symbolSize) { int begin; begin = offset; if (!isPrefix) { begin += buf.length(); } addAttribute(fieldType, begin, begin + symbolSize); }
[ "private", "void", "formatAffix2Attribute", "(", "boolean", "isPrefix", ",", "Field", "fieldType", ",", "StringBuffer", "buf", ",", "int", "offset", ",", "int", "symbolSize", ")", "{", "int", "begin", ";", "begin", "=", "offset", ";", "if", "(", "!", "isPr...
Fix for prefix and suffix in Ticket 11805.
[ "Fix", "for", "prefix", "and", "suffix", "in", "Ticket", "11805", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/text/DecimalFormat.java#L4321-L4330
34,473
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/regex/Matcher.java
Matcher.appendEvaluated
private void appendEvaluated(StringBuffer buffer, String s) { boolean escape = false; boolean dollar = false; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (c == '\\' && !escape) { escape = true; } else if (c == '$' && !escap...
java
private void appendEvaluated(StringBuffer buffer, String s) { boolean escape = false; boolean dollar = false; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (c == '\\' && !escape) { escape = true; } else if (c == '$' && !escap...
[ "private", "void", "appendEvaluated", "(", "StringBuffer", "buffer", ",", "String", "s", ")", "{", "boolean", "escape", "=", "false", ";", "boolean", "dollar", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "s", ".", "length", "(...
Internal helper method to append a given string to a given string buffer. If the string contains any references to groups, these are replaced by the corresponding group's contents. @param buffer the string buffer. @param s the string to append.
[ "Internal", "helper", "method", "to", "append", "a", "given", "string", "to", "a", "given", "string", "buffer", ".", "If", "the", "string", "contains", "any", "references", "to", "groups", "these", "are", "replaced", "by", "the", "corresponding", "group", "s...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/regex/Matcher.java#L631-L654
34,474
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/regex/Matcher.java
Matcher.replaceAll
public String replaceAll(String replacement) { reset(); StringBuffer buffer = new StringBuffer(input.length()); while (find()) { appendReplacement(buffer, replacement); } return appendTail(buffer).toString(); }
java
public String replaceAll(String replacement) { reset(); StringBuffer buffer = new StringBuffer(input.length()); while (find()) { appendReplacement(buffer, replacement); } return appendTail(buffer).toString(); }
[ "public", "String", "replaceAll", "(", "String", "replacement", ")", "{", "reset", "(", ")", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "input", ".", "length", "(", ")", ")", ";", "while", "(", "find", "(", ")", ")", "{", "appendRe...
Replaces every subsequence of the input sequence that matches the pattern with the given replacement string. <p> This method first resets this matcher. It then scans the input sequence looking for matches of the pattern. Characters that are not part of any match are appended directly to the result string; each match...
[ "Replaces", "every", "subsequence", "of", "the", "input", "sequence", "that", "matches", "the", "pattern", "with", "the", "given", "replacement", "string", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/regex/Matcher.java#L714-L721
34,475
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/ByteArrayWrapper.java
ByteArrayWrapper.compareTo
public int compareTo(ByteArrayWrapper other) { if (this == other) return 0; int minSize = size < other.size ? size : other.size; for (int i = 0; i < minSize; ++i) { if (bytes[i] != other.bytes[i]) { return (bytes[i] & 0xFF) - (other.bytes[i] & 0xFF); } ...
java
public int compareTo(ByteArrayWrapper other) { if (this == other) return 0; int minSize = size < other.size ? size : other.size; for (int i = 0; i < minSize; ++i) { if (bytes[i] != other.bytes[i]) { return (bytes[i] & 0xFF) - (other.bytes[i] & 0xFF); } ...
[ "public", "int", "compareTo", "(", "ByteArrayWrapper", "other", ")", "{", "if", "(", "this", "==", "other", ")", "return", "0", ";", "int", "minSize", "=", "size", "<", "other", ".", "size", "?", "size", ":", "other", ".", "size", ";", "for", "(", ...
Compare this object to another ByteArrayWrapper, which must not be null. @param other the object to compare to. @return a value &lt;0, 0, or &gt;0 as this compares less than, equal to, or greater than other. @throws ClassCastException if the other object is not a ByteArrayWrapper
[ "Compare", "this", "object", "to", "another", "ByteArrayWrapper", "which", "must", "not", "be", "null", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/ByteArrayWrapper.java#L240-L249
34,476
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/ByteArrayWrapper.java
ByteArrayWrapper.copyBytes
private static final void copyBytes(byte[] src, int srcoff, byte[] tgt, int tgtoff, int length) { if (length < 64) { for (int i = srcoff, n = tgtoff; -- length >= 0; ++ i, ++ n) { tgt[n] = src[i]; } } else { ...
java
private static final void copyBytes(byte[] src, int srcoff, byte[] tgt, int tgtoff, int length) { if (length < 64) { for (int i = srcoff, n = tgtoff; -- length >= 0; ++ i, ++ n) { tgt[n] = src[i]; } } else { ...
[ "private", "static", "final", "void", "copyBytes", "(", "byte", "[", "]", "src", ",", "int", "srcoff", ",", "byte", "[", "]", "tgt", ",", "int", "tgtoff", ",", "int", "length", ")", "{", "if", "(", "length", "<", "64", ")", "{", "for", "(", "int"...
Copies the contents of src byte array from offset srcoff to the target of tgt byte array at the offset tgtoff. @param src source byte array to copy from @param srcoff start offset of src to copy from @param tgt target byte array to copy to @param tgtoff start offset of tgt to copy to @param length size of contents to c...
[ "Copies", "the", "contents", "of", "src", "byte", "array", "from", "offset", "srcoff", "to", "the", "target", "of", "tgt", "byte", "array", "at", "the", "offset", "tgtoff", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/util/ByteArrayWrapper.java#L262-L272
34,477
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/serialize/SerializerUtils.java
SerializerUtils.addAttributes
public static void addAttributes(SerializationHandler handler, int src) throws TransformerException { TransformerImpl transformer = (TransformerImpl) handler.getTransformer(); DTM dtm = transformer.getXPathContext().getDTM(src); for (int node = dtm.getFirstAttribute(src...
java
public static void addAttributes(SerializationHandler handler, int src) throws TransformerException { TransformerImpl transformer = (TransformerImpl) handler.getTransformer(); DTM dtm = transformer.getXPathContext().getDTM(src); for (int node = dtm.getFirstAttribute(src...
[ "public", "static", "void", "addAttributes", "(", "SerializationHandler", "handler", ",", "int", "src", ")", "throws", "TransformerException", "{", "TransformerImpl", "transformer", "=", "(", "TransformerImpl", ")", "handler", ".", "getTransformer", "(", ")", ";", ...
Copy DOM attributes to the result element. @param src Source node with the attributes @throws TransformerException
[ "Copy", "DOM", "attributes", "to", "the", "result", "element", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/serialize/SerializerUtils.java#L93-L107
34,478
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/serialize/SerializerUtils.java
SerializerUtils.outputResultTreeFragment
public static void outputResultTreeFragment( SerializationHandler handler, XObject obj, XPathContext support) throws org.xml.sax.SAXException { int doc = obj.rtf(); DTM dtm = support.getDTM(doc); if (null != dtm) { for (int n = dtm.getFir...
java
public static void outputResultTreeFragment( SerializationHandler handler, XObject obj, XPathContext support) throws org.xml.sax.SAXException { int doc = obj.rtf(); DTM dtm = support.getDTM(doc); if (null != dtm) { for (int n = dtm.getFir...
[ "public", "static", "void", "outputResultTreeFragment", "(", "SerializationHandler", "handler", ",", "XObject", "obj", ",", "XPathContext", "support", ")", "throws", "org", ".", "xml", ".", "sax", ".", "SAXException", "{", "int", "doc", "=", "obj", ".", "rtf",...
Given a result tree fragment, walk the tree and output it to the SerializationHandler. @param obj Result tree fragment object @param support XPath context for the result tree fragment @throws org.xml.sax.SAXException
[ "Given", "a", "result", "tree", "fragment", "walk", "the", "tree", "and", "output", "it", "to", "the", "SerializationHandler", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/serialize/SerializerUtils.java#L118-L144
34,479
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/serialize/SerializerUtils.java
SerializerUtils.isDefinedNSDecl
public static boolean isDefinedNSDecl( SerializationHandler serializer, int attr, DTM dtm) { if (DTM.NAMESPACE_NODE == dtm.getNodeType(attr)) { // String prefix = dtm.getPrefix(attr); String prefix = dtm.getNodeNameX(attr); String uri = s...
java
public static boolean isDefinedNSDecl( SerializationHandler serializer, int attr, DTM dtm) { if (DTM.NAMESPACE_NODE == dtm.getNodeType(attr)) { // String prefix = dtm.getPrefix(attr); String prefix = dtm.getNodeNameX(attr); String uri = s...
[ "public", "static", "boolean", "isDefinedNSDecl", "(", "SerializationHandler", "serializer", ",", "int", "attr", ",", "DTM", "dtm", ")", "{", "if", "(", "DTM", ".", "NAMESPACE_NODE", "==", "dtm", ".", "getNodeType", "(", "attr", ")", ")", "{", "// String pre...
Returns whether a namespace is defined @param attr Namespace attribute node @param dtm The DTM that owns attr. @return True if the namespace is already defined in list of namespaces
[ "Returns", "whether", "a", "namespace", "is", "defined" ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xalan/serialize/SerializerUtils.java#L216-L235
34,480
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/objects/XObject.java
XObject.num
public double num() throws javax.xml.transform.TransformerException { error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER, new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number"); return 0.0; }
java
public double num() throws javax.xml.transform.TransformerException { error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER, new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number"); return 0.0; }
[ "public", "double", "num", "(", ")", "throws", "javax", ".", "xml", ".", "transform", ".", "TransformerException", "{", "error", "(", "XPATHErrorResources", ".", "ER_CANT_CONVERT_TO_NUMBER", ",", "new", "Object", "[", "]", "{", "getTypeString", "(", ")", "}", ...
Cast result object to a number. Always issues an error. @return 0.0 @throws javax.xml.transform.TransformerException
[ "Cast", "result", "object", "to", "a", "number", ".", "Always", "issues", "an", "error", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/objects/XObject.java#L235-L242
34,481
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/objects/XObject.java
XObject.bool
public boolean bool() throws javax.xml.transform.TransformerException { error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER, new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number"); return false; }
java
public boolean bool() throws javax.xml.transform.TransformerException { error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER, new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number"); return false; }
[ "public", "boolean", "bool", "(", ")", "throws", "javax", ".", "xml", ".", "transform", ".", "TransformerException", "{", "error", "(", "XPATHErrorResources", ".", "ER_CANT_CONVERT_TO_NUMBER", ",", "new", "Object", "[", "]", "{", "getTypeString", "(", ")", "}"...
Cast result object to a boolean. Always issues an error. @return false @throws javax.xml.transform.TransformerException
[ "Cast", "result", "object", "to", "a", "boolean", ".", "Always", "issues", "an", "error", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/objects/XObject.java#L263-L270
34,482
google/j2objc
xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/objects/XObject.java
XObject.castToType
public Object castToType(int t, XPathContext support) throws javax.xml.transform.TransformerException { Object result; switch (t) { case CLASS_STRING : result = str(); break; case CLASS_NUMBER : result = new Double(num()); break; case CLASS_NODESET : r...
java
public Object castToType(int t, XPathContext support) throws javax.xml.transform.TransformerException { Object result; switch (t) { case CLASS_STRING : result = str(); break; case CLASS_NUMBER : result = new Double(num()); break; case CLASS_NODESET : r...
[ "public", "Object", "castToType", "(", "int", "t", ",", "XPathContext", "support", ")", "throws", "javax", ".", "xml", ".", "transform", ".", "TransformerException", "{", "Object", "result", ";", "switch", "(", "t", ")", "{", "case", "CLASS_STRING", ":", "...
Cast object to type t. @param t Type of object to cast this to @param support XPath context to use for the conversion @return This object as the given type t @throws javax.xml.transform.TransformerException
[ "Cast", "object", "to", "type", "t", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xpath/objects/XObject.java#L489-L526
34,483
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/net/URL.java
URL.readObject
private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); // read the fields if ((handler = getDelegate().getURLStreamHandler(protocol)) == null) { throw new IOException("unknown protocol: " + protocol)...
java
private synchronized void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); // read the fields if ((handler = getDelegate().getURLStreamHandler(protocol)) == null) { throw new IOException("unknown protocol: " + protocol)...
[ "private", "synchronized", "void", "readObject", "(", "java", ".", "io", ".", "ObjectInputStream", "s", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "s", ".", "defaultReadObject", "(", ")", ";", "// read the fields", "if", "(", "(", "handler...
readObject is called to restore the state of the URL from the stream. It reads the components of the URL and finds the local stream handler.
[ "readObject", "is", "called", "to", "restore", "the", "state", "of", "the", "URL", "from", "the", "stream", ".", "It", "reads", "the", "components", "of", "the", "URL", "and", "finds", "the", "local", "stream", "handler", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/net/URL.java#L976-L1017
34,484
google/j2objc
jre_emul/android/platform/libcore/xml/src/main/java/org/xmlpull/v1/XmlPullParserFactory.java
XmlPullParserFactory.newPullParser
public XmlPullParser newPullParser() throws XmlPullParserException { final XmlPullParser pp = getParserInstance(); for (Map.Entry<String, Boolean> entry : features.entrySet()) { // NOTE: This test is needed for compatibility reasons. We guarantee // that we only set a feature on ...
java
public XmlPullParser newPullParser() throws XmlPullParserException { final XmlPullParser pp = getParserInstance(); for (Map.Entry<String, Boolean> entry : features.entrySet()) { // NOTE: This test is needed for compatibility reasons. We guarantee // that we only set a feature on ...
[ "public", "XmlPullParser", "newPullParser", "(", ")", "throws", "XmlPullParserException", "{", "final", "XmlPullParser", "pp", "=", "getParserInstance", "(", ")", ";", "for", "(", "Map", ".", "Entry", "<", "String", ",", "Boolean", ">", "entry", ":", "features...
Creates a new instance of a XML Pull Parser using the currently configured factory features. @return A new instance of a XML Pull Parser.
[ "Creates", "a", "new", "instance", "of", "a", "XML", "Pull", "Parser", "using", "the", "currently", "configured", "factory", "features", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/xml/src/main/java/org/xmlpull/v1/XmlPullParserFactory.java#L126-L137
34,485
google/j2objc
jre_emul/android/frameworks/base/core/java/android/text/util/Rfc822Token.java
Rfc822Token.quoteNameIfNecessary
public static String quoteNameIfNecessary(String name) { int len = name.length(); for (int i = 0; i < len; i++) { char c = name.charAt(i); if (! ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c == ' ') || (c >= '0'...
java
public static String quoteNameIfNecessary(String name) { int len = name.length(); for (int i = 0; i < len; i++) { char c = name.charAt(i); if (! ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c == ' ') || (c >= '0'...
[ "public", "static", "String", "quoteNameIfNecessary", "(", "String", "name", ")", "{", "int", "len", "=", "name", ".", "length", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "char", "c", "=", ...
Returns the name, conservatively quoting it if there are any characters that are likely to cause trouble outside of a quoted string, or returning it literally if it seems safe.
[ "Returns", "the", "name", "conservatively", "quoting", "it", "if", "there", "are", "any", "characters", "that", "are", "likely", "to", "cause", "trouble", "outside", "of", "a", "quoted", "string", "or", "returning", "it", "literally", "if", "it", "seems", "s...
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/frameworks/base/core/java/android/text/util/Rfc822Token.java#L111-L126
34,486
google/j2objc
jre_emul/android/frameworks/base/core/java/android/text/util/Rfc822Token.java
Rfc822Token.quoteName
public static String quoteName(String name) { StringBuilder sb = new StringBuilder(); int len = name.length(); for (int i = 0; i < len; i++) { char c = name.charAt(i); if (c == '\\' || c == '"') { sb.append('\\'); } sb.append(c);...
java
public static String quoteName(String name) { StringBuilder sb = new StringBuilder(); int len = name.length(); for (int i = 0; i < len; i++) { char c = name.charAt(i); if (c == '\\' || c == '"') { sb.append('\\'); } sb.append(c);...
[ "public", "static", "String", "quoteName", "(", "String", "name", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "int", "len", "=", "name", ".", "length", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<",...
Returns the name, with internal backslashes and quotation marks preceded by backslashes. The outer quote marks themselves are not added by this method.
[ "Returns", "the", "name", "with", "internal", "backslashes", "and", "quotation", "marks", "preceded", "by", "backslashes", ".", "The", "outer", "quote", "marks", "themselves", "are", "not", "added", "by", "this", "method", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/frameworks/base/core/java/android/text/util/Rfc822Token.java#L133-L148
34,487
google/j2objc
jre_emul/android/frameworks/base/core/java/android/text/util/Rfc822Token.java
Rfc822Token.quoteComment
public static String quoteComment(String comment) { int len = comment.length(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < len; i++) { char c = comment.charAt(i); if (c == '(' || c == ')' || c == '\\') { sb.append('\\'); } ...
java
public static String quoteComment(String comment) { int len = comment.length(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < len; i++) { char c = comment.charAt(i); if (c == '(' || c == ')' || c == '\\') { sb.append('\\'); } ...
[ "public", "static", "String", "quoteComment", "(", "String", "comment", ")", "{", "int", "len", "=", "comment", ".", "length", "(", ")", ";", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i...
Returns the comment, with internal backslashes and parentheses preceded by backslashes. The outer parentheses themselves are not added by this method.
[ "Returns", "the", "comment", "with", "internal", "backslashes", "and", "parentheses", "preceded", "by", "backslashes", ".", "The", "outer", "parentheses", "themselves", "are", "not", "added", "by", "this", "method", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/frameworks/base/core/java/android/text/util/Rfc822Token.java#L155-L170
34,488
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/time/format/DateTimeParseContext.java
DateTimeParseContext.copy
DateTimeParseContext copy() { DateTimeParseContext newContext = new DateTimeParseContext(formatter); newContext.caseSensitive = caseSensitive; newContext.strict = strict; return newContext; }
java
DateTimeParseContext copy() { DateTimeParseContext newContext = new DateTimeParseContext(formatter); newContext.caseSensitive = caseSensitive; newContext.strict = strict; return newContext; }
[ "DateTimeParseContext", "copy", "(", ")", "{", "DateTimeParseContext", "newContext", "=", "new", "DateTimeParseContext", "(", "formatter", ")", ";", "newContext", ".", "caseSensitive", "=", "caseSensitive", ";", "newContext", ".", "strict", "=", "strict", ";", "re...
Creates a copy of this context. This retains the case sensitive and strict flags.
[ "Creates", "a", "copy", "of", "this", "context", ".", "This", "retains", "the", "case", "sensitive", "and", "strict", "flags", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/time/format/DateTimeParseContext.java#L130-L135
34,489
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/time/format/DateTimeParseContext.java
DateTimeParseContext.charEqualsIgnoreCase
static boolean charEqualsIgnoreCase(char c1, char c2) { return c1 == c2 || Character.toUpperCase(c1) == Character.toUpperCase(c2) || Character.toLowerCase(c1) == Character.toLowerCase(c2); }
java
static boolean charEqualsIgnoreCase(char c1, char c2) { return c1 == c2 || Character.toUpperCase(c1) == Character.toUpperCase(c2) || Character.toLowerCase(c1) == Character.toLowerCase(c2); }
[ "static", "boolean", "charEqualsIgnoreCase", "(", "char", "c1", ",", "char", "c2", ")", "{", "return", "c1", "==", "c2", "||", "Character", ".", "toUpperCase", "(", "c1", ")", "==", "Character", ".", "toUpperCase", "(", "c2", ")", "||", "Character", ".",...
Compares two characters ignoring case. @param c1 the first @param c2 the second @return true if equal
[ "Compares", "two", "characters", "ignoring", "case", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/time/format/DateTimeParseContext.java#L255-L259
34,490
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/time/format/DateTimeParseContext.java
DateTimeParseContext.endOptional
void endOptional(boolean successful) { if (successful) { parsed.remove(parsed.size() - 2); } else { parsed.remove(parsed.size() - 1); } }
java
void endOptional(boolean successful) { if (successful) { parsed.remove(parsed.size() - 2); } else { parsed.remove(parsed.size() - 1); } }
[ "void", "endOptional", "(", "boolean", "successful", ")", "{", "if", "(", "successful", ")", "{", "parsed", ".", "remove", "(", "parsed", ".", "size", "(", ")", "-", "2", ")", ";", "}", "else", "{", "parsed", ".", "remove", "(", "parsed", ".", "siz...
Ends the parsing of an optional segment of the input. @param successful whether the optional segment was successfully parsed
[ "Ends", "the", "parsing", "of", "an", "optional", "segment", "of", "the", "input", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/time/format/DateTimeParseContext.java#L295-L301
34,491
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/time/format/DateTimeParseContext.java
DateTimeParseContext.toResolved
TemporalAccessor toResolved(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) { Parsed parsed = currentParsed(); parsed.chrono = getEffectiveChronology(); parsed.zone = (parsed.zone != null ? parsed.zone : formatter.getZone()); return parsed.resolve(resolverStyle, resolverF...
java
TemporalAccessor toResolved(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) { Parsed parsed = currentParsed(); parsed.chrono = getEffectiveChronology(); parsed.zone = (parsed.zone != null ? parsed.zone : formatter.getZone()); return parsed.resolve(resolverStyle, resolverF...
[ "TemporalAccessor", "toResolved", "(", "ResolverStyle", "resolverStyle", ",", "Set", "<", "TemporalField", ">", "resolverFields", ")", "{", "Parsed", "parsed", "=", "currentParsed", "(", ")", ";", "parsed", ".", "chrono", "=", "getEffectiveChronology", "(", ")", ...
Gets the resolved result of the parse. @return the result of the parse, not null
[ "Gets", "the", "resolved", "result", "of", "the", "parse", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/time/format/DateTimeParseContext.java#L327-L332
34,492
google/j2objc
jre_emul/android/frameworks/base/core/java/android/util/SparseArray.java
SparseArray.removeAtRange
public void removeAtRange(int index, int size) { final int end = Math.min(mSize, index + size); for (int i = index; i < end; i++) { removeAt(i); } }
java
public void removeAtRange(int index, int size) { final int end = Math.min(mSize, index + size); for (int i = index; i < end; i++) { removeAt(i); } }
[ "public", "void", "removeAtRange", "(", "int", "index", ",", "int", "size", ")", "{", "final", "int", "end", "=", "Math", ".", "min", "(", "mSize", ",", "index", "+", "size", ")", ";", "for", "(", "int", "i", "=", "index", ";", "i", "<", "end", ...
Remove a range of mappings as a batch. @param index Index to begin at @param size Number of mappings to remove
[ "Remove", "a", "range", "of", "mappings", "as", "a", "batch", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/frameworks/base/core/java/android/util/SparseArray.java#L157-L162
34,493
google/j2objc
jre_emul/android/frameworks/base/core/java/android/util/SparseArray.java
SparseArray.clear
public void clear() { int n = mSize; Object[] values = mValues; for (int i = 0; i < n; i++) { values[i] = null; } mSize = 0; mGarbage = false; }
java
public void clear() { int n = mSize; Object[] values = mValues; for (int i = 0; i < n; i++) { values[i] = null; } mSize = 0; mGarbage = false; }
[ "public", "void", "clear", "(", ")", "{", "int", "n", "=", "mSize", ";", "Object", "[", "]", "values", "=", "mValues", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "n", ";", "i", "++", ")", "{", "values", "[", "i", "]", "=", "null"...
Removes all key-value mappings from this SparseArray.
[ "Removes", "all", "key", "-", "value", "mappings", "from", "this", "SparseArray", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/frameworks/base/core/java/android/util/SparseArray.java#L345-L355
34,494
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/CollationRootElements.java
CollationRootElements.lastCEWithPrimaryBefore
long lastCEWithPrimaryBefore(long p) { if(p == 0) { return 0; } assert(p > elements[(int)elements[IX_FIRST_PRIMARY_INDEX]]); int index = findP(p); long q = elements[index]; long secTer; if(p == (q & 0xffffff00L)) { // p == elements[index] is a root primary. Fi...
java
long lastCEWithPrimaryBefore(long p) { if(p == 0) { return 0; } assert(p > elements[(int)elements[IX_FIRST_PRIMARY_INDEX]]); int index = findP(p); long q = elements[index]; long secTer; if(p == (q & 0xffffff00L)) { // p == elements[index] is a root primary. Fi...
[ "long", "lastCEWithPrimaryBefore", "(", "long", "p", ")", "{", "if", "(", "p", "==", "0", ")", "{", "return", "0", ";", "}", "assert", "(", "p", ">", "elements", "[", "(", "int", ")", "elements", "[", "IX_FIRST_PRIMARY_INDEX", "]", "]", ")", ";", "...
Returns the last root CE with a primary weight before p. Intended only for reordering group boundaries.
[ "Returns", "the", "last", "root", "CE", "with", "a", "primary", "weight", "before", "p", ".", "Intended", "only", "for", "reordering", "group", "boundaries", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/CollationRootElements.java#L150-L193
34,495
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/CollationRootElements.java
CollationRootElements.firstCEWithPrimaryAtLeast
long firstCEWithPrimaryAtLeast(long p) { if(p == 0) { return 0; } int index = findP(p); if(p != (elements[index] & 0xffffff00L)) { for(;;) { p = elements[++index]; if((p & SEC_TER_DELTA_FLAG) == 0) { // First primary after p. We mus...
java
long firstCEWithPrimaryAtLeast(long p) { if(p == 0) { return 0; } int index = findP(p); if(p != (elements[index] & 0xffffff00L)) { for(;;) { p = elements[++index]; if((p & SEC_TER_DELTA_FLAG) == 0) { // First primary after p. We mus...
[ "long", "firstCEWithPrimaryAtLeast", "(", "long", "p", ")", "{", "if", "(", "p", "==", "0", ")", "{", "return", "0", ";", "}", "int", "index", "=", "findP", "(", "p", ")", ";", "if", "(", "p", "!=", "(", "elements", "[", "index", "]", "&", "0xf...
Returns the first root CE with a primary weight of at least p. Intended only for reordering group boundaries.
[ "Returns", "the", "first", "root", "CE", "with", "a", "primary", "weight", "of", "at", "least", "p", ".", "Intended", "only", "for", "reordering", "group", "boundaries", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/CollationRootElements.java#L199-L214
34,496
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/CollationRootElements.java
CollationRootElements.getPrimaryBefore
long getPrimaryBefore(long p, boolean isCompressible) { int index = findPrimary(p); int step; long q = elements[index]; if(p == (q & 0xffffff00L)) { // Found p itself. Return the previous primary. // See if p is at the end of a previous range. step = (...
java
long getPrimaryBefore(long p, boolean isCompressible) { int index = findPrimary(p); int step; long q = elements[index]; if(p == (q & 0xffffff00L)) { // Found p itself. Return the previous primary. // See if p is at the end of a previous range. step = (...
[ "long", "getPrimaryBefore", "(", "long", "p", ",", "boolean", "isCompressible", ")", "{", "int", "index", "=", "findPrimary", "(", "p", ")", ";", "int", "step", ";", "long", "q", "=", "elements", "[", "index", "]", ";", "if", "(", "p", "==", "(", "...
Returns the primary weight before p. p must be greater than the first root primary.
[ "Returns", "the", "primary", "weight", "before", "p", ".", "p", "must", "be", "greater", "than", "the", "first", "root", "primary", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/CollationRootElements.java#L220-L247
34,497
google/j2objc
jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/CollationRootElements.java
CollationRootElements.findPrimary
int findPrimary(long p) { // Requirement: p must occur as a root primary. assert((p & 0xff) == 0); // at most a 3-byte primary int index = findP(p); // If p is in a range, then we just assume that p is an actual primary in this range. // (Too cumbersome/expensive to check.) ...
java
int findPrimary(long p) { // Requirement: p must occur as a root primary. assert((p & 0xff) == 0); // at most a 3-byte primary int index = findP(p); // If p is in a range, then we just assume that p is an actual primary in this range. // (Too cumbersome/expensive to check.) ...
[ "int", "findPrimary", "(", "long", "p", ")", "{", "// Requirement: p must occur as a root primary.", "assert", "(", "(", "p", "&", "0xff", ")", "==", "0", ")", ";", "// at most a 3-byte primary", "int", "index", "=", "findP", "(", "p", ")", ";", "// If p is in...
Finds the index of the input primary. p must occur as a root primary, and must not be 0.
[ "Finds", "the", "index", "of", "the", "input", "primary", ".", "p", "must", "occur", "as", "a", "root", "primary", "and", "must", "not", "be", "0", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/CollationRootElements.java#L308-L317
34,498
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/TimeZone.java
TimeZone.createGmtOffsetString
public static String createGmtOffsetString(boolean includeGmt, boolean includeMinuteSeparator, int offsetMillis) { int offsetMinutes = offsetMillis / 60000; char sign = '+'; if (offsetMinutes < 0) { sign = '-'; offsetMinutes = -offsetMinutes; } ...
java
public static String createGmtOffsetString(boolean includeGmt, boolean includeMinuteSeparator, int offsetMillis) { int offsetMinutes = offsetMillis / 60000; char sign = '+'; if (offsetMinutes < 0) { sign = '-'; offsetMinutes = -offsetMinutes; } ...
[ "public", "static", "String", "createGmtOffsetString", "(", "boolean", "includeGmt", ",", "boolean", "includeMinuteSeparator", ",", "int", "offsetMillis", ")", "{", "int", "offsetMinutes", "=", "offsetMillis", "/", "60000", ";", "char", "sign", "=", "'", "'", ";...
Returns a string representation of an offset from UTC. <p>The format is "[GMT](+|-)HH[:]MM". The output is not localized. @param includeGmt true to include "GMT", false to exclude @param includeMinuteSeparator true to include the separator between hours and minutes, false to exclude. @param offsetMillis the offset fr...
[ "Returns", "a", "string", "representation", "of", "an", "offset", "from", "UTC", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/TimeZone.java#L425-L444
34,499
google/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/TimeZone.java
TimeZone.getAvailableIDs
public static String[] getAvailableIDs(int rawOffset) { List<String> ids = new ArrayList<>(); for (String id : getAvailableIDs()) { TimeZone tz = NativeTimeZone.get(id); if (tz.getRawOffset() == rawOffset) { ids.add(id); } } return ids....
java
public static String[] getAvailableIDs(int rawOffset) { List<String> ids = new ArrayList<>(); for (String id : getAvailableIDs()) { TimeZone tz = NativeTimeZone.get(id); if (tz.getRawOffset() == rawOffset) { ids.add(id); } } return ids....
[ "public", "static", "String", "[", "]", "getAvailableIDs", "(", "int", "rawOffset", ")", "{", "List", "<", "String", ">", "ids", "=", "new", "ArrayList", "<>", "(", ")", ";", "for", "(", "String", "id", ":", "getAvailableIDs", "(", ")", ")", "{", "Ti...
Gets the available IDs according to the given time zone offset in milliseconds. @param rawOffset the given time zone GMT offset in milliseconds. @return an array of IDs, where the time zone for that ID has the specified GMT offset. For example, "America/Phoenix" and "America/Denver" both have GMT-07:00, but differ in ...
[ "Gets", "the", "available", "IDs", "according", "to", "the", "given", "time", "zone", "offset", "in", "milliseconds", "." ]
471504a735b48d5d4ace51afa1542cc4790a921a
https://github.com/google/j2objc/blob/471504a735b48d5d4ace51afa1542cc4790a921a/jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/TimeZone.java#L640-L649