Skip to content

Instantly share code, notes, and snippets.

@wilzbach
Last active July 17, 2018 16:46
Show Gist options
  • Save wilzbach/d74712269f889827cff6b2c7a08d07f8 to your computer and use it in GitHub Desktop.
Save wilzbach/d74712269f889827cff6b2c7a08d07f8 to your computer and use it in GitHub Desktop.
RCString - affected symbols in Phobos

RCString: List of symbols with potential shortcuts

std.algorithm.comparison

  • among
  • castSwitch
  • clamp
  • cmp
  • equal
  • levenshteinDistance
  • levenshteinDistanceAndPath
  • max
  • min
  • mismatch
  • predSwitch
  • isSameLength
  • isPermutation
  • either

std.algorithm.iteration

  • cache
  • cacheBidirectional
  • map
  • each
  • filter
  • filterBidirectional
  • group
  • chunkBy
  • joiner
  • reduce
  • fold
  • cumulativeFold
  • splitter
  • substitute
  • sum
  • mean
  • uniq
  • permutations

std.algorithm.searching

  • all
  • any
  • balancedParens
  • boyerMooreFinder
  • commonPrefix
  • count
  • countUntil
  • endsWith
  • find
  • canFind
  • findAdjacent
  • findAmong
  • findSkip
  • findSplit
  • findSplitBefore
  • findSplitAfter
  • minCount
  • maxCount
  • minElement
  • maxElement
  • minPos
  • maxPos
  • minIndex
  • maxIndex
  • skipOver
  • startsWith
  • until

std.algorithm.sorting

  • completeSort
  • isSorted
  • isStrictlyMonotonic
  • ordered
  • strictlyOrdered
  • partition
  • pivotPartition
  • isPartitioned
  • partition3
  • makeIndex
  • merge
  • multiSort
  • sort
  • schwartzSort
  • partialSort
  • topN
  • topNCopy
  • topNIndex
  • nextPermutation
  • nextEvenPermutation

std.algorithm.mutation

  • bringToFront
  • copy
  • fill
  • initializeAll
  • move
  • moveEmplace
  • moveAll
  • moveEmplaceAll
  • moveSome
  • moveEmplaceSome
  • remove
  • reverse
  • strip
  • stripLeft
  • stripRight
  • swap
  • swapAt
  • swapRanges
  • uninitializedFill

std.algorithm.setops

  • cartesianProduct
  • largestPartialIntersection
  • largestPartialIntersectionWeighted
  • multiwayMerge
  • multiwayUnion
  • setDifference
  • setIntersection
  • setSymmetricDifference

std.array

  • array
  • assocArray
  • byPair
  • uninitializedArray
  • minimallyInitializedArray
  • overlap
  • insertInPlace
  • sameHead
  • sameTail
  • replicate
  • split
  • join
  • replace
  • replaceInto
  • replaceInPlace
  • replaceFirst
  • replaceLast
  • replaceSlice
  • appender

std.ascii

Only for characters and static immutable memory.

  • fullHexDigits
  • hexDigits
  • lowerHexDigits
  • digits
  • octalDigits
  • letters
  • uppercase
  • lowercase
  • whitespace
  • newline
  • isAlphaNum
  • isAlpha
  • isLower
  • isUpper
  • isDigit
  • isOctalDigit
  • isHexDigit
  • isWhite
  • isControl
  • isPunctuation
  • isGraphical
  • isPrintable
  • isASCII
  • toLower
  • toUpper

std.bigint

  • toDecimalString
  • toHex
  • absUnsign
  • divMod

std.bitmanip

  • bitfields
  • taggedPointer
  • taggedClassRef
  • swapEndian
  • nativeToBigEndian
  • bigEndianToNative
  • nativeToLittleEndian
  • littleEndianToNative
  • peek
  • read
  • write
  • append
  • bitsSet

std.complex

None.

std.concurrency

  • thisTid
  • ownerTid
  • spawn
  • spawnLinked
  • send
  • prioritySend
  • receive
  • receiveOnly
  • receiveTimeout
  • setMaxMailboxSize
  • register
  • unregister
  • locate
  • scheduler
  • yield
  • yield
  • initOnce

std.container

None.

std.conv

  • to
  • roundTo
  • parse
  • text (but different return type)
  • wtext
  • dtext
  • octal
  • emplace
  • unsigned
  • signed
  • asOriginalType
  • castFrom
  • hexString
  • toChars

std.csv

  • csvReader
  • csvNextToken

std.datetime

std.demangle

  • demangle

std.encoding

  • isValidCodePoint
  • encodingName
  • canEncode
  • isValidCodeUnit
  • isValid
  • validLength
  • sanitize
  • firstSequence
  • lastSequence
  • index
  • decode
  • decodeReverse
  • safeDecode
  • encodedLength
  • encode
  • codePoints
  • codeUnits
  • transcode
  • bomTable
  • getBOM
  • utfBOM

std.exception

  • assertNotThrown
  • assertThrown
  • enforce
  • errnoEnforce
  • enforceEx
  • collectException
  • collectExceptionMsg
  • emptyExceptionMsg
  • assumeUnique
  • assumeWontThrow
  • doesPointTo
  • mayPointTo
  • ifThrown
  • handle
  • basicExceptionCtors

std.file

  • read
  • readText
  • write
  • append
  • rename
  • remove
  • getSize
  • getTimes
  • getTimesWin
  • setTimes
  • timeLastModified
  • exists
  • getAttributes
  • getLinkAttributes
  • setAttributes
  • isDir
  • attrIsDir
  • isFile
  • attrIsFile
  • isSymlink
  • attrIsSymlink
  • chdir
  • mkdir
  • mkdirRecurse
  • rmdir
  • symlink
  • readLink
  • getcwd
  • thisExePath
  • preserveAttributesDefault
  • copy
  • rmdirRecurse
  • dirEntries
  • slurp
  • tempDir

