Gets the opening (left) string for a plural statement.

@param varName The plural var name.
@param offset The offset.
@return the ICU syntax string for the plural opening string.
429060
private static String getPluralOpenString(String varName, int offset) {
    StringBuilder openingPartSb = new StringBuilder();
    openingPartSb.append('{').append(varName).append(",plural,");
    if (offset != 0) {
      openingPartSb.append("offset:").append(offset).append(' ');
    }
    return openingPartSb.toString();
  }
1297797
private String scopesToString(Auth.UrlCodex urlCodex) {
        if (scopes == null || scopes.length == 0) {
            return "";
        }
        StringBuilder sb = new StringBuilder();
        boolean needsSeparator = false;
        for (String scope : scopes) {
            if (needsSeparator) {
                sb.append(scopeDelimiter);
            }
            needsSeparator = true;

            // Use the URL codex to encode each scope, if provided.
            sb.append(urlCodex == null ? scope : urlCodex.encode(scope));
        }
        return sb.toString();
    }
153424
@Nullable
  PyExpr getVariableExpression(String variableName) {
    for (Map<String, PyExpr> frame : localVarExprs) {
      PyExpr translation = frame.get(variableName);
      if (translation != null) {
        return translation;
      }
    }
    return null;
  }
1197610
public final VariableNumMap intersection(int... varNumsToKeep) {
    if (varNumsToKeep.length == 0) {
      return VariableNumMap.EMPTY;
    }

    int[] newNums = new int[varNumsToKeep.length];
    String[] newNames = new String[varNumsToKeep.length];
    Variable[] newVars = new Variable[varNumsToKeep.length];
    
    int numFilled = 0;
    for (int varNum : varNumsToKeep) {
      int index = getVariableIndex(varNum);
      if (index >= 0) {
        newNums[numFilled] = nums[index];
        newNames[numFilled] = names[index];
        newVars[numFilled] = vars[index];
        numFilled++;
      }
    }
    return VariableNumMap.fromUnsortedArrays(newNums, newNames, newVars, numFilled);
  }
544617
protected String getRowHeaderValueAsString(final FacesContext context) {
        final ValueExpression veRowHeader = getRowHeaderValueExpression();
        final Object value = veRowHeader.getValue(context.getELContext());
        if (value == null) {
            return Constants.EMPTY_STRING;
        }
        else {
            return value.toString();
        }
    }
1310055
public String varNameToOpName(String varName){
        int idx = varName.lastIndexOf(':');
        if(idx < 0)
            return varName;
        return varName.substring(0, idx);
    }
218563
@Nonnull
  public JSVar var (@Nonnull @Nonempty final String sName,
                    @Nullable final String sInitValue) throws JSNameAlreadyExistsException
  {
    return var (sName, sInitValue == null ? JSExpr.NULL : JSExpr.lit (sInitValue));
  }
1197665
private function VarNameState()
	{
		$this->SkipWhitespace();
		if ( ord( $this->Peek( 0 ) ) == 0 )
			return;
		$this->BeginToken();
		$c = $this->Peek( 0 );
		if ( preg_match( "/[\p{L}\p{N}_\-.]/u", $c ) )
		{
			$prefix = "";
			$sb = array();
			while ( ( $c = $this->Peek( 0 ) ) !== 0 && ord( $c ) != 0 && preg_match( "/[\p{L}\p{N}_\-.]/u", $c ) )
				$sb[] = $this->Read();
			if ( $this->Peek( 0 ) == ':' && preg_match( "/[\p{L}\p{N}_\-.]/u", $this->Peek( 1 ) ) )
			{
				$prefix = implode( "", $sb );
				$this->Read();
				$sb = array();
				while ( ( $c = $this->Peek( 0 ) ) !== 0 && ord( $c ) != 0 && preg_match( "/[\p{L}\p{N}_\-.]/u", $c ) )
					$sb[] = $this->Read();
			}
			$this->EndToken();
			$this->ConsumeToken2( Token::VarName, new VarName( $prefix, implode( "", $sb ) ) );
			$this->m_state = LexerState::Operator;
		}
	}
1050496
public static TypeVariableName get(String name, TypeName... bounds) {
    return TypeVariableName.of(name, Arrays.asList(bounds));
  }
338752
public static String getReferenceName( IConditional conditional)
    {
    return
      conditional instanceof IVarDef?
      String.format
      ( "variable=%s",
        ((IVarDef) conditional).getPathName()) :

      conditional instanceof VarBindingDef?
      String.format
      ( "variable=%s, value=%s",
        ((VarBindingDef) conditional).getVarDef().getPathName(),
        String.valueOf( ((VarBindingDef) conditional).getValueDef().getName())) :

      null;
    }
236820
protected String getString(byte[] data, int offset) {
        if (offset < 0) {
            return "";
        }

        int i = offset;
        while (data[i++] != 0x00) {
            ;
        }
        return getString(data, offset, i - offset - 1);
    }
1218698
public String getFormattedOption(int offset, int descriptionStart, int width) {
        StringBuilder sb = new StringBuilder();
        if(required && ansiMode)
            sb.append(ANSI.BOLD);
        if(offset > 0)
            sb.append(String.format("%" + offset+ "s", ""));
        if(shortName != null)
            sb.append("-").append(shortName);
        if(name != null && name.length() > 0) {
            if(shortName != null)
                sb.append(", ");
            sb.append("--").append(name);
        }
        if(argument != null && argument.length() > 0) {
            sb.append("=<").append(argument).append(">");
        }
        if(required && ansiMode)
            sb.append(ANSI.BOLD_OFF);
        if(description != null && description.length() > 0) {
            //int descOffset = descriptionStart - sb.length();
            int descOffset = descriptionStart - getFormattedLength() - offset;
            if(descOffset > 0)
                sb.append(String.format("%"+descOffset+"s", ""));
            else
                sb.append(" ");

            sb.append(description);
        }

        return sb.toString();
    }
1239035
protected final MethodSpec newGetRef(String varName) {
    MethodSpec.Builder getter = MethodSpec.methodBuilder("get" + capitalize(varName) + "Reference")
        .addModifiers(context.publicFinalModifiers())
        .returns(Object.class);
    getter.addStatement("return $T.UNSAFE.getObject(this, $N)",
        UNSAFE_ACCESS, offsetName(varName));
    return getter.build();
  }
142339
public final int getVariableByName(String variableName) {
    int index = getVariableIndex(variableName);
    if (index == -1) {
      return index;
    } else {
      return nums[index];
    }
  }
855458
public static String getStringValue(@NonNull byte[] value, @IntRange(from = 0) int offset) {
        if (offset > value.length) {
            RxBleLog.w("Passed offset that exceeds the length of the byte array - returning null");
            return null;
        }
        byte[] strBytes = new byte[value.length - offset];
        for (int i = 0; i != (value.length - offset); ++i) {
            strBytes[i] = value[offset + i];
        }
        return new String(strBytes);
    }
1218535
public static String nameFromOffset(long offset) {
        NumberFormat nf = NumberFormat.getInstance();
        nf.setMinimumIntegerDigits(20);
        nf.setMaximumFractionDigits(0);
        nf.setGroupingUsed(false);
        return nf.format(offset) + Log.FileSuffix;
    }
812365
public String lookupVariableDefaultValue(String variableName) {
        ConfigVariable cv = configVariables.get(variableName);
        return cv == null ? null : cv.getDefaultValue();
    }