This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <filesystem> | |
#include <stdio.h> | |
#include <wchar.h> | |
int main(int argc, const char * argv[]) { | |
std::filesystem::path path1 = "あ"; | |
const auto str_a = path1.string(); | |
const unsigned char* a = (const unsigned char*)str_a.c_str(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
struct Point { | |
int x; | |
Point(int x) | |
: x(x) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <memory> | |
#include <iterator> | |
template<typename T> | |
class Primes { | |
public: | |
class prime_iterator { | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Frameworks/AudioToolbox/AUComponent.h | |
CF_ENUM(OSStatus) { | |
kAudioUnitErr_InvalidProperty = -10879, | |
kAudioUnitErr_InvalidParameter = -10878, | |
kAudioUnitErr_InvalidElement = -10877, | |
kAudioUnitErr_NoConnection = -10876, | |
kAudioUnitErr_FailedInitialization = -10875, | |
kAudioUnitErr_TooManyFramesToProcess = -10874, | |
kAudioUnitErr_InvalidFile = -10871, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You must use special flags with cc when compiling a shared ilbrary or a bundle on Darwin. | |
One difference between Darwin and | |
many other Unix systems is that no position-independent code (PIC) flag is needed, | |
since it is the default for Darwin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
didFailLoadWithError => didFailNavigation | |
webViewDidFinishLoad => didFinishNavigation | |
webViewDidStartLoad => didStartProvisionalNavigation | |
shouldStartLoadWithRequest => decidePolicyForNavigationAction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go list std |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swiftc -emit-assembly source.swift > output.s | |
_T0s14CountableRangeVAByxGx5lower_x5uppert15uncheckedBounds_tcfCSi_Tg5 | |
---> generic specialization <Swift.Int> of Swift.CountableRange.init(uncheckedBounds: (lower: A, upper: A)) -> Swift.CountableRange<A> | |
~$ xcrun swift-demangle __T05hello1as14CountableRangeVySiGvp | |
_T05hello1as14CountableRangeVySiGvp ---> hello.a : Swift.CountableRange<Swift.Int> | |
~$ xcrun swift-demangle __T05hello1dSivp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcrun swift-demangle __T015DVTSourceEditor016DVTPegasusSourceB4ViewCN | |
_T015DVTSourceEditor016DVTPegasusSourceB4ViewCN ---> type metadata for DVTSourceEditor.DVTPegasusSourceEditorView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pod trunk push --swift-version=4.0 ed25519swift.podspec --allow-warnings | |
pod spec lint --swift-version=4.0 ed25519swift.podspec --allow-warnings |
NewerOlder