std.format

  • formattedWrite
  • formattedRead
  • singleSpec
  • formatValue
  • unformatValue
  • format
  • sformat

std.functional

  • unaryFun
  • binaryFun
  • lessThan
  • greaterThan
  • equalTo
  • reverseArgs
  • binaryReverseArgs
  • not
  • partial
  • adjoin
  • compose
  • pipe
  • memoize
  • toDelegate
  • forward

std.getopt

  • getopt
  • config
  • optionChar
  • endOfOptions
  • assignChar
  • arraySep
  • defaultGetoptPrinter
  • defaultGetoptFormatter

std.json

  • parseJSON
  • toJSON

std.math

None.

std.mathspecial

None.

std.meta

None.

std.mmfile

  • MmFile

std.net.curl

  • download
  • upload
  • get
  • post
  • put
  • del
  • options
  • trace
  • connect

std.net.isemal

  • isEmail

std.numeric

None.

std.outbuffer

Deprecated.

std.parallelism

None.

std.path

  • dirSeparator
  • pathSeparator
  • isDirSeparator
  • baseName
  • dirName
  • rootName
  • driveName
  • stripDrive
  • extension
  • stripExtension
  • setExtension
  • withExtension
  • defaultExtension
  • withDefaultExtension
  • buildPath
  • chainPath
  • buildNormalizedPath
  • asNormalizedPath
  • pathSplitter
  • isRooted
  • isAbsolute
  • absolutePath
  • asAbsolutePath
  • relativePath
  • asRelativePath
  • filenameCharCmp
  • filenameCmp
  • globMatch
  • isValidFilename
  • isValidPath
  • expandTilde

std.process

  • spawnProcess
  • spawnShell
  • wait
  • tryWait
  • kill
  • pipe
  • pipeProcess
  • pipeShell
  • execute
  • executeShell
  • userShell
  • nativeShell
  • thisProcessID
  • thisThreadID
  • escapeShellCommand
  • escapeWindowsArgument
  • escapeShellFileName
  • environment
  • execv
  • execve
  • execvp
  • execvpe
  • browse

std.random

  • isUniformRNG
  • isSeedable
  • unpredictableSeed
  • rndGen
  • uniform
  • uniform01
  • uniformDistribution
  • choice
  • randomShuffle
  • partialShuffle
  • dice
  • randomCover
  • randomSample

std.socket

DEPRECATED

  • lastSocketError
  • wouldHaveBlocked
  • getAddressInfo
  • getAddress
  • parseAddress
  • socketPair

std.stdio

  • isFileHandle
  • write
  • writeln
  • writef
  • writefln
  • readf
  • readln
  • popen
  • lines
  • chunks
  • toFile
  • stdin
  • stdout
  • stderr
  • openNetwork

std.string

  • fromStringz (but rcstring.fromStringz)
  • toStringz
  • indexOf
  • lastIndexOf
  • indexOfAny
  • lastIndexOfAny
  • indexOfNeither
  • lastIndexOfNeither
  • representation
  • capitalize
  • splitLines
  • lineSplitter
  • stripLeft
  • stripRight
  • strip
  • chomp
  • chompPrefix
  • chop
  • leftJustify
  • leftJustifier
  • rightJustify
  • rightJustifier
  • center
  • centerJustifier
  • detab
  • detabber
  • entab
  • entabber
  • translate
  • makeTrans
  • makeTransTable
  • translate
  • inPattern
  • tr
  • isNumeric
  • soundexer
  • soundex
  • abbrev
  • column
  • wrap
  • outdent
  • assumeUTF

std.traits

None.

std.typecons

None.

std.uni

  • lineSep
  • paraSep
  • nelSep
  • isCodepointSet
  • isIntegralPair
  • codepointSetTrie
  • codepointTrie
  • isUtfMatcher
  • utfMatcher
  • toTrie
  • toDelegate
  • unicode
  • graphemeStride
  • decodeGrapheme
  • byGrapheme
  • byCodePoint
  • sicmp
  • icmp
  • combiningClass
  • compose
  • decompose
  • decomposeHangul
  • composeJamo
  • normalize
  • allowedIn
  • isWhite
  • isLower
  • isUpper
  • asLowerCase
  • asUpperCase
  • asCapitalized
  • toLowerInPlace
  • toUpperInPlace
  • toLower
  • toUpper
  • isAlpha
  • isMark
  • isNumber
  • isAlphaNum
  • isPunctuation
  • isSymbol
  • isSpace
  • isGraphical
  • isControl
  • isFormat
  • isPrivateUse
  • isSurrogate
  • isSurrogateHi
  • isSurrogateLo
  • isNonCharacter

std.uri

  • decode
  • decodeComponent
  • encode
  • encodeComponent
  • uriLength
  • emailLength

std.utf

  • isValidDchar
  • stride
  • strideBack
  • toUCSindex
  • toUTFindex
  • decode
  • decodeFront
  • decodeBack
  • encode
  • codeLength
  • validate
  • toUTF8
  • toUTF16
  • toUTF32
  • toUTFz
  • toUTF16z
  • count
  • replacementDchar
  • byCodeUnit
  • byChar
  • byWchar
  • byDchar
  • byUTF

std.uuid

  • md5UUID
  • sha1UUID
  • randomUUID
  • parseUUID

std.variant

None.

std.xml

Deprecated.

std.zip

  • ZipArchive

std.zlib

Ubyte-based.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment