<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gutskun</author_name>
  <author_url>https://blog.hatena.ne.jp/gutskun/</author_url>
  <blog_title>ひとしれずひっそり</blog_title>
  <blog_url>https://katsuyoshi.hatenadiary.com/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>String(format:)を使うとsprintf的なことができる。 ただ文字列と思って%sを使うとクラッシュする。 文字列はオブジェクトだから%@にしなきゃいけないのを忘れてた。 String(format: &quot;%@,%d&quot;, &quot;123&quot;, 456) Playgroundで試していたらString(repeating:count:)というのがヒットした。 Rubyで &quot;abc&quot; * 3 が String(repeating:&quot;abc&quot;, count: 3) とかける。 1/24追記 formatに指定できる記号 developer.apple.com</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatsuyoshi.hatenadiary.com%2Fentry%2F2023%2F01%2F15%2F223820&quot; title=&quot;String(format:) - ひとしれずひっそり&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-15 22:38:20</published>
  <title>String(format:)</title>
  <type>rich</type>
  <url>https://katsuyoshi.hatenadiary.com/entry/2023/01/15/223820</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
