Returns a string representation of the given constant

@return A string representation of the given constant
427020
public static String stringFor(int n)
    {
        switch (n)
        {
            case CUDNN_CONVOLUTION_BWD_DATA_ALGO_0: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_0";
            case CUDNN_CONVOLUTION_BWD_DATA_ALGO_1: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_1";
            case CUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT";
            case CUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING";
            case CUDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD";
            case CUDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD_NONFUSED: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_WINOGRAD_NONFUSED";
            case CUDNN_CONVOLUTION_BWD_DATA_ALGO_COUNT: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_COUNT";
        }
        return "INVALID cudnnConvolutionBwdDataAlgo: "+n;
    }
899589
public String readStringLenenc() {
        int length = (int) readIntLenenc();
        byte[] result = new byte[length];
        byteBuf.readBytes(result);
        return new String(result);
    }
1158838
public static String string(double n) {
        if (Double.isInfinite(n)) {
            return (n > 0) ? "+inf" : "-inf";
        }
        return Double.toString(n);
    }
1047241
public static String stringFor(int n)
    {
        switch (n)
        {
            case CUDNN_DATA_FLOAT: return "CUDNN_DATA_FLOAT";
            case CUDNN_DATA_DOUBLE: return "CUDNN_DATA_DOUBLE";
            case CUDNN_DATA_HALF: return "CUDNN_DATA_HALF";
            case CUDNN_DATA_INT8: return "CUDNN_DATA_INT8";
            case CUDNN_DATA_INT32: return "CUDNN_DATA_INT32";
            case CUDNN_DATA_INT8x4: return "CUDNN_DATA_INT8x4";
            case CUDNN_DATA_UINT8: return "CUDNN_DATA_UINT8";
            case CUDNN_DATA_UINT8x4: return "CUDNN_DATA_UINT8x4";
        }
        return "INVALID cudnnDataType: "+n;
    }
885628
public String convertString(String string)
    {
        if (string.indexOf("<referral") != -1)
        {
            int iStart = string.indexOf("url=\"") + 5;
            int iEnd = string.indexOf('\"', iStart);
            if ((iStart != 4) && (iEnd != -1))
            {
                String filename = string.substring(iStart, iEnd);
                if (filename.indexOf(":/") == -1)
                {
                    String stringFile = readFile(filename);
                    
                    if (stringFile != null)
                        string = "<!-- " + "Repository inlined from: " + filename  + " -->"
                            + "\n" + stringFile + "\n";
                }        
            }
        }
        return string;
    }
971707
public static <T> String stringImg(T[] v) {
	if(v == null) return "null";

	StringBuffer buffer = new StringBuffer();

	Arrays.sort(v, new UComp<T>());
	for(int i=0; i<v.length; i++) {
	    buffer.append(v[i]);
	    buffer.append("\n");
	}

	return buffer.toString();
    }
14548
public String getString()
    {
        int len=getInt();
        if (len==0xFFFF)
            return null;
        try
        {
            String s=new String(_buf,_pos,len,StringUtil.__ISO_8859_1);
            _pos+=len+1;
            return s;
        }
        catch (IndexOutOfBoundsException e)
        {
            // Bad request!!!
            LogSupport.ignore(log,e);
            return null;
        }
        catch (UnsupportedEncodingException e)
        {
            log.fatal(e);
            System.exit(1);
            return null;
        }
    }
662137
public String getString() 
    {
        String string = super.getString();  // By default, get the data as-is
        if (this.getField() instanceof NumberField)
        {
            double dValue = this.getField().getValue();
            if (m_bDebit)
            {
                if (dValue < 0)
                    string = Constants.BLANK; // For debit/negative, return a null
            }
            else
            {   // Credit
                if (dValue >= 0)
                    string = Constants.BLANK; // For credit/positive, return a null
                else
                    string = ((NumberField)this.getField()).binaryToString(new Double(-dValue));  // Positive representation
            }
        }
        return string;
    }
465167
public static final Function<BigInteger,String> toStr() {
        return (Function<BigInteger,String>)((Function)FnNumber.toStr());
    }
376560
public StringBuffer toStringBuffer() {
        StringBuffer sb = new StringBuffer(length);
        sb.append(c, 0, length);
        return sb;
    }
817256
public final String get(final String pkey) {
    try {
      // Replace "." with "_" in the key to match what ConstantsImplCreator does.
      return pkey == null ? null : messages.getString(pkey.replace(".", "_"));
    } catch (final MissingResourceException e) {
      return null;
    }
  }
431459
public String asString() {
		if (current == null)
			return null;
		if (current instanceof String)
			return (String) current;
		return current.toString();
	}
1198794
public String contentToString()
    {
        StringBuffer sb = new StringBuffer();
        sb.append(name + " = \n");
        
        if ( getM()*getN() == 1 )
        {
            for ( String key : keys )
            {
                sb.append("\t" + key + " : " + getField(key) + "\n" );
            }
        }
        else
        {
            sb.append("\n");
            sb.append(getM() + "x" + getN() );
            sb.append(" struct array with fields: \n");
            for ( String key : keys)
            {
                sb.append("\t" + key + "\n");
            }
        }
        return sb.toString();
    }
1270826
public static final Function<Integer,String> toStr() {
        return (Function<Integer,String>)((Function)FnNumber.toStr());
    }
829112
public StringConstant addString(String name)
  {
    StringConstant entry = getString(name);

    if (entry != null) {
      return entry;
    }

    Utf8Constant utf8 = addUTF8(name);

    entry = new StringConstant(this, _entries.size(), utf8.getIndex());

    addConstant(entry);

    return entry;
  }
1356641
public String getString() {
        int len = getInt();
        String s = new String(_buffer, _offset, len, RpcRequest.CHARSET);
        skip(len);
        return s;
    }
517583
private String takeString() {
        String s = _string.toString();
        // trim trailing whitespace.
        if (s.length() > _length)
            s = s.substring(0, _length);
        _string.reset();
        _length = -1;
        return s;
    }