format 问答列表

clang-format 缩进 X 个宏

作者:Wolf 提问时间:12/6/2022

我正在使用 c 样式的 X 宏来创建双向枚举,如下所示: namespace ns { #define CFG_INT_TABLE \ X(CFG_1, "cfg_1", invalid_int_...

Android 12 中的日期格式问题

作者:Rohan Patel 提问时间:9/6/2022

以下是解析日期的代码。我使用了'joda-time:joda-time:2.9.9'库作为格式化程序。 String date = "Sun Sep 04 17:29:52 +0000 2022";...

处理 NSDateFormatter 语言环境“功能”的最佳方法是什么?

作者:Hot Licks 提问时间:7/7/2011

似乎有一个“功能”出乎意料地咬了你一口:如果你做一个简单的“固定”格式操作,例如:NSDateFormatter NSDateFormatter* fmt = [[NSDateFormatter a...

我得到了像 07:14 Am/Pm 这样的时间格式,我需要在 NSDateComponent 中转换 19:14

作者:VyTcdc 提问时间:12/16/2017

我想在设置时间时获得 localnotification,因此在 timepickker 中,我获得了像 07:14 Am/Pm 这样的时间格式,我需要像 19:14 一样进行转换,以便我可以设置像 ...

什么是 NumberFormatException,如何修复它?

作者:Qasim Imtiaz 提问时间:10/4/2016

Error Message: Exception in thread "main" java.lang.NumberFormatException: For input string: "Ace of...

使用 StringWithFormat 使用 float 和 long 生成不同的结果

作者:alex 提问时间:4/18/2019

我创建了一个包含 4 个变量和 4 个字符串的类,它们与 4 个变量相同,但作为字符串, 在我声明的 h 文件中: @property (assign) float num1; @property...

在 Java 的 DateTimeFormatter 模式中无法识别 MESZ

作者:Vishal 提问时间:3/25/2023

LocalDateTime time = LocalDateTime.parse("27. April 2021 00:03:50 MESZ", DateTimeFormatter.ofPattern...

FFmpeg avutil.lib 未解析的外部符号

作者:Sere 提问时间:8/1/2022

我正在尝试通过 MSVC 项目将 FFmpeg 与 Visual sudio 2022 .NET 6 一起使用。 我遵循了这个教程:https://www.youtube.com/watch?v=qM...

日期格式“dd-MMM-yyyy”为9月,现在是9月。不是 9 月,所以转换导致 nil

作者:GDev 提问时间:3/20/2022

将 iPad 更新到 iOS 15.4。 现在,当存储的月份格式“MMM”= Sep时,使用 DateFormatter 的字符串到日期的转换返回 nil。 当MMM月份=9月时工作正常。 在 ...

clang-format AlignAfterOpenBracket 列表参数

作者:doliphin 提问时间:10/21/2021

这篇文章提出了一个类似的问题,即当参数太多时如何修改格式。 我非常喜欢 rust-fmt 样式。有什么方法可以用 clang-format 做到这一点吗? 例如 1:与AlignAfterOpen...


共100条 当前第7页