StringName.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="StringName" version="4.0">
  3. <brief_description>
  4. An optimized string type for unique names.
  5. </brief_description>
  6. <description>
  7. [StringName]s are immutable strings designed for general-purpose representation of unique names. [StringName] ensures that only one instance of a given name exists (so two [StringName]s with the same value are the same object). Comparing them is much faster than with regular [String]s, because only the pointers are compared, not the whole strings.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <constructors>
  12. <constructor name="StringName">
  13. <return type="StringName" />
  14. <description>
  15. Constructs an empty [StringName].
  16. </description>
  17. </constructor>
  18. <constructor name="StringName">
  19. <return type="StringName" />
  20. <argument index="0" name="from" type="StringName" />
  21. <description>
  22. Constructs a [StringName] as a copy of the given [StringName].
  23. </description>
  24. </constructor>
  25. <constructor name="StringName">
  26. <return type="StringName" />
  27. <argument index="0" name="from" type="String" />
  28. <description>
  29. Creates a new [StringName] from the given [String].
  30. </description>
  31. </constructor>
  32. </constructors>
  33. <operators>
  34. <operator name="operator !=">
  35. <return type="bool" />
  36. <description>
  37. </description>
  38. </operator>
  39. <operator name="operator !=">
  40. <return type="bool" />
  41. <argument index="0" name="right" type="String" />
  42. <description>
  43. </description>
  44. </operator>
  45. <operator name="operator !=">
  46. <return type="bool" />
  47. <argument index="0" name="right" type="StringName" />
  48. <description>
  49. </description>
  50. </operator>
  51. <operator name="operator ==">
  52. <return type="bool" />
  53. <description>
  54. </description>
  55. </operator>
  56. <operator name="operator ==">
  57. <return type="bool" />
  58. <argument index="0" name="right" type="String" />
  59. <description>
  60. </description>
  61. </operator>
  62. <operator name="operator ==">
  63. <return type="bool" />
  64. <argument index="0" name="right" type="StringName" />
  65. <description>
  66. </description>
  67. </operator>
  68. </operators>
  69. </class>