java.lang.Object
com.alibaba.dashscope.applications.agentstudio.utils.StringUtils

public class StringUtils extends Object
String formatting helpers for the AgentStudio HTTP stack.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    format(String format, Object... args)
    Locale-independent String.format using Locale.ROOT to guarantee ASCII output for numeric format specifiers (%d, %f, etc.), preventing non-ASCII characters in HTTP headers, URLs, and other protocol-sensitive strings.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • format

      public static String format(String format, Object... args)
      Locale-independent String.format using Locale.ROOT to guarantee ASCII output for numeric format specifiers (%d, %f, etc.), preventing non-ASCII characters in HTTP headers, URLs, and other protocol-sensitive strings.